Skip to contentSkip to conversation

nfsroot howto

parisc-linux Martin K. Petersen 3 participants 4 messages Feb 14, 2000 – Mar 1, 2000

lore
Share & tools
lore
#0 lore raw

LINUX/PA-RISC NFSROOT HOWTO

(Or how to get to a working shell prompt)

YOU NEED:

A fresh linux-2.3 checkout from CVS

The .config included below

puffin.external.hp.com/pub/parisc/binaries/nfsroot/nfsroot-20000214.tar.gz

A supported PA-RISC box with serial console

A Linux (any Unix will do) server with NFS server, bootpd and tftpd

Note on consoles:

Yes, you *will* need serial console on the PA-RISC box. IODC console was a quick hack to get output during development, but it will never be usable as an interactive console. When HP releases docs for STI we will implement a proper framebuffer console. Until then, serial is the only option. Sorry.

Futhermore this will only work on boxes with LASI. I'm still working on support for the NS87560UBD Super I/O chip on [BCJ]x000 boxes.

STEP 1. KERNEL BUILDING

Get the latest linux-2.3 tree from CVS.

a) If you use the standard boot loader

Edit DEFAULT_COMMANDLINE in linux-2.3/arch/parisc/boot/boot_code/ipl_c.c to read:

	"vmlinux HOME=/ TERM=LINUX root=/dev/nfs nfsroot=10.0.0.1"

b) If you use PALO

Edit the echo line in palo/mklifimage to read

	"vmlinux HOME=/ TERM=LINUX root=/dev/nfs nfsroot=10.0.0.1"

In both cases replace 10.0.0.1 with the IP address of your NFS server.

Copy the .config included below to the root of the linux source tree.

make oldconfig
make dep
make clean
make Image (Or make palo, if you use Paul's loader)

Due to linker issues cross compiling is still not possible. I.e. you have to build on HP/UX.

STEP 2. BOOTP, TFTP AND NFS

Copy linux-2.3/arch/parisc/boot/Image (or palo/lifimage) to /tftpboot/vmlinux on the server. Make sure the file is world readable.

Edit /etc/bootptab on the server. I have an entry like this:

mybox:\
        :hd=/tftpboot:\
        :bf=vmlinux:\
        :ht=ether:\
        :ha=0060b007e4ab:\
        :sm=255.255.255.0:\
        :hn:\
        :ip=10.0.0.6:\
        :vm=rfc1048:

Replace ``mybox'' with the hostname of your PA-RISC box.

You need to insert the MAC address of the PA-RISC box in the ha= field. You can find the MAC by typing "in la" at the PDC prompt.

You should also change the IP to something appropriate for your LAN.

Add an entry for the host in /etc/hosts.

Unpack the nfsroot tarball in /tftpboot and rename the unpacked directory (mybox) to the hostname of your box.

Make sure both bootps and tftp are enabled in /etc/inetd.conf.

Edit your /etc/exports to contain a line like this:

/tftpboot/mybox mybox(rw,no_root_squash)

Again, replace mybox with your hostname.

Restart inetd and nfs services if you made any modifications.

STEP 3. GO

Type "bo lan" at the PDC prompt on the PA-box and kapow. You've got a prompt (I hope).

Here's what I get...

---8<---

Stand-alone shell (version 3.4)
500 5 1970 53b

Quoted 1 line

-mount -t proc proc /proc

quux
quuux

Quoted 1 line

-more /proc/cpuinfo

quux
quuux
<< cpuinfo >>
processor : 0
cpu family : PA-RISC <NULL>
cpu : PA8000
cpu MHz : 160.000000
cpu category : category A
cpu level : level 0
cpu shadow regs : no

model           :
model name      : Raven U 160 (9000/780/C160)
sw_id           : 0
hversion        : 0x00000000
sversion        : 0x00000000
I-cache         : 0 KB
D-cache         : 0 KB (WB)
ITLB entries    : 0
DTLB entries    : 0
BTLB            : not supported

---8<---

Signature · 3 lines
-- 
Martin Kasper Petersen			BOFH, IC1&2, Aalborg University, DK
mailto:[email protected]		http://SunSITE.auc.dk/~mkp/
#1 lore raw

I have a 712/60 Workstation as NFS server and a 712/80 as parisc-linux box. I have some trouble with nfsroot :bootp and tftp process works but IP-Config says : IP-Config : No Network device available.

Thanks for your help

Th. SIMONNET

----- Original Message -----
From: Martin K. Petersen <[email protected]>
To: <[email protected]>
Sent: Monday, February 14, 2000 11:34 PM
Subject: [parisc-linux] nfsroot howto

Quoted 141 lines

LINUX/PA-RISC NFSROOT HOWTO

(Or how to get to a working shell prompt)

YOU NEED:

A fresh linux-2.3 checkout from CVS

The .config included below

puffin.external.hp.com/pub/parisc/binaries/nfsroot/nfsroot-20000214.tar.gz

A supported PA-RISC box with serial console

A Linux (any Unix will do) server with NFS server, bootpd and tftpd

Note on consoles:

Yes, you *will* need serial console on the PA-RISC box. IODC console was a quick hack to get output during development, but it will never be usable as an interactive console. When HP releases docs for STI we will implement a proper framebuffer console. Until then, serial is the only option. Sorry.

Futhermore this will only work on boxes with LASI. I'm still working on support for the NS87560UBD Super I/O chip on [BCJ]x000 boxes.

STEP 1. KERNEL BUILDING

Get the latest linux-2.3 tree from CVS.

a) If you use the standard boot loader

