Reply
Thread Tools
Posts: 125 | Thanked: 1 time | Joined on Aug 2006
#1
Is there anything different that must be done to get the echo host >>.../otg_mode technique to work in the 2006 release.

I normally use flasher but lately I've had the need to switch on the fly w/o the flasher and cannot get it to work. When usb host is enabled you have a whole span of drivers loaded:

Code:
umac                  235364   1 cx3110x
ext3                  107944   0
mbcache                 7716   1 ext3
jbd                    56948   1 ext3
ext2                   43524   0
asix                   10368   0
cdc_ether               4736   0
net1080                 5184   0
pl2303                 17956   0
usb_storage            32804   0
sd_mod                 13040   0
scsi_mod               83140   2 usb_storage,sd_mod
usbserial              25416   1 pl2303
usbnet                 14310   3 asix,cdc_ether,net1080
usbhid                 31140   0
ohci_hcd               20532   0

With everything stock, lsmod only shows one thing.
I loaded scsi,sd and usb_storage but there is no dev/sda1 to be seen. After that I loaded ohci and a friendly reboot commenced.

So is there anything special. I will play with the order but any insight would be appreciated.

Last edited by Luna; 2006-09-06 at 21:32. Reason: Sorry: this should be a troubleshooting thread..
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#2
You can examine /mnt/initfs/linuxrc for exact order how to do this.
 
Posts: 91 | Thanked: 5 times | Joined on Aug 2006
#3
you have to do in root mode:

to enable host mode
echo host > sys/devices/platform/tahvo-usb/otg_mode
/etc/init.d/ke-recv restart

to enable peripheral mode:
echo peripheral > sys/devices/platform/tahvo-usb/otg_mode
/etc/init.d/ke-recv restart

(one thing, this only work if you put in peripheral mode via the flasher utility, then it works all the time without reflashing it)

and this works for me.

I made two scripts and I run them with the cpu mem aplet. If anybody want, I can post them.

Last edited by lucky-luke; 2006-09-07 at 09:53.
 
Posts: 125 | Thanked: 1 time | Joined on Aug 2006
#4
fanoush, I was looking for that file but the lack of recursive grep in busybox just frustrated me so I stopped looking(and the find/xargs/grep approach is way too slow)


Originally Posted by lucky-luke
you have to do in root mode:

to enable host mode
echo host > sys/devices/platform/tahvo-usb/otg_mode
/etc/init.d/ke-recv restart

to enable peripheral mode:
echo peripheral > sys/devices/platform/tahvo-usb/otg_mode
/etc/init.d/ke-recv restart

See that is exactly what I'm doing, and in peripheral mode. So you are not having to load any of the drivers (scsi, usbstorage etc) with this technique?


BTW, I've produced .desktop file for my scripts (plus mount and unmount, though they are dumb since I was too lazy to test for sdb,sdc... ) but the issue still exists from xterm as root. I thought maybe I needed R/D mode on but it didn't help. When I flash back to enable-usb, things work like a charm


So to reiterate, changing otg_mode to host and ke-recv restart is all that you do, turn on the injector and insert device and the sda1 mountpoint is present?
 
Posts: 125 | Thanked: 1 time | Joined on Aug 2006
#5
Originally Posted by fanoush
You can examine /mnt/initfs/linuxrc for exact order how to do this.

Oh yeah, that is definately what I was looking for.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:02.