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.

How to customize UBL

Other Parts Discussed in Thread: AM1802, OMAP-L138

Our customer is developing their system with AM1802, and they have to customize UBL based on the spec of their board.

Please let me ask E2E how to customize UBL.

My understanding is there are two ways to customize UBL

1) Customize UBL source code

e.g)DaVinci-PSP-SDK-03.22.00.02/host-tools/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/Common/src

# In this case, they only have to set General and Peripheral tab in AISgen and generate "bin file" from "out file".

2) Customize Prebuild.out file by ASIgen

e.g) DaVinci-PSP-SDK-03.22.00.02/host-tools/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/ubl

# In this case, they don't have to customize UBL source code .

# But they have to set General, Peripheral, DDR, and other tabs based on the spec of their board.

Q1) Which way should they use?

I find UBL source code and UBL prebuild binaries in some packages.

1) DaVinci-PSP-SDK-03.22.00.02

2) ti-sdk-am180x-evm-05.05.00.00

3) OMAP-L138_FlashAndBootUtils_2_40.tar.gz

Q2) Which package should they use?

Best Regards,

Kusunoki

  • The update in PSP 3.22 doesn`t require the user to use the UBL, the device is configured by the ROM using the the AIS signed uboot obtained from the AISGen tool. They can flash the AIS image obtained from uboot with the SFH tool provided and write it to the flash memory with the -flash_noubl option to boot the device.

    The UBL provided in serial flash and boot utilities only applies to releases earlier than PSP 3.22.

    Regards,

    Rahul

  • Hi Rahul-san

    Thank you for your reply.

    I was able to build SPL+Uboot binary and to burn it into the flash thanks to your help.

    Please allow me to ask you some additional questions.

    Q1) When our customer would like to adjust DDR parameter based on their board, should they modify "DaVinci-PSP-SDK-03.22.00.02/src/u-boot/uboot-03.22.00.02/include/configs/da850evm.h"?

    mkimage generates AIS file in makefile as follows.

    $(obj)tools/mkimage -s -n /dev/null -T aisimage \
    -e $(CONFIG_SPL_TEXT_BASE) \
    -d $(obj)spl/u-boot-spl.bin \
    $(obj)spl/u-boot-spl.ais

    But if they want to use "AISgen for D800K008 windows application" to adjust DDR parameter, they should set it as follows.

    * ARM Application File : u-boot-spl.bin

    * ASI output file : u-boot-spl.ais

    * Check Configure DDR

    Q2) Is my understanding correct?

    Best Regards,

    Kusunoki

  • Hi,

                On your further clarifications, both your understandings are correct and for the better understanding of the AISgen utility and its usage you can refer the following Bootloader Application Note document(SPRAB41D).

    http://www.ti.com/lit/an/sprab41d/sprab41d.pdf

    Regards,

    Iyshwarya

    If this answers your question, please click the Verify Answer button below. If not, please reply back with more information.

  • Hi Iyshwarya

    I was able to close this ticket thanks to your help.

    Best Regards,

    Kusunoki