Re: Loader broken in Head?

From: Mike Pritchard <mpp_at_mail.mppsystems.com>
Date: Wed, 31 Oct 2007 20:37:48 -0500
> On Friday 26 October 2007 08:03:21 pm Red Neck wrote:
> Hi,
> 
> Within the last day (26/10/07) I've built and installed the sources
>  from CVS
> Head only to find the stage 3 boot loader, /boot/loader, not working.
>   I'm
> using a Mac Pro with 3 internal hard drives.  On one hard disk I have
> FreeBSD amd64 installed, occupying the entire disk (MBR).  Using the
 sources
> from Head, loader just freezes after displaying its initial messages
 with a
> constantly spinning cursor.  To access the system I have to revert to
 using
> an older loader such as 6.2 release's.  I have attached my make and
 kernel
> config.

I was seeing a similar problem.  Booting from a floppy disk twice would
probably be faster than booting off the hard disk.  I had just done
a makeworld, and updated the boot blocks on the disk (it previously had
a pretty old install on it).  But the system would eventually boot, and 
not hang up.  I noticed that Red Necks boot loader build date was the 
same as the version I was having problems with.

Fortunately, I have a 2nd HD in the machine with a 7.0 install,
and installed the boot blocks from that HD to the one I was having
problems with, and copied over /boot/loader from that HD.
No more problems.  System boots as fast as ever.

So yes, I think there is something wrong with the current loader.

With the slow boot, once the system is up and running, the disks
are running at normal speeds (checked with iozone & bonnie).

Some output from a slow boot with some comments in []'s to note how
long things are taking (it took so long I was able to type all that
initial boot information into a window on another machine):

BTX loader 1.00  BTX version is 1.01
Consoles: internal video/keyboard
BIOS drive C: is disk0
BIOS drive D: is disk1
BIOS 639kb/1047488kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
(mpp_at_mail.mppsystems.com, Thu Oct 25 00:32:20 CDT 2007)
Loading /boot/defaults/loader.conf
/-\|/...[wait about 2 mins]
/boot/kernel/kernel text=0x37e650 [spin for 3 mins] data=0x39600+0x30860 [30 seconds] syms=[0x4+0x44590+0x4+0x57708] [spin for about 2 mins]

OK lsdev
cd devices:
disk devices:
    disk0:   BIOS drive C:
        disk0s1a: FFS
        disk0s1d: FFS
        disk0s2a: FFS
        disk0s2b: swap
        disk0s2d: FFS
        disk0s2e: FFS
        disk0s2f: FFS
        disk0s3b: swap
        disk0s3d: FFS
        disk0s3e: FFS
        disk0s3f: FFS
        disk0s3g: FFS
    disk0:   BIOS drive D:
        disk1s1a: FFS
        disk1s1b: swap
        disk1s1D: FFS
        disk1s1e: FFS
        disk1s1f: FFS
pxe devices:
OK boot
[spins for about 30 seconds or so loading acpi.ko]
[system boots normally now]
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 8.0-CURRENT #16: Thu Oct 25 17:55:37 CDT 2007
    mpp_at_mail.mppsystems.com:/shared/src/sys/i386/compile/MAIL
WARNING: DIAGNOSTIC option enabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) III CPU             1133MHz (1130.12-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6b1  Stepping = 1
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 1073676288 (1023 MB)
avail memory = 1041489920 (993 MB)
ACPI APIC Table: <VIA694 AWRDACPI>

[trimmed]

atapci0: <VIA 82C686B UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd400-0xd40f at device 7.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
ad0: 76319MB <WDC WD800BB-40BSA0 12.08C12> at ata0-master UDMA100
acd0: CDROM <LTN526/YH0K> at ata0-slave PIO4
ad2: 28629MB <WDC WD300BB-00AUA1 18.20D18> at ata1-master UDMA100
Trying to mount root from ufs:/dev/ad0s1a

-- 
Mike Pritchard
mpp _at_ FreeBSD.org
"If tyranny and oppression come to this land, it will be in the guise
of fighting a foreign enemy."  - James Madison (1787)
Received on Thu Nov 01 2007 - 04:09:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:20 UTC