AnsweredAssumed Answered

update U-boot image to eMMC in 4.1.15 NG, 3.14.28 OK

Question asked by Sean Hsu on Jul 28, 2016
Latest reply on Aug 1, 2016 by jimmychan

Hi all:

I also have a problem updating u-boot image to eMMC. It works fine in 3.14.28, but does not work for 4.1.15. I realized that there is no "boot_config" in 4.1.15. So I follow the instruction to install "mmc-utils" in 4.1.15 and use mmc tool but it still does not work. Please see below command and reply if any of you guys knows the solution of it. Thanks.

<For 3.14.28>

Update u-boot image to eMMC from USB memory

Step1.copy u-boot-imx6qsabresd.imx to USB memory (on PC)

Step2.SD Card boot SNW

Step3.plug USB memory to SNW USB port

Step4. clear u-boot arg

root@imx6qsabresd:~#dd if=/dev/zero of=/dev/mmcblk3 bs=1k seek=384 conv=fsync count=129

Step5. access boot partition 1

root@imx6qsabresd:~#echo 0 > /sys/block/mmcblk3boot0/force_ro

Step6. write U-Boot to emmc

root@imx6qsabresd:~#dd if=/run/media/sda1/u-boot-imx6qsabresd.imx of=/dev/mmcblk3boot0 bs=512 seek=2

Step7. re-enable read-only access

root@imx6qsabresd:~#echo 1 > /sys/block/mmcblk3boot0/force_ro

Step8. enable boot partion 1 to boot

root@imx6qsabresd:~#echo 8 > /sys/block/mmcblk3/device/boot_config--->this works for 3.14.28, for 4.1.15 I use the following command to replace this command

root@imx6qsabresd:~#mmc bootpart enable 1 1 /dev/mmcblk3boot0----->4.1.15 does not work


Thanks for replying