Jump to content

Can't enable host mode for otg usb on Bananapi M2 Zero running kernel 6.6.44-current-sunxi


Patricio Diaz

Recommended Posts

Hi you all. I'm trying for a couple of day now to solve an annoying problem with the USB and some Bananapi M2 zeros.

 

I have two cluster-hats with 4 Bananapi M2 zeros as nodes. The cluster hat presents itself as a USB gadget (USB ethernet interface) to the nodes allowing networking between the controller and the nodes.  The nodes work fine with kernel 5.9.8, the modules identify the hat as a network interface and everything works as expected. 

My trouble is that I'm creating new images for the nodes (bananapi m2 zero) from here, the nodes boots, but it seems like the OTG port is not behaving as expected. 

 

Followed instructions from these posts: 

https://forum.banana-pi.org/t/bpi-m2-zero-armbian-5-41-3-4-113-debian-jessie-ubuntu-xenial/5485/12

but I still can't make it work

 

I read here  that from kernet 5.17 micro-USB host mode is disabled, I'm a bit confused but I understand I need to enable this mode to make it work, or am I getting it wrong?

 

Any help will be appreciated

 

 

Link to comment
Share on other sites

Hola Patricio!

 

Another guy re-installed Armbian with Linux 6.1 and g_serial was working... maybe g_ether will work too

 

https://forum.armbian.com/topic/44870-nanopi-duo2-microusb-serial-stop-working-on-24110/?do=findComment&comment=201229

 

Another thing to try:

 

Make sure that CONFIG_USB_ETHERNET=m is enabled (without #) in the /boot/linux.config file... if not, you need to learn how to make your own Armbian image, and enable this feature

 

https://linuxlink.timesys.com/docs/wiki/engineering/HOWTO_Use_USB_Gadget_Ethernet

 

Information about g_serial and g_ether together: https://forums.raspberrypi.com/viewtopic.php?t=238280

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines