List Info

Thread: USB Card reader on NetBSD/amd64 3.0




USB Card reader on NetBSD/amd64 3.0
user name
2006-08-18 13:38:49
Jan Danielsson <jan.danielssongmail.com> writes:

> With my box I got an USB card reader which supports a
bunch of
> different card types (SD, CF, etc).

I have the same.

> When I insert an SD card into the
> card reader, the reader's light goes on, but there's
no reaction from
> NetBSD.

Ditto, but I was not expecting a "reaction from
NetBSD", so I did not
see this as a problem.

> So I tried to boot an Ubuntu LiveCD, just to try to
rule out the
> possibility that the reader/card is broken. However,
when I insert the
> card into the reader while running Ubuntu, the light
goes on, and a
> message appears on the console that the card has been
mounted, and sure
> enough, it has.

I just mount and unmount mine manually as needed.  Here's
an extract
from my fstab file:


  # --- Removable devices
  /dev/cd0a       /disks/REM/dvd-writer   cd9660  ro,noauto 
     0 0
  /dev/cd1a       /disks/REM/dvd          cd9660  ro,noauto 
     0 0
  /dev/sd0e       /disks/REM/sd-mmc       msdos   ro,noauto 
     0 0
  /dev/sd1e       /disks/REM/cflash       msdos   ro,noauto 
     0 0
  /dev/sd2e       /disks/REM/smedia       msdos   ro,noauto 
     0 0
  /dev/sd3e       /disks/REM/mstick       msdos   ro,noauto 
     0 0

Then I can just issue "mount /disks/REM/sd-mmc"
and 
"umount /disks/REM/sd-mmc", for example.

Hope this helps.


Anne.
-- 
Ms. Anne Bennett, as a private citizen:  anneporcupine.montreal.qc.ca
Also reachable more officially at work:  anneencs.concordia.ca
USB Card reader on NetBSD/amd64 3.0
user name
2006-08-18 18:10:35
Anne Bennett wrote:
[---]
>> When I insert an SD card into the
>> card reader, the reader's light goes on, but
there's no reaction from
>> NetBSD.
> 
> Ditto, but I was not expecting a "reaction from
NetBSD", so I did not
> see this as a problem.

   When I insert my USB memorystick, I get a message on the
console
which states that something has happened with sd0, so I was
expecting
something from the card reader too.

Anyway, could you run:

# usbdevs -v

   ...and post the results?

   It seems that my NetBSD system doesn't even see the card
reader.

>> So I tried to boot an Ubuntu LiveCD, just to try to
rule out the
>> possibility that the reader/card is broken.
However, when I insert the
>> card into the reader while running Ubuntu, the
light goes on, and a
>> message appears on the console that the card has
been mounted, and sure
>> enough, it has.
> 
> I just mount and unmount mine manually as needed. 
Here's an extract
> from my fstab file:
[---]

   Doesn't work here. :-(

mount: cannot open `/dev/sd0e`: Device not configured

mount: cannot open `/dev/sd1e`: Device not configured

etc..


-- 
Kind Regards,
Jan Danielsson
Te audire non possum. Musa sapientum fixa est in aure.

USB Card reader on NetBSD/amd64 3.0
user name
2006-08-19 02:11:38
On Fri, Aug 18, 2006 at 08:10:35PM +0200, Jan Danielsson
wrote:
> Anne Bennett wrote:
> [---]
> >> When I insert an SD card into the
> >> card reader, the reader's light goes on, but
there's no reaction from
> >> NetBSD.
> > 
> > Ditto, but I was not expecting a "reaction
from NetBSD", so I did not
> > see this as a problem.
> 
>    When I insert my USB memorystick, I get a message on
the console
> which states that something has happened with sd0, so I
was expecting
> something from the card reader too.

Connecting the card reader should produce messages, not
inserting media.
A USB Flash Drive is both reader and media in one package.

> 
> Anyway, could you run:
> 
> # usbdevs -v
> 

port 3 addr 2: high speed, power 100 mA, config 1, Mass
Storage Device(0x6362), Generic(0x058f), rev 1.26

umass0 at uhub4 port 3 configuration 1 interface 0
umass0: Generic Mass Storage Device, rev 2.00/1.26, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 4 luns per target
sd0 at scsibus0 target 0 lun 0: <Generic, USB SD Reader,
1.00> disk removable
sd0: drive offline
sd1 at scsibus0 target 0 lun 1: <Generic, USB CF Reader,
1.01> disk removable
sd1: drive offline
sd2 at scsibus0 target 0 lun 2: <Generic, USB SM Reader,
1.02> disk removable
sd2: drive offline
sd3 at scsibus0 target 0 lun 3: <Generic, USB MS Reader,
1.03> disk removable
sd3: drive offline

>    ...and post the results?
> 
>    It seems that my NetBSD system doesn't even see the
card reader.
> 
> >> So I tried to boot an Ubuntu LiveCD, just to
try to rule out the
> >> possibility that the reader/card is broken.
However, when I insert the
> >> card into the reader while running Ubuntu, the
light goes on, and a
> >> message appears on the console that the card
has been mounted, and sure
> >> enough, it has.
> > 
> > I just mount and unmount mine manually as needed. 
Here's an extract
> > from my fstab file:
> [---]
> 
>    Doesn't work here. :-(
> 
> mount: cannot open `/dev/sd0e`: Device not configured
> 
> mount: cannot open `/dev/sd1e`: Device not configured
> 
> etc..
> 

I'd consider looking at what a plain i386 kernel would have
for messages.

	Jonathan A. Kollasch
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )