2009-09-16 19:02:58 Problem with USB flash drive
Jay Ku (UNITED STATES)
Message: 80037
I have a custom BF532 board with a SL811 USB host controller. I'm running the 2008R1.5 distro. I think I've followed everything at docs.blackfin.uclinux.org/doku.php?id=hw:cards:usb_ez-extender&s[]=sl811. Things almost work, but there's some problem at the end of the process. When I plug a flash drive in, I get:
root:/> usb 1-1: new full speed USB device using sl811-hcd and address 4
usb 1-1: Product: USB Flash Drive
usb 1-1: Manufacturer: UFD
usb 1-1: SerialNumber: 106A6206084125220807
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
scsi 1:0:0:0: Direct-Access UFD USB Flash Drive 1100 PQ: 0 ANSI: 0 CCS
sd 1:0:0:0: [sda] 1003520 512-byte hardware sectors (514 MB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] 1003520 512-byte hardware sectors (514 MB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Assuming drive cache: write through
sda:<7>usb-storage: queuecommand called
sda1
sd 1:0:0:0: [sda] Attached SCSI removable disk
No /dev/sda? is being created. A lot of stuff is being dumped into dmesg (think I selected one of the verbose debugging options), but the part that looks relevant is right at the end:
.
.
.
usb-storage: Command READ_10 (10 bytes)
usb-storage: 28 00 00 00 00 00 00 00 08 00
usb-storage: Bulk Command S 0x43425355 T 0xd L 4096 F 128 Trg 0 LUN 0 CL 10
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 4096 bytes, 1 entries
usb-storage: Status code 0; transferred 4096/4096
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0xd R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
sda1
sd 1:0:0:0: [sda] Attached SCSI removable disk
bound device '1:0:0:0' to driver 'sd'
scsi: Bound Device 1:0:0:0 to Driver sd
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad LUN (0:1)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
DEV: registering device: ID = 'target1:0:1'
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (1:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
DEV: registering device: ID = 'target1:0:2'
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (2:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
DEV: registering device: ID = 'target1:0:3'
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (3:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
DEV: registering device: ID = 'target1:0:4'
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (4:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
DEV: registering device: ID = 'target1:0:5'
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (5:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
DEV: registering device: ID = 'target1:0:6'
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (6:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
DEV: registering device: ID = 'target1:0:7'
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (7:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: device scan complete
Anyone have an idea what's going on?
Thanks,
Jay
QuoteReplyEditDelete
2009-09-16 19:05:13 Re: Problem with USB flash drive
Mike Frysinger (UNITED STATES)
Message: 80038
please review this page:
docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:dev-management
QuoteReplyEditDelete
2009-09-16 22:19:03 Re: Problem with USB flash drive
Jay Ku (UNITED STATES)
Message: 80039
Thanks Mike - I didn't know about mdev. Might be worth a mention on the USB EZ-extender wiki page. Works great now.
QuoteReplyEditDelete
2009-09-16 23:13:22 Re: Problem with USB flash drive
Mike Frysinger (UNITED STATES)
Message: 80041
the issue isnt specific to usb and mdev is enabled by default. we cant really cover what people disable in their systems when they shouldnt have ...