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.

TDA2x SD BOOT :

Hi all,

I follow the (TDA2x USER GUIDE V02.10.00)  to   3.5. Load using SD card. some errors occur like below when i run the sbl_mlo_create_tda2xx.bat.And then gennerate a wrong MLO and AppImage.

Microsoft Windows [版本 6.1.7601] 
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Windows\system32>cd \VISION_SDK_02_10_00_00\vision_sdk\build\scripts

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>sbl_mlo_create_tda2xx.bat

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>REM Use profile passed from
command line, else us
e default as release

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set profile=

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>IF . == . (set profile=release )

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set TICOMPONENTSBASE=C:
\VISION_SDK_02_10_00_00\vi
sion_sdk\build\scripts\..\..\..\

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set STARTERWAREDIRNAME=C:
\VISION_SDK_02_10_00_00\
vision_sdk\build\scripts\..\..\..\\ti_components\drivers\starterware_01_06_00_16

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set Gcc_Tools_Path=C:
\VISION_SDK_02_10_00_00\visi
on_sdk\build\scripts\..\..\..\\ti_components\cg_tools\windows\gcc-arm-none-eabi-4_9-
2015q3\bin

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>REM <blank> or _opp_od or
_opp_high

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set OPPMODE=

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set Sbl_Tools_Path=C:
\VISION_SDK_02_10_00_00\visi
on_sdk\build\scripts\..\..\..\\ti_components\drivers
\starterware_01_06_00_16\bootloader\Tools\tiimag
e

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set Sbl_Elf_Path=C:
\VISION_SDK_02_10_00_00\vision
_sdk\build\scripts\..\..\..\\ti_components\drivers\starterware_01_06_00_16\binary
\sbl_sd\bin\tda2xx


C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set Sbl_Out_Path=C:
\VISION_SDK_02_10_00_00\vision
_sdk\build\scripts\mlo_tda2xx

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set Sbl_Out_Path_hs=C:
\VISION_SDK_02_10_00_00\vis
ion_sdk\build\scripts\mlo_tda2xx_hs

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>IF NOT EXIST C:
\VISION_SDK_02_10_00_00\vision_sdk
\build\scripts\mlo_tda2xx\ mkdir C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts
\mlo_tda2xx

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>IF NOT EXIST C:
\VISION_SDK_02_10_00_00\vision_sdk
\build\scripts\mlo_tda2xx_hs\ mkdir C:\VISION_SDK_02_10_00_00\vision_sdk\build
\scripts\mlo_tda2xx_hs


C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>del C:
\VISION_SDK_02_10_00_00\vision_sdk\build\sc
ripts\mlo_tda2xx\MLO

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>"C:
\VISION_SDK_02_10_00_00\vision_sdk\build\scrip
ts\..\..\..\\ti_components\cg_tools\windows\gcc-arm-none-eabi-4_9-2015q3\bin\arm-
none-eabi-objcopy.e
xe" --gap-fill=0xff -O binary C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts\..
\..\..\\ti_compon
ents\drivers\starterware_01_06_00_16\binary\sbl_sd\bin\tda2xx
\sbl_sd_a15host_release.xa15fg C:\VISIO
N_SDK_02_10_00_00\vision_sdk\build\scripts\mlo_tda2xx\SBL.bin

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>"C:
\VISION_SDK_02_10_00_00\vision_sdk\build\scrip
ts\..\..\..\\ti_components\drivers\starterware_01_06_00_16\bootloader\Tools\tiimage
\tiimage.exe" 0x4
0300000 LE C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts\mlo_tda2xx\SBL.bin C:
\VISION_SDK_02_10
_00_00\vision_sdk\build\scripts\mlo_tda2xx\SBL.tiimage


C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>"C:
\VISION_SDK_02_10_00_00\vision_sdk\build\scrip
ts\..\..\..\\ti_components\drivers\starterware_01_06_00_16\bootloader\Tools\tiimage
\tiimage.exe" 0xF
FFFFFFF LE C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts\mlo_tda2xx\SBL.bin C:
\VISION_SDK_02_10
_00_00\vision_sdk\build\scripts\mlo_tda2xx\SBL.tiimage


