[maemo-developers] Unable to get device detected with usb host mode on N800

From: Vasudevan Srinivasan vazudevan at gmail.com
Date: Wed May 23 17:51:24 EEST 2007
Hi,

I tried the usb host mode on n800 and was not success full in getting
devices hooked up.
These are the following that I have tried.

1. Compiled the kernel on SDK_ARMEL as per instructions at
http://www.muru.com/linux/n800-usb-host/ with the following patches.
kernel-source-rx-34_2.6.18-osso40.diff.gz
patches-tusb-n800-2007-05-04.tar.gz

 - make n800_defconfig
- make zImage
- flasher -f -k -R /path/zImage

2. Switching to host mode - echo host > /sys/devices/platform/musb_hdrc/mode
throws on dmesg
musb_platform_set_mode 461: Already in host mode otg_stat: 00000171
3. Used a mini-B  - TypeA cable to a powered usb hub with n800 connected to
the host port.

I could only get usb hub detected. other devices (usb flash disk, keyboard)
connected the hub are not detected.
restarting /etc/init.d/ke-recv did not help either.

Is there something I'm missing? Any suggestions to get ahead?
I also tried patches-tusb-n800-2007-04-18.tar.gz without success.

Nokia-N800-10:~# ls /sys/bus/usb/devices/
1-0:1.0  usb1

<dmesg>

[   21.803802] MMU: mapping in ARM MMU, v=0xe0560000, p=0x86b00000,
sz=0x10000
[   21.803863] MMU: mapping in ARM MMU, v=0xe0570000, p=0x86b10000,
sz=0x10000
[   22.169616] omapdsp: IPBUF configuration
[   22.169647]            512 words * 16 lines at 0xe0200000.
[   22.169799] omapdsp: found 5 task(s)
[   22.170013] omapdsp: task 0: name pcm3
[   22.170501] omapdsp: taskdev pcm3 enabled.
[   22.182037] omapdsp: task 1: name pcm_rec1
[   22.182556] omapdsp: taskdev pcm_rec1 enabled.
[   22.188903] omapdsp: task 2: name pcm1
[   22.189422] omapdsp: taskdev pcm1 enabled.
[   22.198394] omapdsp: task 3: name audiopp
[   22.198883] omapdsp: taskdev audiopp enabled.
[   22.205047] omapdsp: task 4: name pcm0
[   22.205627] omapdsp: taskdev pcm0 enabled.
[   23.240234] EAC mode: play enabled, rec enabled
[   23.658020] omapdsp: mmap info: vmadr = 40000000, padr = 86a30000, len =
2000
[   25.699768] g_file_storage gadget: File-backed Storage Gadget, version:
28 November 2005
[   25.699829] g_file_storage gadget: Number of LUNs=2
[   25.699859] musb_hdrc musb_hdrc: MUSB HDRC host driver
[   25.701385] drivers/usb/core/inode.c: creating file 'devices'
[   25.701446] drivers/usb/core/inode.c: creating file '001'
[   25.701507] musb_hdrc musb_hdrc: new USB bus registered, assigned bus
number 1
[   25.701568] musb_hdrc musb_hdrc: supports USB remote wakeup
[   25.701721] usb usb1: default language 0x0409
[   25.701782] usb usb1: new device strings: Mfr=3, Product=2,
SerialNumber=1
[   25.701843] usb usb1: Product: MUSB HDRC host driver
[   25.701873] usb usb1: Manufacturer: Linux 2.6.18-omap1 musb-hcd
[   25.701904] usb usb1: SerialNumber: musb_hdrc
[   25.702056] usb usb1: uevent
[   25.702545] usb usb1: configuration #1 chosen from 1 choice
[   25.702636] usb usb1: adding 1-0:1.0 (config #1, interface 0)
[   25.702758] usb 1-0:1.0: uevent
[   25.702880] hub 1-0:1.0: usb_probe_interface
[   25.702941] hub 1-0:1.0: usb_probe_interface - got id
[   25.702972] hub 1-0:1.0: USB hub found
[   25.703063] hub 1-0:1.0: 1 port detected
[   25.703094] hub 1-0:1.0: standalone hub
[   25.703125] hub 1-0:1.0: individual port power switching
[   25.703155] hub 1-0:1.0: no over-current protection
[   25.703186] hub 1-0:1.0: Single TT
[   25.703216] hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
[   25.703247] hub 1-0:1.0: power on to power good time: 10ms
[   25.703308] hub 1-0:1.0: local power source is good
[   25.703338] hub 1-0:1.0: enabling power on all ports
[   25.706054] drivers/usb/musb/tusb6010.c musb_platform_enable: dma not
reactivated
[   25.897094] drivers/usb/core/inode.c: creating file '001'
[   25.897277] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
[   25.962402] EAC mode: play disabled, rec disabled
[   28.700531] Loading 3826.arm firmware
[   28.999176] (c)opyright 2004 Conexant
[   28.999206]
[   28.999237] build info: PRISM SoftMAC
[   28.999237]   creator: [kvalo]
[   28.999267]   date: [06/12/22-12:08]
[   28.999298]
[   29.005859] CX3110x: MAC address 00:19:4f:9e:9b:1d
[   29.006835] cx3110x: PSM disabled
[   31.368469] Scan complete, scanned 13 channels
[   31.393676] cx3110x: PSM full
[   31.420074] cx3110x: PSM disabled
[   33.416015] Scan complete, scanned 13 channels
[   33.440307] cx3110x: PSM full
[   33.898101] cx3110x: PSM disabled
[   36.045654] EAC mode: play enabled, rec enabled
[   36.278961] Unhandled trap: 0x18000010
[   36.936279] cx3110x: PSM dynamic with 1000 ms CAM timeout
[   37.592712] ERROR in pdlp_calculate_stats(): o[j-1].timestamp is < 128
[   44.119812] EAC mode: play disabled, rec disabled
[   52.958435] EAC mode: play enabled, rec enabled
[   53.060913] omapdsp: mmap info: vmadr = 4000c000, padr = 86a10000, len =
2000
[   55.365417] EAC mode: play disabled, rec disabled
[   78.997650] EAC mode: play enabled, rec enabled
[   82.450378] EAC mode: play disabled, rec disabled
</dmesg>



-- 
regards
Vasudevan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20070523/3a7135d3/attachment.htm 
More information about the maemo-developers mailing list