[Android] 华为荣耀2制作fastboot线刷包[海思平台]

1. 荣耀2相关信息:

shell@android:/ # df 
Filesystem             Size   Used   Free   Blksize
/dev                   864M    64K   864M   4096
/mnt/asec              864M     0K   864M   4096
/mnt/obb               864M     0K   864M   4096
/system                881M   438M   443M   4096
/cache                 251M     4M   247M   4096
/data                    5G   812M     4G   4096
/cust                  503M    49M   454M   4096
/modem/modem_image      31M    19M    11M   4096
/modem/nvm1              7M     4M     3M   4096
/modem/nvm2              7M     4M     3M   4096
/reserved2               7M     4M     3M   4096
/data/peers            864M     0K   864M   4096
/mnt/sdcard2             5G   812M     4G   4096
/mnt/sdcard              7G     3G     3G   32768
/mnt/secure/asec         7G     3G     3G   32768
/mnt/asec/com.qqgame.hlddz-1    24M    23M     1M   4096
/mnt/asec/no.tine.mrmelkwintergames-1    42M    41M     1M   4096
/mnt/asec/com.chigames.Rope-1    14M    13M   976K   4096

2. 在手机端上为荣耀2制作线刷包

#system
make_ext4fs -s -l 881M -a system /sdcard/system.img /system
#cache
make_ext4fs -s -l 251M -a cache /sdcard/cache.img /cache
#userdata
make_ext4fs -s -l 5120M -a userdata /sdcard/data.img /data
#cust
make_ext4fs -s -l 503M -a cust /sdcard/cust.img /cust
#boot
dd if=/dev/block/platform/hi_mci.1/by-name/boot of=/sdcard/boot.img
#recovery
dd if=/dev/block/platform/hi_mci.1/by-name/recovery of=/sdcard/recovery.img

 

你可能感兴趣的:(android)