2012-04-06 18:33:17 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2012-04-06 18:45:52 +02:00
|
|
|
# see misc/tools/kconfig-language.txt.
|
2012-04-06 18:33:17 +02:00
|
|
|
#
|
2012-04-11 19:13:04 +02:00
|
|
|
|
2012-04-14 20:01:45 +02:00
|
|
|
config NSH_LIBRARY
|
|
|
|
bool "NSH Library"
|
|
|
|
default n
|
|
|
|
---help---
|
2014-02-02 17:25:53 +01:00
|
|
|
Build the NSH support library. This is used, for example, by
|
|
|
|
examples/nsh in order to implement the full NuttShell (NSH).
|
2012-04-14 20:01:45 +02:00
|
|
|
|
|
|
|
if NSH_LIBRARY
|
2014-01-09 17:57:17 +01:00
|
|
|
|
2014-02-02 17:25:53 +01:00
|
|
|
choice
|
|
|
|
prompt "Command Line Editor"
|
2014-02-21 01:49:45 +01:00
|
|
|
default NSH_READLINE if DEFAULT_SMALL
|
|
|
|
default NSH_CLE if !DEFAULT_SMALL
|
2014-02-02 17:25:53 +01:00
|
|
|
|
|
|
|
config NSH_READLINE
|
|
|
|
bool "Minimal readline()"
|
|
|
|
select SYSTEM_READLINE
|
|
|
|
---help---
|
|
|
|
Selects the minimal implementation of readline(). This minimal
|
|
|
|
implementation provides on backspace for command line editing.
|
|
|
|
|
|
|
|
config NSH_CLE
|
|
|
|
bool "Command Line Editor"
|
|
|
|
select SYSTEM_CLE
|
|
|
|
---help---
|
|
|
|
Selects the more extensive, EMACS-like command line editor.
|
|
|
|
Select this option only if (1) you don't mind a modest increase
|
|
|
|
in the FLASH footprint, and (2) you work with a terminal that
|
2014-02-04 15:42:42 +01:00
|
|
|
supports extensive VT100 editing commands.
|
2014-02-02 17:25:53 +01:00
|
|
|
|
|
|
|
Selecting this option will add probably 1.5-2KB to the FLASH
|
|
|
|
footprint.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_BUILTIN_APPS
|
|
|
|
bool "Enable built-in applications"
|
2013-01-17 19:32:13 +01:00
|
|
|
default n
|
2013-01-16 20:08:23 +01:00
|
|
|
depends on BUILTIN
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
2012-12-23 21:22:41 +01:00
|
|
|
Support external registered, "built-in" applications that can be
|
2012-04-11 19:13:04 +02:00
|
|
|
executed from the NSH command line (see apps/README.txt for
|
2012-12-23 21:22:41 +01:00
|
|
|
more information). This options requires support for builtin
|
|
|
|
applications (BUILTIN).
|
2012-04-11 19:13:04 +02:00
|
|
|
|
2013-01-17 19:32:13 +01:00
|
|
|
config NSH_FILE_APPS
|
|
|
|
bool "Enable execution of program files"
|
|
|
|
default n
|
|
|
|
depends on LIBC_EXECFUNCS
|
|
|
|
---help---
|
|
|
|
Support execution of program files residing within a file
|
|
|
|
system. This options requires support for the posix_spawn()
|
|
|
|
interface (LIBC_EXECFUNCS).
|
|
|
|
|
2012-04-14 20:01:45 +02:00
|
|
|
menu "Disable Individual commands"
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2013-10-05 23:42:20 +02:00
|
|
|
config NSH_DISABLE_ADDROUTE
|
|
|
|
bool "Disable addroute"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2013-10-05 23:42:20 +02:00
|
|
|
|
2012-10-31 15:36:00 +01:00
|
|
|
config NSH_DISABLE_BASE64DEC
|
|
|
|
bool "Disable base64dec"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
depends on NETUTILS_CODECS && CODECS_BASE64
|
|
|
|
|
|
|
|
config NSH_DISABLE_BASE64ENC
|
|
|
|
bool "Disable base64enc"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
depends on NETUTILS_CODECS && CODECS_BASE64
|
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_CAT
|
|
|
|
bool "Disable cat"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_CD
|
|
|
|
bool "Disable cd"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_CP
|
|
|
|
bool "Disable cp"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2013-07-18 16:24:29 +02:00
|
|
|
config NSH_DISABLE_CMP
|
|
|
|
bool "Disable cmp"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2013-07-18 16:24:29 +02:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_DD
|
|
|
|
bool "Disable dd"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2014-02-27 18:11:24 +01:00
|
|
|
config NSH_DISABLE_DF
|
|
|
|
bool "Disable df"
|
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
|
|
|
|
2013-10-05 23:42:20 +02:00
|
|
|
config NSH_DISABLE_DELROUTE
|
|
|
|
bool "Disable delroute"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2013-10-05 23:42:20 +02:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_ECHO
|
|
|
|
bool "Disable echo"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_EXEC
|
|
|
|
bool "Disable exec"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_EXIT
|
|
|
|
bool "Disable exit"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL && !NSH_TELNET
|
|
|
|
default n if !DEFAULT_SMALL || NSH_TELNET
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_FREE
|
|
|
|
bool "Disable free"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_GET
|
|
|
|
bool "Disable get"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_HELP
|
|
|
|
bool "Disable help"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-11-09 15:54:29 +01:00
|
|
|
config NSH_DISABLE_HEXDUMP
|
|
|
|
bool "Disable hexdump"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-11-09 15:54:29 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_IFCONFIG
|
|
|
|
bool "Disable ifconfig"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_KILL
|
|
|
|
bool "Disable kill"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_LOSETUP
|
|
|
|
bool "Disable losetup"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_LS
|
|
|
|
bool "Disable ls"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_MB
|
|
|
|
bool "Disable mb"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
|
|
|
config NSH_DISABLE_MD5
|
|
|
|
bool "Disable md5"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
depends on NETUTILS_CODECS && CODECS_HASH_MD5
|
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_MKDIR
|
|
|
|
bool "Disable mkdir"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_MKFATFS
|
|
|
|
bool "Disable mkfatfs"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
|
|
|
depends on FS_FAT
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_MKFIFO
|
|
|
|
bool "Disable mkfifo"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_MKRD
|
|
|
|
bool "Disable mkrd"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_MH
|
|
|
|
bool "Disable mh"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_MOUNT
|
|
|
|
bool "Disable mount"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_MW
|
|
|
|
bool "Disable mw"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-05-29 02:54:22 +02:00
|
|
|
config NSH_DISABLE_NSFMOUNT
|
|
|
|
bool "Disable nfsmount"
|
|
|
|
default n
|
2014-02-21 01:49:45 +01:00
|
|
|
depends on NFS
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_PS
|
|
|
|
bool "Disable ps"
|
|
|
|
default n
|
2014-02-21 01:49:45 +01:00
|
|
|
depends on !NUTTX_KERNEL
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_PING
|
|
|
|
bool "Disable ping"
|
|
|
|
default n
|
2014-02-21 01:49:45 +01:00
|
|
|
depends on NET_ICMP
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_PUT
|
|
|
|
bool "Disable put"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_PWD
|
|
|
|
bool "Disable pwd"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_RM
|
|
|
|
bool "Disable rm"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_RMDIR
|
|
|
|
bool "Disable rmdir"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_SET
|
|
|
|
bool "Disable set"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_SH
|
|
|
|
bool "Disable sh"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_SLEEP
|
|
|
|
bool "Disable sleep"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_TEST
|
|
|
|
bool "Disable test"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_UMOUNT
|
|
|
|
bool "Disable umount"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_UNSET
|
|
|
|
bool "Disable unset"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
|
|
|
config NSH_DISABLE_URLDECODE
|
|
|
|
bool "Disable urldecode"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
depends on NETUTILS_CODECS && CODECS_URLCODE
|
|
|
|
|
|
|
|
config NSH_DISABLE_URLENCODE
|
|
|
|
bool "Disable urlencode"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
depends on NETUTILS_CODECS && CODECS_URLCODE
|
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_USLEEP
|
|
|
|
bool "Disable usleep"
|
|
|
|
default n
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_WGET
|
|
|
|
bool "Disable wget"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLE_XD
|
|
|
|
bool "Disable xd"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-10-31 15:36:00 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
endmenu
|
|
|
|
|
2013-05-01 02:03:04 +02:00
|
|
|
menu "Configure Command Options"
|
|
|
|
|
|
|
|
config NSH_CMDOPT_DF_H
|
|
|
|
bool "df: Enable [-h] man-readable format"
|
2014-02-21 01:49:45 +01:00
|
|
|
default n if DEFAULT_SMALL
|
|
|
|
default y if !DEFAULT_SMALL
|
2014-02-27 18:11:24 +01:00
|
|
|
depends on !NSH_DISABLE_DF
|
2013-05-01 02:03:04 +02:00
|
|
|
|
2012-10-31 15:36:00 +01:00
|
|
|
config NSH_CODECS_BUFSIZE
|
|
|
|
int "File buffer size used by CODEC commands"
|
|
|
|
default 128
|
|
|
|
|
2013-11-01 14:15:14 +01:00
|
|
|
config NSH_CMDOPT_HEXDUMP
|
|
|
|
bool "hexdump: Enable 'skip' and 'count' parameters"
|
2014-02-21 01:49:45 +01:00
|
|
|
default n if DEFAULT_SMALL
|
|
|
|
default y if !DEFAULT_SMALL
|
2014-02-27 18:11:24 +01:00
|
|
|
depends on !NSH_DISABLE_HEXDUMP
|
|
|
|
|
|
|
|
config NSH_PROC_MOUNTPOUNT
|
|
|
|
string "procfs mountpoint"
|
|
|
|
default "/proc"
|
|
|
|
depends on FS_PROCFS
|
2013-11-01 14:15:14 +01:00
|
|
|
|
2013-05-01 02:03:04 +02:00
|
|
|
endmenu
|
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_FILEIOSIZE
|
2012-04-12 23:52:04 +02:00
|
|
|
int "NSH I/O buffer size"
|
2014-02-21 01:49:45 +01:00
|
|
|
default 512 if DEFAULT_SMALL
|
|
|
|
default 1024 if !DEFAULT_SMALL
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
2012-04-12 23:52:04 +02:00
|
|
|
Size of a static I/O buffer used for file access (ignored if
|
2014-02-21 01:49:45 +01:00
|
|
|
there is no filesystem). Default is 512/1024.
|
2012-04-11 19:13:04 +02:00
|
|
|
|
|
|
|
config NSH_STRERROR
|
|
|
|
bool "Use strerror()"
|
|
|
|
default n
|
2012-08-28 21:01:14 +02:00
|
|
|
depends on LIBC_STRERROR
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
strerror(errno) makes more readable output but strerror() is
|
|
|
|
very large and will not be used unless this setting is 'y'
|
2012-08-28 21:01:14 +02:00
|
|
|
This setting depends upon the strerror() having been enabled
|
|
|
|
with LIBC_STRERROR.
|
2012-04-11 19:13:04 +02:00
|
|
|
|
|
|
|
config NSH_LINELEN
|
|
|
|
int "Max command line length"
|
2014-02-21 01:49:45 +01:00
|
|
|
default 64 if DEFAULT_SMALL
|
|
|
|
default 80 if !DEFAULT_SMALL
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
The maximum length of one command line and of one output line.
|
2014-02-21 01:49:45 +01:00
|
|
|
Default: 64/80
|
2012-04-11 19:13:04 +02:00
|
|
|
|
2014-01-10 22:23:26 +01:00
|
|
|
config NSH_DISABLE_SEMICOLON
|
|
|
|
bool "Disable multiple commands per line"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2014-01-10 22:23:26 +01:00
|
|
|
---help---
|
|
|
|
By default, you can enter multiple NSH commands on a line with each
|
|
|
|
command separated by a semicolon. You can disable this feature to
|
|
|
|
save a little memory on FLASH challenged platforms.
|
|
|
|
|
2014-01-11 16:50:54 +01:00
|
|
|
config NSH_CMDPARMS
|
|
|
|
bool "Enable commands as parameters"
|
2014-02-21 01:49:45 +01:00
|
|
|
default n if DEFAULT_SMALL
|
|
|
|
default y if !DEFAULT_SMALL
|
2014-02-21 01:14:02 +01:00
|
|
|
depends on !DISABLE_MOUNTPOINT
|
2014-01-11 01:42:24 +01:00
|
|
|
---help---
|
2014-01-11 16:50:54 +01:00
|
|
|
If selected, then the output from commands, from file applications, and
|
2014-01-11 01:42:24 +01:00
|
|
|
from NSH built-in commands can be used as arguments to other
|
|
|
|
commands. The entity to be executed is identified by enclosing the
|
|
|
|
command line in back quotes. For example,
|
|
|
|
|
|
|
|
set FOO `myprogram $BAR`
|
|
|
|
|
|
|
|
Will execute the program named myprogram passing it the value of the
|
|
|
|
environment variable BAR. The value of the environment variable FOO
|
|
|
|
is then set output of myprogram on stdout.
|
|
|
|
|
2014-02-21 01:14:02 +01:00
|
|
|
Because this feature commits significant resources, it is disabled by
|
2014-01-11 16:50:54 +01:00
|
|
|
default.
|
2014-01-11 01:42:24 +01:00
|
|
|
|
|
|
|
config NSH_TMPDIR
|
|
|
|
string "Temporary file directory"
|
|
|
|
default "/tmp"
|
2014-01-11 16:50:54 +01:00
|
|
|
depends on NSH_CMDPARMS
|
2014-01-11 01:42:24 +01:00
|
|
|
---help---
|
2014-01-11 16:50:54 +01:00
|
|
|
If NSH_CMDPARMS is selected, then function output will be retained
|
2014-01-11 01:42:24 +01:00
|
|
|
in a temporary file. In that case, this string must be provided to
|
|
|
|
specify the full path to a directory where temporary files can be
|
|
|
|
created. This would be a good application of RAM disk: To provide
|
|
|
|
temporary storage for function output.
|
|
|
|
|
2013-06-02 21:16:35 +02:00
|
|
|
config NSH_MAXARGUMENTS
|
|
|
|
int "Maximum number of command arguments"
|
|
|
|
default 6
|
|
|
|
---help---
|
|
|
|
The maximum number of NSH command arguments.
|
|
|
|
Default: 6
|
|
|
|
|
2014-01-11 16:50:54 +01:00
|
|
|
config NSH_ARGCAT
|
|
|
|
bool "Concatenation of argument strings"
|
2014-02-21 01:49:45 +01:00
|
|
|
default n if DEFAULT_SMALL
|
|
|
|
default y if !DEFAULT_SMALL
|
2014-01-11 01:42:24 +01:00
|
|
|
---help---
|
2014-01-11 16:50:54 +01:00
|
|
|
Support concatenation of strings with environment variables or command
|
|
|
|
output. For example:
|
2014-01-11 01:42:24 +01:00
|
|
|
|
|
|
|
set FOO XYZ
|
|
|
|
set BAR 123
|
|
|
|
set FOOBAR ABC_${FOO}_${BAR}
|
|
|
|
|
|
|
|
would set the environment variable FOO to XYZ, BAR to 123 and FOOBAR
|
2014-01-11 16:50:54 +01:00
|
|
|
to ABC_XYZ_123. If NSH_ARGCAT is not selected, then a slightly small
|
|
|
|
FLASH footprint results but then also only simple environment
|
|
|
|
variables like $FOO can be used on the command line.
|
2014-01-11 01:42:24 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_NESTDEPTH
|
|
|
|
int "Maximum command nesting"
|
|
|
|
default 3
|
|
|
|
---help---
|
|
|
|
The maximum number of nested if-then[-else]-fi sequences that
|
|
|
|
are permissable. Default: 3
|
|
|
|
|
|
|
|
config NSH_DISABLESCRIPT
|
|
|
|
bool "Disable script support"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
This can be set to 'y' to suppress support for scripting. This
|
|
|
|
setting disables the 'sh', 'test', and '[' commands and the
|
|
|
|
if-then[-else]-fi construct. This would only be set on systems
|
|
|
|
where a minimal footprint is a necessity and scripting is not.
|
|
|
|
|
2014-01-18 16:39:16 +01:00
|
|
|
if !NSH_DISABLESCRIPT
|
|
|
|
|
|
|
|
config NSH_DISABLE_ITEF
|
|
|
|
bool "Disable if-then-else-fi"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2014-01-18 16:39:16 +01:00
|
|
|
---help---
|
|
|
|
This can be set to 'y' to suppress support for if-then-else-fi
|
|
|
|
sequences in scripts. This would only be set on systems where
|
|
|
|
some minimal scripting is required but if-then-else-fi is not.
|
|
|
|
|
|
|
|
config NSH_DISABLE_LOOPS
|
|
|
|
bool "Disable loops"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2014-01-18 16:39:16 +01:00
|
|
|
---help---
|
|
|
|
This can be set to 'y' to suppress support for while-do-done and
|
|
|
|
until-do-done sequences in scripts. This would only be set on
|
|
|
|
systems where some minimal scripting is required but looping
|
|
|
|
is not.
|
|
|
|
|
|
|
|
endif # !NSH_DISABLESCRIPT
|
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_DISABLEBG
|
|
|
|
bool "Disable background commands"
|
2014-02-21 01:49:45 +01:00
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
This can be set to 'y' to suppress support for background
|
|
|
|
commands. This setting disables the 'nice' command prefix and
|
|
|
|
the '&' command suffix. This would only be set on systems
|
|
|
|
where a minimal footprint is a necessity and background command
|
|
|
|
execution is not.
|
|
|
|
|
|
|
|
config NSH_MMCSDMINOR
|
|
|
|
int "MMC/SD minor device number"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
If the architecture supports an MMC/SD slot and if the NSH
|
|
|
|
architecture specific logic is present, this option will provide
|
|
|
|
the MMC/SD minor number, i.e., the MMC/SD block driver will
|
|
|
|
be registered as /dev/mmcsdN where N is the minor number.
|
|
|
|
Default is zero.
|
|
|
|
|
|
|
|
config NSH_ROMFSETC
|
|
|
|
bool "Support ROMFS start-up script"
|
|
|
|
default n
|
2012-09-08 05:31:46 +02:00
|
|
|
depends on FS_ROMFS
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
Mount a ROMFS filesystem at /etc and provide a startup script
|
|
|
|
at /etc/init.d/rcS. The default startup script will mount
|
|
|
|
a FAT FS RAMDISK at /tmp but the logic is easily extensible.
|
|
|
|
|
2014-01-09 17:57:17 +01:00
|
|
|
endif # NSH_LIBRARY
|
2012-04-14 20:01:45 +02:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
if NSH_ROMFSETC
|
2013-01-29 23:11:04 +01:00
|
|
|
|
|
|
|
config NSH_ROMFSRC
|
|
|
|
bool "Support ROMFS login script"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
The ROMFS start-up script will be executed excactly once. For
|
|
|
|
simple, persistence consoles (like a serial console). But with
|
|
|
|
other other kinds of consoles, there may be multiple, transient
|
|
|
|
sessions (such as Telnet and USB consoles). In these cases, you
|
|
|
|
may need another script that is executed at the beginning of each
|
|
|
|
session. Selecting this option enables support for such a login
|
|
|
|
script
|
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_ROMFSMOUNTPT
|
|
|
|
string "ROMFS mount point"
|
|
|
|
default "/etc"
|
|
|
|
---help---
|
|
|
|
The default mountpoint for the ROMFS volume is /etc, but that
|
|
|
|
can be changed with this setting. This must be a absolute path
|
|
|
|
beginning with '/'.
|
|
|
|
|
|
|
|
config NSH_INITSCRIPT
|
|
|
|
string "Relative path to startup script"
|
|
|
|
default "init.d/rcS"
|
|
|
|
---help---
|
|
|
|
This is the relative path to the startup script within the mountpoint.
|
|
|
|
The default is init.d/rcS. This is a relative path and must not
|
|
|
|
start with '/'.
|
|
|
|
|
2013-01-29 23:11:04 +01:00
|
|
|
config NSH_RCSCRIPT
|
|
|
|
string "Relative path to login script"
|
|
|
|
default ".nshrc"
|
|
|
|
depends on NSH_ROMFSRC
|
|
|
|
---help---
|
|
|
|
This is the relative path to the login script within the mountpoint.
|
|
|
|
The default is .nshrc. This is a relative path and must not
|
|
|
|
start with '/'.
|
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_ROMFSDEVNO
|
|
|
|
int "ROMFS block device minor number"
|
|
|
|
default 0
|
|
|
|
---help---
|
2014-02-21 01:14:02 +01:00
|
|
|
This is the minor number of the ROMFS block device. The default is
|
2012-04-11 19:13:04 +02:00
|
|
|
'0' corresponding to /dev/ram0.
|
|
|
|
|
|
|
|
config NSH_ROMFSSECTSIZE
|
|
|
|
int "ROMFS sector size"
|
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
This is the sector size to use with the ROMFS volume. Since the
|
|
|
|
default volume is very small, this defaults to 64 but should be
|
|
|
|
increased if the ROMFS volume were to be become large. Any value
|
|
|
|
selected must be a power of 2.
|
|
|
|
|
2013-06-02 21:16:35 +02:00
|
|
|
config NSH_ARCHROMFS
|
|
|
|
bool "Architecture-specific ROMFS header"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable this option to provide an architecture-specific ROMFS
|
|
|
|
header at <arch/board/nsh_romfsimg.h>. Note that this header
|
|
|
|
will be copied from nuttx/configs/<boardname>/include and should
|
|
|
|
be stored at this location.
|
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_FATDEVNO
|
|
|
|
int "FAT block device minor number"
|
2014-06-29 00:11:41 +02:00
|
|
|
default 1
|
2012-09-08 04:10:56 +02:00
|
|
|
depends on FS_FAT
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
When the default rcS file used when NSH_ROMFSETC is selected, it
|
|
|
|
will mount a FAT FS under /tmp. This is the minor number of the FAT
|
|
|
|
FS block device. The default is '1' corresponding to /dev/ram1.
|
|
|
|
|
|
|
|
config NSH_FATSECTSIZE
|
|
|
|
int "FAT sector size"
|
|
|
|
default 512
|
2012-09-08 04:10:56 +02:00
|
|
|
depends on FS_FAT
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
When the default rcS file used when NSH_ROMFSETC is selected, it
|
|
|
|
will mount a FAT FS under /tmp. This is the sector size use with the
|
|
|
|
FAT FS. Default is 512.
|
|
|
|
|
|
|
|
config NSH_FATNSECTORS
|
|
|
|
int "FAT number of sectors"
|
|
|
|
default 1024
|
2012-09-08 04:10:56 +02:00
|
|
|
depends on FS_FAT
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
When the default rcS file used when NSH_ROMFSETC is selected, it
|
|
|
|
will mount a FAT FS under /tmp. This is the number of sectors to use
|
|
|
|
with the FAT FS. Defualt is 1024. The amount of memory used by the
|
|
|
|
FAT FS will be NSH_FATSECTSIZE * NSH_FATNSECTORS bytes.
|
|
|
|
|
|
|
|
config NSH_FATMOUNTPT
|
|
|
|
string "FAT mount point"
|
2012-09-08 04:10:56 +02:00
|
|
|
default "/tmp"
|
|
|
|
depends on FS_FAT
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
When the default rcS file used when NSH_ROMFSETC is selected, it
|
|
|
|
will mount a FAT FS under /tmp. This is the location where the FAT
|
2012-09-08 05:31:46 +02:00
|
|
|
FS will be mounted. Default is "/tmp".
|
|
|
|
|
2014-01-09 17:57:17 +01:00
|
|
|
endif # NSH_ROMFSETC
|
2012-04-11 19:13:04 +02:00
|
|
|
|
2012-04-14 20:01:45 +02:00
|
|
|
if NSH_LIBRARY
|
2014-01-09 17:57:17 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_CONSOLE
|
|
|
|
bool "Use console"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
If NSH_CONSOLE is set to 'y', then a character driver
|
|
|
|
console front-end is selected (/dev/console).
|
|
|
|
|
|
|
|
Normally, the serial console device is a UART and RS-232
|
2012-10-12 18:59:17 +02:00
|
|
|
interface. However, if USBDEV is defined, then a USB
|
2012-04-11 19:13:04 +02:00
|
|
|
serial device may, instead, be used if the one of
|
|
|
|
the following are defined:
|
|
|
|
|
2012-10-12 18:59:17 +02:00
|
|
|
PL2303 and PL2303_CONSOLE - Set up the Prolifics PL2303
|
|
|
|
emulation as a console device at /dev/console.
|
2012-04-11 19:13:04 +02:00
|
|
|
|
2012-10-12 18:59:17 +02:00
|
|
|
CDCACM and CDCACM_CONSOLE - Set up the CDC/ACM serial
|
|
|
|
device as a console device at dev/console.
|
2012-04-11 19:13:04 +02:00
|
|
|
|
2012-10-12 18:59:17 +02:00
|
|
|
NSH_USBCONSOLE and NSH_USBCONDEV - Sets up some other USB
|
|
|
|
serial device as the NSH console (not necessarily dev/console).
|
2012-05-29 02:54:22 +02:00
|
|
|
|
|
|
|
config NSH_USBCONSOLE
|
|
|
|
bool "Use a USB console"
|
|
|
|
default n
|
|
|
|
depends on NSH_CONSOLE && USBDEV
|
|
|
|
---help---
|
|
|
|
If defined, then the an arbitrary USB device may be used
|
2012-10-12 18:59:17 +02:00
|
|
|
to as the NSH console. In this case, NSH_USBCONDEV must
|
|
|
|
be defined to indicate which USB device to use as the
|
|
|
|
console.
|
2012-05-29 02:54:22 +02:00
|
|
|
|
|
|
|
config NSH_USBCONDEV
|
|
|
|
string "USB console device"
|
|
|
|
default "/dev/ttyACM0"
|
|
|
|
depends on NSH_USBCONSOLE
|
|
|
|
---help---
|
2012-10-12 18:59:17 +02:00
|
|
|
If NSH_USBCONSOLE is set to 'y', then NSH_USBCONDEV must
|
|
|
|
also be set to select the USB device used to support the
|
|
|
|
NSH console. This should be set to the quoted name of a
|
2012-05-29 02:54:22 +02:00
|
|
|
readable/write-able USB driver such as:
|
2012-10-12 18:59:17 +02:00
|
|
|
NSH_USBCONDEV="/dev/ttyACM0".
|
2012-05-29 02:54:22 +02:00
|
|
|
|
2013-01-29 18:42:58 +01:00
|
|
|
config USBDEV_MINOR
|
2012-05-29 02:54:22 +02:00
|
|
|
int "USB console device minor number"
|
|
|
|
default 0
|
|
|
|
depends on NSH_USBCONSOLE
|
|
|
|
---help---
|
|
|
|
If there are more than one USB devices, then a USB device
|
|
|
|
minor number may also need to be provided. Default: 0
|
|
|
|
|
2013-01-29 18:42:58 +01:00
|
|
|
comment "USB Trace Support"
|
2014-01-09 17:57:17 +01:00
|
|
|
|
2013-01-29 18:42:58 +01:00
|
|
|
config NSH_USBDEV_TRACE
|
|
|
|
bool "Enable Builtin USB Trace Support"
|
|
|
|
default n
|
2012-05-29 02:54:22 +02:00
|
|
|
depends on USBDEV && (DEBUG || USBDEV_TRACE)
|
2013-01-29 18:42:58 +01:00
|
|
|
---help---
|
|
|
|
Enable builtin USB trace support in NSH. If selected, buffered USB
|
|
|
|
trace data will be presented each time a command is provided to NSH.
|
|
|
|
The USB trace data will be sent to the console unless DEBUG set or
|
|
|
|
unless you are using a USB console. In those cases, the trace data
|
|
|
|
will go to the SYSLOG device.
|
|
|
|
|
|
|
|
If not enabled, the USB trace support can be provided by external
|
|
|
|
logic such as apps/system/usbmonitor.
|
|
|
|
|
|
|
|
if NSH_USBDEV_TRACE
|
2012-05-29 02:54:22 +02:00
|
|
|
|
|
|
|
config NSH_USBDEV_TRACEINIT
|
|
|
|
bool "Show initialization events"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Show initialization events
|
|
|
|
|
|
|
|
config NSH_USBDEV_TRACECLASS
|
|
|
|
bool "Show class driver events"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Show class driver events
|
|
|
|
|
|
|
|
config NSH_USBDEV_TRACETRANSFERS
|
|
|
|
bool "Show data transfer events"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Show data transfer events
|
|
|
|
|
|
|
|
config NSH_USBDEV_TRACECONTROLLER
|
|
|
|
bool "Show controller events"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Show controller events
|
|
|
|
|
|
|
|
config NSH_USBDEV_TRACEINTERRUPTS
|
|
|
|
bool "Show interrupt-related events"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Show interrupt-related events
|
|
|
|
|
2014-01-09 17:57:17 +01:00
|
|
|
endif # NSH_USBDEV_TRACE
|
2012-05-29 02:54:22 +02:00
|
|
|
|
2014-05-05 16:52:02 +02:00
|
|
|
config NSH_ALTCONDEV
|
|
|
|
bool "Alternative console device"
|
|
|
|
default n
|
|
|
|
depends on NSH_CONSOLE && !NSH_USBCONSOLE && !NSH_TELNET
|
|
|
|
---help---
|
|
|
|
If CONFIG_NSH_CONSOLE is set to y, then CONFIG_NSH_ALTCONDEV may
|
|
|
|
also be selected to enable use of an alternate character device
|
|
|
|
to support the NSH console. If CONFIG_NSH_ALTCONDEV is selected,
|
|
|
|
then NSH_CONDEV must be set to select the serial device used to
|
|
|
|
support the NSH console. This may be useful, for example, to
|
|
|
|
separate the NSH command line from the system console when the
|
|
|
|
system console is used to provide debug output. Default: stdin
|
|
|
|
and stdout (probably "/dev/console")
|
|
|
|
|
|
|
|
NOTE 1: When any other device other than /dev/console is used
|
|
|
|
for a user interface, (1) linefeeds (\n) will not be expanded to
|
|
|
|
carriage return / linefeeds (\r\n). You will need to set
|
|
|
|
your terminal program to account for this. And (2) input is
|
|
|
|
not automatically echoed so you will have to turn local echo on.
|
|
|
|
|
|
|
|
NOTE 2: This option forces the console of all sessions to use
|
|
|
|
NSH_CONDEV. Hence, this option only makes sense for a system
|
|
|
|
that supports only a single session. This option is, in
|
|
|
|
particular, incompatible with Telnet sessions because each Telnet
|
|
|
|
session must use a different console device.
|
|
|
|
|
|
|
|
if NSH_ALTCONDEV
|
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_CONDEV
|
2014-05-05 16:52:02 +02:00
|
|
|
string "Alternative console device name"
|
2012-04-11 19:13:04 +02:00
|
|
|
default "/dev/console"
|
2014-05-05 16:52:02 +02:00
|
|
|
---help---
|
|
|
|
If CONFIG_NSH_CONSOLE is set to y, then CONFIG_NSH_ALTCONDEV may
|
|
|
|
also be selected to enable use of an alternate character device
|
|
|
|
to support the NSH console. If CONFIG_NSH_ALTCONDEV is selected,
|
|
|
|
then NSH_CONDEV must be set to select the serial device used to
|
|
|
|
support the NSH console. This should be set to the quoted name
|
|
|
|
of a readable/write-able character driver such as:
|
|
|
|
NSH_CONDEV="/dev/ttyS1". This is useful, for example, to separate
|
|
|
|
the NSH command line from the system console when the system console
|
|
|
|
is used to provide debug output. Default: stdin and stdout
|
|
|
|
(probably "/dev/console")
|
|
|
|
|
|
|
|
NOTE 1: When any other device other than /dev/console is used
|
2012-04-11 19:13:04 +02:00
|
|
|
for a user interface, (1) linefeeds (\n) will not be expanded to
|
|
|
|
carriage return / linefeeds (\r\n). You will need to set
|
|
|
|
your terminal program to account for this. And (2) input is
|
|
|
|
not automatically echoed so you will have to turn local echo on.
|
|
|
|
|
2014-05-05 16:52:02 +02:00
|
|
|
NOTE 2: This option forces the console of all sessions to use
|
|
|
|
NSH_CONDEV. Hence, this option only makes sense for a system
|
|
|
|
that supports only a single session. This option is, in
|
|
|
|
particular, incompatible with Telnet sessions because each Telnet
|
|
|
|
session must use a different console device.
|
|
|
|
|
|
|
|
endif # NSH_ALTCONDEV
|
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_ARCHINIT
|
|
|
|
bool "Have architecture-specific initialization"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Set if your board provides architecture specific initialization
|
|
|
|
via the board-specific function nsh_archinitialize(). This
|
|
|
|
function will be called early in NSH initialization to allow
|
|
|
|
board logic to do such things as configure MMC/SD slots.
|
|
|
|
|
|
|
|
config NSH_TELNET
|
|
|
|
bool "Use Telnet console"
|
2014-02-21 01:49:45 +01:00
|
|
|
default n if DEFAULT_SMALL
|
|
|
|
default y if !DEFAULT_SMALL
|
2014-01-09 17:46:28 +01:00
|
|
|
depends on NETUTILS_TELNETD
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
If NSH_TELNET is set to 'y', then a TELENET
|
|
|
|
server front-end is selected. When this option is provided,
|
|
|
|
you may log into NuttX remotely using telnet in order to
|
|
|
|
access NSH.
|
|
|
|
|
2014-01-09 17:57:17 +01:00
|
|
|
endif # NSH_LIBRARY
|
2012-04-14 20:01:45 +02:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
if NSH_TELNET
|
2014-01-09 17:46:28 +01:00
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_TELNETD_PORT
|
|
|
|
int "Telnet port number"
|
|
|
|
default 23
|
|
|
|
---help---
|
|
|
|
The telnet daemon will listen on this TCP port number for connections.
|
|
|
|
Default: 23
|
|
|
|
|
|
|
|
config NSH_TELNETD_DAEMONPRIO
|
|
|
|
int "Telnet daemon priority"
|
|
|
|
default 100
|
|
|
|
---help---
|
|
|
|
Priority of the Telnet daemon. Default: 100
|
|
|
|
|
|
|
|
config NSH_TELNETD_DAEMONSTACKSIZE
|
|
|
|
int "Telnet daemon stack size"
|
|
|
|
default 2048
|
|
|
|
---help---
|
|
|
|
Stack size allocated for the Telnet daemon. Default: 2048
|
|
|
|
|
|
|
|
config NSH_TELNETD_CLIENTPRIO
|
|
|
|
int "Telnet client priority"
|
|
|
|
default 100
|
|
|
|
---help---
|
|
|
|
Priority of the Telnet client. Default: 100
|
|
|
|
|
|
|
|
config NSH_TELNETD_CLIENTSTACKSIZE
|
|
|
|
int "Telnet client stack size"
|
|
|
|
default 2048
|
|
|
|
---help---
|
|
|
|
Stack size allocated for the Telnet client. Default: 2048
|
|
|
|
|
|
|
|
config NSH_IOBUFFER_SIZE
|
|
|
|
int "Telnet I/O buffer size"
|
|
|
|
default 512
|
|
|
|
---help---
|
|
|
|
Determines the size of the I/O buffer to use for sending/
|
|
|
|
receiving TELNET commands/reponses. Default: 512
|
2012-10-12 18:59:17 +02:00
|
|
|
|
|
|
|
config NSH_TELNET_LOGIN
|
|
|
|
bool "Telnet Login"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
If defined, then the Telnet user will be required to provide a
|
|
|
|
username and password to start the NSH shell.
|
|
|
|
|
|
|
|
if NSH_TELNET_LOGIN
|
|
|
|
|
|
|
|
config NSH_TELNET_USERNAME
|
|
|
|
string "Login Username"
|
|
|
|
default "admin"
|
|
|
|
---help---
|
|
|
|
Login user name. Default: "admin"
|
|
|
|
|
|
|
|
config NSH_TELNET_PASSWORD
|
|
|
|
string "Login Password"
|
|
|
|
default "nuttx"
|
|
|
|
---help---
|
|
|
|
Login password: Default: "nuttx"
|
|
|
|
|
|
|
|
config NSH_TELNET_FAILCOUNT
|
|
|
|
int "Login Retry Count"
|
|
|
|
default 3
|
|
|
|
---help---
|
|
|
|
Number of login retry attempts.
|
|
|
|
|
2014-01-09 17:57:17 +01:00
|
|
|
endif # NSH_TELNET_LOGIN
|
|
|
|
endif # NSH_TELNET
|
2012-04-11 19:13:04 +02:00
|
|
|
|
|
|
|
config NSH_DHCPC
|
|
|
|
bool "Use DHCP to get IP address"
|
|
|
|
default n
|
2014-01-09 17:46:28 +01:00
|
|
|
depends on NSH_LIBRARY && NETUTILS_DHCPC
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
Obtain the IP address via DHCP.
|
|
|
|
|
|
|
|
Per RFC2131 (p. 9), the DHCP client must be prepared to receive DHCP
|
|
|
|
messages of up to 576 bytes (excluding Ethernet, IP, or UDP headers and FCS).
|
|
|
|
|
|
|
|
config NSH_IPADDR
|
2012-04-12 23:52:04 +02:00
|
|
|
hex "Target IP address"
|
2013-09-17 23:51:33 +02:00
|
|
|
default 0x0a000002
|
2012-04-14 20:01:45 +02:00
|
|
|
depends on NSH_LIBRARY && NET && !NSH_DHCPC
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
If NSH_DHCPC is NOT set, then the static IP address must be provided.
|
|
|
|
This is a 32-bit integer value in host order. So, as an example,
|
|
|
|
0x10000002 would be 10.0.0.2.
|
|
|
|
|
|
|
|
config NSH_DRIPADDR
|
2012-04-12 23:52:04 +02:00
|
|
|
hex "Router IP address"
|
2013-09-17 23:51:33 +02:00
|
|
|
default 0x0a000001
|
2014-01-09 20:39:40 +01:00
|
|
|
depends on NSH_LIBRARY && NET
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
Default router IP address (aka, Gateway). This is a 32-bit integer
|
|
|
|
value in host order. So, as an example, 0x10000001 would be 10.0.0.1.
|
|
|
|
|
|
|
|
config NSH_NETMASK
|
2012-04-12 23:52:04 +02:00
|
|
|
hex "Network mask"
|
2012-04-11 19:13:04 +02:00
|
|
|
default 0xffffff00
|
2014-01-09 20:39:40 +01:00
|
|
|
depends on NSH_LIBRARY && NET
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
Network mask. This is a 32-bit integer value in host order. So, as
|
|
|
|
an example, 0xffffff00 would be 255.255.255.0.
|
|
|
|
|
2012-10-28 14:20:36 +01:00
|
|
|
config NSH_DNS
|
|
|
|
bool "Use DNS"
|
|
|
|
default n
|
2014-04-11 20:25:32 +02:00
|
|
|
depends on NSH_LIBRARY && NETUTILS_DNSCLIENT
|
2012-10-28 14:20:36 +01:00
|
|
|
---help---
|
|
|
|
Configure to use a DNS.
|
|
|
|
|
|
|
|
config NSH_DNSIPADDR
|
|
|
|
hex "DNS IP address"
|
|
|
|
default 0xa0000001
|
|
|
|
depends on NSH_DNS
|
|
|
|
---help---
|
|
|
|
Configure the DNS address. This is a 32-bit integer value in host
|
|
|
|
order. So, as an example, 0xa0000001 would be 10.0.0.1.
|
|
|
|
|
2012-04-11 19:13:04 +02:00
|
|
|
config NSH_NOMAC
|
|
|
|
bool "Hardware has no MAC address"
|
|
|
|
default n
|
2012-04-14 20:01:45 +02:00
|
|
|
depends on NSH_LIBRARY && NET
|
2012-04-11 19:13:04 +02:00
|
|
|
---help---
|
|
|
|
Set if your ethernet hardware has no built-in MAC address.
|
|
|
|
If set, a bogus MAC will be assigned.
|
2012-10-20 16:15:59 +02:00
|
|
|
|
|
|
|
config NSH_MAX_ROUNDTRIP
|
|
|
|
int "Max Ping Round-Trip (DSEC)"
|
|
|
|
default 20
|
|
|
|
depends on NSH_LIBRARY && NET && !NSH_DISABLE_PING
|
|
|
|
---help---
|
|
|
|
This is the maximum round trip for a response to a ICMP ECHO request.
|
|
|
|
It is in units of deciseconds. The default is 20 (2 seconds).
|