C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>ren C:
\VISION_SDK_02_10_00_00\vision_sdk\build\sc
ripts\mlo_tda2xx\SBL.tiimage MLO

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>ren C:
\VISION_SDK_02_10_00_00\vision_sdk\build\sc
ripts\mlo_tda2xx_hs\SBL.tiimage unsigned_MLO
系统找不到指定的文件。(system can't find the document)

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>del C:
\VISION_SDK_02_10_00_00\vision_sdk\build\sc
ripts\mlo_tda2xx\SBL.bin

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>pause
请按任意键继续. . .

C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>

  • sbl_mlo_create_tda2xx.bat is used to generate only MLO, have you executed make -s -j sbl_sd before this?
    For AppImage there is separatebat file under vision_sdk folder which you need to modify if you have added/removed cores from Rules.make
  • hi Yogesh,
    Thanks for your reply.Of course i executed gmake -s sbl_sd before this.
    Also,i have done the step < 3.2 Building the application>,and i can see the files like below in C:\VISION_SDK_02_10_00_00\vision_sdk\binaries\vision_sdk\bin\tda2xx-evm.
    vision_sdk_a15_0_debug.xa15fg
    vision_sdk_arp32_1_release.xearp32F
    vision_sdk_arp32_2_release.xearp32F
    vision_sdk_c66xdsp_1_release.xe66
    vision_sdk_c66xdsp_2_release.xe66
    vision_sdk_ipu1_0_release.xem4
    vision_sdk_ipu1_1_release.xem4
    Demo like SCV running correct when i loading with CCS.I want to know why it can't gennerate right MLO and AppImage.

    Jeremy.
  • Hi,

    I'm seeing the same issue. The MLO built by myself can not boot.

    I compared the workable (pre-built) MLO and my MLO, I found the workable MLO has below 8-byte addtional headers

    0x60 0xCB 0x01 0x00 0x00 0x00 0x30 0x40

    After manually adding above 8 bytes to my MLO, my MLO can boot.

    Hope this helps shoot the problem.

    Best Regards,

    Luke Lin

  • Thanks Luke, we should be able to verify this on 2.10 and file a bug if found so.

  • Hi,
    Luke,yeah,but how can i open MLO file and edit. Any tool you used? Very thanks if you can share with me.
    Jeremy.
  • Jeremy

    Several binary editors can do this. I personally use wxHexEditor which can be downloaded from SourceForge.

    Best Regards,
    Luke Lin
  • Yogesh,

    The issue is caused by a typo in the following batch files

    sbl_mlo_create_tda2ex.bat

    sbl_mlo_create_tda2xx.bat

    sbl_mlo_create_tda2xx-mc.bat

    I applied below changes then I can build bootable MLO.

    Original:

    "%Sbl_Tools_Path%\tiimage.exe" 0xFFFFFFFF LE %Sbl_Out_Path%\SBL.bin %Sbl_Out_Path%\SBL.tiimage

    Modified:

    "%Sbl_Tools_Path%\tiimage.exe" 0xFFFFFFFF LE %Sbl_Out_Path_hs%\SBL.bin %Sbl_Out_Path_hs%\SBL.tiimage

    Best Regards,

    Luke Lin

  • Hi Luke,

    After i replace "%Sbl_Tools_Path%\tiimage.exe" 0xFFFFFFFF LE %Sbl_Out_Path%\SBL.bin %Sbl_Out_Path%\SBL.tiimage"

    with
    "%Sbl_Tools_Path%\tiimage.exe" 0xFFFFFFFF LE %Sbl_Out_Path_hs%\SBL.bin %Sbl_Out_Path_hs%\SBL.tiimage"
    MLO file still can't work.

    Microsoft Windows [版本 6.1.7601]
    版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

    C:\Windows\system32>cd \VISION_SDK_02_10_00_00\vision_sdk\build\scripts

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>sbl_mlo_create_tda2xx.bat

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>REM Use profile passed from command line, else us
    e default as release

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set profile=

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>IF . == . (set profile=release )

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set TICOMPONENTSBASE=C:\VISION_SDK_02_10_00_00\vi
    sion_sdk\build\scripts\..\..\..\

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set STARTERWAREDIRNAME=C:\VISION_SDK_02_10_00_00\
    vision_sdk\build\scripts\..\..\..\\ti_components\drivers\starterware_01_06_00_16

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set Gcc_Tools_Path=C:\VISION_SDK_02_10_00_00\visi
    on_sdk\build\scripts\..\..\..\\ti_components\cg_tools\windows\gcc-arm-none-eabi-4_9-2015q3\bin

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>REM <blank> or _opp_od or _opp_high

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set OPPMODE=

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set Sbl_Tools_Path=C:\VISION_SDK_02_10_00_00\visi
    on_sdk\build\scripts\..\..\..\\ti_components\drivers\starterware_01_06_00_16\bootloader\Tools\tiimag
    e

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set Sbl_Elf_Path=C:\VISION_SDK_02_10_00_00\vision
    _sdk\build\scripts\..\..\..\\ti_components\drivers\starterware_01_06_00_16\binary\sbl_sd\bin\tda2xx


    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set Sbl_Out_Path=C:\VISION_SDK_02_10_00_00\vision
    _sdk\build\scripts\mlo_tda2xx

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>set Sbl_Out_Path_hs=C:\VISION_SDK_02_10_00_00\vis
    ion_sdk\build\scripts\mlo_tda2xx_hs

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>IF NOT EXIST C:\VISION_SDK_02_10_00_00\vision_sdk
    \build\scripts\mlo_tda2xx\ mkdir C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts\mlo_tda2xx

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>IF NOT EXIST C:\VISION_SDK_02_10_00_00\vision_sdk
    \build\scripts\mlo_tda2xx_hs\ mkdir C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts\mlo_tda2xx_hs


    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>del C:\VISION_SDK_02_10_00_00\vision_sdk\build\sc
    ripts\mlo_tda2xx\MLO

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>"C:\VISION_SDK_02_10_00_00\vision_sdk\build\scrip
    ts\..\..\..\\ti_components\cg_tools\windows\gcc-arm-none-eabi-4_9-2015q3\bin\arm-none-eabi-objcopy.e
    xe" --gap-fill=0xff -O binary C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts\..\..\..\\ti_compon
    ents\drivers\starterware_01_06_00_16\binary\sbl_sd\bin\tda2xx\sbl_sd_a15host_release.xa15fg C:\VISIO
    N_SDK_02_10_00_00\vision_sdk\build\scripts\mlo_tda2xx\SBL.bin

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>"C:\VISION_SDK_02_10_00_00\vision_sdk\build\scrip
    ts\..\..\..\\ti_components\drivers\starterware_01_06_00_16\bootloader\Tools\tiimage\tiimage.exe" 0x4
    0300000 LE C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts\mlo_tda2xx\SBL.bin C:\VISION_SDK_02_10
    _00_00\vision_sdk\build\scripts\mlo_tda2xx\SBL.tiimage


    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>"C:\VISION_SDK_02_10_00_00\vision_sdk\build\scrip
    ts\..\..\..\\ti_components\drivers\starterware_01_06_00_16\bootloader\Tools\tiimage\tiimage.exe" 0xF
    FFFFFFF LE C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts\mlo_tda2xx_hs\SBL.bin C:\VISION_SDK_02
    _10_00_00\vision_sdk\build\scripts\mlo_tda2xx_hs\SBL.tiimage
    Error opening input image file!

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>ren C:\VISION_SDK_02_10_00_00\vision_sdk\build\sc
    ripts\mlo_tda2xx\SBL.tiimage MLO

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>ren C:\VISION_SDK_02_10_00_00\vision_sdk\build\sc
    ripts\mlo_tda2xx_hs\SBL.tiimage unsigned_MLO
    系统找不到指定的文件。

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>del C:\VISION_SDK_02_10_00_00\vision_sdk\build\sc
    ripts\mlo_tda2xx\SBL.bin

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>pause
    请按任意键继续. . .

    C:\VISION_SDK_02_10_00_00\vision_sdk\build\scripts>
  • Luke,
    Thanks your reply.After i add 8-byte you provide i can boot successfully and run the demo like SCV.(NOTE:I use workable(pre-built)AppImage for testing).

    But,the AppImage file which i generate with visionsdk/MulticoreImageGen.bat can't work correcttly.Pls see the log command come out from Terminal (usb serial ):

    TDA2xx SBL Boot

    DPLL Configuration Completed

    Clock Domain Configuration Completed

    Module Enable Configuration Completed

    TI EVM PAD Config Completed

    DDR Config Completed

    App Image Download Begins

    SD Boot - file open completed successfully

    MPU CPU0 Image Load Completed

    IPU1 CPU0 Image Load Completed

    IPU1 CPU1 Image Load Completed

    DSP1 Image Load Completed

    DSP2 Image Load Completed

    EVE1 Image Load Completed

    EVE2 Image Load Completed

    App Image Download Completed

    Putting MPU CPU1 in Off mode

    EVE MMU configuration completed

    EVE MMU configuration completed

    EVE MMU configuration completed

    EVE MMU configuration completed

    *****************************************************************

    PMCCNTR counts once every 64 clock cycles, multiple by 64 to get actual CPU cycles

    SBL Initial Config Cycles - 133566 (11.39 ms)
    SOC Init Cycles - 169431 (14.45 ms)
    DDR Config Clock Cycles - 43389 (3.70 ms)
    App Image Load Cycles - 130187013 (11109.29 ms)
    Slave Core Bootup Cycles - 207231 (17.68 ms)
    SBL Boot-up Cycles - 130740969 (11156.56 ms)
    *****************************************************************

    Putting MPU in Retention...

    Then stop here.thanks.

    Jeremy.
  • Jeremy,

    Have you looked at  VISION_SDK_02_10_00_00_patches.tar.gz in CDDS? The bat file is here v2.10_patches/misc/MulticoreImageGen_tda2xx.bat

    We had couple of issues with 2.10 and this patch was available around July end in the same release folder of 2.10 on CDDS. Please use that bat file from the patch.

    Lin,

    Did you receive any communication about this?

  • Yogesh,

    Thanks,i can get the MLO and AppImage files correcttly.

    Jeremy.