OK, never mind, I take it back. It's not working. After reconfiguring the kernel to switch USB to be in host mode, I do see USB activities. After the kernel booted up, I manually loaded the USB modules I needed before plugging in my USB thumb drive. When I plug in my thumb drive (I tried several different brands), I keep getting error -110. Here's my log:
Starting kernel ... Uncompressing Linux................................................................... .. done, booting the kernel. Linux version 2.6.20-omap1 ([EMAIL PROTECTED]) (gcc version 3.4.3 (MontaVis ta 3.4.3-25.0.104.0600975 2006-07-06)) #29 Wed Mar 14 20:54:33 PST 2007 ... usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb ... After logging in, I manually loaded the USB modules I needed: # modprobe musb_hdrc musb_hdrc: version 2.2a/db-0.5.2, pio, host, debug=0 musb_hdrc: USB Host mode controller at c8064000 using PIO, IRQ 12 musb_hdrc musb_hdrc: MUSB HDRC host driver musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected # modprobe usb_storage SCSI subsystem initialized Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. # lsmod Module Size Used by Tainted: GF usb_storage 37924 0 - Live 0xbf05a000 scsi_mod 107592 1 usb_storage, Live 0xbf03e000 musb_hdrc 22688 0 - Live 0xbf037000 dsplinkk 69176 0 - Live 0xbf025000 (F) cmemk 13468 0 - Live 0xbf020000 usbcore 126560 3 usb_storage,musb_hdrc, Live 0xbf000000 After plugging in my thumb drive, I get the following errors: # usb 1-1: new high speed USB device using musb_hdrc and address 2 usb 1-1: device descriptor read/all, error -71 usb 1-1: new high speed USB device using musb_hdrc and address 3 usb 1-1: device descriptor read/64, error -110 usb 1-1: device descriptor read/64, error -110 usb 1-1: new high speed USB device using musb_hdrc and address 4 usb 1-1: device not accepting address 4, error -110 usb 1-1: new high speed USB device using musb_hdrc and address 5 usb 1-1: device not accepting address 5, error -110 At this point, I believe the host controller is dead because when I tried to unplug and replug in, I see no activities. Any clues? Regards, Andy ----- Original Message ---- From: Andy Ngo <[EMAIL PROTECTED]> To: Kevin Hilman <[EMAIL PROTECTED]>; [email protected] Sent: Wednesday, March 14, 2007 7:22:47 PM Subject: Re: USB port not working in GIT kernel? Kevin, Thanks. I saw that going through the kernel configuration just before you posted the reply; I was going to correct myself but you beat me to it. Everything works now. Does OTG work on the DVEVM? Thanks. Regards, Andy ----- Original Message ---- From: Kevin Hilman <[EMAIL PROTECTED]> To: Andy Ngo <[EMAIL PROTECTED]>; [email protected] Sent: Wednesday, March 14, 2007 7:09:50 PM Subject: RE: USB port not working in GIT kernel? DIV { MARGIN:0px;} Andy, The default defconfig for DaVinci has the USB driver built as a module and more importantly for you case, it defaults to be in USB peripheral mode (not host mode.) Re-configure your kernel selecting host mode under USB support --> Inventra ... -> Driver mode. Kevin From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Ngo Sent: Wednesday, March 14, 2007 7:40 PM To: [email protected] Subject: USB port not working in GIT kernel? Hi, After switching over to the GIT kernel, I can't seem to get the USB host port to work anymore. In the Montavista kernel, I was able to apply a patch by Zheng to get it working (I was able to hook up a USB thumb drive and a USB ethernet dongle and operate them fine). In the GIT kernel, I see no activity (I manually loaded the usb_storage.ko and pegasus.ko modules). On bootup, the kernel log shows that the interface was registered: ... usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb ... Yet I get no USB activities. Here's a list of the modules loaded: # lsmod Module Size Used by Tainted: GF pegasus 27312 0 - Live 0xbf061000 mii 5888 1 pegasus, Live 0xbf05e000 usb_storage 37924 0 - Live 0xbf053000 scsi_mod 107592 1 usb_storage, Live 0xbf037000 dsplinkk 69176 0 - Live 0xbf025000 (F) cmemk 13468 0 - Live 0xbf020000 usbcore 126560 2 pegasus,usb_storage, Live 0xbf000000 Anyone else has this problem? Thanks. Regards, Andy ----- Original Message ---- From: Andy Ngo <[EMAIL PROTECTED]> To: Jitendra Jain <[EMAIL PROTECTED]>; [email protected] Sent: Friday, February 23, 2007 3:18:15 AM Subject: Re: USB Insertion error. Jitendra, Apply Zheng's patch and it should fix your problem. Refer to the link below to patch your kernel. (http://www.mail-archive.com/[email protected]/msg01652.html) After applying Zheng's patch, I was able to use my flash drive and also a USB-to-ethernet dongle. Regards, Andy ----- Original Message ---- From: Jitendra Jain <[EMAIL PROTECTED]> To: [email protected] Sent: Friday, February 23, 2007 3:00:17 AM Subject: USB Insertion error. P.MsoNormal { FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";} LI.MsoNormal { FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";} DIV.MsoNormal { FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";} A:link { COLOR:blue;TEXT-DECORATION:underline;} SPAN.MsoHyperlink { COLOR:blue;TEXT-DECORATION:underline;} A:visited { COLOR:purple;TEXT-DECORATION:underline;} SPAN.MsoHyperlinkFollowed { COLOR:purple;TEXT-DECORATION:underline;} P.MsoAutoSig { FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";} LI.MsoAutoSig { FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";} DIV.MsoAutoSig { FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";} SPAN.EmailStyle17 { COLOR:windowtext;FONT-FAMILY:Arial;} SPAN.SpellE { } UNKNOWN { MARGIN:1in 1.25in;} DIV.Section1 { } Hi all, My board gets boots up successfully. But when I insert USB flash drive in board I got error messages shown in attached file. Can anyone help me for the same? Thanks a lot in advance. Regards Jitendra Jain [EMAIL PROTECTED]:~# usb 2-1: new high speed USB device using musb_hdrc and address 2 usb 2-1: khubd timed out on ep0in usb 2-1: khubd timed out on ep0in usb 2-1: device descriptor read/all, error -110 usb 2-1: new high speed USB device using musb_hdrc and address 3 Unable to handle kernel NULL pointer dereference at virtual address 00000020 pgd = c0004000 [00000020] *pgd=00000000 Internal error: Oops: 17 [#1] Modules linked in: CPU: 0 PC is at musb_h_ep0_irq+0x108/0x2d4 LR is at 0x102 pc : [<c01d9b10>] lr : [<00000102>] Not tainted sp : c3c21c78 ip : 00000001 fp : c3c21cac r10: 00000000 r9 : c02fbf20 r8 : c32792c4 r7 : c3279200 r6 : c4066400 r5 : 00000000 r4 : 00000001 r3 : 00000102 r2 : c32792c4 r1 : 00000000 r0 : c3279200 Flags: nZCv IRQs off FIQs on Mode SVC_32 Segment kernel Control: 5317F Table: 8329C000 DAC: 00000017 Process khubd (pid: 36, stack limit = 0xc3c201a0) Stack: (0xc3c21c78 to 0xc3c22000) 1c60: c4066400 00000000 1c80: c4066000 c3279200 c4066400 00000000 c4066000 00000000 c02fbf20 0000005d 1ca0: c3c21cdc c3c21cb0 c01d7e2c c01d9a18 00000020 c3c21d88 c3279200 c3c20000 1cc0: c4066000 40000013 c02fbf20 c3c21d88 c3c21d04 c3c21ce0 c01d82b8 c01d7c88 1ce0: 00000000 c3c20000 c35a3420 00000000 00000000 0000000c c3c21d2c c3c21d08 1d00: c002dd70 c01d822c c02fc1f0 0000000c c35a3420 c3c21d88 c3c20000 c3c21d88 1d20: c3c21d4c c3c21d30 c002e09c c002dd04 c3c21dbc c3c20000 ffffffff 00010002 1d40: c3c21d84 c3c21d50 c002e250 c002dff8 c3c21d7c c3c21d60 c003d4c0 c3c21dbc 1d60: e1048000 ffffffff 00010002 c3c20000 00010001 c3c21e50 c3c21df4 c3c21d88 1d80: c002c5e0 c002e210 00000008 c33fe160 00000000 40000013 c3c20000 c33fe160 1da0: c33fe160 00000000 00000008 c02fbf20 c3c21e50 c3c21df4 c3c21df8 c3c21dd0 1dc0: c002e09c c002dd58 40000013 ffffffff c02fc100 00000008 c33fe160 c3c21e50 1de0: c3c20000 c3c21e50 c3c21e14 c3c21df8 c002e09c c002dd04 c3c21e84 c3c20000 1e00: ffffffff 00000001 c3c21e4c c3c21e18 c002e250 c002dff8 c3c21e3c c2ca8f60 1e20: 00000000 c3c21e84 e1048000 ffffffff 00000001 c3c20000 00000000 c3279000 1e40: c3c21ebc c3c21e50 c002c5e0 c002e210 00002932 00002932 ffffffff c02b31a0 1e60: 00002932 00002932 c02a3f90 60000013 ffffd6ce 00000040 c3279000 c3c21ebc 1e80: c3c21e98 c3c21e98 c0041bf4 c0041bf8 60000013 ffffffff c3c21ebc 00000000 1ea0: c3c20000 60000013 c02a3f94 00000044 c3c21eec c3c21ec0 c0041e84 c0041a80 1ec0: c3c21f0c c3c21ed0 c01b6210 ffffffed c3398c00 c3398c00 c32752f4 00000003 1ee0: c3c21efc c3c21ef0 c0041ef4 c0041cd4 c3c21f64 c3c21f10 c01b649c c0041eec 1f00: c027c8bc c027c3dc c3398d20 c027c8b8 c025eaec c025a1a0 00000003 c3c21f64 1f20: c3c21f38 c01b4148 c0126354 00000032 00000001 00000000 c32752f4 00000003 1f40: c32752e0 c3398c00 c32752f4 c03f3d60 c3279000 c3279000 c3c21ff4 c3c21f68 1f60: c01b72f8 c01b6328 c004291c 00000000 39ae1800 00000001 00000001 c3275238 1f80: 00000000 c3275238 00000000 c03f4a60 c005895c c3c21fac c3c21fac 00000000 1fa0: 00000000 c03f4a60 c005895c c3c21fac c3c21fac 00000000 c01b6d78 00000101 1fc0: 01010001 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1fe0: 00000000 00000000 00000000 c3c21ff8 c0043808 c01b6d88 ffff7ff7 ffffffff Backtrace: [<c01d9a08>] (musb_h_ep0_irq+0x0/0x2d4) from [<c01d7e2c>] (musb_interrupt+0x1b4/0x354) [<c01d7c78>] (musb_interrupt+0x0/0x354) from [<c01d82b8>] (davinci_interrupt+0x9c/0xcc) [<c01d821c>] (davinci_interrupt+0x0/0xcc) from [<c002dd70>] (__do_irq+0x7c/0xc8) r8 = 0000000C r7 = 00000000 r6 = 00000000 r5 = C35A3420 r4 = C3C20000 [<c002dcf4>] (__do_irq+0x0/0xc8) from [<c002e09c>] (do_edge_IRQ+0xb4/0x148) [<c002dfe8>] (do_edge_IRQ+0x0/0x148) from [<c002e250>] (asm_do_IRQ+0x50/0x138) r7 = 00010002 r6 = FFFFFFFF r5 = C3C20000 r4 = C3C21DBC [<c002e200>] (asm_do_IRQ+0x0/0x138) from [<c002c5e0>] (__irq_svc+0x40/0x74) [<c002dcf4>] (__do_irq+0x0/0xc8) from [<c002e09c>] (do_edge_IRQ+0xb4/0x148) [<c002dfe8>] (do_edge_IRQ+0x0/0x148) from [<c002e250>] (asm_do_IRQ+0x50/0x138) r7 = 00000001 r6 = FFFFFFFF r5 = C3C20000 r4 = C3C21E84 [<c002e200>] (asm_do_IRQ+0x0/0x138) from [<c002c5e0>] (__irq_svc+0x40/0x74) [<c0041a70>] (release_console_sem+0x0/0x254) from [<c0041e84>] (vprintk+0x1c0/0x214) r8 = 00000044 r7 = C02A3F94 r6 = 60000013 r5 = C3C20000 r4 = 00000000 [<c0041cc4>] (vprintk+0x0/0x214) from [<c0041ef4>] (printk+0x1c/0x24) r8 = 00000003 r7 = C32752F4 r6 = C3398C00 r5 = C3398C00 r4 = FFFFFFED [<c0041ed8>] (printk+0x0/0x24) from [<c01b649c>] (hub_port_init+0x184/0x530) r3 = C027C8B8 r2 = C3398D20 r1 = C027C3DC r0 = C027C8BC [<c01b6318>] (hub_port_init+0x0/0x530) from [<c01b72f8>] (hub_thread+0x580/0xb18) [<c01b6d78>] (hub_thread+0x0/0xb18) from [<c0043808>] (do_exit+0x0/0xda0) Code: e1a02008 e18610b3 e1a01005 e18650b3 (e5953020) <0>Kernel panic - not syncing: Aiee, killing interrupt handler! _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
