Broken loader on 7.0-RC1

Nikolay Pavlov qpadla at
Sat Feb 2 18:24:04 UTC 2008

Hello all. 
While building 7.0-RC1 i've discovered that the loader file is broken in my 
box and i am unable to boot using it. I've already hit this problem 2 
months ago. After playing a bit i've found the way on how to reproduce it 

~# cd /usr/src/sys/boot/i386
/usr/src/sys/boot/i386# make btx libi386 loader
strip -R .comment -R .note loader.bin
btxld -v -f aout -e 0x200000 -o 
loader -l /usr/obj/usr/src/sys/boot/i386/loader/../btx/btxldr/btxldr  -b /usr/obj/usr/src/sys/boot/i386/loader/../btx/btx/btx 
kernel: ver=1.01 size=7b0 load=9000 entry=9010 map=16M pgctl=0:23
client: fmt=elf size=283b0 text=22038 data=4248 bss=60b8 entry=0
output: fmt=aout size=2b000 text=1000 data=29000 org=200000 entry=200000
cat /usr/src/sys/boot/i386/loader/../../common/help.common /usr/src/sys/boot/i386/loader/help.i386 | 
awk -f /usr/src/sys/boot/i386/loader/../../common/merge_help.awk >

This loader is totally diffrent from the original:

# ls -la /usr/obj/usr/src/sys/boot/i386/loader/loader -rw-r--r--  1 root  
wheel  176128 Feb 2 15:24 /usr/obj/usr/src/sys/boot/i386/loader/loader

# ls -al /boot/loader -r-xr-xr-x  1 root  wheel  229376 Jan 29 
18:17 /boot/loader

# uname -a
FeeBSD cassini 7.0-RC1 FreeBSD 7.0-RC1 #0: Mon Jan 28 16:57:47 EET 2008     
root at cassini:/usr/obj/usr/src/sys/GENERIC  amd64

I am not using any compiler flags in make.conf 

CPU: Intel(R) Core(TM)2 Duo CPU     E4500  @ 2.20GHz (2194.51-MHz K8-class 
CPU) Origin = "GenuineIntel"  Id = 0x6fd  Stepping = 13  
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  Cores per package: 2
usable memory = 2131750912 (2032 MB)
avail memory  = 2057113600 (1961 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1

- Best regards, Nikolay Pavlov. <<<-----------------------------------    

More information about the freebsd-current mailing list