NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
boot from current failing on AMD64
Hi All,
I'm currently running a current kernel over a 5.1_STABLE userland, and
yesterday, for no real reason (other than quite fancying VESA modes on
boot) I decided to install the boot from the current tree I've used to
build the kernel.
However, much to my suprise it didn't work, and as I'll end up
upgrading to this at some point when 6.0 branches I thought it might
be worth seeing if anyone had any ideas why.
This happened with a boot from 5.99.48, however to check I've upgraded
to head (5.99.51) earlier today and the problem still exists.
I'm running the first stage bootstrap from 5.99.48 (installed with
installboot), and the secondary bootstrap from 5.1_STABLE (from feb
this year by the looks of it.) and the machine boots okay.
However if I copy the 'boot' from the current source tree it fails to
boot with a 'bad partition' error, and the first HD doesn't seem to
contain a netbsd partition at all (by typing 'dev'):-
http://ohmyno.co.uk/~ian/bsd/IMG_0359.JPG (Note, there's a /boot.cfg
file too, so it's deffo not seeing the partition at all.)
http://ohmyno.co.uk/~ian/bsd/IMG_0361.JPG
If I then boot a kernel from hd1 with -a I can specify wd0a as root,
boot single user and copy the old second stage boot file back. The
machine will then boot.
The boot drive hd0a is ffsv2, hd1a is ffsv1.
I've successfully used the boot from current in a virtual machine to
boot an ffsv2 partition.
The machine is a 4G AMD Phenom 9950 on an AMD780G motherboard, with
6SATA ports (5 populated), AHCI is enabled.
Can anyone think of what I'm missing?
Dmesg for the machine and details of the drives to follow...
Cheers,
Ian
Details for wd0a (won't boot with 5.99.51 bootloader):
<----------------------------------------------------------
(root:/usr/src)# fdisk wd0
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 969021, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 976773168
BIOS disk geometry:
cylinders: 1024, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 976773168
Partition table:
0: NetBSD (sysid 169)
start 63, size 976773105 (476940 MB, Cyls 0-969020), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
First active partition: 0
(root:/usr/src)# disklabel wd0
# /dev/rwd0d:
type: ESDI
disk: Hitachi HDP72505
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 969021
total sectors: 976773168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 976773105 63 4.2BSD 2048 16384 0 # (Cyl. 0*- 969020)
c: 976773105 63 unused 0 0 # (Cyl. 0*- 969020)
d: 976773168 0 unused 0 0 # (Cyl. 0 - 969020)
(root:/usr/src)# dumpfs -s wd0a
file system: /dev/rwd0a
endian little-endian
location 65536 (-b 128)
magic 19540119 (UFS2) time Wed May 4 19:54:54 2011
superblock location 65536 id [ 4c09b4c9 261117db ]
cylgrp dynamic inodes FFSv2 sblock FFSv2 fslevel 5
nbfree 7651458 ndir 196721 nifree 57293677 nffree 114389
ncg 2579 size 244193276 blocks 236745063
bsize 16384 shift 14 mask 0xffffc000
fsize 2048 shift 11 mask 0xfffff800
frag 8 shift 3 fsbtodb 2
bpg 11836 fpg 94688 ipg 22976
minfree 5% optim time maxcontig 4 maxbpg 2048
symlinklen 120 contigsumsize 4
maxfilesize 0x000080100202ffff
nindir 2048 inopb 64
avgfilesize 16384 avgfpdir 64
sblkno 40 cblkno 48 iblkno 56 dblkno 2928
sbsize 2048 cgsize 16384
csaddr 2928 cssize 43008
cgrotor 0 fmod 0 ronly 0 clean 0x02
wapbl version 0x1 location 2 flags 0x0
wapbl loc0 488288544 loc1 131072 loc2 512 loc3 32
flags wapbl
fsmnt /
volname swuid 0
(root:/usr/src)#
<----------------------------------------------------------
Details for hd1a (Will boot with current bootloader):
<----------------------------------------------------------
(root:/usr/src)# fdisk wd1
Disk: /dev/rwd1d
NetBSD disklabel disk geometry:
cylinders: 620181, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 625142448
BIOS disk geometry:
cylinders: 1024, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 625142448
Partition table:
0: NetBSD (sysid 169)
start 63, size 625142385 (305245 MB, Cyls 0-620180)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
No active partition.
(root:/usr/src)# disklabel wd1
# /dev/rwd1d:
type: ESDI
disk: Hitachi HDT72503
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 620181
total sectors: 625142448
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 625142385 63 4.2BSD 2048 16384 0 # (Cyl. 0*- 620180)
c: 625142385 63 unused 0 0 # (Cyl. 0*- 620180)
d: 625142448 0 unused 0 0 # (Cyl. 0 - 620180)
(root:/usr/src)# dumpfs -s wd1a
file system: /dev/rwd1a
endian little-endian
magic 11954 (UFS1) time Wed May 4 19:21:27 2011
superblock location 8192 id [ 45526d7f 2c0d823 ]
cylgrp dynamic inodes 4.4BSD sblock FFSv2 fslevel 4
nbfree 4471719 ndir 78179 nifree 37831200 nffree 103280
ncg 1656 size 156285596 blocks 153847943
bsize 16384 shift 14 mask 0xffffc000
fsize 2048 shift 11 mask 0xfffff800
frag 8 shift 3 fsbtodb 2
bpg 11798 fpg 94384 ipg 23296
minfree 5% optim time maxcontig 4 maxbpg 4096
symlinklen 60 contigsumsize 4
maxfilesize 0x000400400402ffff
nindir 4096 inopb 128
avgfilesize 16384 avgfpdir 64
sblkno 8 cblkno 16 iblkno 24 dblkno 1480
sbsize 2048 cgsize 16384
csaddr 1480 cssize 26624
cgrotor 0 fmod 0 ronly 0 clean 0x02
wapbl version 0x1 location 2 flags 0x0
wapbl loc0 312605760 loc1 131072 loc2 512 loc3 8
flags wapbl
fsmnt /usr2
volname swuid 0
(root:/usr/src)#
<----------------------------------------------------------
dmesg:
<----------------------------------------------------------
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 5.99.51 (interim) #0: Wed May 4 18:54:17 BST 2011
root%ohmyno.co.uk@localhost:/usr2/obj/sys/arch/amd64/compile/interim
total memory = 4063 MB
avail memory = 3922 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
. . (.)
mainbus0 (root)
cpu0 at mainbus0 apid 0: AMD Phenom(tm) 9950 Quad-Core Processor, id 0x100f23
cpu1 at mainbus0 apid 1: AMD Phenom(tm) 9950 Quad-Core Processor, id 0x100f23
cpu2 at mainbus0 apid 2: AMD Phenom(tm) 9950 Quad-Core Processor, id 0x100f23
cpu3 at mainbus0 apid 3: AMD Phenom(tm) 9950 Quad-Core Processor, id 0x100f23
ioapic0 at mainbus0 apid 4: pa 0xfec00000, version 21, 24 pins
acpi0 at mainbus0: Intel ACPICA 20110211
acpi0: X/RSDT: OemId <RS780 ,AWRDACPI,42302e31>, AslId <AWRD,00000000>
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
PMIO (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43
hpet0 at acpi0 (HPET, PNP0103): mem 0xfed00000-0xfed003ff irq 0,8
timecounter: Timecounter "hpet0" frequency 14318176 Hz quality 2000
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
SYSR (PNP0C02) at acpi0 not configured
pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
MEM (PNP0C01) at acpi0 not configured
acpifan0 at acpi0 (FAN, PNP0C0B): ACPI Fan
acpitz0 at acpi0 (THRM)ACPI Warning: For \_TZ_.THRM._PSL: Return
Package type mismatch at index 0 - found [NULL Object Descriptor],
expected Reference (20110211/nspredef-1125)
acpitz0: active cooling level 0: 80.0C
acpitz0: levels: critical 90.0 C, passive 80.0 C
acpiwmi0 at acpi0 (AOD, PNP0C14-0): ACPI WMI Interface
acpiwmibus at acpiwmi0 not configured
attimer1: attached to pcppi1
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 0x1022 product 0x9600 (rev. 0x00)
ppb0 at pci0 dev 1 function 0: vendor 0x1022 product 0x9602 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 5 function 0: vendor 0x1002 product 0x9610 (rev. 0x00)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
radeondrm0 at vga0: ATI Radeon HD 3200 Graphics
radeondrm0: Initialized radeon 1.29.0 20080613
ppb1 at pci0 dev 9 function 0: vendor 0x1022 product 0x9608 (rev. 0x00)
ppb1: PCI Express 2.0 <Root Port of PCI-E Root Complex>
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
wm0 at pci2 dev 0 function 0: Intel i82574L, rev. 0
wm0: interrupting at ioapic0 pin 17
wm0: PCI-Express bus
wm0: FLASH
wm0: Ethernet address 00:1b:21:55:99:14
makphy0 at wm0 phy 1: Marvell 88E1149 Gigabit PHY, rev. 1
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
ppb2 at pci0 dev 10 function 0: vendor 0x1022 product 0x9609 (rev. 0x00)
ppb2: PCI Express 2.0 <Root Port of PCI-E Root Complex>
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
mskc0 at pci3 dev 0 function 0, Yukon-2 EC Ultra rev. B0 (0x3): ioapic0 pin 18
msk0 at mskc0 port A: Ethernet address 00:18:38:04:a3:0b
makphy1 at msk0 phy 0: Marvell 88E1149 Gigabit PHY, rev. 1
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
ahcisata0 at pci0 dev 17 function 0: vendor 0x1002 product 0x4391
ahcisata0: interrupting at ioapic0 pin 22
ahcisata0: 64-bit DMA
ahcisata0: AHCI revision 1.1, 6 ports, 32 command slots, features 0xf7228080
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
atabus2 at ahcisata0 channel 2
atabus3 at ahcisata0 channel 3
atabus4 at ahcisata0 channel 4
atabus5 at ahcisata0 channel 5
ohci0 at pci0 dev 18 function 0: vendor 0x1002 product 0x4397 (rev. 0x00)
ohci0: interrupting at ioapic0 pin 16
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ohci1 at pci0 dev 18 function 1: vendor 0x1002 product 0x4398 (rev. 0x00)
ohci1: interrupting at ioapic0 pin 16
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
ehci0 at pci0 dev 18 function 2: vendor 0x1002 product 0x4396 (rev. 0x00)
ehci0: applying AMD SB600/SB700 USB freeze workaround
ehci0: interrupting at ioapic0 pin 17
ehci0: dropped intr workaround enabled
ehci0: EHCI version 1.0
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
ohci2 at pci0 dev 19 function 0: vendor 0x1002 product 0x4397 (rev. 0x00)
ohci2: interrupting at ioapic0 pin 18
ohci2: OHCI version 1.0, legacy support
usb3 at ohci2: USB revision 1.0
ohci3 at pci0 dev 19 function 1: vendor 0x1002 product 0x4398 (rev. 0x00)
ohci3: interrupting at ioapic0 pin 18
ohci3: OHCI version 1.0, legacy support
usb4 at ohci3: USB revision 1.0
ehci1 at pci0 dev 19 function 2: vendor 0x1002 product 0x4396 (rev. 0x00)
ehci1: applying AMD SB600/SB700 USB freeze workaround
ehci1: interrupting at ioapic0 pin 19
ehci1: dropped intr workaround enabled
ehci1: EHCI version 1.0
ehci1: companion controllers, 3 ports each: ohci2 ohci3
usb5 at ehci1: USB revision 2.0
piixpm0 at pci0 dev 20 function 0
piixpm0: vendor 0x1002 product 0x4385 (rev. 0x3a)
piixpm0: interrupting at SMI, polling
iic0 at piixpm0: I2C bus
ixpide0 at pci0 dev 20 function 1: ATI Technologies IXP IDE Controller
(rev. 0x00)
ixpide0: bus-master DMA support present
ixpide0: primary channel configured to compatibility mode
ixpide0: primary channel interrupting at ioapic0 pin 14
atabus6 at ixpide0 channel 0
ixpide0: secondary channel configured to compatibility mode
ixpide0: secondary channel interrupting at ioapic0 pin 15
atabus7 at ixpide0 channel 1
hdaudio0 at pci0 dev 20 function 2: HD Audio Controller
hdaudio0: interrupting at ioapic0 pin 16
hdafg0 at hdaudio0: Realtek ALC662
hdafg0: DAC00 2ch: Speaker [Jack], HP Out [Jack]
hdafg0: DIG01 2ch: SPDIF Out [Built-In]
hdafg0: ADC02 2ch: Line In [Jack], Mic In [Jack]
hdafg0: 2ch/2ch 44100Hz 48000Hz 96000Hz 16/16 20/32 24/32
audio0 at hdafg0: full duplex, playback, capture, independent
pcib0 at pci0 dev 20 function 3: vendor 0x1002 product 0x439d (rev. 0x00)
ppb3 at pci0 dev 20 function 4: vendor 0x1002 product 0x4384 (rev. 0x00)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled
ral0 at pci4 dev 4 function 0: vendor 0x1814 product 0x0301 (rev. 0x00)
ral0: interrupting at ioapic0 pin 23
ral0: 802.11 address 00:0e:2e:44:15:94
ral0: MAC/BBP RT2561C, RF RT2527
ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps
24Mbps 36Mbps 48Mbps 54Mbps
wm1 at pci4 dev 5 function 0: Intel i82541PI 1000BASE-T Ethernet, rev. 5
wm1: interrupting at ioapic0 pin 22
wm1: 32-bit 33MHz PCI bus
wm1: 64 word (6 address bits) MicroWire EEPROM
wm1: Ethernet address 00:0e:0c:84:8a:dd
igphy0 at wm1 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
pchb1 at pci0 dev 24 function 0: vendor 0x1022 product 0x1200 (rev. 0x00)
pchb2 at pci0 dev 24 function 1: vendor 0x1022 product 0x1201 (rev. 0x00)
pchb3 at pci0 dev 24 function 2: vendor 0x1022 product 0x1202 (rev. 0x00)
pchb4 at pci0 dev 24 function 3: vendor 0x1022 product 0x1203 (rev. 0x00)
pchb5 at pci0 dev 24 function 4: vendor 0x1022 product 0x1204 (rev. 0x00)
isa0 at pcib0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: HLT, lat 0 us, pow 0 mW
acpicpu0: P0: FFH, lat 2 us, pow 35100 mW, 2600 MHz
acpicpu0: P1: FFH, lat 2 us, pow 20685 mW, 1300 MHz
acpicpu1 at cpu1: ACPI CPU
acpicpu2 at cpu2: ACPI CPU
acpicpu3 at cpu3: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "TSC" frequency 2601606370 Hz quality 3000
uhub0 at usb0: vendor 0x1002 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
uhub1 at usb1: vendor 0x1002 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
uhub2 at usb2: vendor 0x1002 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 6 ports with 6 removable, self powered
uhub3 at usb3: vendor 0x1002 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 3 ports with 3 removable, self powered
uhub4 at usb4: vendor 0x1002 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub4: 3 ports with 3 removable, self powered
uhub5 at usb5: vendor 0x1002 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub5: 6 ports with 6 removable, self powered
ahcisata0 port 0: device present, speed: 3.0Gb/s
ahcisata0 port 1: device present, speed: 1.5Gb/s
ahcisata0 port 3: device present, speed: 3.0Gb/s
ahcisata0 port 4: device present, speed: 3.0Gb/s
ahcisata0 port 5: device present, speed: 3.0Gb/s
IPsec: Initialized Security Association Processing.
wd0 at atabus0 drive 0
wd0: <Hitachi HDP725050GLA360>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 465 GB, 969021 cyl, 16 head, 63 sec, 512 bytes/sect x 976773168 sectors
wd0: GPT GUID: 519b01c0-a84c-4dab-b8f6-a5eec90da634
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
(Ultra/133) (using DMA)
wd1 at atabus1 drive 0
wd1: <Hitachi HDT725032VLA360>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 298 GB, 620181 cyl, 16 head, 63 sec, 512 bytes/sect x 625142448 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
(Ultra/133) (using DMA)
wd2 at atabus3 drive 0
wd2: <Hitachi HDS722020ALA330>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 1863 GB, 3876021 cyl, 16 head, 63 sec, 512 bytes/sect x 3907029168 sectors
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd2(ahcisata0:3:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
(Ultra/133) (using DMA)
wd3 at atabus4 drive 0
wd3: <Hitachi HDS722020ALA330>
wd3: drive supports 16-sector PIO transfers, LBA48 addressing
wd3: 1863 GB, 3876021 cyl, 16 head, 63 sec, 512 bytes/sect x 3907029168 sectors
wd3: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd3(ahcisata0:4:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
(Ultra/133) (using DMA)
wd4 at atabus5 drive 0
wd4: <Hitachi HDS722020ALA330>
wd4: drive supports 16-sector PIO transfers, LBA48 addressing
wd4: 1863 GB, 3876021 cyl, 16 head, 63 sec, 512 bytes/sect x 3907029168 sectors
wd4: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd4(ahcisata0:5:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
(Ultra/133) (using DMA)
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex, playback, capture
raid0: RAID Level 5
raid0: Components: /dev/wd4a /dev/wd2a /dev/wd3a
raid0: Total Sectors: 7814058112 (3815458 MB)
raid0: GPT GUID: 16cdb55a-4432-11df-8352-0050430072f6
dk0 at raid0: 16cdb564-4432-11df-8352-0050430072f6
dk0: 7814057951 blocks at 128, type: ffs
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
<----------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index