/boot/mbr miscompiled?

Yuri Pankov yuri.pankov at gmail.com
Wed Jun 6 13:58:43 UTC 2007


Hi,

I've noticed lately that I can't install /boot/mbr using boot0cfg.

[root at darklight:~]# boot0cfg -B -b /boot/mbr ad4
boot0cfg: /boot/mbr: unknown or incompatible boot code

-r--r--r--  1 root  wheel  - 512 Jun  6 17:45 /boot/mbr
/boot/mbr: x86 boot sector


That's how it's compiled here:
[root at darklight:/usr/src/sys/boot/i386/mbr]# make
as  --defsym FLAGS=0x80 --32 -o mbr.o /usr/src/sys/boot/i386/mbr/mbr.s
cc -O2 -fno-strict-aliasing -pipe  -ffreestanding
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -m32 -march=i386  -N -e start -Ttext 0x600
-Wl,-S,--oformat,binary -nostdlib -m elf_i386_fbsd -o mbr mbr.o

It's -CURRENT/amd64 updated today.

Any hints?


Yuri


More information about the freebsd-current mailing list