[maemo-developers] N800 experimental host mode patches updated

From: Frantisek Dufka dufkaf at seznam.cz
Date: Sat Oct 13 10:48:19 EEST 2007
Tony Lindgren wrote:

> It needs a gadget loaded to be active because it runs in OTG mode.
> For some reason g_file_storage is not loaded automatically, do things
> work if you run /usr/sbin/osso-usb-mass-storage-enable.sh after booting?
> 
> If I run that, peripheral and host modes work.
> 

Yes, that was the trick, thank you. The script above takes storage 
devices as a parameter so it should be run like
/usr/sbin/osso-usb-mass-storage-enable.sh /dev/mmcblk0 /dev/mmcblk1

Tried, hub, mouse and flash disk and they get detected. Will do more 
tests this evening (it is morning here now).

I have re-uploaded the kernel with CONFIG_USB_OTG_WHITELIST disabled.

BTW, when after host mode I did
echo otg > /sys/devices/platform/musb_hdrc/mode
N800 was not properly dedected by PC (with Windows XP), it said 'device 
malfunctioned' and prompted for driver install. I had to run
echo  peripheral > /sys/devices/platform/musb_hdrc/mode
To see my cards mounted on PC.

Regards,
Frantisek

Oh, and thanks for your work on N800 host mode patches :-)

More information about the maemo-developers mailing list