mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 04:07:55 +00:00
Switch CONFIG_INIT_ENTRYPOINT from nsh_main to nxinit's init_main for the shell-capable configs (nsh, usbnsh) of waveshare-rp2040-zero and waveshare-rp2040-lcd-1.28. nsh now runs as a "console sh" service started by init.rc instead of being the top-level init task. Add etc/init.d/init.rc to the shared common/src RCSRCS, gated on CONFIG_ETC_ROMFS && CONFIG_SYSTEM_NXINIT, so one copy covers both boards, plus a .gitignore for the etctmp files Board.mk generates from it. The four defconfigs also set CONFIG_SYSTEM_NXINIT=y with its Kconfig deps, CONFIG_ETC_ROMFS=y and CONFIG_FS_ROMFS=y. nsh_main connected the CDC/ACM gadget itself via boardctl(BOARDIOC_USBDEV_CDCACM); init_main does not, so the usbnsh configs would otherwise come up with no USB console. Run sercon from init.rc and enable CONFIG_SYSTEM_CDCACM in those two defconfigs to keep that step. Assisted-by: Claude:claude-sonnet-5 Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com> |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| dummy | ||
| hc/m9s12 | ||
| mips | ||
| misoc/lm32/misoc | ||
| or1k/mor1kx/or1k | ||
| renesas | ||
| risc-v | ||
| sim/sim/sim | ||
| sparc | ||
| tricore | ||
| x86/qemu/qemu-i486 | ||
| x86_64/qemu/qemu-intel64 | ||
| xtensa | ||
| z16/z16f/z16f2800100zcog | ||
| z80 | ||
| .gitignore | ||
| Board.mk | ||
| boardctl.c | ||
| CMakeLists.txt | ||
| dummy.c | ||
| Kconfig | ||
| Makefile | ||