Edit online

参数配置

Boot 的配置,通过 menuconfig 进行设置。scons --menuconfig

链接脚本

配置 Bootloader 所使用的链接脚本:
Chip options  --->
    (application/baremetal/bootloader/ldscript/d21x_bootloader_gcc.ld) Custom link script path (relative path in sdk)

串口控制台

配置 Bootloader 控制台所使用的 UART:

  1. 首先需要 Board Options 中,使能本项目所使用的 UART
    Board options  --->
            *** Peripheral Devices: ***
            [*] Using uart0
            [ ] Using uart1
            [ ] Using uart2
            [ ] Using uart3
    
  2. 然后在 Bootloader Options 中设置控制台所使用的 UART ID
    Bootloader options  --->
        (0) Bootloader console UART ID
    

启动介质

配置 Bootloader 所支持的启动介质:
Bootloader options  --->
    [ ] MMC boot support  ----
    [*] SPI NOR boot support  --->
    [*] SPI NAND boot support  --->

有些启动介质需要进一步配置相关参数的,比如 SPI NAND:

  • 所使用的 QSPI 控制器

  • QSPI 总线工作频率

需要进入到对应的配置页面进行配置。如:
--- SPI NAND boot support
    (0)   SPI NAND device using QSPI controller
    (100000000) SPI NAND device working frequency(Hz)

升级功能

烧录和升级功能的配置:
Bootloader options  --->
    aicupg setting  --->
        [*] aicupg usb upgrade on
        [*] aicupg nand upgrade on
        [*] aicupg nor upgrade on