On Tue, Aug 03, 2010 at 11:22:29AM +0200, xdrudis wrote:
I could try to add code similar to that above to serialICE and see what happens.
Done. It now boots serialICE once and starts the shell. I haven't downloaded qemu, patched it and tested with a coreboot image (or the propietary bios), but the commands I entered at the shell were answered ok as far as I can tell.
Here's the patch against the file Rudolf Marek sent, but I'll attach the modified file too.
--- asrock_939a785gmh.c 2010-08-03 12:08:04.000000000 +0200 +++ SerialICE/mainboard/asrock_939a785gmh.c 2010-08-03 12:02:34.000000000 +0200 @@ -42,6 +42,10 @@
static void chipset_init(void) { + u32 reg32 = pci_read_config32(PCI_ADDR(0, 0x14, 0, 0x4C)); + reg32 |= 1 << 31; + pci_write_config32(PCI_ADDR(0, 0x14, 0, 0x4C), reg32); +
/* Enable LPC decoding */ pci_write_config8(PCI_ADDR(0, 0x14, 3, 0x44), (1<<6));