[Soekris] net 4511 PXE boot won't mount NFS

Cassandra Brockett cbrockett at ophiuchi.net
Mon Oct 2 15:38:32 UTC 2006


I'd suggest here that you look at installing tftpd-hpa (yep, apt-get
install tftpd-hpa will do it), and then configure standard pxe booting
for Debian.

The reason there is simple, Debian has already found about 90% of the
issues you will run into, and as such the pxe installation is now
(scarily enough) rather painless using debian-installer via the network.

I do my installations using a http server on the installation server
(thttpd of all things due to it's small footprint, the installation
server is a soekris itself).

Simply put, download netboot.tgz from a debian installation mirror
(specific version not necessary), the install to your tftpd directory.
Configure your dhcpd.conf to send the necessary files (I've run all of
the above successfully from windows if you need to by the way).

--- /var/lib/tftpboot ---
db:/var/lib/tftpboot# cat pxelinux.cfg/default 
default cf


label cf
        kernel debian-installer/i386/2.6/linux
        append initrd=debian-installer/i386/2.6/initrd.gz
ramdisk_size=10938 root=/dev/rd/0 devfs=mount,dall rw
console=ttyS0,19200n8
preseed/url=http://172.29.0.21/preseed/preseed-cf.txt
DEBIAN_FRONTEND=text -- languagechooser/language-name=English
countrychooser/shortlist=US console-keymaps-at/keymap=us
netcfg/choose_interface=eth0 netcfg/get_hostname=unassigned-hostname
netcfg/get_domain=unassigned-domain

label hd
        kernel debian-installer/i386/2.6/linux
        append initrd=debian-installer/i386/2.6/initrd.gz
ramdisk_size=10938 root=/dev/rd/0 devfs=mount,dall rw
console=ttyS0,19200n8
preseed/url=http://172.29.0.21/preseed/preseed-hd.txt
DEBIAN_FRONTEND=text -- languagechooser/language-name=English
countrychooser/shortlist=US console-keymaps-at/keymap=us
netcfg/choose_interface=eth0 netcfg/get_hostname=unassigned-hostname
netcfg/get_domain=unassigned-domain

label serial
        kernel debian-installer/i386/2.6/linux
        append initrd=debian-installer/i386/2.6/initrd.gz
ramdisk_size=10938 root=/dev/rd/0 devfs=mount,dall rw
console=ttyS0,19200n8 --

label linux26
        kernel debian-installer/i386/2.6/linux
        append initrd=debian-installer/i386/2.6/initrd.gz
ramdisk_size=10938 root=/dev/rd/0 devfs=mount,dall rw --

label bsd
        kernel bsd-pxeboot.0

label fedora
        kernel fedora-5/vmlinuz
        append initrd=fedora-5/initrd.img console=ttyS0,19200n8
ks=http://172.29.0.21/fedora/ks.cfg ksdevice=eth0

prompt 1
timeout 120
--- /var/lib/tftpboot ---

And the dhcpd.conf file for dhcp3-server...

--- /etc/dhcp3/dhcpd.conf ---
db:/etc/dhcp3# cat /etc/dhcp3/dhcpd.conf
#
# Sample configuration file for ISC dhcpd for Debian
#
# $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
#

# The ddns-updates-style parameter controls whether or not the server
will
# attempt to do a DNS update when a lease is confirmed. We default to
the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style       none;

# Option definitions common to all supported networks...
default-lease-time      86400;
max-lease-time          604800;

# This is the Authoritive Server for the network
authoritative;

# Which syslog facility?
log-facility            local7;

# Hosting Network - Eth0
subnet 192.168.250.0 netmask 255.255.255.0 {
}

# Home Network - Eth1
subnet 172.29.0.0 netmask 255.255.255.0 {
        range 172.29.0.100 172.29.0.199;

        # Basic Network Options
        option routers                  172.29.0.1;
        option domain-name              "install.domain";
        option domain-name-servers      172.29.0.2;
        option netbios-name-servers     172.29.0.2;

        # Added to support network booting for installations.
        next-server                     172.29.0.21;
        filename                        "pxelinux.0";

}
--- /etc/dhcp3/dhcpd.conf ---

That is all the basic references needed to get debian working.  My
pxelinux.cfg/default file runs a preseed file as well, but if you want
to do manual installations, just strip the preseed/url kernel option in
that file.  Also the serial console I assume is running the soekris
default of 19200.

Finally to speed up installations - make sure your terminal software
connecting to the soekris you are installing is set to flow-control OFF.

--
Cassandra
 

