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.

AM625: eMMC Layout calculation

Part Number: AM625


Tool/software:

Hi,

I was referring https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_01_00_08/exports/docs/linux/Foundational_Components/U-Boot/UG-Memory.html

please share how these memory offset are calculated?

Thanks

Gireesh

  • Hi Prashant,

    Thanks for info about how to update offsets in defconfig but I am not getting answer for offset address calculation and difference in offset address as in above image like

    for tiboot3.bin  0x400 - 0x000 = 0x400 (1MB)

    for tispls         0x1400 - 0x400 = 0x1000 (2MB)

    u-boot.img    0x3400 - 0x1400 = 0x2000 (4MB)

    or let me ask put in different way,

    assume I have eMMC with 4MB boot memory in that I want to adjust 3 images  like 4MB= 1MB + 1.5M + 1.5M

    for tiboot3.bin  0x400 - 0x000 = 0x400 (1MB)

    for tispls         0x1000 - 0x400 = 0xC00 (1.5MB)

    u-boot.img    0x2000 - 0x1000 = 0x1000 (1.5MB)

    is above offset correct?

    please correct my understanding about offset.

    Thanks,

    Gireesh

  • Hello,

    Those offsets are eMMC block offset. A eMMC block is of 512 bytes so you can calculate the raw addresses of these images. Conversely, if you have raw offsets for your images, you can derive the eMMC block offset by dividing the raw offset by 512.

    I just noticed the partition layout figure in the documentation incorrectly mentions the size of the tiboot3.bin as 1MB. For AM62 family of devices, only 512KB is reserved for tiboot3.bin. So, this should be

                boot0 partition (8 MB)                        user partition
       0x0+----------------------------------+      0x0+-------------------------+
          |     tiboot3.bin (512 KB)         |         |                         |
     0x400+----------------------------------+         |                         |
          |       tispl.bin (2 MB)           |         |                         |
    0x1400+----------------------------------+         |        rootfs           |
          |       u-boot.img (4 MB)          |         |                         |
    0x3400+----------------------------------+         |                         |
          |      environment (128 KB)        |         |                         |
    0x3500+----------------------------------+         |                         |
          |   backup environment (128 KB)    |         |                         |
    0x3600+----------------------------------+         +-------------------------+

    Accordingly, you can calculate the block offsets for your customized layout.

    Regards,

    Prashant

  • Hi Prashant,

    Thanks for info.

    Regards,

    Gireesh