Subject: Re: Installing & Booting NetBSD 1.2 under SVR4
To: Michael L. Hitch <mhitch@gemini.oscs.montana.edu>
From: Don Phillips <bsd@blkhole.resun.com>
List: port-amiga
Date: 06/12/1997 12:36:34
Michael wrote:
>   No, he's not following the instructions exactly - when booting from
> the miniroot, the device has to be "sd0*".  The '*' is required.  If
> not, then the kernel attempts to mount the root file system on the 'a'
> partition - but there is no file system there yet and will panic.  The
> '*' indicates that the root filesystem is located on the swap ('b')
> partition.

I missed the part where I was supposed to change from using the 
bootblock.READMEback to the INSTALL document.  :-)

I should add that I'm willing to write a section of the INSTALL document
that explains how to do what I'm doing from SVR4, if that makes sense.
Then, at least, everybody could point to the INSTALL document and say
"read the docs."  :-)

In any event, using sd0*, either via -psd0* before the timeout in the
bootblock program, or at the point where there is a prompt for "root device>"
doesn't work.  Given that the partition is actually partition 5 in the RDB,
is the swap partition actually 'b' in NetBSD?  As I said, I can't explore
some of this until I have a working system.  I also tried sd0e for grins.
It also leads to a panic.  And is it actually sd0, considering the SCSI
device number is 6?  (FYI, there is also another SCSI disk at '5'.
It doesn't seem to matter whether or not it is turned on.)  There is also
a QIC tape drive at SCSI 4.  There is an Amiga multi-port serial card, and
a 2-port serial card plugged into the bus, along with an Amiga 2065 (?) 
ethernet card.

'-psd0*' leads to no prompt for root-device, and a display of "No suitable
root."  Entering 'sd0*' at the prompt leads to a system panic.

Here is the procedure that I followed.  The difference between the
configuration shown here and before is that partition 9 (BSD_Root) is now
set to the correct filesystem type.  Also, FYI, partition 9 doesn't show
up as one of the offered partitions at boot time, just in case that 
provides a clue.

Here is the current RDB info under SVR4:

>rdb -H /dev/rdsk/c6d0s0
#    Name               Start   Blocks   Size      Flags

 1:  Unix_Root           1144   615472   300 MB    mb P0 C0 F0x554e4901
 2:  Unix_SwAp         616616   205920   100 MB    mb P0 C0 F0x72657376
 3:  Unix_Boot         822536     4576     2 MB    MB P2 C2 F0x554e4900
 4:  BSD_Usr           827112   811096   396 MB    Mb P0 C16 F0x4e425507
 5:  BSD_SwAp         1638208   205348   100 MB    MB P-2 C16 F0x4e425301
 6:  BSD_Boot         1843556     4576     2 MB    Mb P0 C0 F0x554e4900
 7:  WB_1.3           1848132     4576     2 MB    Mb P0 C0 F0x444f5301
 8:  WB_2.x           1852708    12584     6 MB    MB P0 C0 F0x444f5301
 9:  BSD_Root         1865292   244244   119 MB    MB P0 C16 F0x4e425207

Here is the procedure I followed:

>dd if=inst-12.fs of=/dev/rdsk/c6d0s5
8192+0 records in
8192+0 records out

>dd if=bootblock.bin of=/dev/rdsk/c6d0s5 count=16
16+0 records in
16+0 records out

>telinit 0

>Three finger salute, with outer mouse buttons down.
Offered WB2.X or WB3.X.
>Cancelled, and depressed both outer mouse buttons.
Boot from BSD_SwAp.

NetBSD/Amiga BootBLock loader 0.3 (10.2.96)
/netbsd -bsAS :-
Loading /netbsd ...

[ preserving 121108 bytes of netbsd symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

NetBSD 1.2 (GENERIC) #0: Thu Sep 26 10:27:49 EDT 1996
    chopps@water.emich.edu:/exp/NetBSD/NetBSD-1-2/src/sys/arch/amiga/compile/GENERIC
Amiga 500/2000 (m68030 CPU/MMU m68882 FPU) *Note: this is actually an Amiga 3000*
real  mem = 16777216 (2048 pages)
avail mem = 14098432 (1721 pages)
using 115 buffers containing 942080 bytes of memory
memory segment 0 at 7000000 size 1000000
memory segment 1 at 0 size 100000
mainbus0 (root)
clock0 at mainbus0: CIA B system hz 100 hardware hz 715909
ser0 at mainbus0: input fifo 512 output fifo 32
par0 at mainbus
kbd0 at mainbus0: CIA A type Amiga
ms0 at mainbus0
ms1 at mainbus0
grfcc0 at mainbus0
grf0 at grfcc0: width 640 height 400 colors 4
ite0 at grf0: rows 50 cols 79 repeat at (30/100)s next at (10/100)s has keyboard
fdc0 at mainbus0: dmabuf pa 0xe3030: dmabuf ka 0x2cdf030
fd0 at fdc0 unit 0: 3.5dd 80 cyl, 2 head, 11 sec [9 sec], 512 bytes/sec
fd1 at fdc0 unit 2: 3.5dd 80 cyl, 2 head, 11 sec [9 sec], 512 bytes/sec
zbus0 at mainbus0
msc0 at zbus0 rom 0xe90000 man/pro 514/70
msc0: Board successfully initialized.
msc0: Normal version detected (bfed:1)
le0 at zbus0 rom 0xea0000 man/pro 514/112: address 00:80:10:00:16:d7
le0: 16 receive buffers, 4 transmit buffers
board at zbus0: rom0xeb0000 man/pro 1023/255 not configured
root device> ok.
input ->sd0*
10 views configured
panic: cannot mount root
Stopped at      _Debugger+0x6:  unlk   a6
db>

Thanks again for any help or suggestions.

-- 

  Don Phillips         bsd%blkhole.resun.com@foxtail.com
  Research Unlimited   or ...!foxtail!blkhole!bsd
  Escondido, Calif.    My opinions are just that, and no more.