boot2 and ntldr on sata2

From: Victor M. Blood <freebsd_at_masm.elcom.ru>
Date: Sat, 7 Feb 2009 23:55:28 +0300
Hi, All.

People, may be realy need to add compile in boot command line, souch
as /boot.config staticaly in boot2.c instead of dynamic load it at
bootstrap process.


I have sata2 disk with 4 primary partition:
[ntfs]
[bsd] (/var, /usr)
[bsd] (/, swap)
[ntfs]

then system bootup from ntldr with bootpart 2.6 support, I got an
error `Invalid Partition'

then try boot with command `0:ad(4,3,a)/boot/loader bootstrap process
finished succesful!

I tryed set in /sys/boot/i386/boot2/boot2.c
dsk.drive=0; // may be here must be 0x80 ??
dsk.unit=4;
dsk.slice=3;
dsk.part=0;
i had error 1 lba 0 ... may be i realy set wrong number to dsr.drive

I try to add at line 258, after
    if ((ino = lookup(PATH_CONFIG)))
        fsread(ino, cmd, sizeof(cmd));
line:
     memcpy(cmd, "0:ad(4,3,a)/boot/loader\0\0", 24);

after this system boot sucess!


ps: sorry for my english.
-- 
With all regards, Victor M. Blood.     mailto: freebsd_at_masm.elcom.ru
FTN: 2:5024/1.95_at_Fidonet.org, ICQ#3567656
Received on Sat Feb 07 2009 - 20:14:26 UTC

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