Subject: Installing use current snapshot RAMDISK kernel
To: None <port-hp300@netbsd.org>
From: Sageev George <sageev@bmsrs.usc.edu>
List: port-hp300
Date: 07/11/2002 20:49:47
Gregory:
First, let me say that by following your instructions
to replace the netbsd install kernel with a generic
kernel on exported filesystem, I was able to get the
-current snapshot (4/15/2002) up and running (both on a 
local drive, and a diskless system).  

Because I felt that the network booting was straight 
in my mind, _and_ in response to your request, I did 
try an install using the sysinst in the RAMDISK kernel.  
Although the netbsd.ramdisk (from the 4/15/2002 snapshot) 
did load over the network, there was an error at the end, 
when the installation program usually starts.  I had seen 
this behavior before, when I tried using "dd" to dump the 
miniroot filesystem to my swap partition.  As happened here,
even though the kernel loaded, I got a lot of "illegal 
instruction" errors, either in the upgrade program, or 
just running binaries that were located in the filesystem.

Am I doing something wrong here?  Console output is 
below.

Gregory McGarry wrote:
> I can see that the INSTALL kernel doesn't have support for
> mounting root on nfs (options NFS_BOOT_BOOTP).  Try the GENERIC
> kernel instead.
> 
> While you're doing this, it would be useful to see if you
> can install using sysinst in the RAMDISK kernel.  You'd be
> trail-blazing here too, since it hasn't been tested.

----- Original Message ----- 
From: "Gregory McGarry" <g.mcgarry@ieee.org>
To: "Sageev George" <sageev@bmsrs.usc.edu>
Cc: <port-hp300@netbsd.org>
Sent: Tuesday, July 02, 2002 8:49 PM
Subject: Re: Netbooting 1.6_BETA3?


> Sageev George wrote:
> 
> > Using the serial port console did allow me to see
> > the kernel booting, but I now get a different error
/* stuff deleted */
> > I was trying to netboot, which works for the 1.5.3 system,
> > (meaning I am confident that rbootd, rarp, bootparams, and
> > nfs are set up correctly)
> 
> These days the kernel and the bootblocks use bootp/dhcp.  I can
> see that the bootblocks already used bootp to load the kernel.
> 
> I can see that the INSTALL kernel doesn't have support for
> mounting root on nfs (options NFS_BOOT_BOOTP).  Try the GENERIC
> kernel instead.
> 
> While you're doing this, it would be useful to see if you
> can install using sysinst in the RAMDISK kernel.  You'd be
> trail-blazing here too, since it hasn't been tested.
> 
> -- Gregory McGarry <g.mcgarry@ieee.org>







CONSOLE OUTPUT:
--------------------------------------------------
>> NetBSD/hp300 Primary Boot, Revision 1.13
>> (gregm@mcgarry, Mon Apr 15 08:46:32 NZST 2002)
>> HP 9000/425t SPU
>> Enter "reset" to reset system.
Boot: [[[le0a:]netbsd][-a][-c][-d][-s][-v][-q]] :-
WARNING: bad date in battery clock
net_open: client addr: 192.168.1.6
net_open: server addr: 192.168.1.2
net_open: server path: /export/client/root
boot: client IP address: 192.168.1.6
root addr=192.168.1.2 path=/export/client/root
693794+1253748+164652=0x205c3c
Start @ 0xfe803400 [1=0xfea07ac8-0x205c3c]...
Entry point: 0xfe803400
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.5ZC (RAMDISK) #0: Fri Apr 12 20:14:09 NZST 2002
    gregm@mcgarry:/storage/scratch/netbsd/obj/current/kern/hp300/RAMDISK
HP 9000/425t (25MHz MC68040 CPU+MMU+FPU, 4k on-chip physical I/D caches)
total memory = 24564 KB
avail memory = 20708 KB
using 16 buffers containing 65536 of memory
mainbus0 (root)
intio0 at mainbus0
rtc0 at intio0 addr 0x420000
frodo0 at intio0 addr 0x41c000
dnkbd at frodo0 offset 0x0 not configured
apci0 at frodo0 offset 0x40: no fifo
apci1 at frodo0 offset 0x60: no fifo
hil0 at intio0 addr 0x428000
fb at intio0 addr 0x560000 not configured
dio0 at mainbus0: 98620C, 2 channels, 32 bit DMA
dca0 at dio0 scode 9 ipl 5: console, working fifo
device id = 0x6 secid = 0x0 at dio0 scode 12 not configured
oscsi0 at dio0 scode 14 ipl 4: 32 bit dma, async, scsi id 7
sd0 at oscsi0 targ 0 lun 0: <RODIME, RO3000T, 5.76>
sd0: 1216 cylinders, 9 heads, 410211 blocks, 512 bytes/block
sd1 at oscsi0 targ 3 lun 0: <HP, C2235, 0B11> (SCSI-2)
sd1: 1574 cylinders, 9 heads, 825012 blocks, 512 bytes/block
le0 at dio0 scode 21 ipl 5: address 08:00:09:15:ae:95
le0: 8 receive buffers, 2 transmit buffers
topcat0 at dio0 scode 133: 1280 x 1024 256 color hi-res catseye display
grf0 at topcat0
ite0 at grf0
interrupt levels: bio = 4, net = 5, tty = 5
hil0 device 1: US ASCII keyboard
md0: internal 1200 KB image area
boot device: le0
root on md0a dumps on md0b
WARNING: clock gained 88 days -- CHECK AND RESET THE DATE!
root file system type: ffs
erase ^?, werase ^W, kill ^U, intr ^C

Illegal instruction
Illegal instruction
a0y0Cs1A
 Illegal instruction
#