How to copy the sd card bin files to eMCC device

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

How to copy the sd card bin files to eMCC device

1,849 Views
venkatesh_pvsm
Contributor II

Hi,

     Presently iam using imx6quad chip with uboot 2013 version.

My board file is board/freescale/mx6qsabrelite/mx6qsabrelite.c

In that file normally board booting from SPI-NOr and SD boot.

I want to chane the above boot ist of all in SD boot without using SPI NOR,

We having the settings for Boot_CFG 0 to Boot_CFG3 for SD3 and SD4 support also eMCC support.

In that driver having the SD4 support and my eMCC boot device  pins are connected to corresponding SD4 pins.

i have set for SD3 and eMCC boot following way

/SD3 and eMcc support in

static const struct boot_mode board_boot_modes[] = {

    {"mmc0",    MAKE_CFGVAL(0x40, 0x30, 0x00, 0x00)},  //SD3 4 bits vv

        {"emmc",        MAKE_CFGVAL(0x40, 0x38, 0x00, 0x00)},  //sd4 4 bits vv  

    {NULL,        0},

}

My customized imx6quad board first time only boot from SD card,after that all the bin files have to stored from Sdcard to eMCC and then second time onwards my board will boot from eMCC only.

How to add this support from either u-boot or  kernrel (linux-3.0.15 version).

Thanks by,

Venkat.

0 Kudos
2 Replies

860 Views
venkatesh_pvsm
Contributor II

Hi Yongcai,

Thanks for your reply.

0 Kudos

860 Views
AnsonHuang
NXP Employee
NXP Employee

Hi, Venkatesh

     I think you can use uboot command "mmc read" to read the bin file from SD card to memory, then use "mmc write" to write them to eMMC? You can also after kernel boot up, just using "dd" command to copy data from SD card to eMMC?

0 Kudos