Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Windows CE 6 Error:Image is too large for current RAM and RAMIMAGE

250 views
Skip to first unread message

lukaszlukasz

unread,
Sep 22, 2009, 3:10:12 PM9/22/09
to

Hi, I have some problems with creating new image.
I look on this forum, but I can't find answer.
My issue is, that i don't know how change config.bib
First thing is, that i can't find this file in Visual Studio Platform builder(I can't find such options like Parameters View )so i open this file by finding in manually in his directory C:\WINCE600\PLATFORM\CEPC\FILES and edit it like that ;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
;
; Use of this sample source code is subject to the terms of the Microsoft
; license agreement under which you licensed this sample source code. If
; you did not accept the terms of the license agreement, you are not
; authorized to use this sample source code. For the terms of the license,
; please see the license agreement between you and Microsoft or, if applicable,
; see the LICENSE.RTF on your install media or the root of your tools installation.
; THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
;
MEMORY

#if (defined IMGPPC || defined IMGTPC)
IF IMGPERSISTENTSTORAGE !
This line is left here on purpose to indicate IMGPERSISTENTSTORAGE is a required for building smartfon / ppc images.
Please check your environment settings.
ENDIF IMGPERSISTENTSTORAGE !
IF IMGRAMFMD !
This line is left here on purpose to indicate IMGRAMFMD is a required for building smartfon / ppc images.
Please check your environment settings.
ENDIF IMGRAMFMD !

NK 81200000 00A00000 RAMIMAGE

#if defined IMGRAM16
#error IMGRAM16 unsupported on PPC/smartfon.
#elif defined IMGRAM32
#error IMGRAM32 unsupported on PPC/smartfon.
#elif defined IMGRAM64
RAM 81C00000 02400000 RAM
#elif defined IMGRAM128
RAM 81C00000 06400000 RAM
nk.exe:dwOEMTotalRAM 0 08000000 FIXUPVAR
#elif defined IMGRAM256
RAM 81C00000 0E400000 RAM
nk.exe:dwOEMTotalRAM 0 10000000 FIXUPVAR
#elif defined IMGRAM512
RAM 81C00000 1E400000 RAM
nk.exe:dwOEMTotalRAM 0 20000000 FIXUPVAR
#else
; Default 96 MB Config
RAM 81C00000 1E400000 RAM
nk.exe:dwOEMTotalRAM 0 20000000 FIXUPVAR
#endif

FRAMEBUF 800A0000 00020000 RESERVED
PCMCIABUF 800D0000 00010000 RESERVED
; Debug Ethernet packet buffers
EDBG 801DC000 00020000 RESERVED
AUDIOBUF 801FC000 00002000 RESERVED
UNUSED 801FE000 00000004 RESERVED
LOADRBUF 801FFF00 00000100 RESERVED
; Note: The RAMFMD entries need corresponding platform.reg entries.
RAMFMD 80200000 01000000 RESERVED

;
; SKU fixupvar
; should uniquely identify the device you are building
; A 6 byte number unique in the Ethernet MAC address space
; dwSKUInfo is the first 4 bytes
; dwSKUInfoLW is the last 2 bytes (LW = LoWord)
;

dwSKUInfo 00000000 57454350 FIXUPVAR

IF _TGTPROJ=wpc
dwSKUInfoLW 00000000 00005750 FIXUPVAR
ENDIF
IF _TGTPROJ=smartfon
dwSKUInfoLW 00000000 00005450 FIXUPVAR
ENDIF
#else
#if defined IMGRAM16
; 16 MB of RAM (note: AUTOSIZE will adjust boundary)
NK 80220000 009E0000 RAMIMAGE
RAM 80C00000 00400000 RAM
#elif defined IMGRAM32
; 32 MB of RAM (note: AUTOSIZE will adjust boundary)
NK 80220000 009E0000 RAMIMAGE
RAM 80C00000 01400000 RAM
#elif defined IMGRAM64
; 64 MB of RAM (note: AUTOSIZE will adjust boundary)
NK 80220000 009E0000 RAMIMAGE
RAM 80C00000 03400000 RAM
#elif defined IMGRAM128
; 128 MB of RAM (note: AUTOSIZE will adjust boundary)
NK 80220000 009E0000 RAMIMAGE
RAM 80C00000 07100000 RAM
nk.exe:dwOEMTotalRAM 0 08000000 FIXUPVAR
#elif defined IMGRAM256
; 256 MB of RAM (note: AUTOSIZE will adjust boundary)
NK 80220000 009E0000 RAMIMAGE
RAM 80C00000 0EB00000 RAM
nk.exe:dwOEMTotalRAM 0 10000000 FIXUPVAR
#elif defined IMGRAM512
; 512 MB of RAM (note: AUTOSIZE will adjust boundary)
NK 80220000 009E0000 RAMIMAGE
RAM 80C00000 1E000000 RAM
nk.exe:dwOEMTotalRAM 0 20000000 FIXUPVAR
#else
; 28 MB of RAM (default) (note: AUTOSIZE will adjust boundary)
; This value will cause the RAM auto-detect feature to trigger
NK 80220000 009E0000 RAMIMAGE
RAM 80C00000 1E000000 RAM
nk.exe:dwOEMTotalRAM 0 20000000 FIXUPVAR
#endif

