Subject: Re: current not booting on shark?
To: None <Richard.Earnshaw@arm.com>
From: Martin Husemann <martin@duskware.de>
List: port-arm
Date: 12/11/2003 12:29:04
On Thu, Dec 11, 2003 at 10:36:52AM +0000, Richard Earnshaw wrote:

> I don't recall ever seeing this on my shark.  How large a disk do you 
> have?  And what is the geometry of the root partition?
>
> My firmware is dated September 04, 1998; it's one CGD made available to me.

Mine claims to be newer, as you probably saw, I don't know where it's from,
it was on the shark when I got it (second hand).

> DNARD Rev. 5, 08:00:2b:81:62:5e , 96 MB memory
> Open Firmware  Built February 25, 1998 17:19:25
> Copyright 1997 FirmWorks  All Rights Reserved

My disk is:

wd0 at atabus0 drive 0: <IBM-DBCA-206480>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 6194 MB, 13424 cyl, 15 head, 63 sec, 512 bytes/sect x 12685680 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)

and the disklabel is:

[~] root@drowsy # disklabel wd0
disklabel: Invalid signature in mbr record 0
# /dev/rwd0c:
type: unknown
disk: IBM-DBCA-206480
label: shark
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 15
sectors/cylinder: 945
cylinders: 13424
total sectors: 12685680
rpm: 4200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

8 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:  11739735         0     4.2BSD   1024  8192    64  # (Cyl.      0 -  12422)
 b:    945945  11739735       swap                     # (Cyl.  12423 -  13423)
 c:  12685680         0     unused      0     0        # (Cyl.      0 -  13423)


Hmm, never noticed the "Invalid signature in mbr record 0" before.

Funny thing is that now GENERIC boots, but my custom kernel does not:

11 1480 -rwxr-xr-x  1 root  wheel  1502937 Nov 29 18:23 /netbsd*
 7 1392 -rwxr-xr-x  1 root  wheel  1414744 Nov 29 18:23 /netbsd.aout*
 5 1704 -rwxr-xr-x  1 root  wheel  1728756 Dec 11 12:13 /netbsd.aout.d*
 8 2056 -rwxr-xr-x  1 root  wheel  2091037 Dec 11 09:44 /netbsd.aout.g*
 3 1792 -rwxr-xr-x  1 root  wheel  1821525 Dec 11 12:13 /netbsd.d*
 6 2152 -rwxr-xr-x  1 root  wheel  2190970 Dec 11 09:44 /netbsd.g*

Booting /netbsd.aout or /netbsd.aout.g (GENERIC) works, but /netbsd.aout.d
does not work.

My custom kernel has IPv6 etc striped, otherwise is pretty much identical
to GENERIC and has not changed in ages. I think it is more or less luck
that GENERIC now boots, and I bet netbooting my custom kernel would work
too.

Martin