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.

[参考译文] TDA4AL-Q1:j721s2 SBL 引导

Guru**** 2552490 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1333482/tda4al-q1-j721s2-sbl-boot

器件型号:TDA4AL-Q1

 TI 您好:  

使 SBL_lib_mmcsd_HLOS_clean Board=j721s2_EVM
使 sbl_mmcsd_img_HLOS_clean Board=j721s2_evm
使 SBL_lib_mmcsd_HLOS Board=j721s2_EVM

我使用 SBLmmcsd_HLOS  Linux 系统无法引导、但使用 SBL_mmcsd Linux 系统能够引导 为什么?  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    您是否使用合并的应用程序映像构建"app"? 我可以知道您执行的步骤吗?

    此致

    M·塔伦

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    创建 SBL_bootmage -J32
    make -s bootapp_SD -J32

    我看到我的日志停止在:   

    int32_t BootApp_MMCBootImageInit ()
    {
    int32_t RetVal = E_PASS;
    MMCSD_v2_HwAttrs hwAttrsConfig;
    UART_printf ("\n BootApp_MMCBootImageInit 启动...\r\n");
    if (MMCSD_socGetInitCfg (FATFS_initCfg[0].drvInst、&hwAttrsConfig)!= 0)
    {
    UART_printf ("\n 无法获取 config.exiting. 测试失败。\r\n);
    RetVal = E_FAIL;

    UART_printf ("\nMMCSD_socGetInitCfg start...\r\n");
    hwAttrsConfig.enableInterrupt =((uint32_t)(0U));
    hwAttrsConfig.configSocketPath=NULL;

    if (MMCSD_socSetInitCfg (FATFS_initCfg[0].drvInst、&hwAttrsConfig)!= 0)
    {
    UART_printf ("\n 无法设置 config.exiting。 测试失败。\r\n);
    RetVal = E_FAIL;

    UART_printf ("\nMMCSD_socSetInitCfg start...\r\n");
    /*驱动程序的初始化。 */
    FATFS_init();
    UART_printf ("\nFATFS_init start...\r\n");
    /* MMCSD FATFS 初始化*/
    UART_printf ("\nFATFS_open start...\r\n");
    FATFS_open (0U、NULL、&SBL_fatfsHandle);
    UART_printf ("\nFATFS_open 末端...\r\n");
    返回(返回值);

    FATFS_open 不在这里进行记录和停止。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    调用 Sciclient_procBootRequestProcessor、ProcID 0x1...
    正在启动 Sciserver... 通过

    **MCU R5F 应用程序开始时为0usecs

    **5.52 App_Task xn 开始

    **** Boot_App 开始

    **BootApp_MMCBootImageInit 开始

    BootApp_MMCBootImageInit 启动...

    MMCSD_socGetInitCfg 启动...

    MMCSD_socSetInitCfg 启动...

    FATFS_init 启动...

    FATFS_OPEN 开始...
    正在对 PLL 进行初始化...完成。
    InitlialzingClocks……完成
    正在进行 DDR 开发...完成了。
    正在初始化 GTC ...开始解析用户应用程序
    五颗星 SBL_BootImage .**
    调用 Sciclient_procBootRequestProcessor、ProcID 0x20...
    调用 Sciclient_procBootRequestProcessor、ProcID 0x21...
    调用 Sciclient_procBootRequestProcessor、ProcID 0x1...
    调用 Sciclient_procBootRequestProcessor、ProcID 0x2...
    调用 Sciclient_procBootRequestProcessor、ProcID 0x6...
    调用 Sciclient_procBootRequestProcessor、ProcID 0x7...
    调用 Sciclient_procBootRequestProcessor、ProcID 0x8...
    调用 Sciclient_procBootRequestProcessor、ProcID 0x9...
    调用 Sciclient_procBootRequestProcessor、ProcID 0x30...
    调用 Sciclient_procBootRequestProcessor、ProcID 0x31...
    调用 Sciclient_procBootRequestProcessor、ProcID 0x80...
    五颗星 SBL_MMCBootImage .**
    五颗星 SBL_MMCBootImage 启动.**

    SBL_ENABLE_HLOS_BOOT 开始
    正在搜索 X509证书...not found
    正在将内核 ID 8、proc_id 0x1切换到拆分模式...
    调用 Sciclient_procBootGetProcessorState、ProcID 0x1...
    Sciclient_procBootSetProcessorCfg、ProcID 0x1、正在启用拆分模式...
    调用 Sciclient_procBootGetProcessorState、ProcID 0x1...
    在内核8复位后启用 MCU TFM
    禁用内核8的 MCU TCM 的基于 HW 的存储器初始化
    Sciclient_procBootSetProcessorCfg 更新 TCM 启用/禁用设置...
    将0x40字节复制到0x0
    将0x255d0字节复制到0x41c82000
    将0xa628字节复制到0x41cb3c00
    将0x41b8字节复制到0x41cc6228
    将0x1904字节复制到0x41cca400
    将0x460字节复制到0x41ccbd08
    将0x448字节复制到0x41ccc168
    将0x318字节复制到0x41ccc5b0
    将0x100字节复制到0x41ccc8c8
    将0x22d8字节复制到0x41ccc9c8
    设置内核8的入口点@0x0
    Sciclient_procBootReleaseProcessor、ProcID 0x20...
    Sciclient_procBootReleaseProcessor、ProcID 0x21...
    Sciclient_procBootReleaseProcessor、ProcID 0x1...
    Sciclient_procBootReleaseProcessor、ProcID 0x2...
    Sciclient_procBootReleaseProcessor、ProcID 0x6...
    Sciclient_procBootReleaseProcessor、ProcID 0x7...
    Sciclient_procBootReleaseProcessor、ProcID 0x8...
    Sciclient_procBootReleaseProcessor、ProcID 0x9...
    Sciclient_procBootReleaseProcessor、ProcID 0x30...
    Sciclient_procBootReleaseProcessor、ProcID 0x31...
    Sciclient_procBootReleaseProcessor、ProcID 0x80...
    调用 Sciclient_procBootRequestProcessor、ProcID 0x1...
    Sciclient_procBootSetProcessorCfg、ProcID 0x1、EntryPoint 0x0...
    Sciclient_pmSetModuleClkFreq、DevID 0x11c @ 1000000000Hz……
    调用 Sciclient_procBootRequestProcessor、ProcID 0x2...
    跳过 ProcID 0x2、EntryPoint 0xfffffe 的 Sciclient_procBootSetProcessorCfg ...
    调用 Sciclient_procBootRequestProcessor、ProcID 0x1...
    正在启动 Sciserver... 通过

    **MCU R5F 应用程序开始时为0usecs

    **5.52 App_Task xn 开始

    **** Boot_App 开始

    **BootApp_MMCBootImageInit 开始

    BootApp_MMCBootImageInit 启动...

    MMCSD_socGetInitCfg 启动...

    MMCSD_socSetInitCfg 启动...

    FATFS_init 启动...

    FATFS_OPEN 开始...

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    感谢您分享日志。

    make -s bootapp_sd -j32

    由于您使用的是 Boot App、而不是组合应用映像、  因此不应使用 SBLmmcsd_HLOS、而必须在没有 HLOS 的情况下使用 SBLmmcsd、因为引导应用程序会引导内核。

    此致

    M·塔伦