From 459259e98dc9071279f385ea18c58993e2e66b9b Mon Sep 17 00:00:00 2001 From: Samuel Verstraete Date: Tue, 12 May 2009 15:15:07 +0000 Subject: [PATCH] This is the final patch that got everything working for me with the HP dl145g3. I would like to remind you that this firmware enables the hardware virtualization on the AMD cpu's on the machine. That feature was explicitly disabled by the factory BIOS. Due to an error in the VGAROM no other rom loader (YABEL or X*^BIOS) than SeaBIOS manages to load the VGA rom. The VGA ROM tries to read config space of a device that is actually not present. Because SeaBIOS does not support AHCI SATA it can not start the bootable drive of the machine so i had to add filo to seabios to manage booting: ./cbfstool coreboot.rom add-payload filo.elf img/FILO Signed-off-by: Samuel Verstraete Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4277 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/mainboard/hp/dl145_g3/Config.lb | 11 ++--------- src/mainboard/hp/dl145_g3/Options.lb | 2 +- targets/hp/dl145_g3/Config-abuild.lb | 10 ++-------- targets/hp/dl145_g3/Config.lb | 19 +++++++------------ 4 files changed, 12 insertions(+), 30 deletions(-) diff --git a/src/mainboard/hp/dl145_g3/Config.lb b/src/mainboard/hp/dl145_g3/Config.lb index 1095cde182..3e602e2ed2 100644 --- a/src/mainboard/hp/dl145_g3/Config.lb +++ b/src/mainboard/hp/dl145_g3/Config.lb @@ -192,15 +192,8 @@ chip northbridge/amd/amdk8/root_complex device pci 2.0 on end # USB 0x0223 device pci 2.1 on end # USB device pci 2.2 on end # USB - chip drivers/pci/onboard - # it is in bcm5785_0 bus, but the device id can - # not be changed even unitid is changed, fake one - # to get the rom_address - # if HT_CHAIN_END_UNITID_BASE=0, it is 4, - # if HT_CHAIN_END_UNITID_BASE=1, it is 3 - device pci 4.0 on end - register "rom_address" = "0xfff00000" - end + device pci 3.0 on end # VGA + #bx_a013+ start #chip drivers/pci/onboard #SATA2 # device pci 5.0 on end diff --git a/src/mainboard/hp/dl145_g3/Options.lb b/src/mainboard/hp/dl145_g3/Options.lb index 2d7b9d959d..5fda0e5f8b 100644 --- a/src/mainboard/hp/dl145_g3/Options.lb +++ b/src/mainboard/hp/dl145_g3/Options.lb @@ -194,7 +194,7 @@ default K8_HT_FREQ_1G_SUPPORT=1 #VGA Console default CONFIG_CONSOLE_VGA=1 -default CONFIG_PCI_ROM_RUN=1 +default CONFIG_PCI_ROM_RUN=0 #HT Unit ID offset, default is 1, the typical one default HT_CHAIN_UNITID_BASE=0x06 diff --git a/targets/hp/dl145_g3/Config-abuild.lb b/targets/hp/dl145_g3/Config-abuild.lb index ecccc6bbc2..95639ecb61 100644 --- a/targets/hp/dl145_g3/Config-abuild.lb +++ b/targets/hp/dl145_g3/Config-abuild.lb @@ -13,13 +13,7 @@ __LOGLEVEL__ option ROM_SIZE=1024*(1024-32) option FALLBACK_SIZE=1024*512 -romimage "normal" - option USE_FALLBACK_IMAGE=0 - option ROM_IMAGE_SIZE=0x20000 - option XIP_ROM_SIZE=0x20000 - option COREBOOT_EXTRA_VERSION=".0-normal" - payload __PAYLOAD__ -end +option CONFIG_CBFS = 1 romimage "fallback" option USE_FALLBACK_IMAGE=1 @@ -29,5 +23,5 @@ romimage "fallback" payload __PAYLOAD__ end -buildrom ./coreboot.rom ROM_SIZE "normal" "fallback" +buildrom ./coreboot.rom ROM_SIZE "fallback" diff --git a/targets/hp/dl145_g3/Config.lb b/targets/hp/dl145_g3/Config.lb index d347a9441d..1ca40cb666 100644 --- a/targets/hp/dl145_g3/Config.lb +++ b/targets/hp/dl145_g3/Config.lb @@ -24,23 +24,18 @@ target dl145_g3 mainboard hp/dl145_g3 -# Leave 32K for VGA ROM -option ROM_SIZE= 1024*1024 - 32*1024 - -romimage "normal" - option USE_FALLBACK_IMAGE=0 - option ROM_IMAGE_SIZE=0x20000 - option XIP_ROM_SIZE=0x20000 - option COREBOOT_EXTRA_VERSION="$(shell cat ../../VERSION)_Normal" - payload ../payload.elf -end +option ROM_SIZE= 1024*1024 +option CONFIG_CBFS = 1 romimage "fallback" option USE_FALLBACK_IMAGE=1 option ROM_IMAGE_SIZE=0x20000 option XIP_ROM_SIZE=0x20000 option COREBOOT_EXTRA_VERSION="$(shell cat ../../VERSION)_Fallback" - payload ../payload.elf + payload ./bios.bin.elf end -buildrom ./coreboot.rom ROM_SIZE "normal" "fallback" +buildrom ./coreboot.rom ROM_SIZE "fallback" + +pci_rom ./matrox.rom vendor_id=0x102b device_id=0x0522 +