DMA 80100000 00030000 RESERVED ; Native DMA reserved.
BOOTARGS 801FFF00 00000100 RESERVED ; Boot arguments
EDBG_DMA 80200000 00020000 RESERVED ; EDBG DMA buffer
#endif (defined IMGPPC || defined IMGTPC)

; Hard reset the system on a software reboot?
;
IF BSP_HARDRESET
nk.exe:pdwHardReset 00000000 1 FIXUPVAR
ELSE
nk.exe:pdwHardReset 00000000 0 FIXUPVAR
ENDIF

; This fix-up variable is a bitfield that can be used to initialize
; the OAL debug zones per oal_log.h. Uncomment the line and
; change the hexadecimal bits to enable the desired zones. The
; default value (0x0000000B) enables the OAL_LOG_ERROR,
; OAL_LOG_WARN, and OAL_LOG_INFO zones, and will be used by
; OEMInit if the line remains commented out.
;
; nk.exe:initialOALLogZones 00000000 0x0000000B FIXUPVAR

; This fix-up variable is a bitfield that can be used to initialize
; the Kernel debug zones per kernel.h. Uncomment the line and
; change the hexadecimal bits to enable the desired zones. The
; default value (0x00000100) enables the ZONE_DEBUG.
;
; kernel.dll:initialKernelLogZones 00000000 00000110 FIXUPVAR

; This fix-up variable determines the amount of memory the BSP
; reserves for Watson dump capture. The current default behavior is
; to default to zero unless the image has SYSGEN_WATSON_DMPGEN
; defined. The default size is 300KiB.
;
; @CESYSGEN IF CE_MODULES_OSAXST0
nk.exe:dwOEMDrWatsonSize 00000000 0x4B000 FIXUPVAR
; @CESYSGEN ENDIF

CONFIG
AUTOSIZE=ON

; @CESYSGEN IF !NK_NKNOCOMP
COMPRESSION=ON
; @CESYSGEN ENDIF !NK_NKNOCOMP
; @CESYSGEN IF NK_NKNOCOMP
COMPRESSION=OFF
; @CESYSGEN ENDIF NK_NKNOCOMP

IF IMGPROFILER
PROFILE=ON
ELSE
PROFILE=OFF
ENDIF

KERNELFIXUPS=ON

IF IMGPERSISTENTSTORAGE
FSRAMPERCENT=0x00000010
ENDIF

IF IMGTINYFSRAM
FSRAMPERCENT=0x00000080
ENDIF

IF IMG_SMARTFON_TINYFS
FSRAMPERCENT=0x000000ff
ENDIF

;
; ROMFLAGS is a bitmask of options for the kernel
; ROMFLAGS 0x0001 Disallow Paging
; ROMFLAGS 0x0010 Trust Module only
;
IF IMGTRUSTROMONLY
ROMFLAGS=10
ELSE
ROMFLAGS=0
ENDIF


IF _TGTCPUFAMILY=x86
ROMOFFSET=80000000
ENDIF


i change default settings to 512mb of ram, by coping values in default place. Do you know what im doing wrong? what else i should change?

EggHeadCafe - Software Developer Portal of Choice
WPF And The Model View View Model Pattern
http://www.eggheadcafe.com/tutorials/aspnet/ec832ac7-6e4c-4ea8-81ab-7374d3da3425/wpf-and-the-model-view-vi.aspx

Bruce Eitman [eMVP]

unread,
Sep 22, 2009, 11:29:27 PM9/22/09
to
What exactly did you do to that file. You don't really expect us to read
through that mess that you posted to figure it out do you? Did you notice
all of those if conditions? We would need to know which of those you are
using. The post processed file CONFIG section is at the start of your
ce.bib. We also don't know anything about your hardware.

Next the problem isn't just that you need more RAM, it is that you need more
ROM space for the OS image and more RAM.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

<lukasz lukasz> wrote in message news:200992215...@o2.pl...

0 new messages