Hello, I am trying to setup a custom vga driver to run code before and after the vga rom executes. It builds and runs ok but I can't seem to get any of my output to show (yes my debug level is set 9). Do vga option roms not use the device ops (pci_dev_init())? Am I doing something wrong(patch and bootlog attached)?
Joseph Smith wrote:
It builds and runs ok
Are you sure that your code runs?
Since you're only calling pci_dev_init() at this point maybe some default handler is called?
Doesn't your code have to be "hooked" into the linked list of devices for this board somehow?
Sorry for the confusion, I still don't know how this works..
//Peter
2009/3/23 Joseph Smith joe@settoplinux.org
Hello, I am trying to setup a custom vga driver to run code before and after the vga rom executes. It builds and runs ok
I don't think it's actually running, I think the default vga handler is running the rom. Do you have a line in your mainboard Config.lb with eg "driver pci/onboard"? If so, comment out that line and try again. Also remember you need to re-run buildtarget after changing any Config.lb or Options.lb files.
-Corey
but I can't seem to get any of my output to show (yes my debug level is set 9). Do vga option roms not use the device ops (pci_dev_init())? Am I doing something wrong(patch and bootlog attached)?
-- Thanks, Joseph Smith Set-Top-Linux www.settoplinux.org -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
On Mon, 23 Mar 2009 10:35:00 -0400, Corey Osgood corey.osgood@gmail.com wrote:
2009/3/23 Joseph Smith joe@settoplinux.org
Hello, I am trying to setup a custom vga driver to run code before and after
the
vga rom executes. It builds and runs ok
I don't think it's actually running, I think the default vga handler is running the rom. Do you have a line in your mainboard Config.lb with eg "driver pci/onboard"? If so, comment out that line and try again. Also remember you need to re-run buildtarget after changing any Config.lb or Options.lb files.
-Corey
but I can't seem to get any of my output to show (yes my debug level is set 9). Do vga option roms not use the device ops (pci_dev_init())? Am I doing something wrong(patch and bootlog attached)?
I think I got it. I need to change my Config.lb from object vga.o to driver vga.o. I won't be able to test it until later today, but it makes sense.
If not I will try commenting out "chip drivers/pci/onboard".
I think I got it. I need to change my Config.lb from object vga.o to driver vga.o.
Yup, for future reference that was it thanks.