All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] USB on rock64
@ 2019-11-14 15:28 no-one-you-know
  2019-11-17 16:06 ` Arnout Vandecappelle
  0 siblings, 1 reply; 8+ messages in thread
From: no-one-you-know @ 2019-11-14 15:28 UTC (permalink / raw)
  To: buildroot

Hopefully it's OK to send generic questions here.
I've built an image (glibc/systemv/eudev) for my Rock64 and according to the announcement on this mailing list USB should be working.

And according to dmesg and lsusb, it is (as far as I can tell):

# dmesg|grep -i usb
[    0.214216] usbcore: registered new interface driver usbfs
[    0.214315] usbcore: registered new interface driver hub
[    0.214416] usbcore: registered new device driver usb
[    0.370304] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using dummy regulator
[    0.371105] dwc2 ff580000.usb: Linked as a consumer to regulator.0
[    0.371660] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using dummy regulator
[    0.385485] dwc2 ff580000.usb: DWC OTG Controller
[    0.385935] dwc2 ff580000.usb: new USB bus registered, assigned bus number 1
[    0.386593] dwc2 ff580000.usb: irq 26, io mem 0xff580000
[    0.387932] hub 1-0:1.0: USB hub found
[    0.389294] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.393296] ehci-platform ff5c0000.usb: EHCI Host Controller
[    0.393846] ehci-platform ff5c0000.usb: new USB bus registered, assigned bus number 2
[    0.394921] ehci-platform ff5c0000.usb: irq 27, io mem 0xff5c0000
[    0.409477] ehci-platform ff5c0000.usb: USB 2.0 started, EHCI 1.00
[    0.410839] hub 2-0:1.0: USB hub found
[    0.412098] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.414038] ohci-platform ff5d0000.usb: Generic Platform OHCI controller
[    0.414655] ohci-platform ff5d0000.usb: new USB bus registered, assigned bus number 3
[    0.415676] ohci-platform ff5d0000.usb: irq 28, io mem 0xff5d0000
[    0.478393] hub 3-0:1.0: USB hub found
[    0.480137] usbcore: registered new interface driver usb-storage
[    0.590386] usbcore: registered new interface driver usbhid
[    0.590882] usbhid: USB HID core driver

# lsusb
Bus 003 Device 001: ID 1d6b:0001
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 001: ID 1d6b:0002

But when I plug a USB flash drive in, nothing is detected.  Both lsusb and re-running dmesg show no change - like nothing is there

Is this something I've left out of the 'target packages' selection?  How can I troubleshoot this further?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20191114/c56431c6/attachment.html>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] USB on rock64
  2019-11-14 15:28 [Buildroot] USB on rock64 no-one-you-know
@ 2019-11-17 16:06 ` Arnout Vandecappelle
  2019-11-18 14:16   ` no-one-you-know
  0 siblings, 1 reply; 8+ messages in thread
From: Arnout Vandecappelle @ 2019-11-17 16:06 UTC (permalink / raw)
  To: buildroot



On 14/11/2019 16:28, no-one-you-know wrote:
> Hopefully it's OK to send generic questions here.

 It's OK, but don't expect answers :-)

 It would have been a good idea to include the original contributer of the
rock64_defconfig in Cc - I've done that now.

> I've built an image (glibc/systemv/eudev) for my Rock64 and according to the
> announcement on this mailing list USB should be working.
> 
> And according to dmesg and lsusb, it is (as far as I can tell):
> 
> # dmesg|grep -i usb
> [??? 0.214216] usbcore: registered new interface driver usbfs
> [??? 0.214315] usbcore: registered new interface driver hub
> [??? 0.214416] usbcore: registered new device driver usb
> [??? 0.370304] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using
> dummy regulator
> [??? 0.371105] dwc2 ff580000.usb: Linked as a consumer to regulator.0
> [??? 0.371660] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using
> dummy regulator
> [??? 0.385485] dwc2 ff580000.usb: DWC OTG Controller
> [??? 0.385935] dwc2 ff580000.usb: new USB bus registered, assigned bus number 1
> [??? 0.386593] dwc2 ff580000.usb: irq 26, io mem 0xff580000
> [??? 0.387932] hub 1-0:1.0: USB hub found
> [??? 0.389294] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [??? 0.393296] ehci-platform ff5c0000.usb: EHCI Host Controller
> [??? 0.393846] ehci-platform ff5c0000.usb: new USB bus registered, assigned bus
> number 2
> [??? 0.394921] ehci-platform ff5c0000.usb: irq 27, io mem 0xff5c0000
> [??? 0.409477] ehci-platform ff5c0000.usb: USB 2.0 started, EHCI 1.00
> [??? 0.410839] hub 2-0:1.0: USB hub found
> [??? 0.412098] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [??? 0.414038] ohci-platform ff5d0000.usb: Generic Platform OHCI controller
> [??? 0.414655] ohci-platform ff5d0000.usb: new USB bus registered, assigned bus
> number 3
> [??? 0.415676] ohci-platform ff5d0000.usb: irq 28, io mem 0xff5d0000
> [??? 0.478393] hub 3-0:1.0: USB hub found
> [??? 0.480137] usbcore: registered new interface driver usb-storage
> [??? 0.590386] usbcore: registered new interface driver usbhid
> [??? 0.590882] usbhid: USB HID core driver
> 
> # lsusb
> Bus 003 Device 001: ID 1d6b:0001
> Bus 002 Device 001: ID 1d6b:0002
> Bus 001 Device 001: ID 1d6b:0002
> 
> But when I plug a USB flash drive in, nothing is detected.? Both lsusb and
> re-running dmesg show no change - like nothing is there

 Have you tried with other devices? USB3 flash drives don't always work well in
USB2 ports (yes, they should, but they don't...). A mouse is often a much better
device for testing.

 Regards,
 Arnout

> 
> Is this something I've left out of the 'target packages' selection?? How can I
> troubleshoot this further?
> 
> Thanks
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] USB on rock64
  2019-11-17 16:06 ` Arnout Vandecappelle
