From e88759e53dc3fb7ad58a81d963cb0e412c046a9c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 4 Sep 2018 16:48:34 -0600 Subject: [PATCH] Update a README. --- configs/sama5d4-ek/README.txt | 48 +++++++++---------------------- configs/sama5d4-ek/knsh/defconfig | 1 - 2 files changed, 13 insertions(+), 36 deletions(-) diff --git a/configs/sama5d4-ek/README.txt b/configs/sama5d4-ek/README.txt index 745b6a4ca8..453641ab97 100644 --- a/configs/sama5d4-ek/README.txt +++ b/configs/sama5d4-ek/README.txt @@ -4152,6 +4152,12 @@ Configurations A. Build with no symbol table + $ make menuconfig + + Disable ROMFS support in the .config file; Enable FAT file system + support in the .config file. Enable "HSMCIO boot mount" support in + the board + $ cd nuttx : Go to the NuttX build directory $ tools/configure.sh sama5d4-ek/knsh : Establish this configuration $ export PATH=???:$PATH : Set up the PATH variable @@ -4170,25 +4176,6 @@ Configurations $ tools/mkimport.sh -x : Use the full path to nuttx-export-*.zip $ make import : This will build the file system. - D. Create the symbol table from the apps/bin/content and copy back to NuttX - - $ make symtab : Create the symbol table - $ ar rcs ../nuttx/binfmt/libbinfmt.a exe/symtab_apps.o - - NOTE: There are many ways to create symbol tables. The above will create - the minimal symbol tabled needed. - - E. Reconfigure and rebuild NuttX - - Enable the following in the configuration: - CONFIG_EXECFUNCS_HAVE_SYMTAB=y - CONFIG_EXECFUNCS_SYMTAB_ARRAY="g_symtab" - CONFIG_EXEDFUNCS_NSYMBOLS_VAR="g_nsymbols" - CONFIG_USER_INITPATH="/bin/init" - - $ cd nuttx/ : Rebuild the system with the correct - $ make clean_context all : symbol table - You will then need to copy the files from apps/bin to an SD card or USB FLASH drive to create the bootable SD card. @@ -4201,6 +4188,11 @@ Configurations A. Build with dummy ROMFS file system image and no symbol table + $ make menuconfig + + Enable the ROMFS file system and board-specific "ROMFS boot mount" + support to auto-mount the ROMFS file system on bootup. + $ tools/configure.sh sama5d4-ek/knsh : Establish this configuration $ export PATH=???:$PATH : Set up the PATH variable $ touch configs/sama5d4-ek/include/boot_romfsimg.h @@ -4224,24 +4216,10 @@ Configurations $ tools/mkromfsimg.sh : Create the real ROMFS image $ mv boot_romfsimg.h ../nuttx/configs/sama5d4-ek/include/boot_romfsimg.h - E. Create the symbol table from the apps/bin and copy it back to NuttX - - $ make symtab : Create the symbol table - $ ar rcs ../nuttx/binfmt/libbinfmt.a exe/symtab_apps.o - - NOTE: There are many ways to create symbol tables. The above will create - the minimal symbol tabled needed. - - F. Reconfigure and rebuild NuttX/bin - - Enable the following in the configuration: - CONFIG_EXECFUNCS_HAVE_SYMTAB=y - CONFIG_EXECFUNCS_SYMTAB_ARRAY="g_symtab" - CONFIG_EXEDFUNCS_NSYMBOLS_VAR="g_nsymbols" - CONFIG_USER_INITPATH="/bin/init" + E. Rebuild NuttX with the new file system image $ cd nuttx/ : Rebuild the system with the correct - $ make clean_context all : ROMFS file system and symbol table + $ make clean clean_context all : ROMFS file system and symbol table But how does the ROMFS file system get mounted? This is done in board- specific logic before the 'init' program is started. diff --git a/configs/sama5d4-ek/knsh/defconfig b/configs/sama5d4-ek/knsh/defconfig index 460110c7d8..f78969e733 100644 --- a/configs/sama5d4-ek/knsh/defconfig +++ b/configs/sama5d4-ek/knsh/defconfig @@ -82,7 +82,6 @@ CONFIG_SCHED_ONEXIT=y CONFIG_SCHED_ONEXIT_MAX=2 CONFIG_SCHED_WAITPID=y CONFIG_SDIO_BLOCKSETUP=y -CONFIG_SYMTAB_ORDEREDBYNAME=y CONFIG_SYSTEM_NSH=y CONFIG_SYSTEM_NSH_PROGNAME="init" CONFIG_SYS_RESERVED=6