> -----Original Message-----
> From: soekris-tech-bounces at lists.soekris.com 
> [mailto:soekris-tech-bounces at lists.soekris.com] On Behalf Of 
> Larry Boehm
> Sent: Sunday, October 01, 2006 9:39 PM
> To: soekris-tech at lists.soekris.com
> Subject: [Soekris] net 4511 PXE boot won't mount NFS
> 
> Hi All,
> I'm trying to configure a 4511 to use debian per Mike's page.
> I'm on 12+ hours and have no more hair left to pull.
>  
> DHCP is running.
> TFTP is running
> I have checked and nfsd is running too.
> I went to another linux box and am able to mount 
> /nfsroot/debian to it from the tftpserver
> i've turned off all firewalls.
>  
> Using boot f0 works and I get DHCP response and the kernel loads up.
> At the very bottom..this is where it stops
>  
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> Looking up port of RPC 100003/2 on 192.168.0.26
> RPC: sendmsg returned error 101
> portmap: RPC call returned error 101
> Root-NFS: Unable to get nfsd port number from server, using default
> Looking up port of RPC 100005/1 on 192.168.0.26
> RPC: sendmsg returned error 101
> portmap: RPC call returned error 101
> Root-NFS: Unable to get mountd port number from server, using default
> RPC: sendmsg returned error 101
> mount: RPC call returned error 101
> Root-NFS: Server returned error -101 while mounting /nfsroot/debian
> VFS: Unable to mount root fs via NFS, trying floppy.
> VFS: Insert root floppy and press ENTER
>  
> Can anyone offer some advice..I'm stuck?
> thank you
> -Larry
>  
> POST: 012345d6789bcefghiajklnopq,,,tvwxy
> 
> comBIOS ver. 1.15 20021013 Copyright (C) 2000-2002 Soekris 
> Engineering.
> 
> net45xx
> 
> CPU 80486 100 Mhz 
> 
> 0000 Mbyte Memory
> 
> snip......
> 
> 0032
> 
> Pri Mas SanDisk SDCFH-128 LBA 980-8-32 125 Mbyte
> 
> PXE-M00: BootManage UNDI, PXE-2.0 (build 082)
> 
> Slot Vend Dev ClassRev Cmd Stat CL LT HT Base1 Base2 Int 
> 
> -------------------------------------------------------------------
> 
> 0:00:0 1022 3000 06000000 0006 2280 00 00 00 00000000 00000000 00
> 
> 0:09:0 104C AC50 06070002 0107 0210 10 3F 02 A0000000 020000A0 10
> 
> 0:18:0 100B 0020 02000000 0107 0290 00 3F 00 0000E101 A0001000 11
> 
> 0:19:0 100B 0020 02000000 0107 0290 00 3F 00 0000E201 A0002000 05
> 
> Seconds to automatic boot. Press Ctrl-P for entering Monitor.
> 
> 5
> 
> 4
> 
> comBIOS Monitor. Press ? for help.
> 
> > boot f0
> 
> BootManage UNDI, PXE-2.0 (build 082)
> 
> BootManage PXE-2.0 PROM 1.0, NATSEC 1.0, SDK 3.0/082 (OEM52)
> 
> Copyright (C) 1989,2000 bootix Technology GmbH, D-41466 Neuss.
> 
> PXE Software Copyright (C) 1997, 1998, 1999, 2000 Intel Corporation.
> 
> Licensed to National Semiconductor
> 
> CLIENT MAC ADDR: 00 00 24 C1 1A 84. 
> 
> DHCP...spinner...
> 
> CLIENT IP: 192.168.0.105 MASK: 255.255.255.0 DHCP IP: 192.168.0.26
> 
> GATEWAY IP: 192.168.0.1 
> 
> TFTP.
> 
> TFTP.-snip...stuff on the screen
> 
> PXELINUX 2.11 2004-08-16 Copyright (C) 1994-2004 H. Peter Anvin
> 
> snip....more stuff on the screen
> 
> Linux version 2.4.18 (root at rocket) (gcc version 
> 2.95.4 20011002 (Debian prerelease)) #8 Mon Jun 17 09:49:36 PDT 2002
> 
> BIOS-provided physical RAM map:
> 
> BIOS-e801: 0000000000000000 - 000000000009f000 (usable)
> 
> BIOS-e801: 0000000000100000 - 0000000002000000 (usable)
> 
> On node 0 totalpages: 8192
> 
> zone(0): 4096 pages.
> 
> zone(1): 4096 pages.
> 
> zone(2): 0 pages.
> 
> Kernel command line: BOOT_IMAGE=vmlinuz 
> ip=192.168.0.105:192.168.0.26:192.168.0.1:255.255.255.0 
> console=ttyS0,19200n81 root=/dev/nfs 
> nfsaddrs=192.168.0.105:192.168.0.26:255.255.255.0:soekris:eth0
>  nfsroot=192.168.0.26:/nfsroot/debian panic=10
> 
> Initializing CPU#0
> 
> Calibrating delay loop... 49.86 BogoMIPS
> 
> Memory: 29756k/32768k available (1321k kernel code, 2624k 
> reserved, 329k data, 200k init, 0k highmem)
> 
> Checking if this processor honours the WP bit even in 
> supervisor mode... Ok.
> 
> Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes)
> 
> Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
> 
> Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
> 
> Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
> 
> Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
> 
> CPU: AMD 486 DX/4-WB stepping 04
> 
> Checking 'hlt' instruction... OK.
> 
> POSIX conformance testing by UNIFIX
> 
> PCI: PCI BIOS revision 2.00 entry at 0xf00e1, last bus=1
> 
> PCI: Using configuration type 1
> 
> PCI: Probing PCI hardware
> 
> Linux NET4.0 for Linux 2.4
> 
> Based upon Swansea University Computer Society NET3.039
> 
> Initializing RT netlink socket
> 
> Starting kswapd
> 
> Journalled Block Device driver loaded
> 
> JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis 
> Communications AB.
> 
> pty: 256 Unix98 ptys configured
> 
> keyboard: Timeout - AT keyboard not present?(ed)
> 
> keyboard: Timeout - AT keyboard not present?(f4)
> 
> Serial driver version 5.05c (2001-07-08) with MANY_PORTS 
> SHARE_IRQ SERIAL_PCI enabled
> 
> ttyS00 at 0x03f8 (irq = 4) is a 16550A
> 
> ttyS01 at 0x02f8 (irq = 3) is a 16550A
> 
> Real Time Clock Driver v1.10e
> 
> block: 64 slots per queue, batch=16
> 
> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
> 
> Uniform Multi-Platform E-IDE driver Revision: 6.31
> 
> ide: Assuming 33MHz system bus speed for PIO modes; override 
> with idebus=xx
> 
> hda: SanDisk SDCFH-128, ATA DISK drive
> 
> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> 
> hda: 250880 sectors (128 MB) w/1KiB Cache, CHS=980/8/32
> 
> Partition check:
> 
> hda: hda1
> 
> floppy0: no floppy controllers found
> 
> loop: loaded (max 8 devices)
> 
> natsemi.c:v1.07 1/9/2001 Written by Donald Becker <becker at scyld.com>
> 
> http://www.scyld.com/network/natsemi.html
> 
> (unofficial 2.4.x kernel port, version 1.07+LK1.0.14, Nov 27, 
> 2001 Jeff Garzik, Tjeerd Mulder)
> 
> eth0: NatSemi DP8381[56] at 0xc2800000, 00:00:24:c1:1a:84, IRQ 11.
> 
> eth1: NatSemi DP8381[56] at 0xc2802000, 00:00:24:c1:1a:85, IRQ 5.
> 
> blkmtd: error, missing `device' name
> 
> NET4: Linux TCP/IP 1.0 for NET4.0
> 
> IP Protocols: ICMP, UDP, TCP, IGMP
> 
> IP: routing cache hash table of 512 buckets, 4Kbytes
> 
> TCP: Hash tables configured (established 2048 bind 2048)
> 
> eth0: link up.
> 
> eth0: Setting full-duplex based on negotiated link capability.
> 
> eth1: autonegotiation did not complete in 4000 usec.
> 
> IP-Config: Incomplete network configuration information.
> 
> eth0: remaining active for wake-on-lan
> 
> eth1: remaining active for wake-on-lan
> 
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> 
> Looking up port of RPC 100003/2 on 192.168.0.26
> 
> RPC: sendmsg returned error 101
> 
> portmap: RPC call returned error 101
> 
> Root-NFS: Unable to get nfsd port number from server, using default
> 
> Looking up port of RPC 100005/1 on 192.168.0.26
> 
> RPC: sendmsg returned error 101
> 
> portmap: RPC call returned error 101
> 
> Root-NFS: Unable to get mountd port number from server, using default
> 
> RPC: sendmsg returned error 101
> 
> mount: RPC call returned error 101
> 
> Root-NFS: Server returned error -101 while mounting /nfsroot/debian
> 
> VFS: Unable to mount root fs via NFS, trying floppy.
> 
> VFS: Insert root floppy and press ENTER
> 
> 


More information about the Soekris-tech mailing list