[SeaBIOS] [PATCH] Support multiple hard disks in boot list.
Kevin O'Connor
kevin at koconnor.net
Fri Jul 7 16:55:28 CEST 2017
On Fri, Jun 30, 2017 at 08:48:27PM -0400, Gaurav Poothia wrote:
> If multiple disks in boot order and first is unbootable
> then fallback to other disks in list.
[...]
> @@ -731,7 +736,10 @@ do_boot(int seq_nr)
> break;
> case IPL_TYPE_HARDDISK:
> printf("Booting from Hard Disk...\n");
> - boot_disk(0x80, 1);
> + if (ie->hdid == -1)
> + boot_disk(0x80 , 1);
> + else
> + boot_disk(0x80 + ie->hdid, 1);
> break;
> case IPL_TYPE_CDROM:
> boot_cdrom((void*)ie->vector);
Ultimately, what this patch does is set the DL register to something
other than 0x80. I tested this approach a few years ago, and at the
time I could not find a single bootloader that used DL. What
bootloaders did you test with this, and which ones worked and did not
work?
-Kevin
More information about the SeaBIOS
mailing list