MSM8974 fastboot烧写软件
fastboot燒寫是在aboot階段做的,所以空板沒有完整燒寫aboot及其boot sequence前的image是沒法使用fastboot的。在手機開機狀態(tài)下,執(zhí)行:
? ? ? ? adb reboot bootloader
? ? 手機就會重啟進入fastboot模式,然后就可以利用fastboot進行單個image的燒寫,具體如下:
? ? ? ? fastboot flash <partition> <filename>
? ? 其中:partition為分區(qū)名稱;filename為image的文件路徑和文件名;兩者可以在下載包的rawprogram0.xml文件中找到,例如:
? ? ? ? filename="boot.img" label="boot"
? ? label代表分區(qū)名,filename代表image名稱,即燒寫boot.img命令為:
? ? ? ? fastboot flash boot <path>\boot.img
? ? msm8974分區(qū)名和image名稱對照表如下:
| 分區(qū)名 | Image名 |
| modem | NON-HLOS.bin? |
| sbl1? | sbl1.mbn? |
| dbi | sdi.mbn? |
| rpm | rpm.mbn? |
| aboot | emmc_appsboot.mbn? |
| boot? | boot.img? |
| recovery? | recovery.img? |
| tz | tz.mbn? |
| persist | persist.img? |
| cache | cache.img? |
| system | system.img? |
| userdata | userdata.img? |
system.img和userdata.img不包含在qpst的軟件發(fā)布包里,可以在android的out/target/product/<project>目錄下找到。
fastboot 支持的命令:
usage: fastboot [ <option> ] <command>
commands:
? update <filename> ? ? ? ? ? ? ? ? ? ? ? ?reflash device from update.zip
? flashall ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? flash boot + recovery + system
??flash?<partition> [ <filename> ] ? ? ? ? write a file to a flash partition
??erase?<partition> ? ? ? ? ? ? ? ? ? ? ? ?erase a flash partition
? getvar <variable> ? ? ? ? ? ? ? ? ? ? ? ?display a bootloader variable
? boot <kernel> [ <ramdisk> ] ? ? ? ? ? ? ?download and boot kernel
? flash:raw boot <kernel> [ <ramdisk> ] ? ?create bootimage and flash it
? devices ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?list all connected devices
??reboot?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? reboot device normally
? reboot-bootloader ? ? ? ? ? ? ? ? ? ? ? ?reboot device into bootloader
總結(jié)
以上是生活随笔為你收集整理的MSM8974 fastboot烧写软件的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: A840S黑砖修复过程(2013-05-
- 下一篇: 摩托罗拉SE4500 三星 S3C641