Share via


Supporting or Simulating More than 64 MB of RAM

The default end address of RAM is 28 MB, unless you set IMGRAM16, IMGRAM32, or IMGRAM64, or build an OS image for a locale outside the United States. The Config.bib file for your platform specifies the end address of RAM. The OEMInit function determines whether to search for additional RAM past the end address of RAM. If you modify Config.bib, OEMInit does not search for additional RAM.

Note   Microsoft assumes in the following procedure that Config.bib specifies the default 28 MB of RAM. If you want to change the default amount, edit the IsDRAM function in the %_WINCEROOT%\Public\Common\OAK\CSP\i486\OAL\Cfwpc.c file.

To support or simulate more than 64 MB of RAM

  1. In %_WINCEROOT%\Public\Common\Oak\Csp\i486\Inc\Pc.h, change CEPC_EXTRA_RAM_SIZE to the total amount of RAM you want to support, minus the amount specified in the Config.bib file.

    The default value is 0x2400000 and the default RAM in Config.bib is 28 MB. To support 128 MB of RAM, change the value to 0x6400000.

  2. In %_WINCEROOT%\Public\Common\Oak\Csp\i486\Oal\OEMInit.asm, change the first entry of _OEMAddressTable to the total amount of RAM you want to support.

    The default value is 0x04000000, which is 64 MB. To support 128 MB of RAM, change the value to 0x8000000.

  3. Build i486oal.lib with the following minimal set of commands.

    cd %_WINCEROOT%\Public\Common\OAK\CSP\i486\Oal
    build -c
    sysgen i486oal
    
  4. Build the platform with the following commands.

    cd %_TARGETPLATROOT%\Kernel\Buildexe
    set WINCEREL=1
    build –c
    makeimg
    

See Also

How to Configure and Build an OS Image for a CEPC

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.