Subject: sun4c: NetBSD-1.2 floppy?
To: None <port-sparc@NetBSD.ORG>
From: Simon J. Gerraty <sjg@frodo.dn.itg.telstra.com.au>
List: port-sparc
Date: 10/07/1996 16:09:25
Pk et al, great job!

I've upgraded my sun4c (hobbit) to 1.2 (via miniroot) - totally
painless procedure - well done.

What was especially nice was that the GENERIC kernel has fdc
configured and the machine still came up - (use to hang at the
switching root msg).   

It just so happens that hobbit is the closes UNIX machine with a
floppy, so I was hopping to make an i386 boot disk with it.

On the i386 I'd do something like:

# gzcat < fs.gz | dd bs=147456 > /dev/rfd0a

but on hobbit I got the appropriate floppy motor start noise followed
by: 

fd0a: hard error reading fsbn 0 (st0 40<abnrml> st1 1<no_am> st2 0 cyl 0 head 0 sec 1)
fd0a: hard error writing fsbn 0 of 0-7 (st0 40<abnrml> st1 1<no_am> st2 0 cyl 0 head 0 sec 1)
dd: stdout: Input/output error
0+1 records in
0+0 records out
0 bytes transferred in 2 secs (0 bytes/sec)

I thought fd0a might be the wrong choise so started looking... there
appears not to be a man page, but looking at sys/arch/sparc/dev/fd.c I
think fd0a is what I want (1.44Mb 3.5)

Trying various block sizes got me variations on the above error.
Should this be working?

BTW, dmesg says:

fdc0 at mainbus0 ioaddr 0xf7200000 pri 11, softpri 4: chip 82072
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
root on sd0a
fd0a: hard error reading fsbn 0 (st0 40<abnrml> st1 1<no_am> st2 0 cyl 0 head 0 sec 1)
fd0a: hard error writing fsbn 0 of 0-7 (st0 40<abnrml> st1 1<no_am> st2 0 cyl 0 head 0 sec 1)
fd0a: hard error reading fsbn 0 (st0 40<abnrml> st1 1<no_am> st2 0 cyl 0 head 0 sec 1)
fd0a: hard error writing fsbn 0 of 0-7 (st0 40<abnrml> st1 1<no_am> st2 0 cyl 0 head 0 sec 1)
fd0a: hard error reading fsbn 0 (st0 40<abnrml> st1 1<no_am> st2 0 cyl 0 head 0 sec 1)
fd0a: hard error writing fsbn 0 of 0-63 (st0 40<abnrml> st1 1<no_am> st2 0 cyl 0 head 0 sec 1)

also I got

# eject floppy
fd0a: hard error reading fsbn 0 (st0 40<abnrml> st1 1<no_am> st2 0 cyl 0 head 0 sec 1)

but it did eject.