Subject: RE: NFS boot,root,install
To: 'port-macppc@netbsd.org' <port-macppc@netbsd.org>
From: Greg Kritsch <greg@evertz.com>
List: port-macppc
Date: 06/03/2000 10:49:22
I installed much the same machine about a week ago.  The 1.4.2-release
kernel would not run for me at all.

I think your problem is this: the on-board ethernet is not (fully) supported
yet, and not built in to the kernel.  I had to put in a PCI ethernet card
for the kernel to use after booting.  On startup there was a line about
Apple GMAC ethernet being "not configured".

I have another machine running, and the correct thing to network boot it is
to type "fxp0" at the boot device prompt, so it's not wrong that you're
getting to that prompt.  I'm not going to even try guessing how the boot
device is supposed to be passed.

From openfirmware, I use "boot enet:0 ultra0:0" to start my system up.  The
network boot loads ofwboot.elf using TFTP, and I installed NetBSD on ultra0,
so that's where ofwboot picks up the kernel.

Hope this helps you.

Gregory

(My apologies for using outlook, it's not by choice).

> -----Original Message-----
> From:	Cliff Neighbors [SMTP:cliff@allegronetworks.com]
> Sent:	Friday, June 02, 2000 8:09 PM
> To:	'port-macppc@netbsd.org'
> Subject:	NFS boot,root,install
> 
> I have a new G4 (400MHz, OpenFirmware 3) and I am trying to install
> NetBSD-1.4.2 over NFS, 
> but I can't get through the initial boot-up.  ofwboot loads in the kernel
> over NFS ok 
> but when the kernel starts coming up it can't figure out what its root
> device is, 
> apparently a) cpu_rootconf() -> findroot() fails to determine the
> booted_device 
> (cpu_rootconf says "boot device: <unknown>") and b) setroot() -> getdisk()
> offers the option to 
> "use one of: halt" (!).  from looking at setroot()  it would seem in that
> NFS is handled 
> as a special case and getdisk() should not even be called if root is NFS. 
> 
> FWIW, I get the same result with both BOOTP and DHCP on the server side. 
> 
> it seems like the rootpath property of /chosen in OF is supposed to be
> used to pass 
> the root device path between ofwboot and the kernel, and failing that the
> kernel tries 
> to revert to the boot-device property of /options in OF, or something like
> that? 
> 
> any suggestions on how to specify NFS root to the kernel would be most
> welcome. 
> 
> thanks, 
>         -cliff- 
> 
> --- 
> cliff neighbors 
> allegro networks, inc. 
> cliff@allegronetworks.com 
> 408-281-5532 
> --- 
> 
>