Hikey960板子new一个data分区,并格式化为F2FS

参考网站: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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值