MTK feature phone 52D FLASH配置分析
2012-09-03 11:36
1151 查看
1.Step one,config FS region:
By default, FS region is located the last bank of NOR Flash.
For specific purpose, user are able to manually configure the region.
Step 1. Start address of FS region on NOR-flash,
Step 2. Total FS size on NOR-flash disk
Step 3. The first drive (or partition) size of FS region. if no additional drive on NOR-flash disk, it should be 0. For more details, please refer to REMIND.
#define NOR_BOOTING_NOR_FS_BASE_ADDRESS 0x1DD000 //0x1E0000 //0x1DD000
#define NOR_BOOTING_NOR_FS_SIZE 0x23000 //0x20000 //0x023000
#define NOR_BOOTING_NOR_FS_FIRST_DRIVE_SECTORS 0 //22
2.Step two,config RAM&CODE region:
By default, Scatter File will bound CODE BINARY as FS BASE ADDRESS.
And bound the RAM Limit as Memory Density.
For specific purpose, user are able to manually configure the
EXPECTED RAM LIMIT and EXPECTED CODE LIMIT here
Low
+------------------+
| ROM | <-- (PROJECT_EXPECTED_CODE_LIMIT -CONFIG_ZIMAGE_MAX_COMPRESSED_SIZE)
| |
+------------------+
| ZIMAGE | <-- CONFIG_ZIMAGE_MAX_COMPRESSED_SIZE
| |
+------------------+ <-- FS_BASE_ADDRESS(==NOR_BOOTING_NOR_FS_BASE_ADDRESS==PROJECT_EXPECTED_CODE_LIMIT)
| FS |
| |
+------------------+
High
#define PROJECT_EXPECTED_RAM_LIMIT 0x400000 //4M RAM
#define PROJECT_EXPECTED_CODE_LIMIT 0x1DD000 //0x1E0000 //0x1DD000
3.Step three,config Zimage region:
Following definitions are used to configure the ZIMAGE size
CONFIG_ZIMAGE_DECOMPRESSED_ZISE - defines the extnal ram size allocated for the decompressed ZIMAGE.
CONFIG_ZIMAGE_MAX_COMPRESSED_SIZE - defines the maximum ROM space allocated for ZIMAGE
#define CONFIG_ZIMAGE_DECOMPRESSED_ZISE 0x26E000
#define CONFIG_ZIMAGE_MAX_COMPRESSED_SIZE 0x161000 //0x164000 //0x0x161400
备注:
1.NOR_BOOTING_NOR_FS_BASE_ADDRESS 文件系统的起始地址,大小等同于代码区总大小(ROM+Zimage)。
2.CONFIG_ZIMAGE_MAX_COMPRESSED_SIZE 为压缩后的那部分的Code大小
3.PROJECT_EXPECTED_CODE_LIMIT-CONFIG_ZIMAGE_MAX_COMPRESSED_SIZE :为不压缩那部分Code区总空间大小。
By default, FS region is located the last bank of NOR Flash.
For specific purpose, user are able to manually configure the region.
Step 1. Start address of FS region on NOR-flash,
Step 2. Total FS size on NOR-flash disk
Step 3. The first drive (or partition) size of FS region. if no additional drive on NOR-flash disk, it should be 0. For more details, please refer to REMIND.
#define NOR_BOOTING_NOR_FS_BASE_ADDRESS 0x1DD000 //0x1E0000 //0x1DD000
#define NOR_BOOTING_NOR_FS_SIZE 0x23000 //0x20000 //0x023000
#define NOR_BOOTING_NOR_FS_FIRST_DRIVE_SECTORS 0 //22
2.Step two,config RAM&CODE region:
By default, Scatter File will bound CODE BINARY as FS BASE ADDRESS.
And bound the RAM Limit as Memory Density.
For specific purpose, user are able to manually configure the
EXPECTED RAM LIMIT and EXPECTED CODE LIMIT here
Low
+------------------+
| ROM | <-- (PROJECT_EXPECTED_CODE_LIMIT -CONFIG_ZIMAGE_MAX_COMPRESSED_SIZE)
| |
+------------------+
| ZIMAGE | <-- CONFIG_ZIMAGE_MAX_COMPRESSED_SIZE
| |
+------------------+ <-- FS_BASE_ADDRESS(==NOR_BOOTING_NOR_FS_BASE_ADDRESS==PROJECT_EXPECTED_CODE_LIMIT)
| FS |
| |
+------------------+
High
#define PROJECT_EXPECTED_RAM_LIMIT 0x400000 //4M RAM
#define PROJECT_EXPECTED_CODE_LIMIT 0x1DD000 //0x1E0000 //0x1DD000
3.Step three,config Zimage region:
Following definitions are used to configure the ZIMAGE size
CONFIG_ZIMAGE_DECOMPRESSED_ZISE - defines the extnal ram size allocated for the decompressed ZIMAGE.
CONFIG_ZIMAGE_MAX_COMPRESSED_SIZE - defines the maximum ROM space allocated for ZIMAGE
#define CONFIG_ZIMAGE_DECOMPRESSED_ZISE 0x26E000
#define CONFIG_ZIMAGE_MAX_COMPRESSED_SIZE 0x161000 //0x164000 //0x0x161400
备注:
1.NOR_BOOTING_NOR_FS_BASE_ADDRESS 文件系统的起始地址,大小等同于代码区总大小(ROM+Zimage)。
2.CONFIG_ZIMAGE_MAX_COMPRESSED_SIZE 为压缩后的那部分的Code大小
3.PROJECT_EXPECTED_CODE_LIMIT-CONFIG_ZIMAGE_MAX_COMPRESSED_SIZE :为不压缩那部分Code区总空间大小。
相关文章推荐
- MTK feature phone 50D/50A FLASH配置分析
- MTK feature phone 射频参数配置
- MTK feature phone 音频参数配置
- MTK feature phone 射频参数配置
- MTK feature phone ADC参数配置
- MTK feature phone 射频参数配置
- MTK Flashtool / Smart Phone Flash Tool / flash_tool 使用教程
- MTK之Flash篇二------如何调整Flash中FAT的配置
- MTK feature phone LCD开机显示花屏调试
- mtk配置flash
- IAR的ILINK链接器icf配置文件(分析MKE18F512xxx16_flash.icf)
- MTK android flash 配置
- MTK Android flash 配置
- 试图搞懂MDK程序下载到flash(三)--MDK配置选项Linker、Target、Debug的理解分析
- MTK feature phone 待机电流过大调试
- MTK android flash 配置
- MTK android flash 配置
- MTK android flash 配置
- 试图搞懂MDK程序下载到flash(三)--MDK配置选项Linker、Target、Debug的理解分析
- MTK feature phone LCD调试方法