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.

J721EXCPXEVM: How to write J721e EVM board to eMMC?

Part Number: J721EXCPXEVM
Other Parts Discussed in Thread: UNIFLASH

Hi,


I want to do eMMC BOOT on the J721e EVM board.
Could you please tell me how to write to eMMC?
I want to write the following image.


・tiboot3.bin
・tifs.bin
・app

Can I write using UniFlash?
Can you tell me what to do with offsets if I can?

Best Regards
Hanzo Yamada

  • Hi Hanzo Yamada,

    I want to write the following image.


    ・tiboot3.bin
    ・tifs.bin
    ・app

    From this I believe you want to use SBL to boot from emmc?

    Booting from eMMC boot0 partition is not supported in for SBL. However we we might be able to boot emmc from UDA partition using the same mmcsd SBL but with BOOT_EMMC flag defined.

    Regards,

    Karan

  • Hi Karan,

    Thank you for your reply.

    From this I believe you want to use SBL to boot from emmc?


    Yes, it is.

    How do I write an image to a UDA partition?

    Best Regards
    Hanzo Yamada

  • Hi Hanzo Yamada,

    I just gave this a try and as this feature is not officially supported as a part of the SDK, hence is not tested every release.

    I was able to make things work on SDK7.0 but not on the latest SDK7.3. If a previous baseline is ok for your test, I can send you the instructions, let me know.

    Regards,

    Karan

  • Hi,Karan

    I was able to make things work on SDK7.0 but not on the latest SDK7.3. If a previous baseline is ok for your test, I can send you the instructions, let me know.

    Yes, there is no problem.
    Please let me know.

    Best Regards
    Hanzo Yamada

  • Hi Hanzo Yamada,

    -1- Partition the eMMC using Linux

    You need to skip the last step where we are copying from the Linux SD card to the eMMC.

    -2- Build the SBL for eMMC and copy to the Linux card's filesystem.

    • Define BOOT_EMMC in the pdk/packages/ti/boot/sbl/src/mmcsd/sbl_mmcsd.c
    • make sbl_mmcsd_img_clean
    • make sbl_lib_mmcsd_clean
    • make sbl_lib_mmcsd
    • make sbl_mmcsd_img
    • Copy the sysfw.bin, sbl_mmcsd_img_mcu1_0_release.tiimage and you application (app) to the Linux SD card's file system. This is needed as we will be again using the Linux running on target to copy these binaries to the eMMC.

    -3- Copy binaries to eMMC UDA.

    • Boot Linux with the images as mentioned above.
    • From Linux shell copy the sbl_mmcsd_img_mcu1_0_release.tiimage as tiboot3.bin, sysfw.bin as sysfw.bin and *appimage as app in the eMMC's FAT32 partition.
      • cp PATH_TO_SBL_IN_FILESYSTEM /run/media/mmcblk0p1/tiboot3.bin
      • cp PATH_TO_SYSFW_IN_FILESYSTEM /run/media/mmcblk0p1/sysfw.bin
      • cp PATH_TO_APPIMAGE_IN_FILESYSTEM /run/media/mmcblk0p1/app

    -4- Power off and boot in eMMC (user) mode. Change switch settings as below:

    • SW8: 10000000
    • SW9: 00000000

    Regards,

    Karan

  • Hi,karan

    eMMC boot was successful. I appreciate it very much.

    Best Regards
    Hanzo Yamada