1. 程式人生 > >MTK平臺fastboot單燒img檔案

MTK平臺fastboot單燒img檔案

不積跬步無以至千里

       剛剛接觸MTK平臺的android系統,因為需要驗證修改的問題,剛完成整個的編譯,想要燒寫system.img檔案,因為MTK平臺提供了PC端的燒寫工具,但是有的時候不支援單獨的燒寫,所以我們還是需要去用fastboot命令去完成單獨的燒寫。

步驟如下:

1、進入開發者模式

 設定上能進行oem解鎖(預設是關閉的)

2、進入fastboot模式

adb reboot bootloader

3、進行oem解鎖

fastboot oem unlock

進入後,按著螢幕提示,按音量上鍵

提示Ok

4、fastboot 燒寫想燒寫的img檔案(路徑在:out/target/product/裝置名/ 下)

當然最好boot和system 一起燒寫,否則有可能開不了機

燒寫system檔案:

fastboot flash system  +   system檔案路徑

燒寫boot檔案:

fastboot flash boot  + boot檔案路徑

燒寫出現問題如下問題時:

當你燒寫system檔案時,有可能提示你“FAILED (remote: data is too large)”

你可以執行如下命令:

fastboot -S 100M flash system + 檔案路徑

其中的"-S 100M"就是你單次從對USB進行傳輸的燒寫大小,當你system檔案過大時,就會報如上錯誤。

5、oem上鎖

fastboot oem lock

進入後,按著螢幕提示,按音量上鍵

6、啟動機器

fastboot reboot

Over!!!