您的位置:首页 > Web前端

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区总空间大小。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: