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.

AM6442: How to Update eMMC Boot Firmware After Booting from eMMC

Part Number: AM6442
Other Parts Discussed in Thread: UNIFLASH

Hi, TI experts,
I'm implementing firmware delivery for the AM6442 booted from eMMC. My intended approach is to:
  1. Download the firmware via PCIe and copy it to a fixed DDR memory region.
  2. Call the Bootloader_MmcsdRaw_writeToOffset function to write it from DDR to eMMC, thus completing the update.

Could anyone confirm if this method is feasible?

And I used Uniflash mode for programming before switching to eMMC boot. The programming command was as follows: 

--file=sbl_app/hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang.appimage.hs_fs --operation=flash-emmc --flash-offset=0x80000
I'm wondering if the offset 0x80000 used in this command can be directly applied when calling Bootloader_MmcsdRaw_writeToOffset to write the firmware to eMMC? Are there any considerations or differences I should be aware of?
 
Thanks,
xue
  • Hello,

    Could anyone confirm if this method is feasible?

    Before calling the Bootloader_MmcsdRaw_writeToOffset, you would have to enable the eMMC partition to which you want to write the image.

    I'm wondering if the offset 0x80000 used in this command can be directly applied when calling Bootloader_MmcsdRaw_writeToOffset to write the firmware to eMMC?

    Yes, it can be directly applied.

    My recommendation here is to leverage the abstracted BOOTLOADER UNIFLASH driver for flashing to eMMC. In the UART UNIFLASH example, the image is received over UART and flashing using the BOOTLOADER UNIFLASH driver. In your case, the only difference is that you would received the image over UART.

    Regards,

    Prashant