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.

AM6548: How to change the Flash Layout for OSPI in Linux

Part Number: AM6548

Our customer wants to change the Flash layout for OSPI in Linux.

The figure below shows the Flash layout for OSPI in Linux.

software-dl.ti.com/.../UG-QSPI.html

Since the on-chip ROM boot loader copies the boot image from address offset 0x0 in Flash to the OCMC RAM and then executes it, the layout of the image "ospi.tiboot3(512K)" placed at address offset 0x0 should be fixed, but the layout of the images placed at other addresses will be changeable.

How to change the Flash layout for OSPI in Linux?

The following will need to be changed for each image for Flash layout changes.

- The source address for loading from Flash in MLO or U-Boot.

- The destination address for writing to Flash in the Flash writer program.

Best regards,

Daisuke

  • Dear TI support team,

    Our customer wants to reduce as much extra space as possible to use some of space in the OSPI Flash as user space. They may not use "ospi.env.backup (128K)" or "ospi.rootfs(UBIFS)" in the Flash layout for OSPI in Linux.

    Which files need to be modified to change the Flash layout for OSPI in Linux?

    Please give me an answer as soon as possible. Your prompt reply would be appreciated.

    Best regards,

    Daisuke

  • Hello Daisuke-san,
    You may refer to the list for OSPI offset configurations for AM65x GP EVM:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    /configs/am65x_evm_r5_defconfig
    CONFIG_SYS_SPI_U_BOOT_OFFS=0x80000
    /configs/am65x_evm_a53_defconfig
    CONFIG_SYS_SPI_U_BOOT_OFFS=0x280000
    CONFIG_ENV_OFFSET=0x680000
    CONFIG_ENV_SIZE=0x20000
    CONFIG_ENV_OFFSET_REDUND=0x6A0000
    CONFIG_MTDIDS_DEFAULT="nor0=47040000.spi.0"
    CONFIG_MTDPARTS_DEFAULT="mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.uboot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),57216k@8m(ospi.rootfs),128k(ospi.phypattern)"
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Best,

    -Hong

  • Hi Hong-san,

    Thank you for your reply.

    Our customer successfully booted from OSPI after changing the Flash layout.

    Best regards,

    Daisuke