usb驱动问题请教
手头一个项目,用SL811 + usb hub 芯片 + 读卡器芯片来做一个方案。<br />我移植了SL811的地址和中断,<br />但是发现板子还不能工作。<br /><br />linux启动过程如下。<br />请大侠帮我看一下我的usb驱动现在是哪里出问题了。是读写hub芯片出问题了么?<br />谢谢了!<br /><br />Loading .text @ 0x00001000 (1272816 bytes)<br />Loading .rodata @ 0x00138000 (307972 bytes)<br />Loading __ksymtab @ 0x00183304 (15016 bytes)<br />Loading __ksymtab_gpl @ 0x00186dac (4264 bytes)<br />Loading __ksymtab_gpl_future @ 0x00187e54 (24 bytes)<br />Loading __ksymtab_strings @ 0x00187e6c (46376 bytes)<br />Loading __param @ 0x00193394 (420 bytes)<br />Loading .data @ 0x00194000 (73728 bytes)<br />Loading .init.text @ 0x001a6000 (90768 bytes)<br />Loading .init.data @ 0x001bc290 (3240 bytes)<br />Loading .init.setup @ 0x001bcf38 (584 bytes)<br />Loading .initcall.init @ 0x001bd180 (444 bytes)<br />Loading .con_initcall.init @ 0x001bd33c (4 bytes)<br />Loading .init.ramfs @ 0x001bd340 (5388800 bytes)<br />Loading .text_l1 @ 0xffa00000 (5732 bytes)<br />sh_addr: FFA00000, p_paddr: 006E0D40<br />Loading from: 016E1000 to 006E0D40, size: 5732<br />Loading .data_l1 @ 0xff800000 (192 bytes)<br />sh_addr: FF800000, p_paddr: 006E23A4<br />Loading from: 016E3000 to 006E23A4, size: 192<br />Clearing .bss @ 0x006e3000 (63120 bytes)<br />## Starting application at 0x001a6000 ...<br />Linux version 2.6.22.18-ADI-2008R1-svn (root@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #39 Thu Jul 10 16:26:42 CST 2008<br />early printk enabled on early_BFuart0<br />Hardware Trace Active and Enabled<br />Blackfin support (C) 2004-2007 Analog Devices, Inc.<br />Compiled for ADSP-BF527 Rev 0.0<br />Warning: Unsupported Chip Revision ADSP-BF527 Rev 0.0 detected<br />Blackfin Linux support by http://blackfin.uclinux.org/<br />Processor Speed: 387 MHz core clock and 96 MHz System Clock<br />Board Memory: 32MB<br />Kernel Managed Memory: 32MB<br />Memory map:<br /> text = 0x00001000-0x00137bf0<br /> rodata = 0x00138000-0x00193538<br /> data = 0x00194000-0x001a6000<br /> stack = 0x00194000-0x00196000<br /> init = 0x001a6000-0x006e3000<br /> bss = 0x006e3000-0x006f2690<br /> available = 0x006f2690-0x01eff000<br /> DMA Zone = 0x01f00000-0x02000000<br />Instruction Cache Enabled<br />Data Cache Enabled (write-through)<br />Built 1 zonelists. Total pages: 7874<br />Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600<br />Configuring Blackfin Priority Driven Interrupts<br />PID hash table entries: 128 (order: 7, 512 bytes)<br />console handover: boot -> real <br />Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)<br />Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)<br />Memory available: 24328k/32768k RAM, (5364k init code, 1242k kernel code, 503k data, 1024k dma, 304k reserved)<br />Blackfin Scratchpad data SRAM: 4 KB<br />Blackfin Data A SRAM: 16 KB (15 KB free)<br />Blackfin Data B SRAM: 16 KB (16 KB free)<br />Blackfin Instruction SRAM: 48 KB (42 KB free)<br />Security Framework v1.0.0 initialized<br />Mount-cache hash table entries: 512<br />NET: Registered protocol family 16<br />Blackfin GPIO Controller<br />Blackfin DMA Controller<br />stamp_init(): registering device resources<br />Generic PHY: Registered new driver<br />usbcore: registered new interface driver usbfs<br />usbcore: registered new interface driver hub<br />usbcore: registered new device driver usb<br />NET: Registered protocol family 2<br />IP route cache hash table entries: 1024 (order: 0, 4096 bytes)<br />TCP established hash table entries: 1024 (order: 1, 8192 bytes)<br />TCP bind hash table entries: 1024 (order: 0, 4096 bytes)<br />TCP: Hash tables configured (established 1024 bind 1024)<br />TCP reno registered<br />NTFS driver 2.1.28 .<br />io scheduler noop registered<br />io scheduler anticipatory registered (default)<br />io scheduler cfq registered<br />bfin-otp: initialized<br />bfin-wdt: initialized: timeout=20 sec (nowayout=0)<br />Serial: Blackfin serial driver<br />bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART<br />RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize<br />bfin_mac_mdio: probed<br />bfin_mac: attached PHY driver (mii_bus:phy_addr=0:00, irq=-1, mdc_clk=2500000Hz(mdc_div=18)@sclk=96MHz)<br />bfin_mac: Version 1.1, Blackfin BF53 BF527 on-chip Ethernet MAC driver<br />bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@7<br />sl811: driver sl811-hcd, 19 May 2005<br />SL811 is probing<br />sl811-hcd sl811-hcd.0: SL811HS v1.5<br />sl811-hcd sl811-hcd.0: new USB bus registered, assigned bus number 1<br />sl811-hcd sl811-hcd.0: irq 87, io mem 0x20100000<br />usb usb1: Product: SL811HS v1.5<br />usb usb1: Manufacturer: Linux 2.6.22.18-ADI-2008R1-svn sl811-hcd<br />usb usb1: SerialNumber: sl811-hcd.0<br />usb usb1: configuration #1 chosen from 1 choice<br />hub 1-0:1.0: USB hub found<br />hub 1-0:1.0: 1 port detected<br />rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0<br />TCP cubic registered<br />NET: Registered protocol family 1<br />NET: Registered protocol family 17<br />rtc-bfin rtc-bfin: setting the system clock to 1970-01-01 00:08:50 (530)<br />Freeing unused kernel memory: 5364k freed<br />speed=full<br />usb 1-1: new full speed USB device using sl811-hcd and address 2<br /> _____________________________________<br /> a8888b. / Welcome to the uClinux distribution \<br /> d888888b. / _ _ \<br /> 8P"YP"Y88 / | | |_| __ __ (TM) |<br /> 8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |<br /> 8' .88 \ | | | | _ \| | | | \ / |<br /> 8`._.' Y8. \ | |__ | | | | | |_| | / \ |<br /> d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |<br /> dP . Y8b. \ For embedded processors including |<br /> d8:' " `::88b \ the Analog Devices Blackfin /<br /> d8" 'Y88b \___________________________________/<br /> :8P ' :888<br /> 8a. : _a88P For further information, check out:<br /> ._/"Yaa_: .| 88P| - http://blackfin.uclinux.org/<br /> \ YP" `| 8P `. - http://docs.blackfin.uclinux.org/<br /> / \.___.d| .' - http://www.uclinux.org/<br /> `--..__)8888P`._.' jgs/a:f - http://www.analog.com/blackfin<br /><br />Have a lot of fun...<br /><br /><br />BusyBox v1.4.1 (2008-03-21 18:17:38 CST) Built-in shell (msh)<br />Enter 'help' for a list of built-in commands.<br /><br />root:/> usb 1-1: device not accepting address 2, error -110<br />speed=full<br />usb 1-1: new full speed USB device using sl811-hcd and address 3<br />usb 1-1: unable to read config index 0 descriptor/start<br />usb 1-1: chopping to 0 config(s)<br />usb 1-1: string descriptor 0 read error: -110<br />usb 1-1: no configuration chosen from 0 choices看起来是:
配置描述符和字串描述符没有正确返回。
页:
[1]