<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Android upgrade through recovery.img in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260976#M26100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Android recovery only provide mechanism of updating your system. After upgrading completed,it will reboot automatically.&lt;/P&gt;&lt;P&gt;If your board always restart after kernel is loading, you should check your boot.img and system.img.&lt;/P&gt;&lt;P&gt;For example,you can upgrade your kernel (boot.img=kernel+ramdisk) and system.img by fastboot&lt;/P&gt;&lt;P&gt;in device uboot console&lt;/P&gt;&lt;P&gt;$fastboot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your usb otg connected linux machine(We assume you have permission to access adb devices)&lt;/P&gt;&lt;P&gt;$fastboot flash boot out/target/product/XXX/boot.img&lt;/P&gt;&lt;P&gt;$fastboot flash system out/target/product/XXX/system.img&lt;/P&gt;&lt;P&gt;$fastboot reboot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a summary,you should check your boot.img and system.img can boot up properly. They are nothing to do with android&lt;/P&gt;&lt;P&gt;recovery OTA .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Nov 2013 02:18:28 GMT</pubDate>
    <dc:creator>raymondwang</dc:creator>
    <dc:date>2013-11-16T02:18:28Z</dc:date>
    <item>
      <title>Android upgrade through recovery.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260969#M26093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use recovery.img for upgrading android images (boot.img, system.img, recovery.img) in eMMC Nand&amp;nbsp; flash. Please suggest if it is feasible to hack recovery.img to automate the upgrade process. Please provide any link or document in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem while using recovery.img&lt;/P&gt;&lt;P&gt;========================&lt;/P&gt;&lt;P&gt;When i boot sabresd board in recovery mode (by pressing vol-down button) from eMMC, the boot up process hangs at "Freeing init memory" and android recovery icon appears on hdmi display. The same image boots up properly in normal mode with the bootargs=console=ttymxc0,115200 androidboot.console=ttymxc0 init=/init vmalloc=400M video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M androidboot.hardware=freescale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ashish Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 10:33:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260969#M26093</guid>
      <dc:creator>ashishgupta</dc:creator>
      <dc:date>2013-11-06T10:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Android upgrade through recovery.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260970#M26094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Recovery.img boot without console in default so it seems system hangup in console.&lt;/P&gt;&lt;P&gt;You can test ota package with your recovery.img&lt;/P&gt;&lt;P&gt;Step 1: building otapackage&lt;/P&gt;&lt;P&gt;$make otapackage&lt;/P&gt;&lt;P&gt;Step 2:&lt;/P&gt;&lt;P&gt;$adb push update.zip /cache&amp;nbsp; #assume update.zip is your otapackage&lt;/P&gt;&lt;P&gt;$adb shell&lt;/P&gt;&lt;P&gt;#Now in device shell&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Helvetica, Arial, sans-serif;"&gt;#mkdir /cache/recovery/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Helvetica, Arial, sans-serif;"&gt;#echo "--update_package=/cache/update.zip" &amp;gt; /cache/recovery/command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Helvetica, Arial, sans-serif;"&gt;#reboot recovery&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Helvetica, Arial, sans-serif;"&gt;Now your android will reboot to recovery mode to update your OTA package,it will reboot automatically after finished.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 04:16:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260970#M26094</guid>
      <dc:creator>raymondwang</dc:creator>
      <dc:date>2013-11-07T04:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Android upgrade through recovery.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260971#M26095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Raymond Wang, for the guiding us in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 06:38:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260971#M26095</guid>
      <dc:creator>ashishgupta</dc:creator>
      <dc:date>2013-11-07T06:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Android upgrade through recovery.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260972#M26096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your problem resolved,please mark thread as answered or help answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 07:29:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260972#M26096</guid>
      <dc:creator>raymondwang</dc:creator>
      <dc:date>2013-11-07T07:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Android upgrade through recovery.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260973#M26097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond wang,&lt;/P&gt;&lt;P&gt;Ofcourse you answer is helpful, but i am stuck little bit while generating the OTA package.&lt;/P&gt;&lt;P&gt;Today i tried to build the ota package based on the instructions mentioned in 13.4.1 "Android_Advanced_User_Guide.pdf".&lt;/P&gt;&lt;P&gt;After, &lt;/P&gt;&lt;P&gt;$ make PRODUCT=sabresd_6dq-eng dist -j4&lt;/P&gt;&lt;P&gt;I can find out/dist/ folder and following zip files inside:&lt;/P&gt;&lt;P&gt;-rw-r--r-- 1 root root&amp;nbsp; 53284796 Nov&amp;nbsp; 7 12:28 full-apps-eng.root.zip&lt;BR /&gt;-rw-r--r-- 1 root root 121056186 Nov&amp;nbsp; 7 12:29 full-emulator-eng.root.zip&lt;BR /&gt;-rw-r--r-- 1 root root 564312424 Nov&amp;nbsp; 7 12:30 full-symbols-eng.root.zip&lt;BR /&gt;-rw-r--r-- 1 root root 118854623 Nov&amp;nbsp; 7 12:29 full-target_files-eng.root.zip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And no zip file is created in the out/target/product/sabresd_6q/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i tried to update the board with fastboot&lt;/P&gt;&lt;P&gt;$ fastboot update full-target_files-eng.root.zip&lt;/P&gt;&lt;P&gt;But it is failing.&lt;/P&gt;&lt;P&gt;Also $ make otapackage, does'nt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ques: Whether update.zip is the same file as full-target_files-eng.root.zip? Or there is a different command for generating update.zip?&lt;/P&gt;&lt;P&gt;b.t.w. i am using jb4.2.2_1_0_0 patches for compiling android, and have sabresd imx6q board.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 11:02:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260973#M26097</guid>
      <dc:creator>ashishgupta</dc:creator>
      <dc:date>2013-11-07T11:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Android upgrade through recovery.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260974#M26098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,they are different.&lt;/P&gt;&lt;P&gt;1.If you want to building updatepackage for fastboot.&lt;/P&gt;&lt;P&gt;$make updatepackage&lt;/P&gt;&lt;P&gt;THis is just a zip file including target board binary images (boot.img,recovery.img,system.img)&lt;/P&gt;&lt;P&gt; You can use it in fastboot mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; $fastboot update yourupdatepackage.zip&amp;nbsp; --this will check target board name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Well,the otapackage is a zip file including your whole target system files Generally otapackage building require&lt;/P&gt;&lt;P&gt;device key.Of course you can use fsl common device key in device/fsl/common/security and this is default setting in BoardConfig.mk&lt;/P&gt;&lt;P&gt;by below lines: &lt;/P&gt;&lt;P&gt;PRODUCT_DEFAULT_DEV_CERTIFICATE := \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device/fsl/common/security/testkey&lt;/P&gt;&lt;P&gt;&amp;nbsp; Here I list my otapackage zip file dir:&lt;/P&gt;&lt;P&gt;&amp;nbsp; boot.img&lt;/P&gt;&lt;P&gt;&amp;nbsp; system/&amp;nbsp;&amp;nbsp; --including all your system files like your out/target/product/xxx/system&lt;/P&gt;&lt;P&gt;&amp;nbsp; recovery/&amp;nbsp; --including recovery script and recovery.P&lt;/P&gt;&lt;P&gt;&amp;nbsp; META-INF/&amp;nbsp; --including script and CERT,signature of your ota package which is used by recovery image.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 11:27:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260974#M26098</guid>
      <dc:creator>raymondwang</dc:creator>
      <dc:date>2013-11-07T11:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Android upgrade through recovery.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260975#M26099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;After rebuilding the android source JB422, i am able to generate OTA package "sabresd_6dq-ota-eng.root.zip". And this file has same directory list as you have mentioned.&lt;/P&gt;&lt;P&gt;I rename this file to update.zip and copied it to sabresd cache folder. My sabresd board is running Android 13.4.1 (4.0.0) image and i am doing a POC which will upgrade it to JB422 through this OTA package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After copying it to cache folder, i made command file in recovery folder, with following:&lt;/P&gt;&lt;P&gt;--update_package=/cache/update.zip&lt;/P&gt;&lt;P&gt;and restarted the system in recovery mode. On HDMI display i am able to see the Android Robot while upgrading and after upgrading it prints successful message in the display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i restart the system, it keeps on rebooting after loading the kernel. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ashish Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 11:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260975#M26099</guid>
      <dc:creator>ashishgupta</dc:creator>
      <dc:date>2013-11-15T11:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Android upgrade through recovery.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260976#M26100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Android recovery only provide mechanism of updating your system. After upgrading completed,it will reboot automatically.&lt;/P&gt;&lt;P&gt;If your board always restart after kernel is loading, you should check your boot.img and system.img.&lt;/P&gt;&lt;P&gt;For example,you can upgrade your kernel (boot.img=kernel+ramdisk) and system.img by fastboot&lt;/P&gt;&lt;P&gt;in device uboot console&lt;/P&gt;&lt;P&gt;$fastboot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your usb otg connected linux machine(We assume you have permission to access adb devices)&lt;/P&gt;&lt;P&gt;$fastboot flash boot out/target/product/XXX/boot.img&lt;/P&gt;&lt;P&gt;$fastboot flash system out/target/product/XXX/system.img&lt;/P&gt;&lt;P&gt;$fastboot reboot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a summary,you should check your boot.img and system.img can boot up properly. They are nothing to do with android&lt;/P&gt;&lt;P&gt;recovery OTA .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2013 02:18:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-upgrade-through-recovery-img/m-p/260976#M26100</guid>
      <dc:creator>raymondwang</dc:creator>
      <dc:date>2013-11-16T02:18:28Z</dc:date>
    </item>
  </channel>
</rss>

