[SOLVED] Rock64 USB ports broken since linux 4.20

Discussion about U-Boot and the kernel.

[SOLVED] Rock64 USB ports broken since linux 4.20

Postby berturion » Wed Jan 02, 2019 9:36 am

(Originally posted here: viewtopic.php?t=13318)

Hello,
Since Kernel version 4.20, I am not able to plug any USB device on my Rock64 board. If I restore a snapshot having the previous kernel version (4.19) everything works fine.
To be sure that the problem comes from the kernel, I prepared a completely fresh install of Archlinuxarm. On the latest provided image (http://os.archlinuxarm.org/os/ArchLinux ... est.tar.gz), the kernel version is 4.19 . I setup pacman to ignore linux-aarch64 package in /etc/pacman.conf and did a full update. I then rebooted. Everything worked fine (usb drives are here, and my USB DVB-T adapter also).
Then, I upgraded the kernel only to 4.20 and rebooted. And I can't see disks in /dev directory. My USB DVB-T adapter is not here either. I unplugged them and replugged, by following the output of "journalctl -f", but nothing happens. I also noticed that my 2.5" usb drive is not even powered. It is like USB ports just don't work at all.

Is it a known issue ? Is someone else experience that problem ? What can I do to diagnose this problem further ?
Last edited by berturion on Thu Mar 28, 2019 6:17 pm, edited 1 time in total.
berturion
 
Posts: 27
Joined: Mon Jun 18, 2018 10:54 am

Re: Rock64 USB ports broken since linux 4.20

Postby parly » Sun Jan 06, 2019 3:30 pm

This problem has fixed in linux-aarch64 5.0.0-2, by the patch applied to the package. (And also, this fix has been merged into upstream in 5.0.8.)
You can view it here: a8772e5

Thanks go to Robin for suggesting this solution, and Kevin for merging this patch into the package.


The text below is my original post about old workaround, and is retained for just in case.

I experienced the same problem. My Wi-Fi USB dongle has stopped functioning after updating the kernel.

After some investigation, I found that reverting the commit ef05bcb seems to make my USB device function again.
It might be a workaround, though.

You can use this patched device tree file:
[link removed]
After updating the kernel to the specified version, simply replace /boot/dtbs/rockchip/rk3328-rock64.dtb with the extracted file and reboot.

I hope this will be helpful!
Last edited by parly on Wed May 29, 2019 12:13 pm, edited 5 times in total.
parly
 
Posts: 5
Joined: Sun Jan 06, 2019 2:13 pm

Re: Rock64 USB ports broken since linux 4.20

Postby berturion » Tue Jan 08, 2019 12:51 pm

Thank you! I was wondering if I was the only one having this issue.
Is kernel 4.20 add HDMI support for our board ?
If yes I will do the upgrade with your dtb. If not, I think I will wait for the next kernel release.
:D
berturion
 
Posts: 27
Joined: Mon Jun 18, 2018 10:54 am

Re: Rock64 USB ports broken since linux 4.20

Postby parly » Wed Jan 09, 2019 1:02 pm

Not yet, display output didn't work.

HDMI support code was partially added in 4.20, but it seems to be incomplete.
I believe that it will be completed in Linux 5.0 (4.21) release (by the commit 1c53ba8).
parly
 
Posts: 5
Joined: Sun Jan 06, 2019 2:13 pm

Re: Rock64 USB ports broken since linux 4.20

Postby berturion » Thu Jan 10, 2019 9:12 am

Ok thanks. I will wait for linux 5.0 then.
berturion
 
Posts: 27
Joined: Mon Jun 18, 2018 10:54 am

Re: Rock64 USB ports broken since linux 4.20

Postby berturion » Sat Jan 19, 2019 3:53 pm

Just a message to say that kernel version 4.20.3-1 doesn't solve this issue. Tested on a vanilla arch linux arm install.
berturion
 
Posts: 27
Joined: Mon Jun 18, 2018 10:54 am

Re: Rock64 USB ports broken since linux 4.20

Postby spags » Mon Feb 04, 2019 6:49 am

Also here to report that it's not working on 5.0.0-rc5-1. Given that 5.0 is so close to release it doesn't look likely that this will be fixed in 5.0
spags
 
Posts: 1
Joined: Sun Jan 27, 2019 8:34 pm

Re: Rock64 USB ports broken since linux 4.20

Postby berturion » Tue Feb 05, 2019 5:16 pm

This is bad news. Thanks for reporting this, though.
berturion
 
Posts: 27
Joined: Mon Jun 18, 2018 10:54 am

Re: Rock64 USB ports broken since linux 4.20

Postby berturion » Tue Mar 05, 2019 5:12 pm

Still no USB device with official 5.0.0-1 archlinux arm kernel.

Code: Select all
[root@alarm ~]# uname -a
Linux alarm 5.0.0-1-ARCH #1 SMP Mon Mar 4 19:13:32 MST 2019 aarch64 GNU/Linux

[root@alarm ~]# blkid
/dev/mmcblk0p1: UUID="cee5b852-b5f5-4e20-b8e6-80612734e0bd" TYPE="ext4" PARTUUID="05e30572-01"
/dev/mmcblk0: PTUUID="05e30572" PTTYPE="dos"

:cry:
berturion
 
Posts: 27
Joined: Mon Jun 18, 2018 10:54 am

Re: Rock64 USB ports broken since linux 4.20

Postby parly » Wed Mar 06, 2019 2:14 am

I'm also trying 5.0.0-1-ARCH kernel, but it's not working for me too. :(
Fortunately, dtb patching workaround seems to work in 5.0.0 too so I updated the patch in the second post.

To be honest, I haven't figured out how to fix this problem correctly.
I hope someone will find it ...
parly
 
Posts: 5
Joined: Sun Jan 06, 2019 2:13 pm

Next

Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 1 guest