nuttx/boards/risc-v
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
..
bl602/bl602evb xmc4/spi: fix typo 2023-11-30 06:16:09 -08:00
bl808/ox64 boards/riscv: Add support for PINE64 Ox64 BL808 SBC 2023-12-15 18:52:16 -08:00
c906/smartl-c906 Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
esp32c3 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
esp32c6
espressif risc-v/esp32c6: Add ostest defconfig 2023-12-18 11:10:53 -08:00
fe310/hifive1-revb Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
hpm6750/hpm6750evk2 Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
jh7110/star64 Run refresh.sh to update all board configs 2023-09-02 14:45:44 +08:00
k210/maix-bit Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
k230/canmv230 risc-v/canmv230: add PROTECTED build support 2024-01-08 19:46:42 -03:00
litex/arty_a7 Fix Kconfig style 2023-11-08 22:58:26 +08:00
mpfs rptun: Select OPENMAP under RPTUN 2023-12-28 11:08:57 +08:00
qemu-rv/rv-virt sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
rv32m1/rv32m1-vega Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00