BTX on USB pen drive

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Sat Mar 8 21:21:48 UTC 2008


On Sat, 08 Mar 2008 14:23:30 +0100
Dimitry Andric <dimitry at andric.com> wrote:

> No, update it to 1.45 (=HEAD) and then apply the patch, that's much
> easier.

Yes, that worked better - the patch applied cleanly, amd I could
rebuild the loader.

Here is how I did the rebuilding (all this done on another machine,
which have no troubles booting from usb):
I booted the machine from usb (da0), replaced btx.S with revision 1.45
and did:
cd /usr/src
patch -p6 < .../btx_real.patch
cd sys/boot/i386
make
Then I copied the files to the hard drive:
boot0cfg -B -b /usr/obj/usr/src/sys/boot/i386/boot0/boot0 da0
cp -v /usr/obj/usr/src/sys/boot/i386/loader/loader /boot

Is this the correct way to do build and update the files?
I as because when I moved the usb hard drive to the problematic laptop
and booted from it, I have exactly the same symptoms as before:
after selecting F! (or F2, doesn't matter) from the boot menu
text scrolls forever on screen. It looks like rergister dumps to me
(hard to tell, it scroll too fast). It continues like that until Itrurn
off the laptop.

I would really like to figure his one out.
-- 
Regards,
Torfinn Ingolfsen


More information about the freebsd-stable mailing list