Edit DEFAULT_COMMANDLINE in linux-2.3/arch/parisc/boot/boot_code/ipl_c.c to read:

"vmlinux HOME=/ TERM=LINUX root=/dev/nfs nfsroot=10.0.0.1"

b) If you use PALO

Edit the echo line in palo/mklifimage to read

"vmlinux HOME=/ TERM=LINUX root=/dev/nfs nfsroot=10.0.0.1"

In both cases replace 10.0.0.1 with the IP address of your NFS server.

Copy the .config included below to the root of the linux source tree.

make oldconfig
make dep
make clean
make Image (Or make palo, if you use Paul's loader)

Due to linker issues cross compiling is still not possible. I.e. you have to build on HP/UX.

STEP 2. BOOTP, TFTP AND NFS

Copy linux-2.3/arch/parisc/boot/Image (or palo/lifimage) to /tftpboot/vmlinux on the server. Make sure the file is world readable.

Edit /etc/bootptab on the server. I have an entry like this:

mybox:\
        :hd=/tftpboot:\
        :bf=vmlinux:\
        :ht=ether:\
        :ha=0060b007e4ab:\
        :sm=255.255.255.0:\
        :hn:\
        :ip=10.0.0.6:\
        :vm=rfc1048:

Replace ``mybox'' with the hostname of your PA-RISC box.

You need to insert the MAC address of the PA-RISC box in the ha= field. You can find the MAC by typing "in la" at the PDC prompt.

You should also change the IP to something appropriate for your LAN.

Add an entry for the host in /etc/hosts.

Unpack the nfsroot tarball in /tftpboot and rename the unpacked directory (mybox) to the hostname of your box.

Make sure both bootps and tftp are enabled in /etc/inetd.conf.

Edit your /etc/exports to contain a line like this:

/tftpboot/mybox mybox(rw,no_root_squash)

Again, replace mybox with your hostname.

Restart inetd and nfs services if you made any modifications.

STEP 3. GO

Type "bo lan" at the PDC prompt on the PA-box and kapow. You've got a prompt (I hope).

Here's what I get...

---8<---

Stand-alone shell (version 3.4)
500 5 1970 53b

Quoted 1 line

-mount -t proc proc /proc

quux
quuux

Quoted 1 line

-more /proc/cpuinfo

quux
quuux
<< cpuinfo >>
processor : 0
cpu family : PA-RISC <NULL>
cpu : PA8000
cpu MHz : 160.000000
cpu category : category A
cpu level : level 0
cpu shadow regs : no

model           :
model name      : Raven U 160 (9000/780/C160)
sw_id           : 0
hversion        : 0x00000000
sversion        : 0x00000000
I-cache         : 0 KB
D-cache         : 0 KB (WB)
ITLB entries    : 0
DTLB entries    : 0
BTLB            : not supported
Quoted 3 lines

---8<---

----------------------------------------------------------------------------
----

Quoted 5 lines

--
Martin Kasper Petersen BOFH, IC1&2, Aalborg University, DK mailto:[email protected] http://SunSITE.auc.dk/~mkp/

#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thierry" == Thierry SIMONNET <[email protected]> writes:

Thierry> I have a 712/60 Workstation as NFS server and a 712/80 as Thierry> parisc-linux box. I have some trouble with nfsroot :bootp Thierry> and tftp process works but IP-Config says : IP-Config : No Thierry> Network device available.

You have to enable Lasi ethernet (CONFIG_APRICOT) on machines with 10 Mbps ethernet onboard (7xx, old B- and C-class).

Signature · 2 lines
Martin Kasper Petersen			BOFH, IC1&2, Aalborg University, DK
mailto:[email protected]		http://SunSITE.auc.dk/~mkp/
#3 lore raw
In reply to Martin K. Petersen

One more update for HP-UX impaired folks (like me)

"Martin K. Petersen" wrote:
...

Quoted 2 lines

Unpack the nfsroot tarball in /tftpboot and rename the unpacked directory (mybox) to the hostname of your box.

[ Just a reminder to find my previous update regarding HP-UX
vs linux mknod. I still don't know for sure what I posted is correct. ]

...

Quoted 9 lines

Make sure both bootps and tftp are enabled in /etc/inetd.conf.

Edit your /etc/exports to contain a line like this:

/tftpboot/mybox mybox(rw,no_root_squash)

Again, replace mybox with your hostname.

Restart inetd and nfs services if you made any modifications.

Here's the /etc/exports contents on my HP-UX NFS server:
/tftpboot/turin -rw=turin,root=turin

where "turin" is the nfsroot client. turin has an entry in /etc/hosts.

Then as root, "exportfs -av" will actually export those file systems. When rebooting the nfs server, this will automatically be done.

and when I booted the parisc-linux workstation (turin=15.8.80.75):

...
Sending BOOTP requests.... OK
IP-Config: Got BOOTP answer from 15.8.80.76, my address is 15.8.80.7515.8.80.75
...

One problem less.

later,
grant

Grant Grundler
Unix Development Lab
+1.408.447.7253