AnsweredAssumed Answered

how to manage uboot on emmc via linux command

Question asked by 才俊欧 on Jul 29, 2017
Latest reply on Aug 1, 2017 by 才俊欧

I used L3.14.28 and u-boot-2014 to start my imx6s board, I selected the eMMC  as the boot rom.

 

In mfg tool's config file uc12.xml , I see the uboot section is :

      /dev/mmcblk$mmcboot0 bs=512 seek=2

 

Then on my board, I see the block device view is:

root@imx6qsabresd:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
   mmcblk3rpmb 179:24 0 4M 0 disk
   mmcblk3boot0 179:8 0 16M 1 disk
   mmcblk3boot1 179:16 0 16M 1 disk
   mmcblk3 179:0 0 7.1G 0 disk
      |-mmcblk3p1 179:1 0 500M 0 part /run/media/mmcblk3p1
      `-mmcblk3p2 179:2 0 6.5G 0 part /

 

 

By referring to the uc12.xml, I can burn uboot  via linux command:
   echo 0 > /sys/block/mmcblk3boot0/force_ro
   dd if=$FILE of=/dev/mmcblk3boot0 bs=512 seek=2
   echo 1 > /sys/block/mmcblk3boot0/force_ro
   echo 8 > /sys/block/mmcblk3/device/boot_config

 

But what is the mmcblk3boot1, mmcblk3rpmb section mean?

How the find them in the yocto source code, or in the mfg config file?

Outcomes