Posts tagged startup
SmartQ 5 Tips: How to enable “USB Host” mode automatically on startup
6sometimes the device may start with ” login screen” after you installed software,it casued because there is no space of roofs ,but we can enable “usb host ” start before “login screen ”
How to enable USB Host mode automatically on startup
- Open file /etc/rc.local in a text editor with root rights
- Place below lines just before the last line exit 0
- Reboot
echo 1 > /sys/devices/platform/hhtech_gpio/usbpwr_en;
echo 1 > /sys/devices/platform/hhtech_gpio/usbotgdrv_en;
modprobe ohci-hcd;
modprobe usb-storage;
I tested this method and works fine on my SmartQ 5. My usb mouse automatically operates after boot.
One advantage of auto-enabling USB Host mode is that you can use a usb keyboard if you have a “login screen” situation.