nano px30 分区文件是 parameter.txt,android 的是 在nano-px30-android8.1/rockdev/Image-rk3326_evb 目录下,而 linux 是在 nano-px30-linux/rockdev/ 目录下,分区文件最重要的内容:
CMDLINE:mtdparts=rk29xxnand:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00008000@0x0000a000(resource),0x00010000@0x00012000(kernel),0x00010000@0x00022000(boot),0x00020000@0x00032000(recovery),0x00038000@0x00052000(backup),0x00002000@0x0008a000(security),0x000c0000@0x0008c000(cache),0x00300000@0x0014c000(system),0x00008000@0x0044c000(metadata),0x000c0000@0x00454000(vendor),0x00040000@0x00514000(oem),0x00000400@0x00554000(frp),-@0x00554400(userdata:grow)
将上面分区的内容整理后
0x00002000@0x00004000(uboot), 0x00002000@0x00006000(trust), 0x00002000@0x00008000(misc), 0x00008000@0x0000a000(resource), 0x00010000@0x00012000(kernel), 0x00010000@0x00022000(boot), 0x00020000@0x00032000(recovery), 0x00038000@0x00052000(backup), 0x00002000@0x0008a000(security), 0x000c0000@0x0008c000(cache), 0x00300000@0x0014c000(system), 0x00008000@0x0044c000(metadata), 0x000c0000@0x00454000(vendor), 0x00040000@0x00514000(oem), 0x00000400@0x00554000(frp), -@0x00554400(userdata:grow)
分区使用的并不是实际地址,而是以扇区为单位的地址,这里一个扇区是512byte。,以uboot和userdata为例, 0x00002000@0x00004000(uboot), 表示uboot分区的 起始地址为:0x00004000x512 = 0x00800000 大小为: 0x00002000x512 =0x00400000byte = 4MB -@0x00554400(userdata:grow) 表示userdata分区的 起始地址为:0x00554400x512 = 0xaa880000 -表示emmc剩余空间全部分给userdata分区。
|