Nuttx start script
1. defconfig's config
CONFIG_FS_READABLE=y
CONFIG_FS_WRITABLE=y
CONFIG_FS_FAT=y (rcS file used mkfatfs command)
CONFIG_FS_ROMFS=y
CONFIG_NSH_ROMFSETC=y
CONFIG_NSH_ROMFSMOUNTPT="/etc" (default value)
CONFIG_NSH_INITSCRIPT="init.d/rcS" (default value)
CONFIG_NSH_ROMFSDEVNO=0 (default value)
CONFIG_NSH_ROMFSSECTSIZE=128
CONFIG_NSH_ARCHROMFS=y (use stm32f429i-disco/include/nsh_romfsimg.h)
2.etc directory
3. generate ROMFS
$ genromfs -f romfs_img -d etc
$ xxd -i romfs_img > nsh_romfsimg.h
copy nsh_romfsimg.h to configs/stm32f429i-disco/include directory