[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

/dev/sda



I am trying to mount a SanDisk SDDR-31 Compact Flash Reader from the USB
port of an AXIS 82.

I have properly configured the kernel to support both the USB file system
and SCSI.

When I plug in the SanDisk card reader into USB, I get this in DMESG:

00:40:8C:63:10:<6>hub.c: new USB device ETRAX 100LX-2, assigned address 3
usb-host.c: Got epid attn for control endpoint, epid 2
usb-host.c: Stall for epid 2
usb-host.c: Completing ctrl urb with status -32.
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: SanDisk   Model: ImageMate II      Rev: 1.30
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 62721 512-byte hdwr sectors (32 MB)
sda: Write Protect is off
Partition check:
 sda: unknown partition table
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3


That looks right to me.

Then, /proc/bus/usb/devices says:

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0781 ProdID=0002 Rev= 0.09
S:  Manufacturer=SanDisk Corporation
S:  Product=ImageMate CompactFlash USB
S:  SerialNumber=000000000003
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms


/proc/bus/usb/drivers says:

         usbdevfs
         hub
         rtl8150
         serial
         usb-storage

/proc/scsi/scsi says:

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: SanDisk  Model: ImageMate II     Rev: 1.30
  Type:   Direct-Access                    ANSI SCSI revision: 02

/proc/scsi/usb-storage-0/0 says:

   Host scsi0: usb-storage
       Vendor: SanDisk Corporation
      Product: ImageMate CompactFlash USB
Serial Number: None
     Protocol: Transparent SCSI
    Transport: Bulk
         GUID: 078100020000000000000000
     Attached: Yes


With all these lining up properly, I expected to see /dev/sda appear, but it
does not.

If I try to mknode sda b 8 0  I get whacked on the side of my head by the
"read only file system".

I put the following in
./devboard_82/target/cris-axis-linux-gnu/dev/romfs_meta.txt (between rtc and
eeprom):

Device: rtc c 121 0
Device: sda b 8 0
Device: sda1 b 8 1
Device: sda2 b 8 2
Device: sda3 b 8 3
Device: eeprom c 122 0

Then I . ./init_env and make images and then transferred the images to the
Axis 82.

Still /dev/sda doesn't show up.

There must be some secret to make this work.  Anyone out there know what it
is?


Mark Richards