mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 09:38:37 +08:00
boards/xtensa: add option to disable SPI Flash MTD automatic bringup
Build Documentation / build-html (push) Has been cancelled
Build Documentation / build-html (push) Has been cancelled
The ESP32*_SPIFLASH_AUTO_BRINGUP option allows disabling automatic bringup. This causes /dev/mtdblock0 to show up instead of always mounting a file system. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
This commit is contained in:
committed by
Xiang Xiao
parent
4e8bc78307
commit
1630b483d2
@@ -19,10 +19,18 @@ config ESP32_QEMU_IMAGE
|
|||||||
---help---
|
---help---
|
||||||
Create a binary flash image used for QEMU.
|
Create a binary flash image used for QEMU.
|
||||||
|
|
||||||
choice ESP32_SPIFLASH_FS
|
config ESP32_SPIFLASH_AUTO_BRINGUP
|
||||||
prompt "Mount SPI Flash MTD on bring-up"
|
bool "Automatic mount of SPI Flash MTD"
|
||||||
default ESP32_SPIFLASH_SMARTFS
|
default y
|
||||||
depends on ESP32_SPIFLASH
|
depends on ESP32_SPIFLASH
|
||||||
|
---help---
|
||||||
|
Auto bring-up the SPI Flash MTD on board bring-up.
|
||||||
|
If not selected, the MTD will be registered as a device node on /dev.
|
||||||
|
|
||||||
|
choice ESP32_SPIFLASH_FS
|
||||||
|
prompt "File system to mount on SPI Flash MTD"
|
||||||
|
default ESP32_SPIFLASH_SMARTFS
|
||||||
|
depends on ESP32_SPIFLASH_AUTO_BRINGUP
|
||||||
optional
|
optional
|
||||||
---help---
|
---help---
|
||||||
Mount the SPI Flash MTD with the selected File System format on board
|
Mount the SPI Flash MTD with the selected File System format on board
|
||||||
|
|||||||
@@ -12,10 +12,18 @@ config ESP32S2_MERGE_BINS
|
|||||||
This is only useful when the path to binary files (e.g. bootloader)
|
This is only useful when the path to binary files (e.g. bootloader)
|
||||||
is provided via the ESPTOOL_BINDIR variable.
|
is provided via the ESPTOOL_BINDIR variable.
|
||||||
|
|
||||||
|
config ESP32S2_SPIFLASH_AUTO_BRINGUP
|
||||||
|
bool "Automatic mount of SPI Flash MTD"
|
||||||
|
default y
|
||||||
|
depends on ESP32S2_SPIFLASH
|
||||||
|
---help---
|
||||||
|
Auto bring-up the SPI Flash MTD on board bring-up.
|
||||||
|
If not selected, the MTD will be registered as a device node on /dev.
|
||||||
|
|
||||||
choice ESP32S2_SPIFLASH_FS
|
choice ESP32S2_SPIFLASH_FS
|
||||||
prompt "Mount SPI Flash MTD on bring-up"
|
prompt "File system to mount on SPI Flash MTD"
|
||||||
default ESP32S2_SPIFLASH_SMARTFS
|
default ESP32S2_SPIFLASH_SMARTFS
|
||||||
depends on ESPRESSIF_SPIFLASH
|
depends on ESP32S2_SPIFLASH_AUTO_BRINGUP
|
||||||
optional
|
optional
|
||||||
---help---
|
---help---
|
||||||
Mount the SPI Flash MTD with the selected File System format on board
|
Mount the SPI Flash MTD with the selected File System format on board
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ CONFIG_ARCH_STACKDUMP=y
|
|||||||
CONFIG_ARCH_XTENSA=y
|
CONFIG_ARCH_XTENSA=y
|
||||||
CONFIG_BOARD_LOOPSPERMSEC=16717
|
CONFIG_BOARD_LOOPSPERMSEC=16717
|
||||||
CONFIG_BUILTIN=y
|
CONFIG_BUILTIN=y
|
||||||
CONFIG_ESP32S2_SPIFLASH_SMARTFS=y
|
|
||||||
CONFIG_ESP32S2_UART0=y
|
CONFIG_ESP32S2_UART0=y
|
||||||
CONFIG_ESPRESSIF_SPIFLASH=y
|
CONFIG_ESPRESSIF_SPIFLASH=y
|
||||||
CONFIG_FS_PROCFS=y
|
CONFIG_FS_PROCFS=y
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ CONFIG_BOARD_LOOPSPERMSEC=16717
|
|||||||
CONFIG_BUILTIN=y
|
CONFIG_BUILTIN=y
|
||||||
CONFIG_DRIVERS_IEEE80211=y
|
CONFIG_DRIVERS_IEEE80211=y
|
||||||
CONFIG_DRIVERS_WIRELESS=y
|
CONFIG_DRIVERS_WIRELESS=y
|
||||||
CONFIG_ESP32S2_SPIFLASH_SPIFFS=y
|
|
||||||
CONFIG_ESP32S2_UART0=y
|
CONFIG_ESP32S2_UART0=y
|
||||||
CONFIG_ESPRESSIF_SPIFLASH=y
|
CONFIG_ESPRESSIF_SPIFLASH=y
|
||||||
CONFIG_ESPRESSIF_WIFI=y
|
CONFIG_ESPRESSIF_WIFI=y
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ CONFIG_BOARD_LOOPSPERMSEC=16717
|
|||||||
CONFIG_BUILTIN=y
|
CONFIG_BUILTIN=y
|
||||||
CONFIG_DRIVERS_IEEE80211=y
|
CONFIG_DRIVERS_IEEE80211=y
|
||||||
CONFIG_DRIVERS_WIRELESS=y
|
CONFIG_DRIVERS_WIRELESS=y
|
||||||
CONFIG_ESP32S2_SPIFLASH_SPIFFS=y
|
|
||||||
CONFIG_ESP32S2_UART0=y
|
CONFIG_ESP32S2_UART0=y
|
||||||
CONFIG_ESPRESSIF_SPIFLASH=y
|
CONFIG_ESPRESSIF_SPIFLASH=y
|
||||||
CONFIG_ESPRESSIF_WIFI=y
|
CONFIG_ESPRESSIF_WIFI=y
|
||||||
|
|||||||
@@ -49,10 +49,18 @@ config ESP32S3_STORAGE_MTD_SIZE
|
|||||||
---help---
|
---help---
|
||||||
MTD size in SPI Flash.
|
MTD size in SPI Flash.
|
||||||
|
|
||||||
choice ESP32S3_SPIFLASH_FS
|
config ESP32S3_SPIFLASH_AUTO_BRINGUP
|
||||||
prompt "Mount SPI Flash MTD on bring-up"
|
bool "Automatic mount of SPI Flash MTD"
|
||||||
default ESP32S3_SPIFLASH_SMARTFS
|
default y
|
||||||
depends on ESP32S3_MTD
|
depends on ESP32S3_MTD
|
||||||
|
---help---
|
||||||
|
Auto bring-up the SPI Flash MTD on board bring-up.
|
||||||
|
If not selected, the MTD will be registered as a device node on /dev.
|
||||||
|
|
||||||
|
choice ESP32S3_SPIFLASH_FS
|
||||||
|
prompt "File system to mount on SPI Flash MTD"
|
||||||
|
default ESP32S3_SPIFLASH_SMARTFS
|
||||||
|
depends on ESP32S3_SPIFLASH_AUTO_BRINGUP
|
||||||
optional
|
optional
|
||||||
---help---
|
---help---
|
||||||
Mount the SPI Flash MTD with the selected File System format on board
|
Mount the SPI Flash MTD with the selected File System format on board
|
||||||
|
|||||||
Reference in New Issue
Block a user