6.1-PRERELEASE nfs root troubles

sergey akifiev sergey at ugai.uvd-omsk.su
Mon Mar 6 08:42:28 UTC 2006


currently i'm trying to setup diskless client, which netboots 6.1-PRERELEASE
kernel with help of etherboot.
i've built custom kernel with `sudo make -j4 buildkernel KERNCONF=DISKLESS
CPUTYPE=pentium-mmx -DNO_MODULES' and attached config.
kernell loads off tftp server fine, detecting devices, but traps, when trying
to mount root fs from nfs server.
i've managed to get copy of console messages, which i attach to this message.
any help appreciated. and... pls forgive my bad english :-)

-- 
WBFH: -error IL2: =SB=error
SGA16-RIPE
-------------- next part --------------
machine		i386
cpu		I486_CPU
cpu		I586_CPU
cpu		I686_CPU
ident		SERGEY
hints		"DISKLESS.hints"		# Default places to look for devices.
makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
options         KDB
options         KDB_TRACE
options         DDB
options         DDB_NUMSYM
options         GDB
options         BOOTP           # Use BOOTP to obtain IP address/hostname
                                # Requires NFSCLIENT and NFS_ROOT
options         BOOTP_NFSROOT   # NFS mount root filesystem using BOOTP info
options         BOOTP_NFSV3     # Use NFS v3 to NFS mount root
options         BOOTP_COMPAT    # Workaround for broken bootp daemons.
options		HZ=1000
options 	SCHED_4BSD		# 4BSD scheduler
options 	INET			# InterNETworking
options 	FFS			# Berkeley Fast Filesystem
options 	MD_ROOT			# MD is a potential root device
options 	NFSCLIENT		# Network Filesystem Client
options 	NFS_ROOT		# NFS usable as /, requires NFSCLIENT
options 	PROCFS			# Process filesystem (requires PSEUDOFS)
options 	PSEUDOFS		# Pseudo-filesystem framework
options 	GEOM_GPT		# GUID Partition Tables.
options 	COMPAT_43		# Compatible with BSD 4.3 [KEEP THIS!]
options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
options		COMPAT_FREEBSD5		# Compatible with FreeBSD5
options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	ADAPTIVE_GIANT		# Giant mutex is adaptive.

device		isa
device		pci

device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse
device		vga		# VGA video card driver
device		splash		# Splash screen and screen saver support
device		sc

device		agp		# support several AGP chipsets
device		npx

device		pmtimer

device		sio		# 8250, 16[45]50 based serial ports
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer

device		miibus		# MII bus support
device		ed		# NE[12]000, SMC Ultra, 3c503, DS8390 cards

device		loop		# Network loopback
device		mem		# Memory and kernel memory devices
device		io		# I/O device
device		random		# Entropy device
device		ether		# Ethernet support
device		pty		# Pseudo-ttys (telnet etc)
device		md		# Memory "disks"

device		bpf		# Berkeley packet filter

options         DEVICE_POLLING
-------------- next part --------------
Connected
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2006 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 6.1-PRERELEASE #15: Mon Mar  6 14:11:56 OMST 2006
    root at sergey:/usr/obj/usr/src/sys/DISKLESS
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium/P54C (133.27-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x52c  Stepping = 12
  Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 16777216 (16 MB)
avail memory = 11325440 (10 MB)
Intel Pentium detected, installing workaround for F00F bug
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
pci0: <mass storage, ATA> at device 7.1 (no driver attached)
pci0: <serial bus, USB> at device 7.2 (no driver attached)
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xc7fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
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
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ed0 at port 0x280-0x29f irq 5 on isa0
ed0: Ethernet address: 00:80:ad:b3:4f:24
ed0: type NE2000 (16 bit) 
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
Timecounter "TSC" frequency 133269985 Hz quality 800
Timecounters tick every 1.000 msec
Sending DHCP Discover packet from interface ed0 (00:80:ad:b3:4f:24)
Received DHCP Offer packet on ed0 from 94.1.0.85 (accepted) (no root path)
Sending DHCP Request packet from interface ed0 (00:80:ad:b3:4f:24)
Received DHCP Ack packet on ed0 from 94.1.0.85 (accepted) (got root path)
ed0 at 94.1.0.204 server 94.1.0.85 boot file kernel.DISKLESS
subnet mask 255.255.255.0 router 94.1.0.18 rootfs 94.1.0.85:/usr/diskless hostname diskless2 
Adjusted interface ed0
Trying to mount root from nfs:
NFS ROOT: 94.1.0.85:/usr/diskless


Fatal trap 18: integer divide fault while in kernel mode
instruction pointer	= 0x20:0xc0542ca9
stack pointer	        = 0x28:0xc315b7e0
frame pointer	        = 0x28:0xc315b880
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 1 (swapper)
[thread pid 1 tid 100007 ]
Stopped at      0xc0542ca9 = mountnfs+0x139:    idivl   %ecx,%eax
db> ~
[EOT]


More information about the freebsd-stable mailing list