Help recognizing USB Compact Flash Reader and card

Help recognizing USB Compact Flash Reader and card

Post by Krust » Fri, 17 May 2002 03:22:30



Hey all,

I'm trying to get a usb SmartDisk flash card reader to work under
FreeBSD 4.5.  I'm using a Transcend 64MB card.

Here's what dmesg says:

FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002
<snip>
da0 at umass-sim0 bus 0 target 0 lun 0
da0: < CF Reader 1.04> Removable Direct Access SCSI-0 device
da0: 650KB/s transfers
da0: 62MB (128832 512 byte sectors: 64H 32S/T 62C)

Here's what happens when I try to mount it:

  mount /dev/da0c /mnt
mount: /dev/da0c: Input/output error
veronica# May 15 11:23:48 veronica /kernel: (da0:umass-sim0:0:0:0):
READ(06). CDB: 8 0 0 0 1 0
May 15 11:23:48 veronica /kernel: (da0:umass-sim0:0:0:0): READ(06). CDB:
8 0 0 0 1 0
May 15 11:23:48 veronica /kernel: (da0:umass-sim0:0:0:0): ILLEGAL
REQUEST asc:20,0
May 15 11:23:48 veronica /kernel: (da0:umass-sim0:0:0:0): ILLEGAL
REQUEST asc:20,0
May 15 11:23:48 veronica /kernel: (da0:umass-sim0:0:0:0): Invalid
command operation code
May 15 11:23:48 veronica /kernel: (da0:umass-sim0:0:0:0): Invalid
command operation code
May 15 11:23:48 veronica /kernel: da0: reading primary partition table:
error reading fsbn 0
May 15 11:23:48 veronica /kernel: da0: reading primary partition table:
error reading fsbn 0

Same goes for fdisk.

Anyone know a workaround to this?

Thanks!
James Nedila

 
 
 

Help recognizing USB Compact Flash Reader and card

Post by Chuck McCrobi » Fri, 17 May 2002 04:14:22



> Hey all,

> I'm trying to get a usb SmartDisk flash card reader to work under
> FreeBSD 4.5.  I'm using a Transcend 64MB card.

> Here's what dmesg says:

> FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002
> <snip>
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0: < CF Reader 1.04> Removable Direct Access SCSI-0 device
> da0: 650KB/s transfers
> da0: 62MB (128832 512 byte sectors: 64H 32S/T 62C)

> Here's what happens when I try to mount it:

>   mount /dev/da0c /mnt
> mount: /dev/da0c: Input/output error
> veronica# May 15 11:23:48 veronica /kernel: (da0:umass-sim0:0:0:0):
> READ(06). CDB: 8 0 0 0 1 0
> May 15 11:23:48 veronica /kernel: (da0:umass-sim0:0:0:0): READ(06). CDB:
> 8 0 0 0 1 0
> May 15 11:23:48 veronica /kernel: (da0:umass-sim0:0:0:0): ILLEGAL
> REQUEST asc:20,0
> May 15 11:23:48 veronica /kernel: (da0:umass-sim0:0:0:0): ILLEGAL
> REQUEST asc:20,0
> May 15 11:23:48 veronica /kernel: (da0:umass-sim0:0:0:0): Invalid
> command operation code
> May 15 11:23:48 veronica /kernel: (da0:umass-sim0:0:0:0): Invalid
> command operation code
> May 15 11:23:48 veronica /kernel: da0: reading primary partition table:
> error reading fsbn 0
> May 15 11:23:48 veronica /kernel: da0: reading primary partition table:
> error reading fsbn 0

> Same goes for fdisk.

> Anyone know a workaround to this?

> Thanks!
> James Nedila

Looks like the device (like so many USB disks) doesn't accept 6 byte
read commands.  I think 4.6 will attempt to fix this.  In the meantime,
if you can recompile your kernel, see the file
"src/sys/cam/scsi/scsi_da.c" and add a quirk entry for your particular
device.  The inquiry can be had with:

        camcontrol devlist

Is your card formatted with FFS (UFS)?  Generally memory cards are
formatted with FAT-16, so after adding the quirk entry and rebuilding
the kernel (and installing it), try:

        mount_msdos /dev/da0c /mnt

Good luck.
--
 -

 
 
 

1. Help mounting a USB Compact Flash Reader with 64MB card

Hey all,

I've managed to start an install for OpenBSD, but I want to install to a
compact flash card.

dmesg says the card is there as sd0c, but I can't mount it because of
the following messages:

sd0: mode sense (5) return nonsense; using fictitiuous geometery
sd0(umass0:0:0): Ckech Condition on opcode 0x8
   SENSE KEY: Illegal Request
   ADSC/ASCQ: ASC 0x20 ASCQ 0x00

Here's what dmesg says about the drive:

emBSD 2.0-stable (RAMDISK_CD) #4: Tue Mar 5 08:40:08 EST 2002
(emBSD is based off of OpenBSD-current)
...

umass0 at uhub0 port 2 configuration 1 interface 0
umass0: vendor 0.090c CF Reader, rev 1.00/1.00, addr 2
umass0: using SCSI over BBB-P
scsibus1 at umass0: 2 targets
sd at scsibus1 targ 1 lun 0: <, CF Reader, 1.04> SCSI0 0/direct removable
sd0: mode sense (5) returned nonsense; using fictitious geometry
sd0: 62MB, 62 cyl, 64 head, 32 sec, 512 bytes/sec, 128832 sec total
(and then repeat the above messages)

Any ideas on how to get this thing to mount and install properly?

James

2. new series looking at inexp. intranet platforms (particularly Linux)

3. USB Compact Flash Card Reader from SCM Micro

4. Laptop mouse problems on XFree86

5. USB Compact Flash card reader recommendations

6. Mail duplicata ?

7. USB Compact Flash Reader, Help with setup

8. xisp-2.5p4 rpm wanted

9. USB Compact Flash Readers

10. SanDisk Compact Flash USB Reader (SDDR-31): WHICH DEVICE?

11. Boot from USB compact flash reader...?

12. block devices & module leading & USB Compact Flash readers

13. USB compact flash readers anyone?