Page 1 of 1

How to activate USB host mode in Alpine linux?

Posted: 2025-07-13 10:47
by 17ccj3xcfzdq
How to activate USB host mode in Alpine linux?

answer to "lsusb" command is nothing

Re: How to activate USB host mode in Alpine linux?

Posted: 2025-07-14 13:38
by Crocodile
Hello,

It is usually recommended to directly modify the kernel device tree to achieve this. You can refer to the USB-related WIKI.

The way to modify dynamically in the system is as follows:

Code: Select all

# host mode
echo host > /sys/devices/platform/ff3e0000.usb2-phy/otg_mode
# peripheray mode
echo peripheral > /sys/devices/platform/ff3e0000.usb2-phy/otg_mode
This type of configuration will be lost after a reboot. It can be set by writing a startup script.

We do not maintain the Alpine Linux image. There might be some background programs that cause the settings not to take effect.