[maemo-developers] N800 experimental host mode patches updated

From: Tony Lindgren tony at atomide.com
Date: Sat Oct 13 19:32:26 EEST 2007
Hi,

* Frantisek Dufka <dufkaf at seznam.cz> [071013 00:48]:
> 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).

OK good. No idea why it does not start automatically any longer though.

> I have re-uploaded the kernel with CONFIG_USB_OTG_WHITELIST disabled.

Great!

> 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.

Yes, changing back to peripheral mode without ID pin grounded is a known
issue... Unfortunately I don't have time to look into that right now.

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

No problem, thank you for providing custom kernel!

Tony

More information about the maemo-developers mailing list