AristoChen Posted February 18, 2021 Share Posted February 18, 2021 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 0 Quote Link to comment Share on other sites More sharing options...
nopnop2002 Posted November 2, 2023 Share Posted November 2, 2023 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 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.