Subject: Re: SPARCbook and PCMCIA
To: None <port-sparc@NetBSD.org>
From: Mike Parson <mparson@bl.org>
List: port-sparc
Date: 07/02/2005 12:08:56
Responding to my own post, bad form, I know, but more info...

On Sat, Jul 02, 2005 at 11:16:18AM -0500, Mike Parson wrote:
> On Fri, Jul 01, 2005 at 02:53:54PM -0400, Michael wrote:

<snip>

>> The rest is as before - drivers for wi and IDEish cards, MSDOS
>> filesystem, wscons with acceleration and virtual consoles, drivers for
>> all officially supported sparcbook hardware, CPU power saving, proper
>> envsys- and powerd support.
>
> I don't seem to have the /dev/rwd0 stuff, so I can't read the disklabel!
> (oops) Got the major/minors for that?

Found it in the archives, 26,? for the rwd0 stuff

Using a CF card that was formatted in my camera, NetBSD could see the
card, but no netbsd disklabel and I couldn't mount the card:

# mount -t msdos /dev/wd0c /mnt
mount_msdos: /dev/wd0c on /mnt: Invalid argument

I wrote a disklabel: 

# disklabel -i -I wd0
partition> W
Label disk [n]? y
Label written
partition> Q

# disklabel /dev/wd0
# /dev/wd0c:
type: ESDI
disk: Hitachi ATA  6.1
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 8
sectors/cylinder: 256
cylinders: 978
total sectors: 250368
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]
 c:    250368         0     unused      0     0        # (Cyl.      0 -    977)

# mount -t msdos /dev/wd0c /mnt
mount_msdos: /dev/wd0c on /mnt: Invalid argument


But that seemed to be destructive.  When I put the card back in my work
laptop (windows), it wanted to format the card, which I did, then copied
some data to it.  When I put the card back in the sparcbook, I could
mount /dev/wd0c with fstype msdos w/o problem.

# mount -t msdos /dev/wd0c /mnt
# cd /mnt
# ls -al
total 17679
drwxr-xr-x   1 root  10     1024 Jan  1  1980 .
drwxr-xr-x  20 root  10     4096 Jul  2 15:43 ..
-rwxr-xr-x   1 root  10  2058170 May  4 19:16 DSC00494.JPG
-rwxr-xr-x   1 root  10  2150352 May  4 19:16 DSC00496.JPG
-rwxr-xr-x   1 root  10  2067128 May  5 20:24 DSC00498.JPG
-rwxr-xr-x   1 root  10  2262698 May  7 09:35 DSC00499.JPG
-rwxr-xr-x   1 root  10  2342678 May  7 09:35 DSC00500.JPG
-rwxr-xr-x   1 root  10  2404537 May  7 09:35 DSC00501.JPG
-rwxr-xr-x   1 root  10  2334689 May  8 18:05 DSC00502.JPG
-rwxr-xr-x   1 root  10  2475496 May  8 18:06 DSC00503.JPG

Is there a non-destructive way to do this?

Another note, plugged in my 3Com 3C589B:

pcmcia0 function 0: <3Com Corporation, 3C589D, TP/BNC LAN Card Ver. 2a, 000002> (manufacturer 0x0101, product 0x0589)
 not configured

(not showing up in ifconfig either)

-- 
Michael Parson
mparson@bl.org