Guide to OTA Update in Android for i.MX platforms

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Guide to OTA Update in Android for i.MX platforms

Guide to OTA Update in Android for i.MX platforms

This document provides steps to perform the system upgrade/OTA update for Android on i.MX platforms.

  1. Compile the Android images and generate an OTA Package:
    • source build/envsetup.sh
    • lunch sabresd_6dq-userdebug
    • make -j4
    • make otapackage
  2. You can find your OTA package in the below path:
    • ls out/target/product/sabresd_6dq/sabresd_6dq-ota-<xxx>.zip
  3. Copy the above OTA zip package to the device in sdcard using adb push
    • adb push out/target/product/sabresd_6dq/sabresd_6dq-ota-<xxx>.zip /sdcard
  4. Move the package from sdcard to the location: /cache/update.zip
  5. Make the directory and perform the below steps on the device:
    • mkdir -p /cache/recovery
    • touch /cache/recovery/command
    • echo "--update_package=/cache/update.zip" > /cache/recovery/command
    • reboot recovery

The recovery automatically applies the command and installs this update package.

Note: In this document, the setup is for the i.MX6Q SABRESD Board. So, PathName and OTA package name subject to change based on target device compilation.

%3CLINGO-SUB%20id%3D%22lingo-sub-1123558%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EGuide%20to%20OTA%20Update%20in%20Android%20for%20i.MX%20platforms%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1123558%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20document%20provides%20steps%20to%20perform%20the%20system%20upgrade%2FOTA%20update%20for%20Android%20on%20i.MX%20platforms.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3COL%3E%3CLI%3ECompile%20the%20Android%20images%20and%20generate%20an%20OTA%20Package%3A%3CUL%20style%3D%22list-style-type%3A%20disc%3B%22%3E%3CLI%3E%3CSTRONG%3Esource%20build%2Fenvsetup.sh%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3Elunch%20sabresd_6dq-userdebug%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3Emake%20-j4%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3Emake%20otapackage%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3EYou%20can%20find%20your%20OTA%20package%20in%20the%20below%20path%3A%3CUL%20style%3D%22list-style-type%3A%20disc%3B%22%3E%3CLI%3E%3CSTRONG%3Els%20out%2Ftarget%2Fproduct%2Fsabresd_6dq%2Fsabresd_6dq-ota-%3CXXX%3E.zip%3C%2FXXX%3E%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3ECopy%20the%20above%20OTA%20zip%20package%20to%20the%20device%20in%20sdcard%20using%20adb%20push%3CUL%20style%3D%22list-style-type%3A%20disc%3B%22%3E%3CLI%3E%3CSTRONG%3Eadb%20push%20out%2Ftarget%2Fproduct%2Fsabresd_6dq%2Fsabresd_6dq-ota-%3CXXX%3E.zip%20%2Fsdcard%3C%2FXXX%3E%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3EMove%20the%20package%20from%20sdcard%20to%20the%20location%3A%20%3CSTRONG%3E%2Fcache%2Fupdate.zip%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3EMake%20the%20directory%20and%20perform%20the%20below%20steps%20on%20the%20device%3A%3CUL%20style%3D%22list-style-type%3A%20disc%3B%22%3E%3CLI%3E%3CSTRONG%3Emkdir%20-p%20%2Fcache%2Frecovery%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3Etouch%20%2Fcache%2Frecovery%2Fcommand%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3Eecho%20%22--update_package%3D%2Fcache%2Fupdate.zip%22%20%26gt%3B%20%2Fcache%2Frecovery%2Fcommand%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3Ereboot%20recovery%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3EThe%20recovery%20automatically%20applies%20the%20command%20and%20installs%20this%20update%20package.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3ENote%3A%3C%2FSTRONG%3E%20In%20this%20document%2C%20the%20setup%20is%20for%20the%20i.MX6Q%20SABRESD%20Board.%20So%2C%20PathName%20and%20OTA%20package%20name%20subject%20to%20change%20based%20on%20target%20device%20compilation.%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎04-01-2019 03:17 AM
Updated by: