On Tue, 2 Oct 2007, Darwin Chen wrote: > Hello, > I'm porting uClinux for W90N740, the kernel is booted successful, but the USB > Host has some problems. After the kernel is booted, I plug in a USB Card > reader, the kernel outputs the following messages, I don't understand the > messages, :( > The attachment is the HCD source code for W90N740. > $ cat /proc/kmsg &
> <7>usb-storage: Command READ_CAPACITY (10 bytes) > <7>usb-storage: 25 00 00 00 00 00 00 00 00 00 > <7>usb-storage: Bulk Command S 0x43425355 T 0x5 L 8 F 128 Trg 0 LUN 0 CL 10 > <7>usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes > <7>drivers/usb/host/ohci-dbg.c: SUB 00336738 dev=2 ep=1out-bulk flags=c > len=0/31 stat=-115 > <7>drivers/usb/host/ohci-dbg.c: data(0/31): 55 53 42 43 05 00 00 00 08 00 00 > 00 80 00 0a 25... stat:-115 > <7>drivers/usb/host/ohci-dbg.c: RET 00336738 dev=2 ep=1out-bulk flags=c > len=31/31 stat=0 > <7>usb-storage: Status code 0; transferred 31/31 > <7>usb-storage: -- transfer complete > <7>usb-storage: Bulk command transfer result=0 > <7>usb-storage: usb_stor_bulk_transfer_sglist: xfer 8 bytes, 1 entries > <7>drivers/usb/host/ohci-dbg.c: SUB 0032cdb8 dev=2 ep=2in-bulk flags=5 > len=0/8 stat=-115 > <7>drivers/usb/host/ohci-dbg.c: RET 0032cdb8 dev=2 ep=2in-bulk flags=5 > len=8/8 stat=0 > <7>drivers/usb/host/ohci-dbg.c: data(8/8): 00 01 f5 ff 00 00 02 00 stat:0 > <7>usb-storage: Status code 0; transferred 8/8 > <7>usb-storage: -- transfer complete > <7>usb-storage: Bulk data transfer result 0x0 > <7>usb-storage: Attempting to get CSW... > <7>usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes > <7>drivers/usb/host/ohci-dbg.c: SUB 00336738 dev=2 ep=2in-bulk flags=c > len=0/13 stat=-115 > > $ <7>usb-storage: command_abort called > <7>usb-storage: usb_stor_stop_transport called > <7>usb-storage: -- cancelling URB > <7>drivers/usb/host/ohci-dbg.c: UNLINK 00336738 dev=2 ep=2in-bulk flags=c > len=0/13 stat=-104 > > There is nothing in /proc/bus/usb! > > What should I do? First, make sure /proc/bus/usb is mounted: mount -t usbfs none /proc/bus/usb Second, try plugging the card reader into a regular Linux system to make sure it is okay. Third, try plugging a different USB device (like a flash memory) into your machine, instead of the card reader. The error message means that Linux didn't receive a status reply from the card reader after sending it a READ CAPACITY command. Either the card reader didn't send a status reply or else the host controller driver didn't detect the reply. Alan Stern ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users