Hi,
i am trying to get Stefans merged yabel working with v2 under qemu... but it doesnt work.
i set CONFIG_PCI_ROM_RUN and CONFIG_PCI_OPTION_ROM_RUN_YABEL
As far as i see, the VGA device is not assigned a ROM address and thus run_bios is never called... i dont quite understand why this happens.
I also tried to use pci_dev_init instead of vga_init as the init function, but it still wont work :-(
Anybody any idea, what i am doing wrong?
Regards, Patty
On Fri, Mar 6, 2009 at 7:26 AM, Pattrick Hueper phueper@hueper.net wrote:
Hi,
i am trying to get Stefans merged yabel working with v2 under qemu... but it doesnt work.
i set CONFIG_PCI_ROM_RUN and CONFIG_PCI_OPTION_ROM_RUN_YABEL
As far as i see, the VGA device is not assigned a ROM address and thus run_bios is never called... i dont quite understand why this happens.
I also tried to use pci_dev_init instead of vga_init as the init function, but it still wont work :-(
Anybody any idea, what i am doing wrong?
Look in /emulation/qemu-x86/mainboard.c and /emulation/qemu-x86/vgabios.c
In v2 qemu has its own VGA init code. I'd bet you need to bypass that.
Thanks, Myles
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...
Pattrick
On Fri, Mar 6, 2009 at 3:40 PM, Myles Watson mylesgw@gmail.com wrote:
On Fri, Mar 6, 2009 at 7:26 AM, Pattrick Hueper phueper@hueper.net wrote:
Hi,
i am trying to get Stefans merged yabel working with v2 under qemu... but it doesnt work.
i set CONFIG_PCI_ROM_RUN and CONFIG_PCI_OPTION_ROM_RUN_YABEL
As far as i see, the VGA device is not assigned a ROM address and thus run_bios is never called... i dont quite understand why this happens.
I also tried to use pci_dev_init instead of vga_init as the init function, but it still wont work :-(
Anybody any idea, what i am doing wrong?
Look in /emulation/qemu-x86/mainboard.c and /emulation/qemu-x86/vgabios.c
In v2 qemu has its own VGA init code. I'd bet you need to bypass that.
Thanks, Myles
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
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