Quclcomm Android creat partitton , make filesystem ext4 and mount

add partitton to MSM8953.LA.2.0\common\config\partition.xml

Can get GUID at http://www.guidgenerator.com/online-guid-generator.aspx

<partition label=”boot2″ size_in_kb=”65536″ type=”20117F86-E985-4357-B9EE-374BC1D8487D” bootable=”false” readonly=”true” filename=””/>

if GROW_LAST_PARTITION_TO_FILL_DISK= true , add partition before last partiton.

make gpt

pushd MSM8953.LA.2.0/common/build

python build.py
python ../../../BOOT.BF.3.3/boot_images/core/storage/tools/ptool/ptool.py -x ../config/partition.xml
popd

 

gen gpt_backup0.bin gpt_both0.bin gpt_main0.bin

use QFIL flash gpt_xxx.bin and all img

….

make ext4 img

dd if=/dev/zero of=system_new.img bs=1k count=65536

mkfs.ext4 system_new.img

tune2fs -c0 -i0 system_new.img

flash new img

fastboot flash boot2 system_new.img

mount img

su

mkdir -p /system/temp/

mount -t ext4 /dev/block/mmcblk0p22 /system/temp/

df -h // check

mount // check

 

fastboot format:ext4:40000000 parking

fastboot format:ext4:80000000 jxc

fastboot format:ext4:100000 mfc

 

 

ref: https://forum.xda-developers.com/showthread.php?t=2450045

ref: https://android.stackexchange.com/questions/5232/how-can-i-view-the-android-internal-partition-table

未經允許不得轉載:GoMCU » Quclcomm Android creat partitton , make filesystem ext4 and mount