I.MX6- How to uboot from emmc 5.1 ? (linux)怎樣将uboot燒寫到emmc中 ?

cancel
Showing results for 
Search instead for 
Did you mean: 

I.MX6- How to uboot from emmc 5.1 ? (linux)怎樣将uboot燒寫到emmc中 ?

1,018 Views
1135279361
Contributor II

我想將Uboot燒寫到emmc中,不過我不想用MFGTool而是其他的辦法。

我應該怎樣去實現,怎樣去分區? 


我的emmc是THGBMHG7C2LBAU7 (emmc5.1)

麻烦了~

Labels (3)
3 Replies

445 Views
b45499
NXP TechSupport
NXP TechSupport

As Shivani told you, you can refer to his document.

Guide to flash an eMMC from SD Card on i.MX6Q SABRE-SD 

446 Views
shivanipatel
Senior Contributor II

Hi, Ansel Yip

You can flash a u-boot in eMMC with below two methods,

Method - 1: Using UUU tool

Below command will flash u-boot to an eMMC.

  • uuu -b emmc <u-boot_image>

Please refer UUU.pdf in this link for more information.

Method - 2: Flash an eMMC from an SD Card

Follow below steps to flash an eMMC from an SD Card:

  • Flash the sdcard image on SD Card using below command.
    • sudo dd if=<sdcard_image> of=/dev/sdX bs=1M && sync
  • Select Boot Mode to SD Card and boot the board from SD Card.
  • Stop the console at u-boot and execute below command.
    • ums 0 mmc 1                 // this will mount SD card as USB Mass Storage to your system
  • Copy bootloader image from system to USB Mass Storage
    • cp <u-boot_image> /media/username/<rootfs>/home/root/
  • Eject the USB Mass Storage and terminate the ums process by pressing ctrl+c in u-boot.
  • Power Off and Power On the board and login to the kernel console.
  • Flash the bootloader image to eMMC
    • dd if=/home/root/<u-boot_image> of=/dev/mmcblk3 bs=512 seek=2 conv=fsync
  • Change the Boot Mode to eMMC
  • Power Up the Board. (this will boot the images from eMMC)

Hope this will help you.

Regards,

Shivani

446 Views
1135279361
Contributor II

 i.MX_6_SABRE-SD_Linux_Users_Guide.pdf

我知道这个文档介绍,不过不会用,可以详细教一下吗?

-----------------------------------------------------------------------------------------
U-Boot 2016.03-svn8 (Mar 28 2019 - 14:16:31 +0800)

CPU: Freescale i.MX6QP rev1.1 996 MHz (running at 792 MHz)
CPU: Extended Commercial temperature grade (-20C to 105C) at 40C
Reset cause: POR
Board: MX6QP-AVM718-MB revV20
I2C: ready
DRAM: 2 GiB
force_idle_bus: sda=1 scl=0 sda.gp=0x6d scl.gp=0x3e
force_idle_bus: failed to clear bus, sda=1 scl=0
MMC: FSL_SDHC: 0, FSL_SDHC: 1
No panel detected: default to HD700-CLAA
Display: HD700-CLAA (1200x800)
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc0 is current device
Net: Board Net Initialization Failed
No ethernet found.
Normal Boot
[abortboot_normal]Hit any key to stop autoboot:

0 Kudos