hi all,my system had 128M sdram,
but now only 64M are used.
so I wanna change the related files to use the whole 128M ram,
my processor is pxa255 in ce4.2,and so bank0 and bank1,each 64M.

I modified the following files:
1,cfwxsc1.c
BOOL OEMGetExtensionDRAM(LPDWORD lpMemStart, LPDWORD lpMemLen)
{
*lpMemStart = 0x84000000;
*lpMemLen = 0x02000000;
return TRUE;
}

2,fwxsc1.s
orr r3, r3, #MDCNFG_DE1


3,memmap.inc
DCD SDRAM_BASE_C_VIRTUAL, SDRAM_BASE_PHYSICAL, 96


4,xsc1bd.inc
MDCNFG_VAL EQU 0x19C319C3


after then ,my system can work properly,
but in the control panel,
the ram did not increase any more,
anyone tell me the reason?
thank u very much.

another retail thread is below,maybe u can help me,
any suggestion will be appreciated.
http://groups.google.com/group/microsoft.public.windowsce.platbuilder/browse_thread/thread/090a4610666fc28e/68c8f77f4464fc29?lnk=raot#68c8f77f4464fc29

Re: how to increase sdram by Luca

Luca
Wed Jun 11 00:10:35 PDT 2008


Have you modified config.bib to declare the additional memory?
OEMGetExtensionDRAM should
report RAM sections not listed in config.bib.Apart memory controller
configuration which I didn't check:
if you enable KITL you should see some info about memory from the kernel
after the message
'Booting Windows CE version...'. Those messages come from the function
KernelFindMemory which
calls OEMGetExtensionDRAM. (if your OAL does not set pNKEnumExtensionDRAM).

Anyway it is simpler if you modify OEMAddressTable from
DCD 0x80000000, 0xA0000000, 64
to
DCD 0x80000000, 0xA0000000, 128

and config.bib accordingly

--

Luca Calligaris
www.eurotech.it

"blueYork" <yaoronger@tom.com> ha scritto nel messaggio
news:a9c281a5-12d7-4c46-a864-1d22bc4dc416@j33g2000pri.googlegroups.com...
> hi all,my system had 128M sdram,
> but now only 64M are used.
> so I wanna change the related files to use the whole 128M ram,
> my processor is pxa255 in ce4.2,and so bank0 and bank1,each 64M.
>
> I modified the following files:
> 1,cfwxsc1.c
> BOOL OEMGetExtensionDRAM(LPDWORD lpMemStart, LPDWORD lpMemLen)
> {
> *lpMemStart = 0x84000000;
> *lpMemLen = 0x02000000;
> return TRUE;
> }
>
> 2,fwxsc1.s
> orr r3, r3, #MDCNFG_DE1
>
>
> 3,memmap.inc
> DCD SDRAM_BASE_C_VIRTUAL, SDRAM_BASE_PHYSICAL, 96
>
>
> 4,xsc1bd.inc
> MDCNFG_VAL EQU 0x19C319C3
>
>
> after then ,my system can work properly,
> but in the control panel,
> the ram did not increase any more,
> anyone tell me the reason?
> thank u very much.
>
> another retail thread is below,maybe u can help me,
> any suggestion will be appreciated.
> http://groups.google.com/group/microsoft.public.windowsce.platbuilder/browse_thread/thread/090a4610666fc28e/68c8f77f4464fc29?lnk=raot#68c8f77f4464fc29



Re: how to increase sdram by blueYork

blueYork
Wed Jun 11 00:55:59 PDT 2008

Thank u for your suggestion.

I did not modify config.bib any more,
I also enable KITL and see the info below:
///////////////////////////
Booting kernel with clean memory configuration:
0 PID:0 TID:0 Memory Sections:
0 PID:0 TID:0 [0] : start: 82d3d000, extension: 00001000, length:
00f7a000
0 PID:0 TID:0 [1] : start: 84000000, extension: 00002000, length:
01ffe000
0 PID:0 TID:0 Sp=ffffc7cc
/////////////////////////
it seems that the sdram I declared has been detected.
but as i found before,in ce control panel,
it did not show the anticipated configuration which should be more
40M,

I also wanna modify OEMAddressTable from
DCD 0x80000000, 0xA0000000, 64
to
DCD 0x80000000, 0xA0000000, 128 ,
but if then,the next address should be started at 88000000,
and now,my system did not use 84000000 to 86000000,
so I modified the files for adding 32M sdram for testing,
just like this:
DCD 0x80000000, 0xA0000000, 64
to
DCD 0x80000000, 0xA0000000, 96 ,
so,I modify files as less as i can.

any hints will be appreciate.