Hello,
I'm using the BSP BSP_FSIMX6SX_WLAN_20190219 for WEC7 on efusA9X and have a problem when trying to add nearly all locales to the OS image.
I followed this article to add the locales "Adding (all) locales to WEC7"
When making the runtime image I get the following error message in pass 1, build.log shows:
QuoteFailed to find a range for data of size 1608282
Error: Ran out of space in ROM for wince.nls size 1608282
Fatal error hit, exiting...
The problem seems to be the size of the file wince.nls. When removing some Chinese related LCIDs (language code identifier) from the nlscfg.inf file, the size of the file wince.nls is reduced from 1.608.282 bytes to 691.814 bytes and everything works fine.
The overall size of the OS image (xip.bin) seems to be not the problem. The size of my xip.bin file was about 54 MBytes when I have experienced this problem. I reduced the size by removing some features to 50 MBytes and got the same error message as with the bigger image.
I have not modified the memory mapping in config.bib.
If I reduce the size of wince.nls so that making the OS image works, I get the following information about this file:
In ce.bib:
QuoteDisplay More; @CESYSGEN IF COREDLL_CORELOC
wince.nls C:\WINCE700\OSDesigns\FSiMX6SX\FSiMX6SX\RelDir\FS_iMX6SX__ARMV7_Release\wince.nls XIPKERNEL SHU
FILES
ceconfig.h C:\WINCE700\OSDesigns\FSiMX6SX\FSiMX6SX\RelDir\FS_iMX6SX__ARMV7_Release\ceconfig.h NK
; @CESYSGEN IF COREDLL_CORELOC
wince.nls C:\WINCE700\OSDesigns\FSiMX6SX\FSiMX6SX\RelDir\FS_iMX6SX__ARMV7_Release\wince.nls NK SHU
In build.log
- ...
- FILES Section
- Raw Compr Location Filler File
- 691814 691814 80503ac8 wince.nls
- ...
- MODULES Section
- Module Section Start Length psize vsize Filler
- ---------------------- -------- --------- ------- ------- ------- ------
- wince.nls FileName 804d6ff4 10 FILLER
- ...
- FILES Section
- Raw Compr Location Filler File
- 691814 691814 82a8894c wince.nls
- ...
- MODULES Section
- Module Section Start Length psize vsize Filler
- ---------------------- -------- --------- ------- ------- ------- ------
- wince.nls FileName 8290aff4 10 FILLER
- ...
- FILES Section
- Raw Compr Location Filler File
- 691814 691814 80503ac8 wince.nls
- ...
- MODULES Section
- Module Section Start Length psize vsize Filler
- ---------------------- -------- --------- ------- ------- ------- ------
- wince.nls FileName 804d6ff4 10 FILLER
- ...
- Writing C:\WINCE700\OSDesigns\FSiMX6SX\FSiMX6SX\RelDir\FS_iMX6SX__ARMV7_Release\NK.bin
- Failed calling bin2xip.exe C:\WINCE700\OSDesigns\FSiMX6SX\FSiMX6SX\RelDir\FS_iMX6SX__ARMV7_Release\chain.bin C:\WINCE700\OSDesigns\FSiMX6SX\FSiMX6SX\RelDir\FS_iMX6SX__ARMV7_Release\privkey.dat: 2
- Table of contents 832e0f34 00005c60 ( 23648)
- Writing ROM signature and TOC pointer at 80624040
- ROM Header 832e0ee0 00000054 ( 84)
- First DLL Address: 4013eec6
- Last DLL Address: 4239efd3
- Physical Start Address: 80624000
- Physical End Address: 832e6b94
- Start RAM: 80620000
- Start of free RAM: 8066d000
- End of RAM: 90000000
- Number of Modules: 291
- Number of Copy Sections: 0
- Copy Section Offset: 00000000
- Kernel Flags: 00000001
- FileSys 4K Chunks/Mbyte: 32 <2Mbyte 32 2-4Mbyte 0 4-6Mbyte 0 >6Mbyte
- CPU Type: 01c2h
- Extensions Pointer: 80222340
- Total ROM size: 02cc2b94 ( 46934932)
- Starting ip: 806303e0
- Raw files size: 00f3baaa
- Compressed files size: 00991975
- Compacting bin file...
- Combining bin files...
- Compacting bin file...
- Done!
- RunPostMakeimg:
- MAKEIMG: BUILDMSG: Calling C:\WINCE700\public\common\oak\misc\pbpostmakeimg.bat
- Makeimg:
- MAKEIMG: BUILDMSG: Make Image process completed successfully
- Done Building Project "C:\WINCE700\public\common\oak\misc\makeimg.proj" (default targets).
- Build succeeded.
- 0 Warning(s)
- 0 Error(s)
To reproduce this issue, please enable all Catalog Locale items in "FSiMX6SX -> Core OS -> Windows Embedded Compact -> International -> Language -> xxx -> Locale -> yyy" and use the following nlscfg.inf file:
- 007f 0403 0406 0407 0807 0c07 1007 1407 0409 0809 0c09 1009 1409 1809 1c09 2009
- 2409 2809 2c09 3009 3409 040a 080a 0c0a 100a 140a 180a 1c0a 200a 240a 280a 2c0a 300a
- 340a 380a 3c0a 400a 440a 480a 4c0a 500a 040b 040c 080c 0c0c 100c 140c 180c 040f 0410
- 0810 0413 0813 0414 0814 0416 0816 041d 081d 0421 042d 0436 0438 043e 083e 0441 0456
- 3801 3C01 1401 0C01 0801 2C01 3401 3001 1001 1801 2001 4001 0401 2801 1C01
- 2401 082C 042C 0423 0402 0405
- 0465 0408 540A 0425 0429 0447 040D 0439 041A
- 040E 042B 0411 0437 043F 044B 0412 0457 0440
- 0427 0426 042F 0450 044E 0446 0415
- 0418 0419 044F 041B 0424
- 041C 0C1A 081A 045A 0449 044A 041E 0444
- 0422 0420 0843 0443 042A 0804 0C04 1404 1004 0404
- LOC_INCLUDELOCALES
When removing the last 5 LCIDs (0804, 0C04, 1404, 1004, 0404, all are related to China) the size of wince.nls is reduced significantly and everything works fine.
Any ideas what to do so that the file fits into the image?
Best regards,
Habi