Subject: port-amd64/33079: 3.0 and -current can't netboot
To: None <port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <jschauma@netmeister.org>
List: netbsd-bugs
Date: 03/14/2006 20:55:00
>Number:         33079
>Category:       port-amd64
>Synopsis:       3.0 and -current can't netboot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 14 20:55:00 +0000 2006
>Originator:     Jan Schaumann
>Release:        NetBSD 3.0_STABLE
>Organization:
	
>Environment:
	
	
>Description:

	I have an amd64 machine that will work just dandy when running
	a 2.1 kernel.  The machine is diskless and netboots, without
	any problems.

	A 3.0 or a -current kernel will not netboot.  They will properly
	pxeboot and start loading the kernel, but when the kernel tries
	to get a dhcp lease, it will time out.

	The problem is described in

	http://mail-index.netbsd.org/port-amd64/2006/02/07/0001.html
	http://mail-index.netbsd.org/port-amd64/2006/02/23/0003.html

	Note: the problem also exists on port-i386.

	The network interface in question is a bge (onboard).

	Below is the dmesg of the 2.1 kernel:

NetBSD 2.1_STABLE (NONNE64) #4: Fri Mar 10 11:19:48 EST 2006

jschauma@doppelbock.hpcf.cs.stevens-tech.edu:/usr/2/src/sys/arch/amd64/compile/obj/NONNE64
total memory = 4095 MB
avail memory = 3950 MB
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (MSI      RHAPSODY    )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Dual Core AMD Opteron(tm) Processor 265, 1794.97 MHz
cpu0: features: f7dbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features: f7dbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu0: features: f7dbfbff<FXSR,SSE,SSE2,B28,LONG,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu0: L2 cache 1 MB 64B/line 16-way
cpu0: ITLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: calibrating local timer
cpu0: apic clock running at 199 MHz
cpu0: 16 page colors
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Dual Core AMD Opteron(tm) Processor 265, 1794.89 MHz
cpu1: features: f7dbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features: f7dbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu1: features: f7dbfbff<FXSR,SSE,SSE2,B28,LONG,3DNOW2,3DNOW>
cpu1: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu1: L2 cache 1 MB 64B/line 16-way
cpu1: ITLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu1: DTLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu2 at mainbus0: apid 2 (application processor)
cpu2: starting
cpu2: Dual Core AMD Opteron(tm) Processor 265, 1794.89 MHz
cpu2: features: f7dbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu2: features: f7dbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu2: features: f7dbfbff<FXSR,SSE,SSE2,B28,LONG,3DNOW2,3DNOW>
cpu2: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu2: L2 cache 1 MB 64B/line 16-way
cpu2: ITLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu2: DTLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu3 at mainbus0: apid 3 (application processor)
cpu3: starting
cpu3: Dual Core AMD Opteron(tm) Processor 265, 1794.89 MHz
cpu3: features: f7dbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu3: features: f7dbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu3: features: f7dbfbff<FXSR,SSE,SSE2,B28,LONG,3DNOW2,3DNOW>
cpu3: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu3: L2 cache 1 MB 64B/line 16-way
cpu3: ITLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu3: DTLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
mpbios: bus 0 is type PCI   
mpbios: bus 1 is type PCI   
mpbios: bus 2 is type PCI   
mpbios: bus 3 is type PCI   
mpbios: bus 4 is type ISA   
ioapic0 at mainbus0 apid 4 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 24 pins
ioapic1 at mainbus0 apid 5 (I/O APIC)
ioapic1: pa 0xfebfe000, version 11, 4 pins
ioapic2 at mainbus0 apid 6 (I/O APIC)
ioapic2: pa 0xfebff000, version 11, 4 pins
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
ppb0 at pci0 dev 6 function 0: Advanced Micro Devices AMD8111 I/O Hub (rev.
0x07)
pci1 at ppb0 bus 3
pci1: i/o space, memory space enabled
Advanced Micro Devices AMD8111 USB Host Controller (USB serial bus, interface
0x10, revision 0x0b) at pci1 dev 0 function 0 not configured
Advanced Micro Devices AMD8111 USB Host Controller (USB serial bus, interface
0x10, revision 0x0b) at pci1 dev 0 function 1 not configured
ATI Technologies Rage XL (VGA display, revision 0x27) at pci1 dev 4 function 0
not configured
pcib0 at pci0 dev 7 function 0
pcib0: Advanced Micro Devices AMD8111 LPC Controller (rev. 0x05)
Advanced Micro Devices AMD8111 SMBus Controller (SMBus serial bus, revision
0x02) at pci0 dev 7 function 2 not configured
Advanced Micro Devices AMD8111 ACPI Controller (miscellaneous bridge, revision
0x05) at pci0 dev 7 function 3 not configured
ppb1 at pci0 dev 10 function 0: Advanced Micro Devices AMD8131 PCI-X Tunnel
(rev. 0x12)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
Adaptec (2nd PCI Vendor ID) product 0x801d (SCSI mass storage, revision 0x10)
at pci2 dev 3 function 0 not configured
Adaptec (2nd PCI Vendor ID) product 0x801d (SCSI mass storage, revision 0x10)
at pci2 dev 3 function 1 not configured
Advanced Micro Devices AMD8131 IO Apic (interrupt system, interface 0x10,
revision 0x01) at pci0 dev 10 function 1 not configured
ppb2 at pci0 dev 11 function 0: Advanced Micro Devices AMD8131 PCI-X Tunnel
(rev. 0x12)
pci3 at ppb2 bus 1
pci3: memory space enabled
bge0 at pci3 dev 5 function 0: Broadcom BCM5704C Dual Gigabit Ethernet
bge0: interrupting at ioapic2 pin 1 (irq 11)
bge0: ASIC unknown BCM5704 (0x2100), Ethernet address 00:30:48:75:d2:94
brgphy0 at bge0 phy 1: BCM5704 1000BASE-T media interface, rev. 0
brgphy0: using BCM5704 DSP patch
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
bge1 at pci3 dev 5 function 1: Broadcom BCM5704C Dual Gigabit Ethernet
bge1: interrupting at ioapic2 pin 2 (irq 15)
bge1: ASIC unknown BCM5704 (0x2100), Ethernet address 00:30:48:75:d2:95
brgphy1 at bge1 phy 1: BCM5704 1000BASE-T media interface, rev. 0
brgphy1: using BCM5704 DSP patch
brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
Advanced Micro Devices AMD8131 IO Apic (interrupt system, interface 0x10,
revision 0x01) at pci0 dev 11 function 1 not configured
pchb0 at pci0 dev 24 function 0
pchb0: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
pchb1 at pci0 dev 24 function 1
pchb1: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
pchb2 at pci0 dev 24 function 2
pchb2: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
pchb3 at pci0 dev 24 function 3
pchb3: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
pchb4 at pci0 dev 25 function 0
pchb4: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
pchb5 at pci0 dev 25 function 1
pchb5: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
pchb6 at pci0 dev 25 function 2
pchb6: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
pchb7 at pci0 dev 25 function 3
pchb7: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
ioapic2: enabling
ioapic1: enabling
ioapic0: enabling
boot device: bge0
root on bge0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 172.16.4.1
nfs_boot: my_name=c033
nfs_boot: my_domain=hpcf.cs.stevens-tech.edu
nfs_boot: my_addr=172.16.4.33
nfs_boot: my_mask=255.255.252.0
nfs_boot: gateway=155.246.89.1
nfs_boot: add route, error=51
root on 172.16.4.1:/usr/local/node.64
root file system type: nfs
cpu1: CPU 1 running
cpu2: CPU 2 running
cpu3: CPU 3 running


>How-To-Repeat:

	Take a 3.0 kernel and try to netboot it.

>Fix:
	

>Unformatted: