Convert to: increase the image size in wince 6.0.

Source: Internet
Author: User

Generally, the default image size of the wince system is 32 MB. Generally, this size is enough. However, if many components are added, the generated NK. Bin will exceed 32 MB, and some modifications are required.

1. Check the Configuration Attribute "run-time image can be larger than 32 MB (imgram64 = 1)" of the project.

2. Modify loader. h under eboot.

# Define rom_ramimage_size 0x02300000

Here I adjust the image to 35 MB

3. Modify config. bib.

NK 80200000 02300000 ramimage

Ram 82500000 01b00000 Ram

......

......

Romstart = 80200000

Romwidth = 32

Romsize = 02300000

Modify rules:

NK start 80200000 starts with image and corresponds to eboot.

NK size 2300000 is the image size, which corresponds to ebbot

Ram start 82500000 is the ram start address, nkstart + nksize = 82500000

Ram size 01b00000 is the ram size, 84000000 (64 m flash)-ramstart = 01b00000

Romstart = nkstart

Romsize = nksize

From this, we can see that if NK is increased, Ram will be reduced. In addition, romsize is used to set the size of NK. nbx.

At this time, as long as your kernel does not exceed 35 MB, it will be OK.

In addition, codewarrior friends on csdn suggested putting some big components (such as Chinese characters) libraries into the user store (such as SD card and flash) to reduce the kernel size. This is also a good solution, when loading NK, You need to load it to the user store. Note that the driver of the storage device that saves the font should be loaded before loading the display driver. Otherwise, the Chinese font cannot be loaded. Save the font to the storage device in the registry because the driver of the storage device has been loaded for a long time.

Address: http://www.cnblogs.com/feishanm/archive/2009/08/04/1538284.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.