参考网站:https://github.com/96boards-hikey/partition-table-tool
1.
在网站https://github.com/96boards-hikey/partition-table-tool上将工具下载放在PC或服务器上解压
2.
新添加分区,首先在hisi_partition.h和partition.h中新增分区宏(分区名)
vim hisi_partition.h
#define PART_RESERVED "reserved"
#define PART_RESERVED2 "reserved2" //新增
#endif
vim partition.h
{PART_RESERVED, 5843*1024, 1024, UFS_PART_3},/* reserved 1M sdd12 */
{PART_RESERVED2, 5844*1024, (12288UL)*1024, UFS_PART_3},/* RESERVED2 12G sdd13 */ //新增
{PART_USERDATA, 18132*1024, (12358UL)*1024, UFS_PART_3},/* USERDATA 12G sdd14 */
{"0", 0, 0, 0},
3.
make,生成efipartition.d efipartition.o
4.
生成ptable.img
./efipartition hisi-ptable.img
5.
修改后需要同步修改文件
a