From owner-freebsd-bugs@FreeBSD.ORG Wed Mar 5 22:40:01 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CE9A1065675 for ; Wed, 5 Mar 2008 22:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 01E588FC1B for ; Wed, 5 Mar 2008 22:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m25Me0Lh014404 for ; Wed, 5 Mar 2008 22:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m25Me0Jw014403; Wed, 5 Mar 2008 22:40:00 GMT (envelope-from gnats) Resent-Date: Wed, 5 Mar 2008 22:40:00 GMT Resent-Message-Id: <200803052240.m25Me0Jw014403@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Esoga Simmons Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8C8B106566B for ; Wed, 5 Mar 2008 22:39:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id AFE1E8FC1E for ; Wed, 5 Mar 2008 22:39:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m25MaFot099244 for ; Wed, 5 Mar 2008 22:36:15 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m25MaFhG099243; Wed, 5 Mar 2008 22:36:15 GMT (envelope-from nobody) Message-Id: <200803052236.m25MaFhG099243@www.freebsd.org> Date: Wed, 5 Mar 2008 22:36:15 GMT From: Esoga Simmons To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/121409: [WORKAROUND] /boot/loader Can't work out which disk we are booting from X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 22:40:01 -0000 >Number: 121409 >Category: kern >Synopsis: [WORKAROUND] /boot/loader Can't work out which disk we are booting from >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 05 22:40:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Esoga Simmons >Release: System: FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #0: >Organization: Home >Environment: FreeBSD HOSTNAME 7.0-STABLE FreeBSD 7.0-STABLE #0: Wed Mar 5 18:47:36 MST 2008 freebsd7-pr@i-cnct.com:/usr/obj/usr/src/sys/MEG i386 >Description: read /usr/src/updating read all current pr reports previous OS FreeBSD 6.3 make.conf has no build options (although have also built with NO_PROFILE=true and CFLAGS= -0 -pipe but no difference in results) building from src # 1. `cd /usr/src' (or to the directory containing your source tree). # 2. `make buildworld' # 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # [steps 3. & 4. can be combined by using the "kernel" target] # 5. `reboot' (in single user mode: boot -s from the loader prompt). # 6. `mergemaster -p' # 7. `make installworld' # 8. `make delete-old' # 9. `mergemaster' # 10. `reboot' After final mergemaster and reboot, /boot/loader gives error: Guessed BIOS device 0x%x not found by probes, defaulting to disk0: Can't work out which disk we are booting from. [WORKAROUND] Interrupt the boot process before the error, boot from: boot: /boot/loader.old or use the fix-it disk and copy loader to loader.sav, loader.old to loader # fsck_ffs /dev/da0s1 # mkdir /mnt/root # mount -rw /dev/da0s1a /mnt/root # mv /mnt/root/boot/loader /mnt/root/boot/loader.sav # cp /mnt/root/boot/loader.old /mnt/root/boot/loader I can then boot from loader.old # dmesg Copyright (c) 1992-2008 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 7.0-STABLE #0: Wed Mar 5 18:47:36 MST 2008 freebsd7-pr@i-cnct.com:/usr/obj/usr/src/sys/MEG Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2392.95-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 Features=0xbfebfbff Features2=0x400 Logical CPUs per core: 2 real memory = 536805376 (511 MB) avail memory = 511320064 (487 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 24-47 on motherboard ioapic2 irqs 48-71 on motherboard lapic0: Forcing LINT1 to edge trigger kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) hptrr: HPT RocketRAID controller driver v1.1 (Mar 5 2008 18:47:05) acpi0: on motherboard ACPI Warning (dswload-0794): Type override - [DEB_] had invalid type (Integer) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [MLIB] had invalid type (Integer) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [DATA] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [SIO_] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [LEDP] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [GPEN] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [GPST] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [WUES] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [WUSE] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [SBID] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [SWCE] had invalid type (String) for Scope operator, changed to (Scope) [20070320] acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi_timer0: couldn't allocate resource (port 0x408) acpi_ec0: port 0xca6,0xca7 on acpi0 cpu0: on acpi0 p4tcc0: on cpu0 cpu1: on acpi0 p4tcc1: on cpu1 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.1 (no driver attached) pcib1: at device 3.0 on pci0 pci2: on pcib1 pcib2: at device 29.0 on pci2 pci4: on pcib2 asr0: mem 0xfea00000-0xfeafffff,0xfb000000-0xfbffffff,0xf8000000-0xf9ffffff irq 48 at device 8.0 on pci4 asr0: [GIANT-LOCKED] asr0: [ITHREAD] asr0: ADAPTEC 2000S FW Rev. 380E, 2 channel, 256 CCBs, Protocol I2O pcib3: at device 31.0 on pci2 pci3: on pcib3 em0: port 0x2040-0x207f mem 0xfe7c0000-0xfe7dffff irq 30 at device 7.0 on pci3 em0: Ethernet address: 00:07:e9:04:93:b2 em0: [FILTER] em1: port 0x2000-0x203f mem 0xfe7e0000-0xfe7fffff irq 31 at device 7.1 on pci3 em1: Ethernet address: 00:07:e9:04:93:b3 em1: [FILTER] pci0: at device 3.1 (no driver attached) uhci0: port 0x3020-0x303f irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x3000-0x301f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered pcib4: at device 30.0 on pci0 pci1: on pcib4 vgapci0: port 0x1000-0x10ff mem 0xfd000000-0xfdffffff,0xfe6f0000-0xfe6f0fff irq 17 at device 12.0 on pci1 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x3a0-0x3af at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pci0: at device 31.3 (no driver attached) atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] fdc0: port 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] sio1: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 on acpi0 sio1: type 16550A sio1: [FILTER] acpi_timer0: couldn't allocate resource (port 0x408) pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc7fff,0xc8000-0xcdfff,0xce000-0xcf7ff,0xcf800-0xd0fff,0xe4000-0xe7fff pnpid ORM0000 on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec hptrr: no controller detected. acd0: CDROM at ata1-master PIO4 da0 at asr0 bus 1 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device ses0 at asr0 bus 1 target 6 lun 0 ses0: Fixed Processor SCSI-2 device lapic1: Forcing LINT1 to edge trigger SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/da0s1a em1: link state changed to UP >How-To-Repeat: Install FreeBSD6.3 and upgrade to FreeBSD7 using src. After final mergemaster, reboot. Error happens in trying to load from /boot/loader Have other server/system that is similar in hardware but only 1 processor. Build works on this machine (although I think that is a red herring). Have seen some other similar problem reports http://groups.google.com/group/lucky.freebsd.questions/browse_thread/thread/f18554c471e8d29e/bbb6c94e7b6e655d?lnk=raot >Fix: [WORKAROUND] Break out of the boot process before the failure and: boot: /boot/loader.old Then # mv /boot/loader /boot/loader.sav # cp /boot/loader.old /boot/loader >Release-Note: >Audit-Trail: >Unformatted: