<br><br><span class="gmail_quote"><br></span>Hi my friends,<br> I feel that is very important to inform this list about my efforts and also receive an important feedback. We really feel that getting the things below to work on qemu will be an important step for LinuxBIOS, since people who do not have access to proper hardware will be able to test it and contribute in some ways.
<br>   I haven't  had success yet but this is what I got.<br><br> I am going to detail all the steps I've taken up to now. <br>Preparing Images:<br>1- My first step create 2 qcow disk images, one for win2k(2G) and another one for winXP(3G), I followed these instructions:      
<br>   <a href="http://www.hermann-uwe.de/blog/howto-install-windows-xp-in-debian-using-qemu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.hermann-uwe.de/blog/howto-install-windows-xp-in-debian-using-qemu
</a><br>2- I installed a  small version of Fedora in these images and of course grub in the MBR.
<br><br>Preparing linuxbios:<br> 1- My first step was to patch the as86 compiler.<br> 2- Executed Makefile with make in the ADLO directory<br> 3- Edited the payload option in the <a href="http://Config.lb" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Config.lb</a>     file within qemu-i386 directory of LinuxBIOS to point to the payload generated by ADLO.
<br> 4- Run make and copied qemu-bios.rom to my home as bios.bin<br> 5- Copied the vgabios-cirrus.bin to the same directory above.<br> 6- Ran the following command :  <span style="font-style: italic;">qemu -L ~ 2k_linux.cow -no-kqemu -serial stdio
</span><br><br>With win2k got the following output:<br>LinuxBIOS-2.0.0-OpenBIOS Wed May  2 19:21:12 BRT 2007 starting...<br>Copying LinuxBIOS to RAM.<br>Jumping to LinuxBIOS.<br>LinuxBIOS-2.0.0-OpenBIOS Wed May  2 19:21:12 BRT 2007 booting...
<br>Enumerating buses...<br>Finding PCI configuration type.<br>PCI: Using configuration type 1<br>PCI_DOMAIN: 0000 enabled<br>PCI: pci_scan_bus for bus 00<br>PCI: 00:00.0 [8086/1237] enabled<br>PCI: 00:01.0 [8086/7000] enabled
<br>PCI: 00:01.1 [8086/7010] enabled<br>PCI: 00:01.3 [8086/7113] enabled<br>PCI: 00:02.0 [1013/00b8] enabled<br>PCI: 00:03.0 [10ec/8029] enabled<br>PCI: pci_scan_bus returning with max=000<br>done<br>Allocating resources...
<br>Reading resources...<br>Done reading resources.<br>Setting resources...<br>I would set ram size to 0x20000 Kbytes<br>PCI: 00:01.1 20 <- [0x0000001400 - 0x000000140f] io<br>PCI: 00:02.0 10 <- [0x00fc000000 - 0x00fdffffff] prefmem
<br>PCI: 00:02.0 14 <- [0x00fe000000 - 0x00fe000fff] mem<br>PCI: 00:03.0 10 <- [0x0000001000 - 0x00000010ff] io<br>Done setting resources.<br>Done allocating resources.<br>Enabling resources...<br>PCI: 00:00.0 subsystem <- 00/00
<br>PCI: 00:00.0 cmd <- 140<br>PCI: 00:01.0 subsystem <- 00/00<br>PCI: 00:01.0 cmd <- 147<br>PCI: 00:01.1 cmd <- 141<br>PCI: 00:01.3 cmd <- 140<br>PCI: 00:02.0 cmd <- 143<br>PCI: 00:03.0 cmd <- 141<br>

done.<br>Initializing devices...<br>Root Device init<br>PCI: 00:00.0 init<br>PCI: 00:01.0 init<br>PCI: 00:01.1 init<br>PCI: 00:01.3 init<br>PCI: 00:02.0 init<br>PCI: 00:03.0 init<br>Devices initialized<br>Copying IRQ routing tables to 0xf0000...done.
<br>Verifing copy of IRQ routing tables at 0xf0000...done<br>Checking IRQ routing table consistency...<br>check_pirq_routing_table() - irq_routing_table located at: 0x000f0000<br>done.<br>Moving GDT to 0x500...ok<br>Adjust low_table_end from 0x00000530 to 0x00001000
<br>Adjust rom_table_end from 0x000f0400 to 0x00100000<br>Wrote linuxbios table at: 00000530 - 00000b68  checksum cf09<br><br>Welcome to elfboot, the open sourced starter.<br>January 2002, Eric Biederman.<br>Version 1.3<br>

<br>rom_stream: 0xfffc0000 - 0xfffeffff<br>Found ELF candidate at offset 0<br>header_offset is 0<br>Try to load at offset 0x0<br>New segment addr 0x7c00 size 0x10400 offset 0x100 filesize 0x10400<br>(cleaned up) New segment addr 0x7c00 size 0x10400 offset 0x100 filesize 0x10400
<br>Loading Segment: addr: 0x0000000007fdfc00 memsz: 0x000000000000e400 filesz: 0x000000000000e400<br>Loading Segment: addr: 0x0000000000016000 memsz: 0x0000000000002000 filesz: 0x0000000000002000<br>Jumping to boot code at 0x7c00
<br>$Revision: 1.163 $ $Date: 2006/07/07 16:10:37 $<br>Bochs BIOS - build: 06/23/99<br>$Revision: 1.163 $ $Date: 2006/07/07 16:10:37 $<br>Options:<br><br>ata0-0: PCHS=4063/16/63 translation=lba LCHS=1015/64/63<br>ata0 master: QEMU HARDDISK ATA-7 Hard-Disk (2000 MBytes)
<br>ata1 master: QEMU CD-ROM ATAPI-4 CD-Rom/DVD-Rom<br><br>Booting from Hard Disk...<br>int13_harddisk function 4Bh unsupported, returns fail<br>int13_harddisk: function 41, unmapped device for ELDL=81<br>int13_harddisk: function 08, unmapped device for ELDL=81
<br>*** int 15h function AX=00C0, BX=0000 not yet supported!<br>*** int 15h function AX=5300, BX=0000 not yet supported!<br>*** int 15h function AX=5304, BX=0000 not yet supported!<br>int13_harddisk function 4Bh unsupported, returns fail
<br>int13_harddisk function 4Bh unsupported, returns fail<br>int13_harddisk function 4Bh unsupported, returns fail<br>int13_harddisk function 4Bh unsupported, returns fail<br>*** int 15h function AX=5300, BX=0000 not yet supported!
<br>int13_harddisk: function 15, unmapped device for ELDL=81<br><br>When I pressed some keyboard keys I got the following:<br clear="all"><br>KBD: int09h_handler(): unknown scancode read: 0x72!<br>
KBD: int09h_handler(): unknown scancode read: 0x72!<br>
KBD: int09h_handler(): unknown scancode read: 0x75!<br>
KBD: int09h_handler(): unknown scancode read: 0x75!<br>
KBD: int09h_handler(): unknown scancode read: 0x74!<br>
KBD: int09h_handler(): unknown scancode read: 0x74<br><br>After I closer look I found out taht most of these problems were due to GRUB interupts.<br><br><br>PS: Both images work fine with: <span style="font-style: italic;">
qemu 2k_linux.cow -no-kqemu -serial stdio</span><br> <br>I appreciate any suggestion,<br><br>-- <br>Augusto Pedroza