If you enable USB hose mode, does the 770 no longer work as a USB client?
I found this searching (see, I did search!) (As root) command to put it into host mode: echo host > /sys/devices/platform/tahvo-usb/otg_mode command to put it into peripheral mode: echo peripheral > /sys/devices/platform/tahvo-usb/otg_mode
#!/bin/sh # use gainroot to become root and relaunch itself if [ `id -u` != 0 ] ; then #if not already root, call itself as root exec sudo gainroot <<EOF exec $0 $* EOF exit $? fi # real script follows HOST_MODULES="ohci-hcd scsi_mod sd_mod usb-storage" MODULE_PATH=/mnt/initfs/lib/modules/current insert_modules(){ for mod in $* ; do if [ -f $MODULE_PATH/${mod}.ko ]; then insmod $MODULE_PATH/${mod}.ko fi done } remove_modules(){ echo } OTG_MODE="/sys/devices/platform/tahvo-usb/otg_mode" enable_host(){ insert_modules $HOST_MODULES echo host >${OTG_MODE} } disable_host(){ echo peripheral >${OTG_MODE} remove_modules } /etc/init.d/ke-recv stop mode=$(cat $OTG_MODE) case $mode in host) echo "switching host -> client" disable_host ;; peripheral) echo "switching client -> host" enable_host ;; esac /etc/init.d/ke-recv start
So, do I need to flash (--enable-usb-host-mode) it AND do this, or does the flashing just do that?
Do I use to flasher to enable it so it will boot with support and load drivers and then I can toggle it off and on with the above?
Can I just enable usb host without RD mode?