Subject: reading 64M CF card?
To: None <port-i386@netbsd.org>
From: Simon Gerraty <sjg@juniper.net>
List: port-i386
Date: 12/04/2000 11:39:02
So, I bought a 64M CF card for my digital camera - been using 16M
cards previously. 

I put the card into my trusty old toshiba  to copy the pics onto my
server, and disklabel gives me:

root:132# disklabel wd1
Dec  5 05:56:53 not /netbsd: pcmcia1: card irq 7
Dec  5 05:56:53 not /netbsd: wdc2:0:0: setmulti error (4)
Dec  5 05:56:53 not /netbsd: wd1d:  aborted command reading fsbn 0 (wd1 bn 0; cn 0 tn 0 sn 0), retrying
Dec  5 05:56:53 not /netbsd: wdc2:0:0: setmulti error (4)
Dec  5 05:56:53 not /netbsd: wd1d:  aborted command reading fsbn 0 (wd1 bn 0; cn 0 tn 0 sn 0), retrying
Dec  5 05:56:54 not /netbsd: wdc2:0:0: setmulti error (4)
Dec  5 05:56:54 not /netbsd: wd1d:  aborted command reading fsbn 0 (wd1 bn 0; cn 0 tn 0 sn 0), retrying
Dec  5 05:56:54 not /netbsd: wdc2:0:0: setmulti error (4)
Dec  5 05:56:54 not /netbsd: wd1d:  aborted command reading fsbn 0 (wd1 bn 0; cn 0 tn 0 sn 0), retrying
Dec  5 05:56:55 not /netbsd: wdc2:0:0: setmulti error (4)
Dec  5 05:56:55 not /netbsd: wd1d:  aborted command reading fsbn 0 (wd1 bn 0; cn 0 tn 0 sn 0), retrying
# /dev/rwd1d:
type: unknown
disk: 
label: fictitious
flags:
bytes/sector: 512
sectors/track: 138
tracks/cylinder: 138
sectors/cylinder: 19044
cylinders: 138
total sectors: 2628072
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

4 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  d:  2628072        0     unused        0     0         # (Cyl.    0 - 137)
disklabel: boot block size 0
disklabel: super block size 0
Dec  5 05:56:55 not /netbsd: wdc2:0:0: setmulti error (4)
root:133# Dec  5 05:56:55 not /netbsd: wd1d:  aborted command reading fsbn 0 (wd1 bn 0; cn 0 tn 0 sn 0)

dmesg shows:
NetBSD 1.4 (NOT) #0: Wed May 19 22:24:34 PDT 1999
    root@not:/u3/NetBSD/1.4/src/sys/arch/i386/compile/NOT
cpu0: family 4 model 8 step 0
cpu0: Intel 486DX4 (486-class)
real mem  = 16384000
avail mem = 13410304
using 225 buffers containing 921600 bytes of memory
mainbus0 (root)
isa0 at mainbus0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 channel 0 drive 0: <TOSHIBA MK1924FCV>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 518MB, 1023 cyl, 16 head, 63 sec, 512 bytes/sect x 1061712 sectors
wd0: drive supports PIO mode 4, DMA mode 2
vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
wsdisplay0 at vga0: console (80x25, vt100 emulation)
lpt0 at isa0 port 0x378-0x37b: polled
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
opms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xd3fff: using irq 3
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: 3Com Corporation, 3C589, TP/BNC LAN Card Ver. 1a
pcmcia0: Manufacturer code 0x101, product 0x589
pcmcia0: function 0: network adapter, ccr addr 2000 mask 3
pcmcia0: function 0, config table entry 1: I/O card; irq mask 1; iomask 4, iospa
ce 0-f; rdybsy_active wp_active bvd_active io8 io16 irqlevel
pcmcia0: function 0, config table entry 3: I/O card; irq mask 1; iomask 4, iospa
ce 0-f; rdybsy_active wp_active bvd_active io8 io16 irqlevel
ep0 at pcmcia0 function 0 port 0x330-0x33f: 3Com 3c589 10Mbps Ethernet
ep0: address 00:20:af:de:7c:38, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5, 10base2 (default 10base2)
pcmcia1 at pcic0 controller 0 socket 1
pcmcia1: CIS version PCMCIA 2.0 or 2.1
pcmcia1: CIS info: CF, 064MB, 
pcmcia1: Manufacturer code 0xa, product 0x0
pcmcia1: function 0: fixed disk, ccr addr 200 mask f
pcmcia1: function 0, config table entry 0: memory card; irq mask 0; memspace 0-7
ff0; powerdown
pcmcia1: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, io
space 0-f; memspace 0-7ff0; powerdown
pcmcia1: function 0, config table entry 2: I/O card; irq mask 4000; iomask a, io
space 1f0-1f7 3f6-3f7; memspace 0-7ff0; powerdown
pcmcia1: function 0, config table entry 3: I/O card; irq mask 4000; iomask a, io
space 170-177 376-377; memspace 0-7ff0; powerdown
wdc2 at pcmcia1 function 0 port 0x340-0x34f
pcmcia1: card irq 5
wd1 at wdc2 channel 0 drive 0: <>
wd1: drive supports 138-sector pio transfers, chs addressing
wd1: 1283MB, 138 cyl, 138 head, 138 sec, 512 bytes/sect x 2628072 sectors
apm0 at mainbus0: Power Management spec V1.1
apm0: A/C state: on
apm0: battery charge state: no battery
biomask 4040 netmask 4040 ttymask 504a
stray interrupt 5
stray interrupt 5
wscons: wskbd0 glued to wsdisplay0 (console)

The specs for wd1 are clearly bogus 1283M (cf. 64M)

I donwloaded the 1.5 bootlap floppy images, but it does not have wd1
configured. 

I don't have an i386 running 1.5 or even close yet, and don't want to
upgrade this laptop until I can test that reading of CF cards will
work at least as well as before.

If someone could build me a boot floppy with PCMCIA configured as well
as wd0 and wd1 and ep0, that would be a big help.

Thanks
--sjg