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

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

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

654 Views
seanhsu
Contributor II

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

Labels (3)
0 Kudos
Reply
1 Reply

342 Views
jimmychan
NXP TechSupport
NXP TechSupport

please try :  mmc bootpart enable 1 1 /dev/mmcblk3

0 Kudos
Reply