<?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>i.MX ProcessorsのトピックRe: Update Bootloader In An OTA</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Update-Bootloader-In-An-OTA/m-p/637196#M97071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 14px;"&gt;Hi Diego,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 14px;"&gt;Thank you for your repling me. Don't worry about it. You can do it when you are convenient.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2017 01:55:00 GMT</pubDate>
    <dc:creator>ningli</dc:creator>
    <dc:date>2017-03-15T01:55:00Z</dc:date>
    <item>
      <title>Update Bootloader In An OTA</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Update-Bootloader-In-An-OTA/m-p/637192#M97067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #222225; border: 0px; font-weight: inherit; font-size: 13.3333px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #222225; border: 0px; font-weight: inherit; font-size: 13.3333px;"&gt;Maybe some one can Help me with this. I am trying to update the bootloader in an OTA (update.zip). &lt;SPAN style="color: #222225; border: 0px; font-weight: inherit; font-size: 13.3333px;"&gt;I modified the updater_script and also modified simple_dd to skip 1K bytes from input file,but i don't know if is it right&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 15px;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;Is there anyone who might be able to tell if this updater_script is correct? I added the section at the end about u-boot. I am using Android 4.4.2 and linux kernel 3.0.35&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #222225; border: 0px; font-weight: inherit; font-size: 13.3333px;"&gt;show_progress(0.500000, 0);&lt;BR /&gt;mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system");&lt;BR /&gt;run_program("/system/bin/busybox","cp","-af","/system/vendor/firmware/imx","/cache/");&lt;BR /&gt;package_extract_file("u-boot.bin","/tmp/u-boot.bin");&lt;BR /&gt;package_extract_file("logo.bmp","/tmp/logo.bmp");&lt;BR /&gt;run_program("/system/bin/busybox","dd","if=/tmp/u-boot.bin","of=/dev/block/mmcblk0","bs=1024","skip=1","seek=1");&lt;BR /&gt;run_program("/system/bin/busybox","dd","if=/tmp/logo.bmp","of=/dev/block/mmcblk0","bs=1024","seek=7168");&lt;BR /&gt;unmount("/system");&lt;BR /&gt;format("ext4", "EMMC", "/dev/block/mmcblk0p5", "0", "/system");&lt;BR /&gt;mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system");&lt;BR /&gt;package_extract_dir("recovery", "/system");&lt;BR /&gt;package_extract_dir("system", "/system");&lt;BR /&gt;symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");&lt;BR /&gt;symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");&lt;BR /&gt;symlink("libGLESv2.so", "/system/lib/libGLESv3.so");&lt;BR /&gt;symlink("mksh", "/system/bin/sh");&lt;BR /&gt;symlink("toolbox", "/system/bin/cat", "/system/bin/chcon",&lt;BR /&gt; "/system/bin/chmod", "/system/bin/chown", "/system/bin/clear",&lt;BR /&gt; "/system/bin/cmp", "/system/bin/cp", "/system/bin/date",&lt;BR /&gt; "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",&lt;BR /&gt; "/system/bin/du", "/system/bin/getenforce", "/system/bin/getevent",&lt;BR /&gt; "/system/bin/getprop", "/system/bin/getsebool", "/system/bin/grep",&lt;BR /&gt; "/system/bin/hd", "/system/bin/id", "/system/bin/ifconfig",&lt;BR /&gt; "/system/bin/iftop", "/system/bin/insmod", "/system/bin/ioctl",&lt;BR /&gt; "/system/bin/ionice", "/system/bin/kill", "/system/bin/ln",&lt;BR /&gt; "/system/bin/load_policy", "/system/bin/log", "/system/bin/ls",&lt;BR /&gt; "/system/bin/lsmod", "/system/bin/lsof", "/system/bin/md5",&lt;BR /&gt; "/system/bin/mkdir", "/system/bin/mkswap", "/system/bin/mount",&lt;BR /&gt; "/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat",&lt;BR /&gt; "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",&lt;BR /&gt; "/system/bin/ps", "/system/bin/readlink", "/system/bin/renice",&lt;BR /&gt; "/system/bin/restorecon", "/system/bin/rm", "/system/bin/rmdir",&lt;BR /&gt; "/system/bin/rmmod", "/system/bin/route", "/system/bin/runcon",&lt;BR /&gt; "/system/bin/schedtop", "/system/bin/sendevent",&lt;BR /&gt; "/system/bin/setconsole", "/system/bin/setenforce",&lt;BR /&gt; "/system/bin/setprop", "/system/bin/setsebool", "/system/bin/sleep",&lt;BR /&gt; "/system/bin/smd", "/system/bin/start", "/system/bin/stop",&lt;BR /&gt; "/system/bin/swapoff", "/system/bin/swapon", "/system/bin/sync",&lt;BR /&gt; "/system/bin/top", "/system/bin/touch", "/system/bin/umount",&lt;BR /&gt; "/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops",&lt;BR /&gt; "/system/bin/wipe");&lt;BR /&gt;set_metadata_recursive("/system", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");&lt;BR /&gt;set_metadata_recursive("/system/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");&lt;BR /&gt;set_metadata("/system/bin/app_process", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:zygote_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/clatd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:clatd_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/debuggerd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:debuggerd_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/dhcpcd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dhcp_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/dnsmasq", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dnsmasq_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/drmserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:drmserver_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/hostapd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:hostapd_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/installd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:installd_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/keystore", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:keystore_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/mediaserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:mediaserver_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/mksh", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:shell_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/mtpd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:mtp_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/netcfg", "uid", 0, "gid", 3003, "mode", 02750, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");&lt;BR /&gt;set_metadata("/system/bin/netd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:netd_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/ping", "uid", 0, "gid", 0, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:ping_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/pppd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:ppp_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/racoon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:racoon_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/rild", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:rild_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/run-as", "uid", 0, "gid", 2000, "mode", 0750, "capabilities", 0xc0, "selabel", "u:object_r:runas_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/sdcard", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:sdcardd_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/servicemanager", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:servicemanager_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/surfaceflinger", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:surfaceflinger_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/vold", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:vold_exec:s0");&lt;BR /&gt;set_metadata("/system/bin/wpa_supplicant", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:wpa_exec:s0");&lt;BR /&gt;set_metadata_recursive("/system/etc/dhcpcd", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:dhcp_system_file:s0");&lt;BR /&gt;set_metadata("/system/etc/dhcpcd/dhcpcd-run-hooks", "uid", 1014, "gid", 2000, "mode", 0550, "capabilities", 0x0, "selabel", "u:object_r:dhcp_system_file:s0");&lt;BR /&gt;set_metadata("/system/etc/install-recovery.sh", "uid", 0, "gid", 0, "mode", 0544, "capabilities", 0x0);&lt;BR /&gt;set_metadata_recursive("/system/etc/ppp", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0555, "capabilities", 0x0, "selabel", "u:object_r:ppp_system_file:s0");&lt;BR /&gt;set_metadata("/system/recovery-from-boot.p", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0);&lt;BR /&gt;set_metadata("/system/vendor", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");&lt;BR /&gt;set_metadata_recursive("/system/vendor/etc", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");&lt;BR /&gt;set_metadata("/system/vendor/etc/audio_effects.conf", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");&lt;BR /&gt;set_metadata("/system/vendor/firmware", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");&lt;BR /&gt;set_metadata_recursive("/system/xbin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");&lt;BR /&gt;show_progress(0.200000, 0);&lt;BR /&gt;show_progress(0.200000, 10);&lt;BR /&gt;package_extract_file("boot.img", "/dev/block/mmcblk0p1");&lt;BR /&gt;show_progress(0.100000, 0);&lt;BR /&gt;unmount("/system");&lt;BR /&gt;mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system");&lt;BR /&gt;&lt;SPAN style="color: #993300;"&gt;package_extract_file("u-boot.bin","/tmp/u-boot.bin");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300;"&gt;sysfs_file_write("class/mmc_host/mmc0/mmc0:0001/boot_config", "1");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300;"&gt;simple_dd("/tmp/u-boot.bin", "/dev/block/mmcblk0", 1024, 1024);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300;"&gt;sysfs_file_write("class/mmc_host/mmc0/mmc0:0001/boot_config", "8");&lt;/SPAN&gt;&lt;BR /&gt;run_program("/system/bin/busybox","cp","-af","/cache/imx","/system/vendor/firmware/");&lt;BR /&gt;run_program("/system/bin/busybox","rm","-rf","/cache/imx");&lt;BR /&gt;run_program("/system/bin/busybox","rm","-f","/cache/update.zip");&lt;BR /&gt;set_metadata("/system/vendor/firmware/imx", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0);&lt;BR /&gt;unmount("/system");&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #222225; border: 0px; font-weight: inherit; font-size: 13.3333px;"&gt;I have saw this text&amp;nbsp;&lt;A href="https://community.nxp.com/message/399559"&gt;https://community.nxp.com/message/399559&lt;/A&gt;&amp;nbsp;already, but still fail.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #222225; border: 0px; font-weight: inherit; font-size: 13.3333px;"&gt;I run this script and work ok. But bootloader still is old version in EMMC. Anyone can help please! ! !&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 11:51:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Update-Bootloader-In-An-OTA/m-p/637192#M97067</guid>
      <dc:creator>ningli</dc:creator>
      <dc:date>2017-02-15T11:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Update Bootloader In An OTA</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Update-Bootloader-In-An-OTA/m-p/637193#M97068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ning Li,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for writing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know if you are still having problems with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I will try to reproduce this problem by myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 16:17:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Update-Bootloader-In-An-OTA/m-p/637193#M97068</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2017-03-02T16:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Update Bootloader In An OTA</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Update-Bootloader-In-An-OTA/m-p/637194#M97069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;I am glad to read your reply. I have resolved it. But there are some problem that &amp;nbsp;I have not got it.&lt;/P&gt;&lt;P&gt;I add sysfs_file_write and simple_ddd funcitons,but they didn't work well.&lt;/P&gt;&lt;P&gt;Finally, I get the right method to solve my case.&lt;/P&gt;&lt;P&gt;I am using is .&lt;/P&gt;&lt;P&gt;sysfs_file_write("block/mmcblk0boot0/force_ro", "0");&lt;BR /&gt;run_program("/system/bin/busybox","dd","if=/tmp/u-boot.bin","of=/dev/block/mmcblk0boot0","bs=1024","skip=1","seek=1");&lt;BR /&gt;sysfs_file_write("block/mmcblk0boot0/force_ro", "1");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in my case. In recovery mode , series port can't get any log and&amp;nbsp;&lt;SPAN&gt;run_program("/system/bin/busybox","echo","block/mmcblk0boot0/force_ro", "0"); can't work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is all my know. Hope helpful for you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ning.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 06:41:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Update-Bootloader-In-An-OTA/m-p/637194#M97069</guid>
      <dc:creator>ningli</dc:creator>
      <dc:date>2017-03-06T06:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Update Bootloader In An OTA</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Update-Bootloader-In-An-OTA/m-p/637195#M97070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ning Li,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay, but my building computer was busy with a process that I couldn't stop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably, those commands are not supported by the recovery mode. I will try to enter the recovery mode and see if I could run those commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 01:02:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Update-Bootloader-In-An-OTA/m-p/637195#M97070</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2017-03-14T01:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update Bootloader In An OTA</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Update-Bootloader-In-An-OTA/m-p/637196#M97071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 14px;"&gt;Hi Diego,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 14px;"&gt;Thank you for your repling me. Don't worry about it. You can do it when you are convenient.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 01:55:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Update-Bootloader-In-An-OTA/m-p/637196#M97071</guid>
      <dc:creator>ningli</dc:creator>
      <dc:date>2017-03-15T01:55:00Z</dc:date>
    </item>
  </channel>
</rss>

