输入m使用帮助
Command (m for help):$\color{#FF0000}{m}$
首先我们删除所有分区
Command (m for help):$\color{#FF0000}{d}$
显示以下信息说明以及将EMMC的全部分区删除完毕。
No partition is defined yet!
创建新的分区
Command (m for help):$\color{#FF0000}{n}$
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
选择分区类型,也可以直接回车,default为默认选择
Select (default p): $\color{#FF0000}{p}$
输入分区号
Partition number (1-4, default 1): $\color{#FF0000}{1}$
输入该分区的起始地址
First sector (2048-31116287, default 2048): $\color{#FF0000}{2048}$
输入该分区的结束地址,如果想创建多个分区,请合理分配地址。
Last sector, +sectors or +size{K,M,G} (2048-31116287, default 31116287): $\color{#FF0000}{31116287}$
打印分区情况
Command (m for help):$\color{#FF0000}{p}$
修改分区的系统类型
Command (m for help):$\color{#FF0000}{t}$
选择要修改的分区号
Partition number (1-4): $\color{#FF0000}{1}$
打印可设置的系统类型
Hex code (type L to list codes): $\color{#FF0000}{l}$
设置选择分区为W95 FAT32 (LBA)格式
Hex code (type L to list codes): $\color{#FF0000}{c}$
保存分区设置并退出
Command (m for help): $\color{#FF0000}{w}$
将/dev/mmcblk0p1格式化为FAT32格式
mkdosfs /dev/mmcblk0p1