nuttx/boards
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
..
arm sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
arm64 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
avr Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
dummy
hc/m9s12 Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
mips sched_lock refine: remove sched_[un]lock in xxx_waitsample 2023-11-21 20:03:43 -08:00
misoc/lm32/misoc Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
or1k/mor1kx/or1k Documentation: migrate the rest boards 2023-10-26 18:13:34 -03:00
renesas Revert "make/archive: Use the full path name when matching or storing names in the archive" 2023-10-27 22:26:18 +08:00
risc-v sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
sim/sim/sim sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
sparc Run refresh.sh to update all board configs 2023-09-02 14:45:44 +08:00
x86/qemu/qemu-i486 Revert "make/archive: Use the full path name when matching or storing names in the archive" 2023-10-27 22:26:18 +08:00
x86_64/intel64/qemu-intel64 Revert "make/archive: Use the full path name when matching or storing names in the archive" 2023-10-27 22:26:18 +08:00
xtensa esp32s2/rmt: Use the Espressif's common RMT driver. 2023-12-24 16:38:06 -08:00
z16/z16f/z16f2800100zcog Documentation: migrate boards/{z16|z80}/xxx/configs/README.txt 2023-10-28 13:55:22 +08:00
z80 Documentation: migrate boards/{z16|z80}/xxx/configs/README.txt 2023-10-28 13:55:22 +08:00
.gitignore
Board.mk sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
boardctl.c usbadb: add usbadb boardctl 2023-08-07 11:23:36 +08:00
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
dummy.c
Kconfig risc-v: Initial support for CanMV-k230 board and K230 chip 2023-12-17 01:10:57 -08:00
Makefile