|
本帖最后由 tanzh 于 2019-5-24 11:22 编辑
parameter.txt示例文件
- CMDLINE:console=ttyS2 androidboot.selinux=permissive //selinux权限
- androidboot.hardware=rk30board //板型
- androidboot.console=ttyS2 //debug串口
- init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:
- 0x00002000@0x00002000(uboot), //各分区占用空间,起始地址
- 0x00002000@0x00004000(misc),
- 0x00008000@0x00006000(resource),
- 0x00008000@0x0000e000(kernel),
- 0x00010000@0x00016000(boot),
- 0x00010000@0x00026000(recovery),
- 0x0001a000@0x00036000(backup),
- 0x00040000@0x00050000(cache),
- 0x00002000@0x00090000(kpanic),
- 0x00300000@0x00092000(system),
- 0x00008000@0x00392000(metadata),
- 0x00002000@0x0039A000(baseparamer),
- 0x00100000@0x0039C000(userdata),
- 0x00020000@0x0049C000(radical_update),
- -@0x004BC000(user)
复制代码
实例1:修改data分区大小为512M,即应用缓存分区
0x00100000@0x0039C000(userdata),
//前面的是大小 :0x00100000(转成10进制)/2048=512MB
//后面的是起始地址:0x0039C000
PS:修改前面分区的容量后,后面分区的基地址也要跟着修改
实例2:修改system.img的限制大小
device/rockchip/common/BoardConfig.mk
BOARD_SYSTEMIMAGE_PARTITION_SIZE : = 1524000000 //1.5G
parameter.txt
0x00300000@0x00092000(system),
//0x00300000(转成10进制)/2048=1.5G
|
|