Making Mother piece of mirror
First download SpinandPackBinTool. Rar from the tools directory to Linux system and unzip it:
Copy the images directory we compiled into SpinandPackBinTool/ directory:
# cp. ./images/* ./ -rf
Copy PARTINFO.pni and PINANDINFO.sni:
# cp images/boot/PARTINFO.pni images/boot/SPINANDINFO.sni images/
Next change the SPINand.ini, set the images directory and nandid, and change env_part to ENV0:
# vi SPINAND.INI
Modify set_partition.es to mask setenvmtdparts command and make sure the size of UBI partition does not exceed (A00000+A00000+5000000+500000) :
# vi images/scripts/[[set_partition.es
# <- this is for comment / total file size must be less than 4KB
mtdparts del CIS
setenv mtdparts $(mtdparts),0x20000(KEY_CUST),0x60000(LOGO),0x500000(KERNEL),0x500000(RECOVERY),-(UBI)
saveenv
nand erase.part UBI
ubi part UBI
ubi create rootfs 0xA00000
ubi create miservice 0xA00000
ubi create customer 0x5100000
ubi create appconfigs 0x500000
% <- this is end of file symbol
Execute./ sstarMakeBin and successfully generate Nand. bin. This is our master image:
# ./SstarMakeBin -n SPINAND.INI
文档更新时间: 2021-03-18 11:26 作者:Aeeditor