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.

OMAP-L138: Bootrom code

Expert 1090 points

Replies: 3

Views: 76

Part Number: OMAP-L138

Hello guys,

Currently, I am working on a secondary bootloader for my OMAPL138. I think that it would be a good start, if I can get TI bootrom and add some extra functionality according to my application. I have searched the forum and saw the links below. However I couldn't find any source code.

Does anybody know where I can find bootrom code for OMAPL138?

Here is what I found so far:

https://e2e.ti.com/support/processors/f/791/p/560830/2054439

OMAPL138/C6748 ROM Bootloader Resources and FAQ  https://www.ti.com/lit/an/spracm8/spracm8.pdf

Using the OMAP-L132/L138 Bootloader https://www.ti.com/lit/an/sprab41f/sprab41f.pdf

Thanks in advance,

Hakan

3 Replies

  • Hakan,

    We do not provide the ROM source code for this device. The ROM bootloader is programmed in the device and cannot be changed. What we do provide is a secondary bootloader that will run from the ROM in full source for you to customize for your application booting.

    The secondary bootloader is part of our software packages for the device :

    https://software-dl.ti.com/processor-sdk-rtos/esd/docs/06_03_00_106/rtos/index_Foundational_Components.html#omapl137-omapl138-c6748 

    In this boot flow the ROM will load the secondary bootloader into device onchip RAM and like any other application it can be debugged and customized to control the nature of the boot flow after initial boot.

    The application notes "Using the OMAP-L132/L138 Bootloader" has full description of implementation of the ROM bootloader and configuration of the boot switches that guide the boot process.

    Hope this helps

    --------------------------------------------------------------------------------------------------------------------------------------
    Please click the
    This resolved my issue button on this post if the responses on this E2E thread answers your question.
    --------------------------------------------------------------------------------------------------------------------------------------

     

  • In reply to Rahul Prabhu:

    Hello Rahul,

    Thank you for the reply. I have checked the secondary bootloader (SBL) code, but couldn't find any source file related with AIS except some c# codes under here: <pdk_omapl138_1_0_11>\packages\ti\boot\sbl\tools\omapl13x_boot_utils\Common\AIS

    Here is the situation: My image is stored in a NAND flash in AIS format and read over SPI. I cannot directly use SBL code of TI, because my bootloader must communicate over ethercat. So, I have written an app, which can communicate over ethercat and read the flash over SPI without any problem. What I need to do is extracting "AIS decoding code" from TI bootrom and integrate it into my "secondary ethercat bootloader". The bootloader should work like this:

    1) Read the flash and check the AIS image of the "application"

    2) If the image is broken, init ethercat and wait for new image.

    3) If the image is ok, load the image and jump to "application"

    I have implemented steps 1&2 but need help on step 3.

    Regards,

    Hakan

  • In reply to Hakan B:

    The AIS commands for decoding are all documented in the Bootloader application note. Check section 4 in the document linked below:

    https://www.ti.com/lit/an/sprab41f/sprab41f.pdf

    If you are creating a custom bootloader, you don`t need to use AIS format once initial image has been loaded, you can choose to implement simple ELF binary parser or use the out2rprc format that TI bootloader uses to load the application. Only the image loaded by ROM needs to e in AIS format.

    Regards,

    Rahul 

    --------------------------------------------------------------------------------------------------------------------------------------
    Please click the
    This resolved my issue button on this post if the responses on this E2E thread answers your question.
    --------------------------------------------------------------------------------------------------------------------------------------

     

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.