[LinuxBIOS] 440BX progress.
Uwe Hermann
uwe at hermann-uwe.de
Sat Dec 2 14:50:29 CET 2006
On Sat, Dec 02, 2006 at 09:30:58AM +0100, Segher Boessenkool wrote:
> It looks reasonable. You want to shift by 3 though, not 23,
> not 15, so you read from 0x1d0 for writing to the MRS.
OK, a few questions:
* Do I read32() from somewhere for _every_ RAM command or only for MRS?
* The v1 code seems to read from the highest RAM address for each DRB
register. In my case:
Get contents of DRB6 (0x8), shift left by 23 as the DRB registers
store multiples of 8 MB, so I get my 64 MB. Correct?
Now; do I read32() from
* (8 << 23)
* (8 << 23) + 0x1d0
* 0x0 + 0x1d0
* 0x0 + 0x1d0 AND (8 << 23) + 0x1d0
* 0x0
* ???
Do I read from x for most commands but from (x + 0x1d0) for MRS?
Or should I read from (x + 0x1d0) for all commands?
I've tried a lot of variations here, but nothing worked. Maybe some
other parts of the code are still broken?
> It seems the i440 might want the address bits inverted on
> the high banks in some configurations, btw; so if it won't
> work, you can try 0x1d0 ^ 0xff8 or so.
Doesn't seem to work either.
Attached my latest code and a minicom log...
Uwe.
--
http://www.hermann-uwe.de | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raminit.c
Type: text/x-csrc
Size: 8686 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20061202/6a565c3e/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minicom.cap
Type: application/cap
Size: 23194 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20061202/6a565c3e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20061202/6a565c3e/attachment.sig>
More information about the coreboot
mailing list