[LinuxBIOS] [PATCH] Some more 440BX progress

roger roger at eskimo.com
Sun Apr 29 19:38:19 CEST 2007


On Sun, 2007-04-29 at 14:50 +0200, Uwe Hermann wrote:
> Hi,
> 
> here's a first patch for the 440BX code and the Tyan S1846 and the 82371EB
> southbridge which gets my Tyan S1846 a lot further in the boot process.
> 
> However, it cannot boot a payload, yet.
> 
> It seems the major problem was that I did ram_check() on the whole range
> from 0 - 64 MB (in my case; I use a 64 MB DIMM for testing). This cannot
> work of course, as the range from 640 KB - 1 MB is _not_ RAM but rather
> reserved for all kinds of other stuff (thanks Stefan for pointing this out!).

Yup. I didn't even need to patch the latest svn version with the memory
fix for DRAM to find my memory. 

If I look at my log, I see:

PCI_DOMAIN: 0000 enabled
PCI_DOMAIN: 0000 scanning...
PCI: pci_scan_bus for bus 00
PCI: 00:00.0 [8086/7190] ops
PCI: 00:00.0 [8086/7190] enabled
PCI: 00:01.0 [8086/7191] disabled
PCI: devfn 0x9, bad id 0xffffffff
PCI: devfn 0xa, bad id 0xffffffff
PCI: devfn 0xb, bad id 0xffffffff
PCI: devfn 0xc, bad id 0xffffffff
PCI: devfn 0xd, bad id 0xffffffff
PCI: devfn 0xe, bad id 0xffffffff
PCI: devfn 0xf, bad id 0xffffffff
PCI: devfn 0x10, bad id 0xffffffff
PCI: devfn 0x18, bad id 0xffffffff
PCI: devfn 0x20, bad id 0xffffffff
PCI: devfn 0x28, bad id 0xffffffff
PCI: devfn 0x30, bad id 0xffffffff


The "0xffffffff" reminds me of seeing something when using hexedit with
viewing the bios mtd flash device (ie. modprobe l440gx and
hexedit /dev/mtd0) and not unmasking the bios flash device (or... using
flashrom to enable the device).

Almost as if, we're mapping pci to memory, and the mapping isn't being
written to ram? .. as such, can't load elf into memory ... and of
course, can't execute from ram?

(Of course, I'm probably entirely wrong here.)

Attached my session.log, but I think it's very similar to yours except
for my additional PCI devices along with 1GB of ram (all 4 banks
filled).

I'm going to try only loading one bank of ram just for kicks.


> Leaving out that range, but checking the rest of RAM, I get a
> "DRAM range verified", so it seems RAM init _does_ work after all.
> (it's hardcoded to my board and setup of course, but that'll be fixed)
> 
> I've tried setting up the PCI devices correctly in Config.lb, but I'm
> absolutely not sure that I got it all right. Can somebody please check
> this and let me know of any stupid errors I made?
> 
> Here's the lspci output from the Tyan S1846:
> 
> 00:00.0 0600: 8086:7190 (rev 03)
> 00:01.0 0604: 8086:7191 (rev 03)
> 00:07.0 0601: 8086:7110 (rev 02)
> 00:07.1 0101: 8086:7111 (rev 01)
> 00:07.2 0c03: 8086:7112 (rev 01)
> 00:07.3 0680: 8086:7113 (rev 02)
> 00:10.0 0300: 5333:5631 (rev 06)
> 00:11.0 0200: 10ec:8029
> 
> 00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
> 00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
> 00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
> 00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
> 00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
> 00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
> 00:10.0 VGA compatible controller: S3 Inc. 86c325 [ViRGE] (rev 06)
> 00:11.0 Ethernet controller: Realtek Semiconductor Co., Ltd.  RTL-8029(AS)

00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host
bridge (rev 03)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP
bridge (rev 03)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev
01)
00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev
01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
00:12.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge
(non-transparent mode) (rev 13)
00:13.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro
100] (rev 08)
(...Deleted Other Additional PCI Devices...)

fyi, similar layout here too.


--
Roger
http://www.eskimo.com/~roger/index.html
Key fingerprint = 8977 A252 2623 F567 70CD 1261 640F C963 1005 1D61

Sun Apr 29 10:28:23 PDT 2007
-------------- next part --------------
A non-text attachment was scrubbed...
Name: session-tyans1832dl.20070429.log
Type: text/x-log
Size: 31243 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070429/9e2a45ec/attachment.log>


More information about the coreboot mailing list