Subject: CompactFlash from camera
To: None <netbsd-help@netbsd.org>
From: Michael G. Schabert <mikeride@mac.com>
List: netbsd-help
Date: 12/29/2001 16:34:05
Hi there :-)

I have a Kodak digital camera that uses CompactFlash memory. It is a 
newer camera, and puts standard JPeGs onto the CF cards. I also have 
a DEC Alphastation 200 4/166 with the PCMCIA card in it (came 
installed in the box). The Alpha is running NetBSD 1.5ZA. I've used 
various cards in this Alpha in the past. I got a Microtech PCMCIA 
adapter for my CF card. When I stick in the card/adapter, I get:

=====
wdc2 at pcmcia0 function 0 port 0x400-0x40f
wd0 at wdc2 channel 0 drive 0: <SunDisk SDCFB-8>
wd0: drive supports 1-sector PIO transfers, LBA addressing
wd0: 7840 KB, 245 cyl, 2 head, 32 sec, 512 bytes/sect x 15680 sectors
=====

Everything looks OK so far :-). Next, check the current formatting:

=====
alpha# mbrlabel wd0

3 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
  a:     15680         0      MSDOS                      # (Cyl.    0 - 244)
  c:     15680         0     unused      0     0         # (Cyl.    0 - 244)

Not updating disk label.
alpha#
=====

OK, looks like it's a standard DOS partition. Double-check:


=====
alpha# disklabel wd0
# /dev/rwd0c:
type: ESDI
disk: SunDisk SDCFB-8
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 2
sectors/cylinder: 64
cylinders: 245
total sectors: 15680
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

3 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
  a:     15680         0      MSDOS                      # (Cyl.    0 - 244)
  c:     15680         0     unused      0     0         # (Cyl.    0 - 244)
alpha#
=====

So far so good...now to try to mount it:

=====
alpha# mount -t msdos /dev/wd0a /mnt
mount_msdos: /dev/wd0a on /mnt: Invalid argument
alpha#
=====


I have a Mac SE, a Mac Quadra 650, a Quadra 840AV, a Mac LC 575, a 
PowerMac 7200/90 and the Alpha. I literally own nothing with an IDE 
bus, so I'm new to that area. Did I miss anything obvious, or how can 
I mount this cardon my NetBSD bachine. I had a Mac PowerBook 3400/200 
which I used under MacOS, and it mounted the card no problem...but it 
died.

Any help would be greatly appreciated.

Mike
-- 
Bikers don't *DO* taglines.