walnux/include/nuttx
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
..
1wire
analog channel gain switching in aefc by ioctl 2023-10-16 21:55:40 +08:00
audio audio: add amr format support 2023-10-25 13:33:21 +08:00
binfmt coredump: support coredump save to block device when crash 2023-12-10 07:02:03 -08:00
can Add new ioctls 2023-10-27 13:52:28 -03:00
clk clk:fix some issues when use rpmsg clk 2023-09-22 08:47:23 +08:00
contactless
crypto Added NXP SE05x support (secure element) 2023-09-09 15:54:08 +08:00
dma dma: support source/destination address auto step 2023-09-27 00:47:02 +08:00
drivers driver/tee: add optee client driver module 2023-11-23 06:25:48 -08:00
eeprom Add MTD for AT25 eeprom 2024-01-04 09:25:52 -08:00
efuse Add ATSAMA5D2/D4 Secure Fuse Controller (SFC) driver 2023-05-12 16:29:48 -03:00
fs make 64-bit time_t back to unsigned 2023-12-30 08:48:43 -08:00
himem xtensa/esp32s3: Add SPIRAM high memory support 2023-11-29 06:33:51 -08:00
hwspinlock hwspinlock: Fix typo error(spin_lock_restore to spin_unlock_irqrestore) 2023-07-25 13:03:31 +02:00
i2c
input input/touchscreen: Bring up TSIOC_[SET|GET]CALIB macro 2023-09-20 20:51:38 +08:00
ioexpander drivers/ioexpander: Add const to the value array of multiwritepin 2023-09-28 10:09:51 +08:00
lcd sim_lcd: add open & close 2023-12-18 09:06:29 -08:00
leds drivers/leds/ws2812: Fix WS2812 pixel size 2023-12-24 16:38:06 -08:00
lib libs/log2ceil: Move implementation of log2ceil to a common place 2023-12-14 08:46:12 -08:00
math math/mpi: add mpi driver in math 2023-10-17 13:43:43 +08:00
mbox
mm drivers/rmt: Implement an upper-half RMT character driver 2023-12-24 16:38:06 -08:00
modem cxd56/alt1250: Change power on sequence 2023-07-06 13:18:57 +08:00
motor drivers/foc: add support for drv8301 power-stage driver 2023-11-18 17:07:20 -08:00
mtd Add MTD for AT25 eeprom 2024-01-04 09:25:52 -08:00
net net/route: Support longest prefix match for routing 2024-01-09 05:58:10 -08:00
note note: remove remaining event code 2023-10-17 09:07:06 +08:00
nx Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
power support pm runtime base function 2023-09-16 14:44:08 +08:00
rc
regmap nuttx/drivers: add regmap subsystems support. 2023-09-27 00:46:51 +08:00
reset Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
rf
rmt drivers/rmt: Implement an upper-half RMT character driver 2023-12-24 16:38:06 -08:00
rptun rptun ping: support data checksum and data transfer rate calculation 2024-01-09 06:06:40 -08:00
segger c++ compatibility: rename reserved c++ keywords 'public' and 'this' 2023-09-16 19:45:02 +08:00
sensors Fix nuttx coding style 2023-12-13 17:29:08 +01:00
serial support gdbstub use serial. 2023-12-11 08:43:26 -08:00
spi driver/spi_slave: support spi_slave asynchronous 2023-07-28 19:11:16 +03:00
syslog syslog: add syslog channel filtering function 2023-07-13 01:04:07 +08:00
timers pwm: add option to set channel output polarity with IOCTL command 2023-08-24 18:25:47 -03:00
usb usbdev: Add callback for CONFIG_USBDEV_SOFINTERRUPT 2023-12-08 21:27:36 -03:00
usrsock
video drivers/goldfish_fb: optimize goldfish fb register 2023-12-18 09:08:32 -08:00
virtio virtio.h: add virtio_has_feature api for virtio driver 2023-12-10 21:54:56 -08:00
wireless Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
.gitignore
addrenv.h mm_heap: mm dump and panic only valid for the heap own by OS 2023-08-02 06:11:59 -07:00
allsyms.h libc/symtab: Don't include symtab.h in the header files 2023-07-10 23:03:17 +03:00
arch.h arch/arm:add up_debugpoint api 2023-12-11 08:43:26 -08:00
ascii.h
atexit.h
bits.h Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
board.h assert: add regs parameter to board_crashdump function 2023-06-13 09:42:27 +08:00
cache.h armv7/8 cache: add up_get_xcache_size() support 2023-07-15 15:11:07 +08:00
can.h
cancelpt.h task/pthread_cancelpt: Move cancel point handling to libc, data to TLS 2023-11-15 08:52:04 -08:00
clock.h clock.h: use CONFIG_DEBUG_SCHED to test init ticks 2023-11-21 04:01:39 -08:00
compiler.h sched/procfs:use instrument to statistics run time max stack 2023-12-11 02:06:51 -08:00
crc8.h
crc16.h
crc32.h
crc64.h
elf.h riscv/arch_elf.c: Handle PCREL_HI20/LO12_I/S relocations correctly 2023-12-12 17:32:36 -08:00
environ.h
envpath.h
ethtool.h Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
fdcheck.h libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00
fdt.h fdt: Add initial FDT support and procfs for userspace export 2023-08-05 12:41:06 -07:00
gdbstub.h support gdbstub use serial. 2023-12-11 08:43:26 -08:00
hashtable.h
init.h support stm32f429i-disco run open flash loader 2023-08-05 12:40:02 -07:00
instrument.h libc: add instrument api support 2023-12-11 02:06:51 -08:00
ipcc.h
irq.h arch:Mark key functions to prohibit instrumentation to prevent recursive calls 2023-12-11 02:06:51 -08:00
kmalloc.h mm: include malloc.h in mm/mm.h 2023-06-11 19:37:04 +03:00
kthread.h
lirc.h
list.h list: search prev item in reverse order 2023-11-21 07:59:42 -08:00
memoryregion.h coredump: support coredump save to block device when crash 2023-12-10 07:02:03 -08:00
mmcsd.h Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
module.h
mqueue.h Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
mutex.h
notifier.h notifier: add BLOCKING_INIT_NOTIFIER_HEAD support 2023-09-19 09:32:17 +08:00
nuttx.h sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
page.h PAGESIZE and PAGEMASK seems as common macro 2023-09-10 18:18:15 +08:00
panic_notifier.h assert: add more information to panic notifier 2023-08-03 03:17:22 -07:00
pgalloc.h
progmem.h
pthread.h sched/tls: remove PTHREAD_CLEANUP from Kconfig 2023-06-14 12:00:48 +08:00
queue.h queue.h: Implement double link list queue split 2023-09-12 22:09:00 +08:00
random.h
reboot_notifier.h reboot: Remove SYS_DOWN to avoid the confusion 2023-04-21 20:37:59 +03:00
rwsem.h misc/rwlock:Implementing read/write locks. 2023-12-02 19:43:19 -08:00
sched.h sched/procfs:use instrument to statistics run time max stack 2023-12-11 02:06:51 -08:00
sched_note.h note: delete sched_note_flatten 2023-11-12 23:52:10 -08:00
scsi.h
sdio.h mmcsd/sdio: fix potential race condition in sdio 2023-03-21 14:40:44 -03:00
sdio_slave.h Add the module of SDIO Slave 2023-08-22 20:28:24 +08:00
semaphore.h semaphore/_SEM_XX: Remove the _SEM redirection macros as unnecessary 2023-11-27 04:52:54 -08:00
signal.h style: fix multiple style issues and remove unused 2023-09-16 14:17:47 +08:00
spawn.h sched/taskfiles: skip unnecessary file open/close operations to improve performance 2023-11-16 07:30:36 -08:00
spinlock.h spinlock: Move the inclusion of stdatomic.h to source file 2023-11-19 20:22:50 +01:00
streams.h libc/stream: add file out stream 2023-12-25 16:54:16 -03:00
symtab.h libc/symtab: Move SYMTAB_XXX from unistd/Kconfig to symtab/Kconfig 2023-07-10 13:09:47 -03:00
tee.h Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
tls.h task/pthread_cancelpt: Fix task_delete from another task group 2023-11-22 08:05:58 -08:00
trace.h trace: replace SCHED_NOTE_BEGIN to sched_note_begin 2023-04-19 02:53:34 +08:00
userspace.h
vt100.h
wdog.h
wqueue.h wqueue: add work_cancel_sync() support 2023-09-19 15:52:48 +08:00
zoneinfo.h