加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

MTK feature phone 52D FLASH配置分析

发布时间:2020-12-15 07:11:48 所属栏目:百科 来源:网络整理
导读: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-fla

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区总空间大小。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读