how to manage uboot on emmc via linux command

cancel
Showing results for 
Search instead for 
Did you mean: 

how to manage uboot on emmc via linux command

882 Views
才俊欧
Contributor III

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?

0 Kudos
2 Replies

250 Views
b45499
NXP TechSupport
NXP TechSupport

You can refer to https://community.nxp.com/message/806855 Hope this can do help for you.

250 Views
才俊欧
Contributor III

Good tips, I will try it

0 Kudos