NUC972平台学习笔记之dapa及prog编译
作者:互联网
编译生成dapa.ubi文件
[root@localhost Dapa]# ls
dapa dapa.img dapa.ubi ubinize.cfg 命令.txt
[root@localhost Dapa]# mkfs.ubifs -F -m 2048 -e 126976 -c 128 -o dapa.img -r dapa
[root@localhost Dapa]# ls
dapa dapa.img dapa.ubi ubinize.cfg 命令.txt
[root@localhost Dapa]# ubinize -o dapa.ubi -m 2048 -p 131072 -O 2048 -s 2048 ubinize.cfg
ubinize: volume size was not specified in section "ubifs", assume minimum to fit image "dapa.img"1650688 bytes (1.6 MiB)
编译生成prog.ubi文件
生成prog.img
编译后的应用APP拷贝到 /Linux/Prog/bin目录
[root@localhost Prog]# cp -rf /mnt/hgfs/LINUX_JZQ/Linux/Prog/* /usr/Prog/
[root@localhost Prog]# ls
prog prog.img prog.ubi ubinize.cfg 命令.txt
[root@localhost Prog]# mkfs.ubifs -F -m 2048 -e 126976 -c 128 -o prog.img -r prog
生成prog.ubi
[root@localhost Prog]# rm -f prog.ubi
[root@localhost Prog]# ls
prog prog.img ubinize.cfg 命令.txt
[root@localhost Prog]# ubinize -o prog.ubi -m 2048 -p 131072 -O 2048 -s 2048 ubinize.cfg
ubinize: volume size was not specified in section "ubifs", assume minimum to fit image "prog.img"3428352 bytes (3.3 MiB)
至此dapa.ubi及prog.ubi编译完成
标签:dapa,ubinize,NUC972,prog,root,ubi,localhost 来源: https://www.cnblogs.com/azan777/p/14695229.html