nuttx/boards/risc-v/esp32c3/esp32c3-devkit/configs
fangxinyong c479ccb8aa sched: move etc romfs mount from nsh to sched/init
Usually the startup script is placed under /etc. The contents of the etc directory
are compiled and linked with Nuttx binary in the form of romfs. After startup,
it will be  mounted by Nsh.

etc is generated by the different boards, that use genromfs and xxd tools to generate
and compile it into the Nuttx, for example: boards/arm/at32/at32f437-mini/tool/mkromfs.sh
The more common method is etc image generated from the content in the corresponding
board/arch/board/board/src/etc directory, and added by Makefile for example:
boards/sim/sim/sim/src/etc.

But in kernel/protected mode, Nuttx kernel and apps are run in different privileged/
non-privileged mode or the isolated binarys, so as that nsh should use syscall to
access Nuttx kernel by exported API. In this scenario, nsh can not mount the etc image
content, because that is generated in board and as a part of Nuttx kernel.

changes:

- move etc romfs mount from nsh to Nuttx, but keep the script to parse and execute.
- move and rename the related CONFIG, move customized nsh_romfsimg.h to etc_romfs.c
  in boards, and no need declaration for romfs_img/romfs_img_len.

This commit changes and updates all configurations in Nuttx arch/board as much as possible,
but if any missing, please refer to the following simple guide:

- rename CONFIG_NSH_ROMFSETC to CONFIG_ETC_ROMFS, and delete CONFIG_NSH_ARCHROMFS in defconfig
- rename the etc romfs mount configs, for example CONFIG_NSH_FATDEVNO to CONFIG_ETC_FATDEVNO
- move customized nsh_romfsimg.h to etc_romfs.c in board/arch/board/board/src and no need
  declaration for romfs_img/romfs_img_len.
- delete default nsh_romfsimg.h, if ROMFSETC is enabled, should generate and compile etc_romfs.c
  in board/arch/board/board/src.

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2024-01-09 21:29:46 -03:00
..
adc boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
autopm boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
ble risc-v/esp32c3: Move files shared between boards into a common folder 2022-12-09 11:19:27 +08:00
bmp180 boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
coremark boards: Add CoreMark config to ESP boards 2023-03-08 13:11:13 +08:00
crypto boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
cxx boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
efuse boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
elf binfmt/elf: Select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP 2023-10-27 15:42:02 +09:00
gdbstub sched: Rename DEBUG_TCBINFO to ARCH_HAVE_TCBINFO 2023-07-26 09:33:38 +02:00
gpio boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
knsh Run refresh.sh to update all board configs 2023-09-02 14:45:44 +08:00
lvgl boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
mcuboot_slot_confirm espressif: Stabilize MCUboot support on Espressif chips 2023-01-24 08:44:22 +09:00
module boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
nsh boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
nvcfgdata esp32c3-devkit: Remove unnecessary configurations 2023-08-16 22:06:41 +08:00
oneshot boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
ostest boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
pm pm: Let PM_PROCFS depend on FS_PROCFS_REGISTER 2023-10-02 14:30:18 -04:00
pwm boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
random boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
romfs sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
rtc boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
sotest xtensa/esp32s2: Add rtc heap support 2023-11-09 23:58:30 +08:00
spiflash boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
sta_softap Run refresh.sh to update all board configs 2023-09-02 14:45:44 +08:00
tickless boards: Update tickless defconfigs with ostest for testability 2023-04-06 19:29:23 +03:00
timer boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
twai sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
uid boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
usbconsole boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
watchdog boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
watcher drivers/note: Change DRIVER_NOTExxx to DRIVERS_NOTExxx 2023-02-20 14:30:59 +08:00
wifi esp32c3/wifi: use wapis init config to save Wi-Fi data 2023-05-12 01:09:09 +08:00