@ 2019-11-18 14:16   ` no-one-you-know
  2019-11-18 18:11     ` michal.lyszczek at bofc.pl
  0 siblings, 1 reply; 8+ messages in thread
From: no-one-you-know @ 2019-11-18 14:16 UTC (permalink / raw)
  To: buildroot

> Have you tried with other devices? USB3 flash drives don't always work well in
> USB2 ports (yes, they should, but they don't...). A mouse is often a much better
> device for testing.

Hello - thanks for responding.

Yes, I tried with a USB2 flash drive and a USB keyboard.  Nothing detected.
I'm reasonably confident it's the kernel rather than a missing package because I used the same uboot/kernel with a different rootfs and have the same behaviour.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] USB on rock64
  2019-11-18 14:16   ` no-one-you-know
@ 2019-11-18 18:11     ` michal.lyszczek at bofc.pl
  2019-11-19  1:15       ` no-one-you-know
  0 siblings, 1 reply; 8+ messages in thread
From: michal.lyszczek at bofc.pl @ 2019-11-18 18:11 UTC (permalink / raw)
  To: buildroot

Hello noone I know
On 2019-11-18 14:16:28, no-one-you-know wrote:
> > Have you tried with other devices? USB3 flash drives don't
> > always work well in USB2 ports (yes, they should, but they
> > don't...). A mouse is often a much better device for testing.
> 
> Hello - thanks for responding.
> 
> Yes, I tried with a USB2 flash drive and a USB keyboard.  Nothing
> detected.  I'm reasonably confident it's the kernel rather than a
> missing package because I used the same uboot/kernel with a
> different rootfs and have the same behaviour.

I've just compiled rock64_defconfig from master and USB does ineed
work, I checked USB3 and USB2 pendrives and keyboard but...

Only 1 USB port seems to work - bottom USB2.0. I remember there
were some issues with USB3 at the time I did the port, but cannot
remember why the upper USB2 does not work, maybe some regulator is
not enabled in default dtb?

Try different USB port and see if that works.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] USB on rock64
  2019-11-18 18:11     ` michal.lyszczek at bofc.pl
@ 2019-11-19  1:15       ` no-one-you-know
  2019-11-19  6:54         ` michal.lyszczek at bofc.pl
  0 siblings, 1 reply; 8+ messages in thread
From: no-one-you-know @ 2019-11-19  1:15 UTC (permalink / raw)
  To: buildroot

> I've just compiled rock64_defconfig from master and USB does ineed
> work, I checked USB3 and USB2 pendrives and keyboard but...
>
> Only 1 USB port seems to work - bottom USB2.0. I remember there
> were some issues with USB3 at the time I did the port, but cannot
> remember why the upper USB2 does not work, maybe some regulator is
> not enabled in default dtb?
>
> Try different USB port and see if that works.

Weird, I get nothing on any port with a USB2 flash drive and a USB keyboard.

I was using the 2018.08 version with quite a few different options set.  I'm assuming that when you compiled it you left everything default so I'll give that a go with the latest rc version and see what happens.

