Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Apr 2013 20:31:04 +0100
From:      Jeff Penn <jeff@jrpenn.demon.co.uk>
To:        freebsd-arm@freebsd.org
Subject:   Re: Net booting current snapshot on openrd and sheevaplug
Message-ID:  <20130404193104.GA91842@jrpenn.demon.co.uk>
In-Reply-To: <20130403183428.GA81559@jrpenn.demon.co.uk>
References:  <20130323183037.GA39897@beastie.jrpenn.demon.co.uk> <1364067518.1157.163.camel@revolution.hippie.lan> <20130323231302.GA60043@jrpenn.demon.co.uk> <1364092848.1157.165.camel@revolution.hippie.lan> <20130325222845.GA27893@jrpenn.demon.co.uk> <20130330214014.GA1503@jrpenn.demon.co.uk> <20130403183428.GA81559@jrpenn.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Using net/etherboot (default options) I tried booting a diskless kernel
compiled from the same snapshot of current with the following changes:

--- GENERIC	2013-03-05 01:06:41.000000000 +0000
+++ MYCURRENT	2013-04-04 18:02:05.000000000 +0100
@@ -25,6 +25,7 @@
 
 makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
 makeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
+hints		"GENERIC.hints"
 
 options 	SCHED_ULE		# ULE scheduler
 options 	PREEMPTION		# Enable kernel thread preemption
@@ -43,6 +44,10 @@
 options 	NFSD			# New Network Filesystem Server
 options 	NFSLOCKD		# Network Lock Manager
 options 	NFS_ROOT		# NFS usable as /, requires NFSCL
+options         BOOTP                   # Use BOOTP to obtain IP address/hostname
+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 	MSDOSFS			# MSDOS Filesystem
 options 	CD9660			# ISO 9660 Filesystem
 options 	PROCFS			# Process filesystem (requires PSEUDOFS)

The kernel was loaded using tftp, but failed to get as far as the arm
systems (dmesg copied by hand):

...
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
smist0: <SpeedStep SMI> on cpu0
device_attach: smist0 attach returned 6
panic: et_start: period not specified for periodic-only timer
cpuid = 0
KDB: enter: panic
[ thread pid 0 tid 100000 ]
Stopped at	kbd_enter+0x3d: movl	$0,kbd_why
db>

The same procedure was followed for 9.1-RELEASE and the boot was a
success (note the old hardware - not sure if this could account for the
failure with current):

Copyright (c) 1992-2012 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.1-RELEASE-p2 #0: Thu Apr  4 19:18:35 BST 2013
    root@beastie.jrpenn.demon.co.uk:/usr/obj/usr/src/sys/DISKLESS i386
CPU: Intel Pentium III (698.41-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Family = 6  Model = 8  Stepping = 3
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 402653184 (384 MB)
avail memory = 370495488 (353 MB)
kbd1 at kbdmux0
ctl: CAM Target Layer loaded
acpi0: <PTLTD   RSDT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pcib0: Length mismatch for 3 range: 80000 vs 7ffff
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> on hostb0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1460-0x146f at device 7.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x1440-0x145f irq 9 at device 7.2 on pci0
usbus0 on uhci0
pci0: <bridge> at device 7.3 (no driver attached)
vgapci0: <VGA-compatible display> mem 0xf5000000-0xf5ffffff irq 11 at device 13.0 on pci0
pci0: <multimedia, audio> at device 15.0 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0x1000-0x10ff mem 0xf4000000-0xf40000ff irq 3 at device 17.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> PHY 0 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:06:4f:80:94:ba
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
ppc0: <Parallel port> port 0x378-0x37b irq 7 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model MouseMan+, device ID 0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xe0000-0xe3fff,0xe4000-0xeffff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
smist0: <SpeedStep SMI> on cpu0
device_attach: smist0 attach returned 6
Timecounters tick every 1.000 msec
usbus0: 12Mbps Full Speed USB v1.0
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
uhub0: 2 ports with 2 removable, self powered
cd0 at ata1 bus 0 scbus1 target 0 lun 0
cd0: <LG CD-RW CED-8080B 1.04> Removable CD-ROM SCSI-0 device 
cd0: 16.700MB/s transfers (WDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present
Sending DHCP Discover packet from interface rl0 (00:06:4f:80:94:ba)
Received DHCP Offer packet on rl0 from 192.168.0.10 (accepted) (no root path)
Received DHCP Offer packet on rl0 from 192.168.0.10 (ignored) (no root path)
Received DHCP Offer packet on rl0 from 192.168.0.10 (ignored) (no root path)
Sending DHCP Request packet from interface rl0 (00:06:4f:80:94:ba)
Received DHCP Ack packet on rl0 from 192.168.0.10 (accepted) (got root path)
rl0 at 192.168.0.12 server 192.168.0.10 boot file i386/kernel
subnet mask 255.255.255.0 router 192.168.0.1 rootfs 192.168.0.10:/ hostname debian 
Adjusted interface rl0
Timecounter "TSC" frequency 698407512 Hz quality 800
Trying to mount root from nfs: []...
NFS ROOT: 192.168.0.10:/

Jeff



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130404193104.GA91842>