Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

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.

Description of the CHSETTINGS header?

Other Parts Discussed in Thread: AM3359

Looking at the U-Boot MLO file (for a NAND flash boot) we can see there's a 0x200 length header at the start of the file. Following that is the GP header, 8 bytes long containing the code length and destination address. The GP Header is described in the AM335x documentation. Where can we find the description of the 0x200 long CHSETTINGS header?

Thanks.

  • Surely it's documented somewhere?

    We were unable to get our program code to boot from NAND until we used a hex editor to copy & past the 0x200 long header from some random MLO file onto the front of our code's xxx_ti.bin file. Then magically the AM3359 booted from NAND. 

  • Hi Frank,

    Image header format is

    An image has two major parts:
    • An optional CH
    • Software to execute

    Please look at e2e thread

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/t/100792.aspx

    Thanks

    Avinash

  • Thanks for this. At least it gives us an outline. However this forum is for the AM335x. Is the CHSETTINGS header documented anywhere for the AM335x processors? The omap documentation talks about the omap processor and omap registers. For example:

    You can see these omap registers simply don't exist in the AM335x.

    Where can we find documentation for the operation of the CHSETTINGS header for the AM335x?

    Many thanks.

  • Bump. Could someone provide some insight here?

  • Hi Keegan, i replied to your email, but here's the info to close out the thread

    I’m adding the following tables as a subsection under raw mode:

     

    For Raw Mode, the Configuration Header should be formatted as follows:

     

    Table 1. CH TOC Item

    Offset     Field       Size (Bytes)          Value                      Description

    0x0000    Start                        4              0x000000a0            Offset from the start address of TOC to the actual address of a section

    0x0004    Size                         4              0x00000050            Size of a section

    0x0008    Reserved                4              0x00000000            Unused

    0x000C    Reserved                4              0x00000000            Unused

    0x0010    Reserved                4              0x00000000            Unused

    0x0014    Filename                  12            0x45534843

                                                                    0x4e495454

                                                                    0x00005347            12-character name of a section, including the zero (\0) terminator (these are the ASCII                                                                                                                                      characters for 'CHSETTINGS')

    0x0020    Closing item             4              0xFFFFFFFF           

    0x0024    Closing item             4              0xFFFFFFFF           

    0x0028    Closing item             4              0xFFFFFFFF           

    0x002C    Closing item             4              0xFFFFFFFF           

    0x0030    Closing item             4              0xFFFFFFFF           

    0x0034    Closing item             4              0xFFFFFFFF           

    0x0038    Closing item             4              0xFFFFFFFF           

    0x003C    Closing item             4              0xFFFFFFFF            32 bytes of 0xFF to signify the end of the TOC item

                                                                   

     

    Table 2. CHSETTINGS

    Offset     Field                       Value                      Description

    0000h      Section key             0xC0C0C0C1           Key used for section verification

    0004h      Valid                        0x00                        Enables/disables the section

                                                                                    00h: Disable

                                                                                    Other: Enable

    0005h      Version                   0x001                      Configuration header version

                                                                                    Others: For future use

    0006h      Reserved                0x00                        Set the reset of the header (offset 0x6 to 0xe0) to 0x00

    ...

    0xe0     Reserved           0x00

     

     

    I have also attached the header which should be appended to the MLO.

     

  • 1234.RAW_MLO_HEADER.txt
    �PCHSETTINGS������������������������������������

  • The attached file is really a binary that should be appended to the MLO.  To view its contents, open it up in a hex editor.

    Regards,

    James

  • Hi James,

    Could you please give some insight on what is section enable and disable in Configuration Header Settings?

    What exactly RBL looks for when we enable or disable section?

    Regards,

    GSr

  • Hello JJD,
    I am using emmc RAW boot now,, and I want to know is there some source codes for generating the bin file(1234.RAW_MLO_HEADER.txt) ?
    Or we can use some software like winHex to generate the bin header file .