Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Feb 2008 20:23:58 +0200
From:      Nikolay Pavlov <qpadla@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Broken loader on 7.0-RC1
Message-ID:  <200802022023.59037.qpadla@gmail.com>

next in thread | raw e-mail | index | archive | help
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 
easily:

~# cd /usr/src/sys/boot/i386
/usr/src/sys/boot/i386# make btx libi386 loader
...snipped...
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 
loader.bin
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 > 
loader.help

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@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  
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xe39d<SSE3,RSVD2,MON,DS_CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  Cores per package: 2
usable memory = 2131750912 (2032 MB)
avail memory  = 2057113600 (1961 MB)
ACPI APIC Table: <INTELB R_WATERP>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802022023.59037.qpadla>