For some reason BX_ELTORITO_BOOT was disabled when using ADLO. Does anyone know why? At this point I need qmeu + linuxbios_+ ADLO to be able to install windwos in a qemu image from the installation CD.<br><br>file: rombios.c
<br><br>Where can I find what are the current cmos settings?<br>qemu + bochsbios is able to boot from the CD because <br>bootseq receives 3 on the following piece of code. When<br>using linuxBIOS, bootseq receives 2.<br><br>
// if BX_ELTORITO_BOOT is not defined, old behavior<br> // check bit 5 in CMOS reg 0x2d. load either 0x00 or 0x80 into DL<br> // in preparation for the intial INT 13h (0=floppy A:, 0x80=C:)<br> // 0: system boot sequence, first drive C: then A:
<br> // 1: system boot sequence, first drive A: then C:<br> // else BX_ELTORITO_BOOT is defined<br> // CMOS regs 0x3D and 0x38 contain the boot sequence:<br> // CMOS reg 0x3D & 0x0f : 1st boot device<br>
// CMOS reg 0x3D & 0xf0 : 2nd boot device<br> // CMOS reg 0x38 & 0xf0 : 3rd boot device<br> // boot device codes:<br> // 0x00 : not defined<br> // 0x01 : first floppy<br> // 0x02 : first harddrive
<br> // 0x03 : first cdrom<br> // else : boot failure<br><br><br>#if BX_ELTORITO_BOOT<br> bootseq=inb_cmos(0x3d); <br> bootseq|=((inb_cmos(0x38) & 0xf0) << 4);<br><br>Looks like I need to change some CMOS settings.
<br><br>Thanks,<br>-- <br>Augusto Pedroza