Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB not working on BananaPi M2 Zero #377

Closed
danielfett opened this issue May 5, 2023 · 4 comments
Closed

USB not working on BananaPi M2 Zero #377

danielfett opened this issue May 5, 2023 · 4 comments

Comments

@danielfett
Copy link

danielfett commented May 5, 2023

I can't get the USB port on a BananaPi M2 Zero to work. Power is available (as it is hard wired if I read correctly) but no devices are recognized except for the onboard USB 1.1 and 2.0 hubs.

It's not a hardware problem, as the same setup works with an older official BPi image.

I'm building core-image-x11 with kirkstone

local.conf:

MACHINE = "bananapi-m2-zero"

bblayers:

BBLAYERS ?= " \
  /home/daniel/yocto/poky/meta \
  /home/daniel/yocto/poky/meta-poky \
  /home/daniel/yocto/poky/meta-yocto-bsp \
  /home/daniel/yocto/poky/meta-openembedded/meta-oe \
  /home/daniel/yocto/poky/meta-openembedded/meta-python \
  /home/daniel/yocto/poky/meta-sunxi \
  "
root@bananapi-m2-zero:~# dmesg | grep usb
dmesg | grep usb
[    0.070001] usbcore: registered new interface driver usbfs
[    0.070064] usbcore: registered new interface driver hub
[    0.070127] usbcore: registered new device driver usb
[    0.923402] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.929024] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.936996] ehci-platform 1c1a000.usb: irq 36, io mem 0x01c1a000
[    0.971538] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.998481] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.005138] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.013025] ohci-platform 1c1a400.usb: irq 37, io mem 0x01c1a400
[    1.094567] usbcore: registered new interface driver usb-storage
[    1.143071] usbcore: registered new interface driver usbhid
[    1.156656] usbhid: USB HID core driver
[    2.745571] usbcore: registered new interface driver brcmfmac
root@bananapi-m2-zero:~# lsusb
lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

This is not related to the problems described in Issue #275.

Did I miss anything?

@nandra
Copy link
Collaborator

nandra commented May 8, 2023

@danielfett thanks for report. I tried with kirkstobe and with 5.15 I also cannot make USB working. I bumped to 6.x and there it works out of the box. I didn't investigate changes between those 2 releases. Would be an option for you to use 6.x kernel? Thanks.

@danielfett
Copy link
Author

I tried that, but ran into (unrelated) other problems - since I'm new to Yocto, I gave up solving them at some point. With some input, I might be able to try again - what branch of meta-sunxi and what release of Yocto did you use? Did you build core-image-x11?

@nandra
Copy link
Collaborator

nandra commented May 9, 2023

Please use master branch. I'm using core-image-base but it doesn't matter which image you use. In master branch there should be support for 6.x kernel by default.

@nandra
Copy link
Collaborator

nandra commented May 16, 2023

@danielfett any update please? Thanks.

@nandra nandra closed this as completed Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants