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.

AM1808, Question about Mgic Number in UBL

Other Parts Discussed in Thread: AM1808

Dear Community member

My customer want to modify AM1808 UBL for NOR flash according to following Wiki.

 "Rebuilding the ARM Side User Boot Loader"

http://processors.wiki.ti.com/index.php/GSG:_Building_Software_Components_for_OMAP-L1/AM1x#Rebuilding_the_ARM_Side_User_Boot_Loader

CCS source code has following Mgic Number.

#define MAGIC_NUMBER_VALID          (0x55424C00)

 

Please advice how Magic Number works when UBL load u-boot.

Are there any rule about Magic Number defined in UBL source code?

 

Regards.

  • The flashing tool needs to write the header containing the magic number before writing U-boot. The UBL will be searching for that number, so the UBL and flashing tools must agree on the number. There are no rules on what it must be as long as they match.

    Jeff

  • Dear Mr. Jeff,

    Thank you for your answer.

    I investigated ubl-omapl1x8.pjt and norflash_writer.pjt and understand that ubl read Magic Number
    at first address of u-boot written in NOR flash (address 0x60020000), and compare it with the number ubl has.
    u-boot block in NOR Flsh is follows.

    But I can't find how the Magic Number adress in NOR Flash is determined.
    Please let me known the description in source code(ubl-omapl1x8.pjt and norflash_writer.pjt ) that determine the Magic Number address written in NOR Flash.

    Regards,