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.

[FAQ] [参考译文] 【常见问题解答】J721S2XSOMXEVM:Keywriter 应用中的 eMMC 引导分区切换

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1647701/faq-j721s2xsomxevm-emmc-boot-partition-switching-in-keywriter-application

器件型号: J721S2XSOMXEVM

eMMC 有两个引导分区 0 和 1。 引导 ROM 根据 PARTCONFIG 寄存器 (EXCSD[179]) 选择活动的间隔。 如何在 Keywriter 应用中的这些器件之间切换?

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

    步骤 1:应用修补程序

    e2e.ti.com/.../mmcsd_5F00_kw.patch

    将`mMCSD_kw.patch`应用到 Keywriter 源代码:

    cd /path/to/pdk/packages/ti/boot/keywriter
    git apply mmcsd_kw.patch

    或手动应用补丁文件中的更改。

    步骤 2:选择 Target Partition(目标分区)

    打开`main.c`并找到(应用补丁后):

    int32_t status = CSL_EFAIL, retVal, partition = 1;
    ```
    
    Modify the `partition` variable:
    - **For boot0**: Set `partition = 1`
    - **For boot1**: Set `partition = 2``

    步骤 3:重新编译 Keywriter 应用

    cd <RTOS_SDK>/<PDK>/packages/ti/build
    make keywriter_img_clean  BOARD=<BOARD_NAME> 
    make keywriter_img  BOARD=<BOARD_NAME>

    步骤 4:部署并运行

    1.将重建的 Keywriter 二进制文件刷写到目标设备
    2. 运行 Keywriter 应用
    3.监控 UART 输出以确认分区切换。