Subject: NFS boot,root,install
To: 'port-macppc@netbsd.org' <port-macppc@netbsd.org>
From: Cliff Neighbors <cliff@allegronetworks.com>
List: port-macppc
Date: 06/02/2000 17:08:32
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BFCCEF.DAC1C408
Content-Type: text/plain;
	charset="iso-8859-1"

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
---



------_=_NextPart_001_01BFCCEF.DAC1C408
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>NFS boot,root,install</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">I have a new G4 (400MHz, OpenFirmware =
3) and I am trying to install NetBSD-1.4.2 over NFS,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">but I can't get through the initial =
boot-up.&nbsp; ofwboot loads in the kernel over NFS ok</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">but when the kernel starts coming up =
it can't figure out what its root device is,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">apparently a) cpu_rootconf() -&gt; =
findroot() fails to determine the booted_device</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">(cpu_rootconf says &quot;boot device: =
&lt;unknown&gt;&quot;) and b) setroot() -&gt; getdisk() offers the =
option to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&quot;use one of: halt&quot; =
(!).&nbsp; from looking at setroot()&nbsp; it would seem in that NFS is =
handled</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">as a special case and getdisk() =
should not even be called if root is NFS.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">FWIW, I get the same result with both =
BOOTP and DHCP on the server side.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">it seems like the rootpath property of =
/chosen in OF is supposed to be used to pass</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the root device path between ofwboot =
and the kernel, and failing that the kernel tries</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">to revert to the boot-device property =
of /options in OF, or something like that?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">any suggestions on how to specify NFS =
root to the kernel would be most welcome.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">thanks,</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">-cliff-</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">---</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">cliff neighbors</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">allegro networks, inc.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">cliff@allegronetworks.com</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">408-281-5532</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">---</FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01BFCCEF.DAC1C408--