cap_1577342147

經過前三篇文章後,相信大家已經可以 build android P BSP for nxp imx 8m mini evk ,也可以 adb devices, fastboot devices認到裝置

更可以經由 uuu 去 downlod所有的 image到 evk板子上.

 

接下來,將教導各位如何利用 fastboot來更新partial image.

其中有兩個步驟一定要先做,第一要" oem unlock ",第二要" Disable DM-verity "

如果你沒有做以上兩個步驟,直接用 fastboot flash指令更新image的話,會出現以下錯誤畫面

image

所以務必要" oem unlock " and " Disable DM-verity ".

 

" oem unlock " :

先將evk開機進入 android,我是利用遠端 vysor操作系統,進入android 的 setting,選擊 十次 "版本別"後,開啟 "開發者模式"

接著進入 "開發者模式",找到 oem unlocking選項,enable它.

image

adb reboot bootloader

fastboot oem unlock

等後約三分鐘

image


" Disable DM-verity ":

接著重新開機"fastboot reboot ", 輸入以下指令來Disable DM-verity

        adb root
        adb disable-verity
         adb reboot bootloader

之後reboot 到 fastboot ,到現在這個步驟,你已經成功完成" oem unlock " and " Disable DM-verity "

現在可以利用fastboot flash指令更新partital image了

 

先用 fastboot devices檢查裝置是否能偵測到,如果偵測到裝置,就可以開始更新部分的 image了

常用的partition與 image名稱,可以在"Android_User's_Guide.pdf"文件中找到.

image

以下範例為,更新boot.img到 boot_a 與 boot_b partition.

image

到目前為止,已經完成開發前之準備,可以開始開發driver, 更新到 evk上玩了.

下一篇將教大家如何新增一個 spi driver 到 evk板子上.

 

arrow
arrow

    CuteParrot 發表在 痞客邦 留言(0) 人氣()