USB Mass Storage Device with HPS Stack

Xiaofan Chen xiaofanc at gmail.com
Tue Apr 29 11:59:39 UTC 2008


On Tue, Apr 29, 2008 at 3:01 PM, Hans Petter Selasky <hselasky at c2i.net> wrote:
>  If umass is in the kernel you need to rebuild. Else you "kldunload umass".

Ok I rebuild the kernel and use atausb instead of umass.

Here is the dmesg output, so it is not working either.

atausb0: <USB Mass Storage, class 0/0, rev 2.00/2.00, addr 2> on usb2
atausb0: using SCSI over Bulk-Only
ata4: <USB lun 0> on atausb0
afd0: 476MB <FLASH DISK 2.00> at ata4-master USB2
ata5: <USB lun 1> on atausb0
acd1: DEVICE_RESET unsupported
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
acd1: CDRW <FLASH DISK/2.00> at ata5-master USB2
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
GEOM_LABEL: Label for provider afd0s1 is msdosfs/NATIONAL.
acd1: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
acd1: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
acd1: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
acd1: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00
afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00


If I use umass,

umass0: <USB Mass Storage, class 0/0, rev 2.00/2.00, addr 2> on usb2
umass0:  SCSI over Bulk-Only; quirks = 0x0000
umass0:0:0:-1: Attached to scbus0
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <NATIONAL FLASH DISK 2.00> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 477MB (976896 512 byte sectors: 64H 32S/T 477C)
cd0 at umass-sim0 bus 0 target 0 lun 1
cd0: <NATIONAL FLASH DISK 2.00> Removable CD-ROM SCSI-2 device
cd0: 40.000MB/s transfers
cd0: cd present [30720 x 2048 byte records]
GEOM_LABEL: Label for provider da0s1 is msdosfs/NATIONAL.
GEOM_LABEL: Label for provider cd0 is iso9660/NATIONAL.

[mcuee at freebsd7 /usr/home/mcuee]$ sudo mount_cd9660 /dev/cd0 /media/usbcd/
mount_cd9660: /dev/cd0: Invalid argument

Something is strange here.

Xiaofan


More information about the freebsd-usb mailing list