nuttx/boards/arm/stm32
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
..
axoloti nuttx/boards:init_array.* needs to be executed in order 2023-08-29 22:54:37 +08:00
b-g431b-esc1 Update kconfig2html.c 2023-12-14 20:02:52 -08:00
b-g474e-dpow1 nuttx/boards:init_array.* needs to be executed in order 2023-08-29 22:54:37 +08:00
clicker2-stm32 fix led panic feature 2023-09-21 00:35:12 +08:00
cloudctrl fix led panic feature 2023-09-21 00:35:12 +08:00
common boards: Use MS56XX instead of MS5611 2023-11-28 16:48:50 -03:00
emw3162 fix led panic feature 2023-09-21 00:35:12 +08:00
et-stm32-stamp fix led panic feature 2023-09-21 00:35:12 +08:00
fire-stm32v2 fix led panic feature 2023-09-21 00:35:12 +08:00
hymini-stm32v nuttx/boards:init_array.* needs to be executed in order 2023-08-29 22:54:37 +08:00
maple fix led panic feature 2023-09-21 00:35:12 +08:00
mikroe-stm32f4 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
nucleo-f4x1re nuttx/boards:init_array.* needs to be executed in order 2023-08-29 22:54:37 +08:00
nucleo-f103rb Update kconfig2html.c 2023-12-14 20:02:52 -08:00
nucleo-f207zg fix led panic feature 2023-09-21 00:35:12 +08:00
nucleo-f302r8 boards: remove obsolete CONFIG_EXAMPLES_FOC_IPHASE_ADC option 2023-11-15 03:43:25 -08:00
nucleo-f303re fix led panic feature 2023-09-21 00:35:12 +08:00
nucleo-f303ze fix led panic feature 2023-09-21 00:35:12 +08:00
nucleo-f334r8 fix led panic feature 2023-09-21 00:35:12 +08:00
nucleo-f410rb fix led panic feature 2023-09-21 00:35:12 +08:00
nucleo-f412zg fix led panic feature 2023-09-21 00:35:12 +08:00
nucleo-f429zi Fix Kconfig style 2023-10-26 01:53:58 +08:00
nucleo-f446re boards: remove obsolete CONFIG_EXAMPLES_FOC_IPHASE_ADC option 2023-11-15 03:43:25 -08:00
nucleo-g431kb Update kconfig2html.c 2023-12-14 20:02:52 -08:00
nucleo-g431rb Update kconfig2html.c 2023-12-14 20:02:52 -08:00
nucleo-g474re Run refresh.sh to update all board configs 2023-09-02 14:45:44 +08:00
nucleo-l152re Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
odrive36 Fix Kconfig style 2023-12-04 22:20:50 +08:00
olimex-stm32-e407 fix led panic feature 2023-09-21 00:35:12 +08:00
olimex-stm32-h405 fix led panic feature 2023-09-21 00:35:12 +08:00
olimex-stm32-h407 fix led panic feature 2023-09-21 00:35:12 +08:00
olimex-stm32-p107 fix led panic feature 2023-09-21 00:35:12 +08:00
olimex-stm32-p207 fix led panic feature 2023-09-21 00:35:12 +08:00
olimex-stm32-p407 nuttx/boards:init_array.* needs to be executed in order 2023-08-29 22:54:37 +08:00
olimexino-stm32 fix led panic feature 2023-09-21 00:35:12 +08:00
omnibusf4 stm32/clang: enable LIBM avoid build break on clang-17 2023-11-29 03:58:05 -08:00
photon syslog/ramlog: Prepare to support the multiple reader 2023-12-14 20:50:44 -08:00
shenzhou fix led panic feature 2023-09-21 00:35:12 +08:00
stm32_tiny fix led panic feature 2023-09-21 00:35:12 +08:00
stm32butterfly2 sched: explicitly select the cpuload clock source configuration 2023-11-01 09:27:56 +08:00
stm32f3discovery fix led panic feature 2023-09-21 00:35:12 +08:00
stm32f4discovery stm32f4discovery/cxxtest: Fix gcc13.2 compiler error 2023-12-19 08:36:49 +08:00
stm32f103-minimum kernel: replace all usleep to nxsig_usleep in kernel space 2023-10-25 15:46:03 +08:00
stm32f334-disco fix led panic feature 2023-09-21 00:35:12 +08:00
stm32f401rc-rs485 stm32f401rc-rs485: Add rs-485 support 2024-01-07 17:15:59 -08:00
stm32f411-minimum fix led panic feature 2023-09-21 00:35:12 +08:00
stm32f411e-disco fix led panic feature 2023-09-21 00:35:12 +08:00
stm32f429i-disco board/stm32: add demo for gdbstub 2023-12-11 08:43:26 -08:00
stm32ldiscovery c++ compatibility: rename reserved c++ keywords 'public' and 'this' 2023-09-16 19:45:02 +08:00
stm32vldiscovery fix led panic feature 2023-09-21 00:35:12 +08:00
stm3210e-eval usbdev: Split usbdev descriptor information 2023-09-06 02:29:32 +08:00
stm3220g-eval fix led panic feature 2023-09-21 00:35:12 +08:00
stm3240g-eval nuttx/boards:init_array.* needs to be executed in order 2023-08-29 22:54:37 +08:00
viewtool-stm32f107 stm32/clang: enable LIBM avoid build break on clang-17 2023-11-29 03:58:05 -08:00