yiiehaah... thanks, that did it... assigning dev->rom_address= 0xc0000; in emulation/qemu-x86/mainboard.c function vga_init() and then calling pci_dev_init() calls yabel and the qemu screen is initialized.
Once i cleaned up the code i will post patches...
Thanks Myles!
Cheers, Pattrick
On Mon, Mar 9, 2009 at 4:41 PM, Myles Watson mylesgw@gmail.com wrote:
On Mon, Mar 9, 2009 at 7:19 AM, Pattrick Hueper phueper@hueper.net wrote:
Hi,
i debugged into the VGA init code... it seems that the device (PCI: 00:02.0) is not assigned a ROM address. Further debugging into pci_get_rom_resource and pci_moving_config32 shows that pci_read_config32 _always_ reads a 0 from the ROM BAR, even if 0xffffffff is written just before reading...
Any ideas? I will try to find out what v3 does for the qemu VGA device...
In v3 it's hardcoded too. The VGA BIOS is always mapped to 0xc0000 in qemu, so v3 just sets the value. In device/pci_rom.c it checks to see if dev->rom_address is set. In /mainboard/emulation/qemu-x86/vga.c it sets it to 0xc0000.
Thanks, Myles