Edit online

参数配置

3 Mar 2025
Read time: 2 minute(s)

遵照以下流程,配置 Luban-Lite OTA 方案。

配置 BootLoader

  1. 在 SDK 根目录下执行下列命令之一,进入 BootLoader 的配置界面:
    • bm 命令

    • scons –apply-def=dxxx_xxx-nor_baremetal_bootloaderscons –menuconfig

  2. 配置 aic-env 参数。
    Local packages options  --->
        ArtInChip packages options  --->
            [*] aic-env  --->
                [*]   Enable ENV interface and CMD
                [*]     Enable redundant environment support
                (env)   Env part name
                (env_r) Env redundant part name
                (4096)  Environment Size
                [ ]     Enable ENV debug
                [*]   Enable A/B system support in bootloader
    

配置 OS

  1. 在 SDK 根目录下执行下列命令之一,进入 OS 的配置界面:
    • me 命令

    • scons –apply-def=dxxx_xxx-nor_rt-thread_helloworldscons –menuconfig

  2. 使能 aic-ota 配置,同时 aic-env 相关配置会自动使能 。
    Local packages options  --->
        ArtInChip packages options  --->
            [*] aic-env  --->
                -*-   Enable ENV interface and CMD
                [*]     Enable redundant environment support
                (env)   Env part name
                (env_r) Env redundant part name
                (4096)  Environment Size
                [ ]     Enable ENV debug
            [*] aic-ota --->
                [ ]   Enable OTA downloader debug
                [*]   Enable OTA interface
  3. 如需测试网络 OTA,需要按照如下配置打开网络 OTA,否则可跳过。
    Local packages options  --->
        Third-party packages options  --->
            -*- WebClient: A HTTP/HTTPS Client for RT-Thread  --->
            [*] ota_downloader: The firmware downloader which using on RT-Thread OTA component  --->
                [*]   Enable HTTP/HTTPS OTA
                    (http://192.168.31.22/ota.cpio) HTTP OTA Download default URL
                [ ]   Enable Ymodem OTA
    注: 为了方便配置,使能 LPKG_USING_HTTP_OTA 后,会自动选上 AIC_ENV_INTERFACE 和 AIC_OTA_INTERFACE。
  4. 如需测试 Ymodem OTA ,按照如下配置打开 Ymodem OTA:
    Local packages options  --->
        Third-party packages options  --->
            [*] ota_downloader: The firmware downloader which using on RT-Thread OTA component  --->
                [*]   Enable Ymodem OTA
  5. 保存配置后退出。