Thanks for helping.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] USB on rock64
  2019-11-19  1:15       ` no-one-you-know
@ 2019-11-19  6:54         ` michal.lyszczek at bofc.pl
  2019-11-19 23:56           ` no-one-you-know
  2019-11-21 16:01           ` no-one-you-know
  0 siblings, 2 replies; 8+ messages in thread
From: michal.lyszczek at bofc.pl @ 2019-11-19  6:54 UTC (permalink / raw)
  To: buildroot

On 2019-11-19 01:15:42, no-one-you-know wrote:
> > I've just compiled rock64_defconfig from master and USB does ineed
> > work, I checked USB3 and USB2 pendrives and keyboard but...
> >
> > Only 1 USB port seems to work - bottom USB2.0. I remember there
> > were some issues with USB3 at the time I did the port, but cannot
> > remember why the upper USB2 does not work, maybe some regulator is
> > not enabled in default dtb?
> >
> > Try different USB port and see if that works.
> 
> Weird, I get nothing on any port with a USB2 flash drive and a
> USB keyboard.
> 
> I was using the 2018.08 version with quite a few different
> options set.  I'm assuming that when you compiled it you left
> everything default so I'll give that a go with the latest rc
> version and see what happens.
> 
> Thanks for helping.

Default buildroot config for rock64 uses mainline kernel with
default arch's generic defconfig which is not tailored for rock64.
It might be possible that you have some newer revision than mine,
which is not fully supported in mainline kernel. Couple of things
to consider:

1) you might want to change kernel version to newest one, maybe
your board is better supported in newer kernel.

2) you can try and use kernel from ayufan that is made for rock64
(forked from official rockchip kernel repo) which surely will have
drivers mainline won't. He used to very actively support rock64 in
the past, I don't know how about now - last commit is 3 months old
(https://github.com/ayufan-rock64/linux-kernel)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] USB on rock64
  2019-11-19  6:54         ` michal.lyszczek at bofc.pl
@ 2019-11-19 23:56           ` no-one-you-know
  2019-11-21 16:01           ` no-one-you-know
  1 sibling, 0 replies; 8+ messages in thread
From: no-one-you-know @ 2019-11-19 23:56 UTC (permalink / raw)
  To: buildroot

> Default buildroot config for rock64 uses mainline kernel with
> default arch's generic defconfig which is not tailored for rock64.
> It might be possible that you have some newer revision than mine,
> which is not fully supported in mainline kernel.

I think you must be right.  I just downloaded 2019.11rc and built a vanilla image with just "make rock64_defconfig && make" and I can't get anything out of the USB ports.

> Couple of things to consider:
>
> 1.  you might want to change kernel version to newest one, maybe
>     your board is better supported in newer kernel.
>
> 2.  you can try and use kernel from ayufan that is made for rock64
>     (forked from official rockchip kernel repo) which surely will have
>     drivers mainline won't. He used to very actively support rock64 in
>     the past, I don't know how about now - last commit is 3 months old
>     (https://github.com/ayufan-rock64/linux-kernel)

Thanks for the info and advice.  It's appreciated.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] USB on rock64
  2019-11-19  6:54         ` michal.lyszczek at bofc.pl
  2019-11-19 23:56           ` no-one-you-know
@ 2019-11-21 16:01           ` no-one-you-know
  1 sibling, 0 replies; 8+ messages in thread
From: no-one-you-know @ 2019-11-21 16:01 UTC (permalink / raw)
  To: buildroot

> Default buildroot config for rock64 uses mainline kernel with
> default arch's generic defconfig which is not tailored for rock64.
> It might be possible that you have some newer revision than mine,
> which is not fully supported in mainline kernel. Couple of things
> to consider:
>
> 1.  you might want to change kernel version to newest one, maybe
>     your board is better supported in newer kernel.

Just one more thing on this...
I rebuilt my image using 2019.11.rc2 and kernel 5.3 (from the menuconfig options) and my USB2 ports are working now :)

Thanks again for the advice.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-11-21 16:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-14 15:28 [Buildroot] USB on rock64 no-one-you-know
2019-11-17 16:06 ` Arnout Vandecappelle
2019-11-18 14:16   ` no-one-you-know
2019-11-18 18:11     ` michal.lyszczek at bofc.pl
2019-11-19  1:15       ` no-one-you-know
2019-11-19  6:54         ` michal.lyszczek at bofc.pl
2019-11-19 23:56           ` no-one-you-know
2019-11-21 16:01           ` no-one-you-know

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.