[ previous ] [ next ] [ threads ]
 
 From:  =?iso-8859-1?Q?Martin_Stenh=E5rd?= <Martin dot Stenhard at perstorp dot com>
 To:  <m0n0wall at lists dot m0n0 dot ch>
 Subject:  mounting root filesystem PXE boot
 Date:  Mon, 7 Mar 2005 12:10:51 +0100
Hi

I have tried setting up a PXE boot environment for Soekris net4526 and net4501 with out success. I
have followed the guide http://www.m0n0.ch/wall/hack/ to set up the environment. It works so far
that box boots up and loading the kernel, mfsroot.bin but then I get the following messages. Does
anyone have an idea what the problem is? For the config.xml i have done the following mkdir cf/conf
; cp conf.default/config.xml cf/conf in the mfsroot.bin.

Halt message.

Mounting root from ufs:/dev/md0c
*******************************************************************************
* FATAL ERROR                                                                 *
* The device that contains the configuration file (config.xml) could not be   *
* found. m0n0wall cannot continue booting.                                    *
*******************************************************************************


Waiting (max 60 seconds) for system process `vnlru' to stop...stopped
Waiting (max 60 seconds) for system process `bufdaemon' to stop...stopped
Waiting (max 60 seconds) for system process `syncer' to stop...stopped

syncing disks...
done
Uptime: 8s

The operating system has halted.
Please press any key to reboot.



Setting files
dhcpd.conf
ddns-update-style none;
option subnet-mask 255.255.255.0;

subnet 192.168.1.0 netmask 255.255.255.0 {
     range 192.168.1.10 192.168.1.200;
     option routers 192.168.1.254;
}

host soekris {
     hardware ethernet 0:0:24:c3:40:d8;
     fixed-address 192.168.1.100;
     filename "pxeboot";
     next-server 192.168.1.1;
     option root-path "/tftpboot";
 }


/tftpboot
ptpc278-BSD# ls -l
total 11388
drwxr-xr-x  3 root  wheel       512 Feb 17 16:54 boot
-rwxr-xr-x  1 root  wheel    977192 Feb 23 11:38 kernel.gz
-rw-r--r--  1 root  wheel  10485760 Feb 23 12:14 mfsroot.bin
-rw-r--r--  1 root  wheel    157696 Feb 17 13:56 pxeboot

loader.conf
rootfs_load="YES"
rootfs_name="mfsroot.bin"
rootfs_type="mfs_root"
autoboot_delay=1

loader.rc
include /boot/loader.4th
start



Her is the complete output of the boot on a net4526.

B o o t i n g   [ k e r n e l ] . . . 
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.10-RELEASE #0: Fri Aug  6 13:31:46 CEST 2004
    root at nb dot neon1 dot net:/usr/src/sys/compile/M0N0WALL_NET45XX
Timecounter "i8254"  frequency 1189162 Hz
CPU: AMD Enhanced Am486DX4/Am5x86 Write-Back (486-class CPU)
  Origin = "AuthenticAMD"  Id = 0x494  Stepping = 4
  Features=0x1<FPU>
real memory  = 67108864 (65536K bytes)
avail memory = 51785728 (50572K bytes)
Preloaded elf kernel "kernel" at 0xc0d21000.
Preloaded mfs_root "/mfsroot.bin" at 0xc0d2109c.
md0: Preloaded image </mfsroot.bin> 10485760 bytes at 0xc031f0d0
md1: Malloc disk
Timecounter "ELAN"  frequency 8333333 Hz
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <AMD Elan SC520 host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
sis0: <NatSemi DP83815 10/100BaseTX> port 0xe000-0xe0ff mem 0xa0000000-0xa0000ff
f irq 10 at device 18.0 on pci0
sis0: Ethernet address: 00:00:24:c3:40:d8
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0: <ISA bus> on motherboard
orm0: <Option ROM> at iomem 0xc8000-0xd0fff on isa0
pmtimer0 on isa0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x30 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
Elan-mmcr driver: MMCR at 0xc597d000
BRIDGE 020214 loaded
IPsec: Initialized Security Association Processing.
IP Filter: v3.4.33 initialized.  Default = block all, Logging = enabled
ad0: 61MB <064MB ATA Flash Disk> [977/4/32] at ata0-master BIOSPIO
no B_DEVMAGIC (bootdev=0)
Mounting root from ufs:/dev/md0c


*******************************************************************************
* FATAL ERROR                                                                 *
* The device that contains the configuration file (config.xml) could not be   *
* found. m0n0wall cannot continue booting.                                    *
*******************************************************************************

Waiting (max 60 seconds) for system process `vnlru' to stop...stopped
Waiting (max 60 seconds) for system process `bufdaemon' to stop...stopped
Waiting (max 60 seconds) for system process `syncer' to stop...stopped

syncing disks... 
done
Uptime: 8s

The operating system has halted.
Please press any key to reboot.

/Martin