nuttx/boards/arm
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
..
a1x/pcduino-a10 Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
am335x/beaglebone-black Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
at32/at32f437-mini sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
c5471/c5471evm Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
cxd56xx Update kconfig2html.c 2023-12-14 20:02:52 -08:00
dm320/ntosd-dm320 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
efm32 Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
eoss3/quickfeather Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
fvp-v8r-aarch32/fvp-armv8r-aarch32 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
gd32f4 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
imx6/sabre-6quad coredump: support coredump save to block device when crash 2023-12-10 07:02:03 -08:00
imxrt sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
kinetis Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
kl Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
lc823450/lc823450-xgevk Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
lpc17xx_40xx sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
lpc31xx Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
lpc43xx Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
lpc54xx/lpcxpresso-lpc54628 Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
lpc214x Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
lpc2378/olimex-lpc2378 Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
max326xx/max32660-evsys Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
moxart/moxa nuttx/boards:init_array.* needs to be executed in order 2023-08-29 22:54:37 +08:00
mx8mp/verdin-mx8mp Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
nrf52 nrf52832-dk: add timer example 2023-12-03 05:47:07 -08:00
nrf53 rptun: Select OPENMAP under RPTUN 2023-12-28 11:08:57 +08:00
nrf91 boards/nrf9160-dk: enable GNSS for modem_ns config 2023-11-16 20:32:41 -08:00
nuc1xx/nutiny-nuc120 Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
phy62xx/phy6222 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
qemu/qemu-armv7a sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
rp2040 seeed-xiao-rp2040: Add initial board support 2023-11-29 19:32:22 -08:00
s32k1xx sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
s32k3xx Update kconfig2html.c 2023-12-14 20:02:52 -08:00
sam34 Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
sama5 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
samd2l2 Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
samd5e5 Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
samv7 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
stm32 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
stm32f0l0g0 nuttx/boards:init_array.* needs to be executed in order 2023-08-29 22:54:37 +08:00
stm32f7 boards: remove obsolete CONFIG_EXAMPLES_FOC_IPHASE_ADC option 2023-11-15 03:43:25 -08:00
stm32h7 nucleo-h745zi/stm32_bringup.c: the cpuname should be the remote cpu name 2024-01-08 19:53:54 +01:00
stm32l4 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
stm32l5 Run refresh.sh to update all board configs 2023-09-02 14:45:44 +08:00
stm32u5 boards:Modify test "ramtest" path 2023-10-26 13:17:35 +02:00
stm32wb nuttx/boards:init_array.* needs to be executed in order 2023-08-29 22:54:37 +08:00
stm32wl5/nucleo-wl55jc nuttx/boards:init_array.* needs to be executed in order 2023-08-29 22:54:37 +08:00
str71x/olimex-strp711 Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
tiva Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
tlsr82/tlsr8278adk80d boards/arm/tlsr82: Fix apps/testing/ostest/setvbuf.c:48: undefined reference to `fopen' 2023-09-24 19:32:55 -04:00
tms570 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
xmc4 xmc4/spi: fix typo 2023-11-30 06:16:09 -08:00