配置 OS
3 Mar 2025
Read time: 3 minute(s)
打开 OS 的配置界面,依次打开如下配置。
配置 SPI NOR OS
- 在 SDK 根目录下执行下列命令之一,进入 OS 的配置界面:
-
me
命令 -
scons –apply-def=dxxx_xxx-nor_rt-thread_helloworld
和scons –menuconfig
-
- 打开 SPI NOR
设备:
Board options ---> [*] SPI0 Devices: SPINOR --->
- 打开 Rt-Thread
中的驱动选项:
Rt-Thread options ---> RT-Thread Components ---> [*] FAL: flash abstraction layer ---- Device Drivers ---> [*] Using MTD Nor Flash device drivers [*] Using SFUD(Serial Flash Universal Driver)
- 打开 SPI NOR
的驱动选项:
Drivers options ---> Peripheral ---> [*] SPINOR Driver SFUD: Serial Flash Universal Driver ----
配置 SPI NAND OS
- 在 SDK 根目录下执行下列命令之一,进入 OS 的配置界面:
-
me
命令 -
scons –apply-def=dxxx_xxx-nor_rt-thread_helloworld
和scons –menuconfig
-
- 打开 SPI NAND
设备:
Board options ---> [*] SPI0 Devices: SPINAND --->
- 打开 Rt-Thread
中的驱动选项:
Rt-Thread options ---> RT-Thread Components ---> [*] FAL: flash abstraction layer ---- Device Drivers ---> [*] Using MTD Nor Flash device drivers [*] Using SFUD(Serial Flash Universal Driver)
- 打开 SPI NAND
的驱动选项:
Drivers options ---> Peripheral ---> [*] Support Winbond SPI NAND (NEW) //根据 SPINAND 厂商使能配置,如华邦等 [*] Aic NFTL support [*] Aic NFTL use lib
SPINAND Driver library 中会列示不同品牌的存储芯片,如
Dosilicon 和
Macronix,确保选中相应的驱动支持:
-*- SPINAND Driver library [*] Support Dosilicon SPI NAND [*] Support Etron SPI NAND [*] Support Micron SPI NAND [*] Support Macronix SPI NAND [*] Support Winbond SPI NAND [*] Support GigaDevice SPI NAND [*] Support Toshiba SPI NAND [*] Support Foresee SPI NAND [*] Support Xtx SPI NAND [*] Support Zetta SPI NAND [ ] Support Zbit SPI NAND [ ] Support ESMT SPI NAND [ ] Support UMTEK SPI NAND [ ] Support QUANXING SPI NAND
配置 eMMC OS
- 在 SDK 根目录下执行下列命令之一,进入 OS 的配置界面:
-
me
命令 -
scons –apply-def=dxxx_xxx-nor_rt-thread_helloworld
和scons –menuconfig
-
- 打开 eMMC
设备:
Board options ---> [*] Using SDMC0