From owner-freebsd-questions@FreeBSD.ORG Tue Mar 20 07:37:15 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 42A2A16A401 for ; Tue, 20 Mar 2007 07:37:15 +0000 (UTC) (envelope-from gurdiga@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.freebsd.org (Postfix) with ESMTP id BBE7213C457 for ; Tue, 20 Mar 2007 07:37:14 +0000 (UTC) (envelope-from gurdiga@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so212056nfc for ; Tue, 20 Mar 2007 00:37:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GUX1lNTvuKJy2R2ea4x5d/O3dAn5aTmEpUBmX7oGRR8mQB5UkCJcQm2VIXnTyhz59gduuTwQ+NYPWBQMpvozz3om1ePkB8ioARuJmuhqjwV5VRg5dmJNaWyYUxymyfjB19ZkRnSG8lHiagke6OE6KH/RUyR8yp6dJzt4ATwcGAc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dzsWDb1kg7PDbgqE/Quk+lzqDb/YQ+j6Hq0SfhTVgBXqM/PouCqTVBHUE6yVO2IVL0UXHsygIiSpNIInUHUnoI/J4NlYlk593Wq/WeQ8qhEa8rav50AwyVq0fMa6DufNue+INUyHq8MXhMcEKhN8Iihj4580EEwqpXI2/r1nZ4Q= Received: by 10.78.201.2 with SMTP id y2mr2859642huf.1174376233293; Tue, 20 Mar 2007 00:37:13 -0700 (PDT) Received: by 10.78.32.19 with HTTP; Tue, 20 Mar 2007 00:37:13 -0700 (PDT) Message-ID: Date: Tue, 20 Mar 2007 09:37:13 +0200 From: "Vlad GURDIGA" To: freebsd-questions@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Fwd: pause before "Trying to mount root from ufs:" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2007 07:37:15 -0000 Hello, Very glad to be back with a a solution to my earlier problem: the key was the SCSI_DELAY option in kernel: I've change it from the default 5000 to 500 (I guess milliseconds) and now th delay before "Trying to mount root from ufs" is gone. The way to solution was not very smart but simple, and I'm going to tell it because it may help with other troubles too: I tried to boot with a 6.0-RELEASE but the delay was still there, then I tried to boot from a 5.4-RELEASE boot CD and it went smooth! No delay! A diff between output of sysctl -a on both versions revealed a possible difference: the sysctl kern.cam.scsi_delay variable is not present on 5.4-RELEASE (GENERIC) at all. There is also a chapter in handbook about this: http://graphics.itb.ac.id/wnugroho/freebsd/handbook/configtuning-disk.html 11.12.1.6 SCSI_DELAY (kern.cam.scsi_delay). Have a nice day! ---------- Forwarded message ---------- From: Vlad GURDIGA Date: 15-Mar-2007 10:20 Subject: pause before "Trying to mount root from ufs:" To: freebsd-questions@freebsd.org Hello, My motherboard Intel D955XBK died these day, I took it to service center and they gave me a new one of another model: DP965LT. On my home computer I have dual boot with Windows XP and FreeBSD 6.2-STABLE. I've expected Windows XP not to boot at all after the change, but fortunately it successfully came up, found all new component and everything went smooth. What I did not expect at all is that FreeBSD showed some problems: there is a short pause on boot before (I've measured about 4 seconds) before "SMP: AP CPU #1 Launched!", and a long one (I've measured about 90 seconds!!!) between this message and "Trying to mount root from ufs:/dev/ad8s2a". Last night (14.03.2007) I've updated mys source tree (6.2-STABLE) an rebuilt the work and kernel hoping for salvation to come, but it did not. Rebuilt SMP-GENERIC but it did not help either. Another (bad) change that came with the motherboard change is that Xorg is hanging on start without any message. If I try to get back to console with Alt-Ctrl-FN, it beeps. Alt-Ctrl-Backspace does not work either. Keyboard is working: NumLock responds and fortunately Alt-Ctrl-Del works fine too, being the only way out of Xorg's hang. With the exception of motherboard nothing changed in hardware. What could be the cause? Here is the dmesg output. -------- dmesg output start -------- Copyright (c) 1992-2007 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 6.2-STABLE #0: Wed Mar 14 23:33:20 EET 2007 root@kpax:/usr/src/sys/i386/compile/kpax.smp WARNING: MPSAFE network stack disabled, expect reduced performance. ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2802.82-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf44 Stepping = 4 Features=0xbfebfbff Features2=0x641d> AMD Features=0x20100000 Cores per package: 2 real memory = 1055305728 (1006 MB) avail memory = 1019219968 (972 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 p4tcc0: on cpu0 cpu1: on acpi0 p4tcc1: on cpu1 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 drm0: port 0x2000-0x20ff mem 0x40000000-0x4fffffff,0x50210000-0x5021ffff irq 16 at device 0.0 on pci1 info: [drm] Initialized radeon 1.25.0 20060524 pci1: at device 0.1 (no driver attached) pci0: at device 3.0 (no driver attached) em0: port 0x30c0-0x30df mem 0x50300000-0x5031ffff,0x50324000-0x50324fff irq 20 at device 25.0 on pci0 em0: Ethernet address: 00:19:d1:09:de:de em0: [GIANT-LOCKED] uhci0: port 0x30a0-0x30bf irq 16 at device 26.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x3080-0x309f irq 21 at device 26.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ehci0: mem 0x50325400-0x503257ff irq 18 at device 26.7 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 2 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 4 ports with 4 removable, self powered pci0: at device 27.0 (no driver attached) pcib2: at device 28.0 on pci0 pci2: on pcib2 pcib3: at device 28.1 on pci0 pci3: on pcib3 atapci0: port 0x1018-0x101f,0x1024-0x1027,0x1010-0x1017,0x1020-0x1023,0x1000-0x100f mem 0x50100000-0x501001ff irq 17 at device 0.0 on pci3 ata2: on atapci0 ata3: on atapci0 pcib4: at device 28.2 on pci0 pci4: on pcib4 pcib5: at device 28.3 on pci0 pci5: on pcib5 pcib6: at device 28.4 on pci0 pci6: on pcib6 uhci2: port 0x3060-0x307f irq 23 at device 29.0 on pci0 uhci2: [GIANT-LOCKED] usb3: on uhci2 usb3: USB revision 1.0 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered uhci3: port 0x3040-0x305f irq 19 at device 29.1 on pci0 uhci3: [GIANT-LOCKED] usb4: on uhci3 usb4: USB revision 1.0 uhub4: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub4: 2 ports with 2 removable, self powered uhci4: port 0x3020-0x303f irq 18 at device 29.2 on pci0 uhci4: [GIANT-LOCKED] usb5: on uhci4 usb5: USB revision 1.0 uhub5: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub5: 2 ports with 2 removable, self powered ehci1: mem 0x50325000-0x503253ff irq 23 at device 29.7 on pci0 ehci1: [GIANT-LOCKED] usb6: EHCI version 1.0 usb6: companion controllers, 2 ports each: usb3 usb4 usb5 usb6: on ehci1 usb6: USB revision 2.0 uhub6: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub6: 6 ports with 6 removable, self powered pcib7: at device 30.0 on pci0 pci7: on pcib7 fwohci0: mem 0x50004000-0x500047ff,0x50000000-0x50003fff irq 19 at device 3.0 on pci7 fwohci0: [GIANT-LOCKED] fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:90:27:00:01:d9:79:fe fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:90:27:d9:79:fe fwe0: Ethernet address: 02:90:27:d9:79:fe sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0x3138-0x313f,0x314c-0x314f,0x3130-0x3137,0x3148-0x314b,0x3110-0x311f,0x3100-0x310f irq 19 at device 31.2 on pci0 ata4: on atapci1 ata5: on atapci1 pci0: at device 31.3 (no driver attached) atapci2: port 0x3128-0x312f,0x3144-0x3147,0x3120-0x3127,0x3140-0x3143,0x30f0-0x30ff,0x30e0-0x30ef irq 19 at device 31.5 on pci0 ata6: on atapci2 ata7: on atapci2 fdc0: port 0x3f0-0x3f5,0x3f0 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: port 0x378-0x37f,0x778-0x77f irq 7 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcffff,0xd0000-0xd0fff,0xd1000-0xd1fff on isa0 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata1 at port 0x170-0x177,0x376 irq 15 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec IPsec: Initialized Security Association Processing. ad8: 152627MB at ata4-master SATA150 ****** here are about 4 seconds of pause ****** SMP: AP CPU #1 Launched! ****** here are about 90 seconds of pause ****** Trying to mount root from ufs:/dev/ad8s2a -------- dmesg output end -------- -------- loader.conf begin -------- autoboot_delay="-1" # Delay in seconds before autobooting, # set to -1 if you don't want user to be # allowed to interrupt autoboot process and # escape to the loader prompt beastie_disable="YES" # Turn the beastie boot menu on and off sound_load="YES" # Digital sound subsystem snd_hda_load="YES" linux_load="YES" linprocfs_load="YES" accf_http_load="YES" cpufreq_load="YES" -------- loader.conf end --------