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.

Linux/TDA2SX: Questions about booting Linux from eMMC

Part Number: TDA2SX

Tool/software: Linux

Dear Ti,

We need to bring up our custom board from eMMC.

I have learned the link Process-SDK-Linux-Automotive-Software-Developers-Guide Section 7.4 Using eMMC Boot.

And we have no USB port reserved on our board. So we can only boot from eMMC follow steps descriped in section 7.4.1.

As far as i know, the only file i should modify is 'uenv.txt' compared to boot from SD card.

But there's another link http://processors.wiki.ti.com/index.php/Linux_Core_U-Boot_User%27s_Guide  section 6.6. says that,

some other u-boot files need to be modified.

(u-boot/arch/arm/include/asm/arch-omap5/spl.h,  u-boot/arch/arm/mach-omap2/omap5/boot.c,  board's defconfig)

Q1,

So, which one should i follow?

Q2,

Are there any other tools, running on the host, connect to the target board by download points reserved in the PCB, can be used to partition and flash the eMMC?

Regards,

Liu Gan

  • Hi Liu,

    Once you've flashed the boot and rootfs partitions on the EMMC, the only change you need is in the uenv.txt file to indicate where the rootfs is present.
    To boot from EMMC (i.e load MLO and u-boot from EMMC), you need to load the boot-settings to boot from EMMC (refer the TRM for the booting device order table for the necessary pin settings).

    Regards
    Shravan
  • Hi Shravan,

    Thanks for your reply.
    What about question two?
    Are there any other tools, running on the host, connect to the target board by download points reserved in the PCB, can be used to partition and flash the eMMC?
    Is it possible to partitioning and formatting eMMC with out SD card socket and usb port reserved in the custom board?

    Regards,
    Liu Gan
  • Hi Shravan,

    Any update?

    Regards,
    Liu Gan
  • Hi Liu,

    We don't have any tool available which can flash to emmc without SD card or usb port. We have fastboot and dfu tools available in u-boot which can flash directly to EMMC, however they depend on a USB port being available.

    Regards
    Shravan
  • Hi Shravan,

    Thanks for your update.

    I found the code snippet from u-boot/cmd/dfu.c

    So, does it mean that the dfu tool can either depend on a USB or ETH port?

    What's more, i have learned that JTAG can be used to flash the eMMC with raw bin file. Is that true?

    Regards,

    Liu Gan

  • Hi Liu,

    Yes, TFTP is something you could use to transfer binaries to RAM, and then use u-boot to flash content from DDR to EMMC, however the amount of data that can be transferred is limited.
    Flashing using JTAG/debugger to EMMC is not supported on either RTOS firmware / Linux.

    Regards
    Shravan