Jump to content

Recommended Posts

Posted

I have an OrangePi PC and a BananaPi M1, and both of them are able to switch to USB host mode or device mode by editing dr_mode in corresponding .dtb file. But seems that both board are not able to support HNP protocol. 

 

From my understanding, OrangePi PC and BananaPi M1 only has perpherial-only OTG, please correct me if I am wrong.

 

Is there any board that can support HNP? I need something that can switch USB mode(from host mode to device mode or the other way around) without reboot the board

 

Any advice is appreciated

<
Posted

OrangePi PC can enable USB OTG by following the steps below.

 

$ cat /etc/debian_version
12.1

$ uname -a
Linux orangepipc 6.1.47-current-sunxi #1 SMP Wed Aug 23 15:52:42 UTC 2023 armv7l GNU/Linux

$ sudo sh -c "echo 'g_serial' >> /etc/modules"

$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
g_serial

$ sudo sh -c "echo 'ttyGS0' >> /etc/securetty"

$ cat /etc/securetty
ttyS0
ttyGS0

$ sudo systemctl enable serial-getty@ttyGS0.service

$ sudo shutdown -r now

 

 

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