RE: Enableing Memory Bank 1

From: Hicks, Jamey (Jamey.Hicks@compaq.com)
Date: Wed Jan 09 2002 - 09:52:06 EST


Before booting Linux, use peek ram and poke ram to see test the second
bank of ram after you have turned it on.
        poke ram 0 22
        poke ram 0x04000000 42
        poke ram 0x06000000 0xbeef
        peek ram 0 => 22
        peek ram 0x04000000 => 42
        peek ram 0x06000000 => 0xbeef

Maybe the method I told you won't work because nothing is causing the
precharges to happen in the second bank. We have to add code to turn on
the second bank when the first bank is enabled. One simplifying factor
is that the two banks have to have the same DRAM configuration. We
could turn both on, then precharge, then probe and disable second if no
DRAM is found.

That would also be enough to make suspend/resume work with the 256MB
configuration.

It would be nice to have a unit loaned to us while we debug this.

Jamey

> -----Original Message-----
> From: alban@mycroft.u-net.com [mailto:alban@mycroft.u-net.com]
> Sent: Tuesday, January 08, 2002 7:33 AM
> To: bootldr@handhelds.org
> Subject: [Bootldr] Enableing Memory Bank 1
>
>
> I am trying to enable bank 1 to give me 256 meg ram
>
> the first bank is detected ok and the kernel finds 128mb
> I am using the latest bootldr /hh9 kernel
> Compaq OHH BootLoader, Rev 2-17-17 [BIG_KERNEL] [MD5]
> [MONO]
> Last link date: Mon Jan 7 09:33:41 EST 2002
> Contact: bootldr@handhelds.org
> boot>
>
> looking at the MDCNFG entry in the strongarm developers manual
>
> boot> peek ram 0xa0000000
> addr = A0000000
> value = 0000F365
>
> turning on bit DE1 should enable bank 1 of memory
> poke ram 0xA0000000 0x0000F367
> poke ram:
> addr=A0000000
> value=0000F367
>
> and setting the ram size to 256mb
> set dram_size 0x10000000
> but the mem command gives me
> boot> mem
> Flash memory info:
> Flash types supported (2x16):
> 28F128J3A
> 28F640J3A
> 28F160B3
> 28F160S3
> Flash types supported (1x16):
> 28F128J3A_1x16
> Current flash type is 28F128J3A
> Flash size: 0x02000000
> in megs: 32M
>
> SDRAM memory info:
> SDRAM size:0x08000000
> in megs: 128M
> SDRAM bank0:
> mdcnfg = 0x0000F367
> mdrefr = 0x00300191
> boot>
>
> On booting the kernel, it thinks there is 256mb ram but it panics
>
>
> can anyone tell me what i missed ???
>
>
> _______________________________________________
> Bootldr mailing list
> Bootldr@handhelds.org
> http://handhelds.org/mailman/listinfo/bootldr
>



This archive was generated by hypermail 2.1.5 : Fri Jan 17 2003 - 17:47:03 EST