qemu target

Stefan Reinauer stepan at openbios.org
Tue Jun 29 12:29:01 CEST 2004


Hi LinuxBIOS hackers,

I checked in a new target: emulation/qemu-i386

It allows to exchange the BIOS image of the multi target CPU emulator
QEMU (http://fabrice.bellard.free.fr/qemu/) with a LinuxBIOS image.

Since failsafe handling does not make much sense in an emulator, 
I only have one image built, with more space being available for the
payload. The payload is about 155k, the image is 256k and LinuxBIOS 
occupies 64k, so there's quite some room left.

Now, LinuxBIOS starts and executes all the romcc generated code in
auto.c. But after that output suddenly stops. All of the resource
allocation seems completely skipped. The first thing I get after this 
is when the payload has taken over. What can I do to get the output of
the gcc compiled code again?

In the beginning it did show these messages, but I was unable to
reproduce this behaviour, unfortunately.

I would guess it is not really skipped, since otherwise the payload is
not executed. Attached see a log of the serial console and a log of port
80 activity.

Can anyone point me into how to debug this? I am a bit confused. Am I
using crappy compilers again?

LinuxBIOS-1.1.6-OpenBIOS Mon Jun 28 16:54:53 CEST 2004 starting...
Copying LinuxBIOS to ram.
Jumping to LinuxBIOS.
boot eax = 0xe1fb007
boot ebx = 0x3ff5878
boot arg = 0x3ff5878
Bootloader: elfboot
Version: 1.3
Searching for LinuxBIOS tables...
Found canidate at: 00000500
header checksum o.k.
table checksum o.k.
record count o.k.
Found LinuxBIOS table at: 00000500
0x00000000000000 0x00000000000000 1748
0x000000000006d4 0x00000000000000 67107116

00000000000006d4-0000000004000000
RAM 64 MB
Current location: 0x100000-0x1982e7
Relocating to 0x3f67d10-0x3fffff7... ok
forth started.
initializing memory...done
Initializing PCI devices...
0:0.0 - 8086:1237 - /pci/pci8086,1237 - host
0:1.0 - 8086:7000 - /pci/pci8086,7000 - isa
0:1.1 - 8086:7010 - /pci/pci8086,7010 - ide
0:2.0 - 1234:1111 - /pci/pci1234,1111 - display
0:3.0 - 10ec:8029 - /pci/pci10ec,8029 - ethernet
ide0: [io ports 0x1f0-0x1f7,0x3f6]
    drive0 [ATA disk]: QEMU HARDDISK
ide1: [io ports 0x170-0x177,0x376]
    drive0 [ATAPI cdrom]: QEMU CD-ROM
Welcome to OpenBIOS v1.0.RC1
Built on Jun 28 2004 17:29
  Type 'help' for detailed information

[x86] Booting default not supported.

0 > ok
0 >

----------------------------------------------

Port80 log:
outb: 0080 10
outb: 0080 05
outb: 0080 11
outb: 0080 12
outb: 0080 13
outb: 0080 fe
outb: 0080 80
outb: 0080 39
outb: 0080 40
outb: 0080 5f
outb: 0080 24
outb: 0080 25
outb: 0080 55
outb: 0080 66
outb: 0080 88
outb: 0080 89
outb: 0080 70
outb: 0080 60
outb: 0080 6a
outb: 0080 92
outb: 0080 9b
outb: 0080 75
outb: 0080 9a
outb: 0080 96
outb: 0080 f8
outb: 0080 fe






More information about the coreboot mailing list