AnsweredAssumed Answered

MX6Q can't boot from eMMC4.5 boot partitoin

Question asked by Richard Li on Oct 23, 2014
Latest reply on Apr 17, 2015 by Richard Li

Hi

 

I got a problem with eMMC4.5 boot partition.

After I download all images to my customer board, the board can't boot from the boot partition. I have found that

it can't switch from user partition to  boot partition 1.

So, I download the u-boot image to eMMC user partition, offset is 1K. After that, the board can boot from user partition.

 

In u-boot, I can use the command "mmc bootpart 1 1" to switch boot partition 1 successfully.

 

Kernel: Linux 3.0.35

Mfg: Mfgtools-Rel-4.1.0_130816_MX6Q_UPDATER

 

The u-boot part of ucl2.xml is:

 

<CMD state="Updater" type="push" body="$ echo 0 > /sys/block/mmcblk0boot0/force_ro">access boot partition 1</CMD>

<CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk0boot0 bs=512 seek=2">write U-Boot to eMMC boot partition</CMD>

<CMD state="Updater" type="push" body="$ echo 1 > /sys/block/mmcblk0boot0/force_ro"> re-enable read-only access</CMD>

<CMD state="Updater" type="push" body="$ echo 8 > /sys/class/mmc_host/mmc0/mmc0:0001/boot_config">enable boot partion 1 to boot</CMD>

 

It seems that writing to boot_config is useless. Any suggestion?

 

Thanks.

Outcomes