This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x eMMC and SD Card boot issue



Hi,

i programmed both SD card and eMMC. when i pressed the boot switch board is taking the u-boot but when it is comes to filesystem it takes according to the bootargs, problem is how can i make it automatically to take from the respective boot devices(eMMC/SD-card) according to the boot switch press.. ? please suggest

Iam using uboot version 2016.03

  • Hi,

    I will forward this to the software team.
  • Hello Sachin,

    If you build an U-Boot which saves uboot.env to the eMMC and reads back from it, you will be able achieve your goal.

    First build an U-Boot without making any modifications and copy the u-boot.img to your SD Card's boot partition.

    Second make this changes marked below and copy the generated u-boot.img to your eMMC's boot partition.
    <u-boot>/include/configs/am335x_evm.h
    from
    #define FAT_ENV_DEVICE_AND_PART "0:1"
    to
    #define FAT_ENV_DEVICE_AND_PART "1:1"

    <u-boot>/include/configs/ti_armv7_common.h
    from
    "finduuid=part uuid mmc 0:2 uuid\0" \
    to
    "finduuid=part uuid mmc 1:2 uuid\0" \

    In this way if you further modify any environment variables and execute saveenv command they will be saved to the corresponding SD Card or eMMC device.

    Best regards,
    Kemal