summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/nshlib/Kconfig493
-rw-r--r--apps/nshlib/nsh.h8
-rw-r--r--apps/nshlib/nsh_netinit.c20
-rw-r--r--nuttx/configs/sama5d4-ek/nsh/defconfig51
-rw-r--r--nuttx/configs/viewtool-stm32f107/netnsh/defconfig296
5 files changed, 555 insertions, 313 deletions
diff --git a/apps/nshlib/Kconfig b/apps/nshlib/Kconfig
index 7f35243fb..f710969f5 100644
--- a/apps/nshlib/Kconfig
+++ b/apps/nshlib/Kconfig
@@ -12,6 +12,8 @@ config NSH_LIBRARY
if NSH_LIBRARY
+menu "Command Line Configuration"
+
choice
prompt "Command Line Editor"
default NSH_READLINE if DEFAULT_SMALL
@@ -38,6 +40,98 @@ config NSH_CLE
endchoice
+config NSH_LINELEN
+ int "Max command line length"
+ default 64 if DEFAULT_SMALL
+ default 80 if !DEFAULT_SMALL
+ ---help---
+ The maximum length of one command line and of one output line.
+ Default: 64/80
+
+config NSH_DISABLE_SEMICOLON
+ bool "Disable multiple commands per line"
+ default y if DEFAULT_SMALL
+ default n if !DEFAULT_SMALL
+ ---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.
+
+config NSH_CMDPARMS
+ bool "Enable commands as parameters"
+ default n if DEFAULT_SMALL
+ default y if !DEFAULT_SMALL
+ depends on !DISABLE_MOUNTPOINT
+ ---help---
+ If selected, then the output from commands, from file applications, and
+ 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.
+
+ Because this feature commits significant resources, it is disabled by
+ default.
+
+config NSH_TMPDIR
+ string "Temporary file directory"
+ default "/tmp"
+ depends on NSH_CMDPARMS
+ ---help---
+ If NSH_CMDPARMS is selected, then function output will be retained
+ 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.
+
+config NSH_MAXARGUMENTS
+ int "Maximum number of command arguments"
+ default 6
+ ---help---
+ The maximum number of NSH command arguments.
+ Default: 6
+
+config NSH_ARGCAT
+ bool "Concatenation of argument strings"
+ default n if DEFAULT_SMALL
+ default y if !DEFAULT_SMALL
+ ---help---
+ Support concatenation of strings with environment variables or command
+ output. For example:
+
+ set FOO XYZ
+ set BAR 123
+ set FOOBAR ABC_${FOO}_${BAR}
+
+ would set the environment variable FOO to XYZ, BAR to 123 and FOOBAR
+ 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.
+
+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_DISABLEBG
+ bool "Disable background commands"
+ default y if DEFAULT_SMALL
+ default n if !DEFAULT_SMALL
+ ---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.
+
+endmenu # Command Line Configuration
+
config NSH_BUILTIN_APPS
bool "Enable built-in applications"
default n
@@ -326,84 +420,7 @@ config NSH_STRERROR
This setting depends upon the strerror() having been enabled
with LIBC_STRERROR.
-config NSH_LINELEN
- int "Max command line length"
- default 64 if DEFAULT_SMALL
- default 80 if !DEFAULT_SMALL
- ---help---
- The maximum length of one command line and of one output line.
- Default: 64/80
-
-config NSH_DISABLE_SEMICOLON
- bool "Disable multiple commands per line"
- default y if DEFAULT_SMALL
- default n if !DEFAULT_SMALL
- ---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.
-
-config NSH_CMDPARMS
- bool "Enable commands as parameters"
- default n if DEFAULT_SMALL
- default y if !DEFAULT_SMALL
- depends on !DISABLE_MOUNTPOINT
- ---help---
- If selected, then the output from commands, from file applications, and
- 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.
-
- Because this feature commits significant resources, it is disabled by
- default.
-
-config NSH_TMPDIR
- string "Temporary file directory"
- default "/tmp"
- depends on NSH_CMDPARMS
- ---help---
- If NSH_CMDPARMS is selected, then function output will be retained
- 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.
-
-config NSH_MAXARGUMENTS
- int "Maximum number of command arguments"
- default 6
- ---help---
- The maximum number of NSH command arguments.
- Default: 6
-
-config NSH_ARGCAT
- bool "Concatenation of argument strings"
- default n if DEFAULT_SMALL
- default y if !DEFAULT_SMALL
- ---help---
- Support concatenation of strings with environment variables or command
- output. For example:
-
- set FOO XYZ
- set BAR 123
- set FOOBAR ABC_${FOO}_${BAR}
-
- would set the environment variable FOO to XYZ, BAR to 123 and FOOBAR
- 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.
-
-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
+menu "Scripting Support"
config NSH_DISABLESCRIPT
bool "Disable script support"
@@ -438,17 +455,6 @@ config NSH_DISABLE_LOOPS
endif # !NSH_DISABLESCRIPT
-config NSH_DISABLEBG
- bool "Disable background commands"
- default y if DEFAULT_SMALL
- default n if !DEFAULT_SMALL
- ---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
@@ -468,8 +474,6 @@ config NSH_ROMFSETC
at /etc/init.d/rcS. The default startup script will mount
a FAT FS RAMDISK at /tmp but the logic is easily extensible.
-endif # NSH_LIBRARY
-
if NSH_ROMFSETC
config NSH_ROMFSRC
@@ -572,8 +576,9 @@ config NSH_FATMOUNTPT
FS will be mounted. Default is "/tmp".
endif # NSH_ROMFSETC
+endmenu # Scripting Support
-if NSH_LIBRARY
+menu "Console Configuration"
config NSH_CONSOLE
bool "Use console"
@@ -626,6 +631,63 @@ config USBDEV_MINOR
endif # NSH_USBCONSOLE
+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
+
+config NSH_CONDEV
+ string "Alternative console device name"
+ default "/dev/console"
+ ---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
+ 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.
+
+endif # NSH_ALTCONDEV
+
config NSH_USBKBD
bool "Use USB keyboard input"
default n
@@ -650,13 +712,14 @@ config NSH_USBKBD_DEVNAME
able keyboard driver. Default: "/dev/kbda".
endif #NSH_USBKBD
+endmenu # Console Configuration
-comment "USB Trace Support"
+menu "USB Device Trace Support"
+ depends on USBDEV && (DEBUG || USBDEV_TRACE)
config NSH_USBDEV_TRACE
bool "Enable Builtin USB Trace Support"
default n
- depends on USBDEV && (DEBUG || USBDEV_TRACE)
---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.
@@ -700,72 +763,132 @@ config NSH_USBDEV_TRACEINTERRUPTS
Show interrupt-related events
endif # NSH_USBDEV_TRACE
+endmenu # USB Device Trace Support
-config NSH_ALTCONDEV
- bool "Alternative console device"
+config NSH_ARCHINIT
+ bool "Have architecture-specific initialization"
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")
+ 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.
- 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.
+menu "Networking Configuration"
+ depends on NET
- 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.
+config NSH_DHCPC
+ bool "Use DHCP to get IP address"
+ default n
+ depends on NSH_LIBRARY && NETUTILS_DHCPC
+ ---help---
+ Obtain the IP address via DHCP.
-if NSH_ALTCONDEV
+ 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_CONDEV
- string "Alternative console device name"
- default "/dev/console"
+config NSH_IPADDR
+ hex "Target IP address"
+ default 0x0a000002
+ depends on NSH_LIBRARY && NET && !NSH_DHCPC
---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")
+ 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.
- 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.
+config NSH_DRIPADDR
+ hex "Router IP address"
+ default 0x0a000001
+ depends on NSH_LIBRARY && NET
+ ---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.
- 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.
+config NSH_NETMASK
+ hex "Network mask"
+ default 0xffffff00
+ depends on NSH_LIBRARY && NET
+ ---help---
+ Network mask. This is a 32-bit integer value in host order. So, as
+ an example, 0xffffff00 would be 255.255.255.0.
-endif # NSH_ALTCONDEV
+config NSH_DNS
+ bool "Use DNS"
+ default n
+ depends on NSH_LIBRARY && NETUTILS_DNSCLIENT
+ ---help---
+ Configure to use a DNS.
-config NSH_ARCHINIT
- bool "Have architecture-specific initialization"
+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.
+
+config NSH_NOMAC
+ bool "Hardware has no MAC address"
default n
+ depends on NSH_LIBRARY && NET
---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.
+ Set if your Ethernet hardware has no built-in MAC address.
+ If set, a bogus MAC will be assigned.
+
+if NSH_NOMAC
+
+choice
+ prompt "MAC address selection"
+ default NSH_SWMAC
+ ---help---
+ If the hardware as no MAC address, then NSH must assign an address
+ to the hardware before it brings the network up. This choice allows
+ you select the source of that MAC address.
+
+config NSH_SWMAC
+ bool "Fixed address"
+ ---help---
+ With this choice, you can assign a fixed MAC address determined by
+ a NuttX configuration option.
+
+config NSH_ARCHMAC
+ bool "Platform-specific"
+ ---help---
+ This selection will enable a call to an interface exported by
+ platform-specific code to determine the MAC address. If this option
+ is selected, the the platform-specific code must provide the
+ function nsh_arch_macaddress() that will be called by the NSH
+ initialize logic to obtain the MAC address.
+
+ This option might be useful, as an example, if MAC addresses are
+ retained in Serial FLASH. Such address might be assigned during the
+ manufacturing process so that each board has a unique MAC address.
+
+endchoice # MAC address selection
+
+config NSH_MACADDR
+ hex "Fixed MAC address"
+ default 0x00e0deadbeef
+ depends on NSH_SWMAC
+ ---help---
+ If the hardware has no built-in MAC address and if the NSH_SWMAC
+ option is selected, then the fixed, software-assigned MAC address
+ MAC address must provided with this selection.
+
+endif # NSH_NOMAC
+
+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).
+
+endmenu # Networking Configuration"
+
+menu "Telnet Configuration"
+ depends on NETUTILS_TELNETD
config NSH_TELNET
bool "Use Telnet console"
@@ -778,8 +901,6 @@ config NSH_TELNET
you may log into NuttX remotely using telnet in order to
access NSH.
-endif # NSH_LIBRARY
-
if NSH_TELNET
config NSH_TELNETD_PORT
@@ -849,77 +970,5 @@ config NSH_TELNET_FAILCOUNT
endif # NSH_TELNET_LOGIN
endif # NSH_TELNET
-
-config NSH_DHCPC
- bool "Use DHCP to get IP address"
- default n
- depends on NSH_LIBRARY && NETUTILS_DHCPC
- ---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
- hex "Target IP address"
- default 0x0a000002
- depends on NSH_LIBRARY && NET && !NSH_DHCPC
- ---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
- hex "Router IP address"
- default 0x0a000001
- depends on NSH_LIBRARY && NET
- ---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
- hex "Network mask"
- default 0xffffff00
- depends on NSH_LIBRARY && NET
- ---help---
- Network mask. This is a 32-bit integer value in host order. So, as
- an example, 0xffffff00 would be 255.255.255.0.
-
-config NSH_DNS
- bool "Use DNS"
- default n
- depends on NSH_LIBRARY && NETUTILS_DNSCLIENT
- ---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.
-
-config NSH_NOMAC
- bool "Hardware has no MAC address"
- default n
- depends on NSH_LIBRARY && NET
- ---help---
- Set if your ethernet hardware has no built-in MAC address.
- If set, a bogus MAC will be assigned.
-
-config NSH_MACADDR
- hex "Software assigned MAC address"
- default 0x00e0deadbeef
- depends on NSH_NOMAC
- ---help---
- Use this option to specific the software-assigned MAC address
- to be used, in case the hardware has no built-in MAC address.
-
-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).
+endmenu # Telnet Configuration
+endif # NSH_LIBRARY
diff --git a/apps/nshlib/nsh.h b/apps/nshlib/nsh.h
index 4b33f4452..1b76c19af 100644
--- a/apps/nshlib/nsh.h
+++ b/apps/nshlib/nsh.h
@@ -126,6 +126,10 @@
# define CONFIG_NSH_MACADDR 0x00e0deadbeef
#endif
+#ifndef CONFIG_NET
+# undef CONFIG_NSH_ARCHMAC
+#endif
+
/* Telnetd requires networking support */
#ifndef CONFIG_NET
@@ -694,6 +698,10 @@ int nsh_archinitialize(void);
# define nsh_archinitialize() (-ENOSYS)
#endif
+#ifdef CONFIG_NSH_ARCHMAC
+int nsh_arch_macaddress(uint8_t *mac);
+#endif
+
/* Basic session and message handling */
struct console_stdio_s;
diff --git a/apps/nshlib/nsh_netinit.c b/apps/nshlib/nsh_netinit.c
index d3340a0fc..c4e83d7e6 100644
--- a/apps/nshlib/nsh_netinit.c
+++ b/apps/nshlib/nsh_netinit.c
@@ -108,23 +108,35 @@
int nsh_netinit(void)
{
- struct in_addr addr;
+ struct in_addr addr;
#if defined(CONFIG_NSH_DHCPC)
- FAR void *handle;
+ FAR void *handle;
#endif
#if (defined(CONFIG_NSH_DHCPC) || defined(CONFIG_NSH_NOMAC)) && !defined(CONFIG_NET_SLIP)
- uint8_t mac[IFHWADDRLEN];
+ uint8_t mac[IFHWADDRLEN];
#endif
-/* Many embedded network interfaces must have a software assigned MAC */
+ /* Many embedded network interfaces must have a software assigned MAC */
#if defined(CONFIG_NSH_NOMAC) && !defined(CONFIG_NET_SLIP)
+#ifdef CONFIG_NSH_ARCHMAC
+ /* Let platform-specific logic assign the MAC address. */
+
+ (void)nsh_arch_macaddress(mac);
+
+#else
+ /* Use the configured, fixed MAC address */
+
mac[0] = (CONFIG_NSH_MACADDR >> (8 * 5)) & 0xff;
mac[1] = (CONFIG_NSH_MACADDR >> (8 * 4)) & 0xff;
mac[2] = (CONFIG_NSH_MACADDR >> (8 * 3)) & 0xff;
mac[3] = (CONFIG_NSH_MACADDR >> (8 * 2)) & 0xff;
mac[4] = (CONFIG_NSH_MACADDR >> (8 * 1)) & 0xff;
mac[5] = (CONFIG_NSH_MACADDR >> (8 * 0)) & 0xff;
+#endif
+
+ /* Set the MAC address */
+
netlib_setmacaddr(NET_DEVNAME, mac);
#endif
diff --git a/nuttx/configs/sama5d4-ek/nsh/defconfig b/nuttx/configs/sama5d4-ek/nsh/defconfig
index 0e503c67c..f5d9bdaae 100644
--- a/nuttx/configs/sama5d4-ek/nsh/defconfig
+++ b/nuttx/configs/sama5d4-ek/nsh/defconfig
@@ -1168,8 +1168,20 @@ CONFIG_NSH_WGET_USERAGENT="NuttX/6.xx.x (; http://www.nuttx.org/)"
# NSH Library
#
CONFIG_NSH_LIBRARY=y
+
+#
+# Command Line Configuration
+#
CONFIG_NSH_READLINE=y
# CONFIG_NSH_CLE is not set
+CONFIG_NSH_LINELEN=80
+# CONFIG_NSH_DISABLE_SEMICOLON is not set
+CONFIG_NSH_CMDPARMS=y
+CONFIG_NSH_TMPDIR="/tmp"
+CONFIG_NSH_MAXARGUMENTS=6
+CONFIG_NSH_ARGCAT=y
+CONFIG_NSH_NESTDEPTH=3
+# CONFIG_NSH_DISABLEBG is not set
CONFIG_NSH_BUILTIN_APPS=y
#
@@ -1226,17 +1238,13 @@ CONFIG_NSH_CODECS_BUFSIZE=128
# CONFIG_NSH_CMDOPT_HEXDUMP is not set
CONFIG_NSH_PROC_MOUNTPOUNT="/proc"
CONFIG_NSH_FILEIOSIZE=512
-CONFIG_NSH_LINELEN=80
-# CONFIG_NSH_DISABLE_SEMICOLON is not set
-CONFIG_NSH_CMDPARMS=y
-CONFIG_NSH_TMPDIR="/tmp"
-CONFIG_NSH_MAXARGUMENTS=6
-CONFIG_NSH_ARGCAT=y
-CONFIG_NSH_NESTDEPTH=3
+
+#
+# Scripting Support
+#
# CONFIG_NSH_DISABLESCRIPT is not set
# CONFIG_NSH_DISABLE_ITEF is not set
# CONFIG_NSH_DISABLE_LOOPS is not set
-# CONFIG_NSH_DISABLEBG is not set
CONFIG_NSH_ROMFSETC=y
# CONFIG_NSH_ROMFSRC is not set
CONFIG_NSH_ROMFSMOUNTPT="/etc"
@@ -1248,13 +1256,30 @@ CONFIG_NSH_FATDEVNO=1
CONFIG_NSH_FATSECTSIZE=512
CONFIG_NSH_FATNSECTORS=1024
CONFIG_NSH_FATMOUNTPT="/tmp"
+
+#
+# Console Configuration
+#
CONFIG_NSH_CONSOLE=y
# CONFIG_NSH_USBKBD is not set
+CONFIG_NSH_ARCHINIT=y
#
-# USB Trace Support
+# Networking Configuration
+#
+CONFIG_NSH_IPADDR=0x0a000002
+CONFIG_NSH_DRIPADDR=0x0a000001
+CONFIG_NSH_NETMASK=0xffffff00
+# CONFIG_NSH_DNS is not set
+CONFIG_NSH_NOMAC=y
+CONFIG_NSH_SWMAC=y
+# CONFIG_NSH_ARCHMAC is not set
+CONFIG_NSH_MACADDR=0x00e0deadbeef
+CONFIG_NSH_MAX_ROUNDTRIP=20
+
+#
+# Telnet Configuration
#
-CONFIG_NSH_ARCHINIT=y
CONFIG_NSH_TELNET=y
CONFIG_NSH_TELNETD_PORT=23
CONFIG_NSH_TELNETD_DAEMONPRIO=100
@@ -1263,12 +1288,6 @@ CONFIG_NSH_TELNETD_CLIENTPRIO=100
CONFIG_NSH_TELNETD_CLIENTSTACKSIZE=2048
CONFIG_NSH_IOBUFFER_SIZE=512
# CONFIG_NSH_TELNET_LOGIN is not set
-CONFIG_NSH_IPADDR=0x0a000002
-CONFIG_NSH_DRIPADDR=0x0a000001
-CONFIG_NSH_NETMASK=0xffffff00
-# CONFIG_NSH_DNS is not set
-CONFIG_NSH_NOMAC=y
-CONFIG_NSH_MAX_ROUNDTRIP=20
#
# NxWidgets/NxWM
diff --git a/nuttx/configs/viewtool-stm32f107/netnsh/defconfig b/nuttx/configs/viewtool-stm32f107/netnsh/defconfig
index 5906252a0..aaec86b69 100644
--- a/nuttx/configs/viewtool-stm32f107/netnsh/defconfig
+++ b/nuttx/configs/viewtool-stm32f107/netnsh/defconfig
@@ -30,6 +30,7 @@ CONFIG_WINDOWS_CYGWIN=y
CONFIG_INTELHEX_BINARY=y
# CONFIG_MOTOROLA_SREC is not set
# CONFIG_RAW_BINARY is not set
+# CONFIG_UBOOT_UIMAGE is not set
#
# Customize Header Files
@@ -79,6 +80,7 @@ CONFIG_ARCH="arm"
# CONFIG_ARCH_CHIP_KINETIS is not set
# CONFIG_ARCH_CHIP_KL is not set
# CONFIG_ARCH_CHIP_LM is not set
+# CONFIG_ARCH_CHIP_TIVA is not set
# CONFIG_ARCH_CHIP_LPC17XX is not set
# CONFIG_ARCH_CHIP_LPC214X is not set
# CONFIG_ARCH_CHIP_LPC2378 is not set
@@ -142,6 +144,7 @@ CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW=y
# CONFIG_ARCH_CHIP_STM32L152V6 is not set
# CONFIG_ARCH_CHIP_STM32L152V8 is not set
# CONFIG_ARCH_CHIP_STM32L152VB is not set
+# CONFIG_ARCH_CHIP_STM32L162ZD is not set
# CONFIG_ARCH_CHIP_STM32F100C8 is not set
# CONFIG_ARCH_CHIP_STM32F100CB is not set
# CONFIG_ARCH_CHIP_STM32F100R8 is not set
@@ -154,16 +157,18 @@ CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW=y
# CONFIG_ARCH_CHIP_STM32F100VC is not set
# CONFIG_ARCH_CHIP_STM32F100VD is not set
# CONFIG_ARCH_CHIP_STM32F100VE is not set
-# CONFIG_ARCH_CHIP_STM32F103C4 is not set
-# CONFIG_ARCH_CHIP_STM32F103C8 is not set
# CONFIG_ARCH_CHIP_STM32F103T8 is not set
# CONFIG_ARCH_CHIP_STM32F103TB is not set
+# CONFIG_ARCH_CHIP_STM32F103C4 is not set
+# CONFIG_ARCH_CHIP_STM32F103C8 is not set
# CONFIG_ARCH_CHIP_STM32F103CB is not set
# CONFIG_ARCH_CHIP_STM32F103R8 is not set
# CONFIG_ARCH_CHIP_STM32F103RB is not set
+# CONFIG_ARCH_CHIP_STM32F103RC is not set
+# CONFIG_ARCH_CHIP_STM32F103RD is not set
+# CONFIG_ARCH_CHIP_STM32F103RE is not set
# CONFIG_ARCH_CHIP_STM32F103V8 is not set
# CONFIG_ARCH_CHIP_STM32F103VB is not set
-# CONFIG_ARCH_CHIP_STM32F103RE is not set
# CONFIG_ARCH_CHIP_STM32F103VC is not set
# CONFIG_ARCH_CHIP_STM32F103VE is not set
# CONFIG_ARCH_CHIP_STM32F103ZE is not set
@@ -183,6 +188,7 @@ CONFIG_ARCH_CHIP_STM32F107VC=y
# CONFIG_ARCH_CHIP_STM32F303RC is not set
# CONFIG_ARCH_CHIP_STM32F303VB is not set
# CONFIG_ARCH_CHIP_STM32F303VC is not set
+# CONFIG_ARCH_CHIP_STM32F401RE is not set
# CONFIG_ARCH_CHIP_STM32F405RG is not set
# CONFIG_ARCH_CHIP_STM32F405VG is not set
# CONFIG_ARCH_CHIP_STM32F405ZG is not set
@@ -210,20 +216,55 @@ CONFIG_STM32_CONNECTIVITYLINE=y
# CONFIG_STM32_MEDIUMDENSITY is not set
# CONFIG_STM32_LOWDENSITY is not set
# CONFIG_STM32_STM32F20XX is not set
+# CONFIG_STM32_STM32F207 is not set
# CONFIG_STM32_STM32F30XX is not set
# CONFIG_STM32_STM32F40XX is not set
+# CONFIG_STM32_STM32F401 is not set
+# CONFIG_STM32_STM32F405 is not set
+# CONFIG_STM32_STM32F407 is not set
+# CONFIG_STM32_STM32F427 is not set
+# CONFIG_STM32_STM32F429 is not set
# CONFIG_STM32_DFU is not set
#
# STM32 Peripheral Support
#
+# CONFIG_STM32_HAVE_CCM is not set
# CONFIG_STM32_HAVE_USBDEV is not set
CONFIG_STM32_HAVE_OTGFS=y
+# CONFIG_STM32_HAVE_FSMC is not set
+CONFIG_STM32_HAVE_USART3=y
+CONFIG_STM32_HAVE_USART4=y
+CONFIG_STM32_HAVE_USART5=y
+# CONFIG_STM32_HAVE_USART6 is not set
+# CONFIG_STM32_HAVE_USART7 is not set
+# CONFIG_STM32_HAVE_USART8 is not set
+CONFIG_STM32_HAVE_TIM1=y
+CONFIG_STM32_HAVE_TIM5=y
+CONFIG_STM32_HAVE_TIM6=y
+CONFIG_STM32_HAVE_TIM7=y
+CONFIG_STM32_HAVE_TIM8=y
+# CONFIG_STM32_HAVE_TIM9 is not set
+# CONFIG_STM32_HAVE_TIM10 is not set
+# CONFIG_STM32_HAVE_TIM11 is not set
+# CONFIG_STM32_HAVE_TIM12 is not set
+# CONFIG_STM32_HAVE_TIM13 is not set
+# CONFIG_STM32_HAVE_TIM14 is not set
+# CONFIG_STM32_HAVE_TIM15 is not set
+# CONFIG_STM32_HAVE_TIM16 is not set
+# CONFIG_STM32_HAVE_TIM17 is not set
+CONFIG_STM32_HAVE_ADC2=y
+# CONFIG_STM32_HAVE_ADC3 is not set
+# CONFIG_STM32_HAVE_ADC4 is not set
+CONFIG_STM32_HAVE_CAN1=y
+CONFIG_STM32_HAVE_CAN2=y
+# CONFIG_STM32_HAVE_RNG is not set
+CONFIG_STM32_HAVE_ETHMAC=y
# CONFIG_STM32_ADC1 is not set
# CONFIG_STM32_ADC2 is not set
-# CONFIG_STM32_ADC3 is not set
# CONFIG_STM32_BKP is not set
# CONFIG_STM32_CAN1 is not set
+# CONFIG_STM32_CAN2 is not set
# CONFIG_STM32_CRC is not set
# CONFIG_STM32_DMA1 is not set
# CONFIG_STM32_DMA2 is not set
@@ -307,11 +348,13 @@ CONFIG_STM32_RMII_EXTCLK=y
# CONFIG_ARCH_VECNOTIRQ is not set
# CONFIG_ARCH_DMA is not set
CONFIG_ARCH_HAVE_IRQPRIO=y
+# CONFIG_ARCH_L2CACHE is not set
# CONFIG_CUSTOM_STACK is not set
# CONFIG_ADDRENV is not set
CONFIG_ARCH_HAVE_VFORK=y
# CONFIG_ARCH_HAVE_MMU is not set
# CONFIG_ARCH_NAND_HWECC is not set
+# CONFIG_ARCH_HAVE_EXTCLK is not set
# CONFIG_ARCH_IRQPRIO is not set
CONFIG_ARCH_STACKDUMP=y
# CONFIG_ENDIAN_BIG is not set
@@ -376,36 +419,70 @@ CONFIG_NSH_MMCSDMINOR=0
#
# RTOS Features
#
-# CONFIG_BOARD_INITIALIZE is not set
+CONFIG_DISABLE_OS_API=y
+# CONFIG_DISABLE_CLOCK is not set
+# CONFIG_DISABLE_POSIX_TIMERS is not set
+# CONFIG_DISABLE_PTHREAD is not set
+# CONFIG_DISABLE_SIGNALS is not set
+# CONFIG_DISABLE_MQUEUE is not set
+# CONFIG_DISABLE_ENVIRON is not set
+
+#
+# Clocks and Timers
+#
CONFIG_MSEC_PER_TICK=10
# CONFIG_SYSTEM_TIME64 is not set
-CONFIG_RR_INTERVAL=200
-# CONFIG_SCHED_CPULOAD is not set
-# CONFIG_SCHED_INSTRUMENTATION is not set
-CONFIG_TASK_NAME_SIZE=0
-# CONFIG_SCHED_HAVE_PARENT is not set
+# CONFIG_CLOCK_MONOTONIC is not set
# CONFIG_JULIAN_TIME is not set
CONFIG_START_YEAR=2009
CONFIG_START_MONTH=9
CONFIG_START_DAY=21
-CONFIG_DEV_CONSOLE=y
+CONFIG_MAX_WDOGPARMS=2
+CONFIG_PREALLOC_WDOGS=16
+CONFIG_PREALLOC_TIMERS=4
+
+#
+# Tasks and Scheduling
+#
+CONFIG_USER_ENTRYPOINT="nsh_main"
+CONFIG_RR_INTERVAL=200
+CONFIG_TASK_NAME_SIZE=0
+CONFIG_MAX_TASK_ARGS=4
+CONFIG_MAX_TASKS=16
+# CONFIG_SCHED_HAVE_PARENT is not set
+# CONFIG_SCHED_WAITPID is not set
+
+#
+# Pthread Options
+#
# CONFIG_MUTEX_TYPES is not set
-# CONFIG_PRIORITY_INHERITANCE is not set
+CONFIG_NPTHREAD_KEYS=4
+
+#
+# Performance Monitoring
+#
+# CONFIG_SCHED_CPULOAD is not set
+# CONFIG_SCHED_INSTRUMENTATION is not set
+
+#
+# Files and I/O
+#
+CONFIG_DEV_CONSOLE=y
# CONFIG_FDCLONE_DISABLE is not set
# CONFIG_FDCLONE_STDIO is not set
CONFIG_SDCLONE_DISABLE=y
-# CONFIG_SCHED_WAITPID is not set
+CONFIG_NFILE_DESCRIPTORS=8
+CONFIG_NFILE_STREAMS=8
+CONFIG_NAME_MAX=32
+# CONFIG_PRIORITY_INHERITANCE is not set
+
+#
+# RTOS hooks
+#
+# CONFIG_BOARD_INITIALIZE is not set
# CONFIG_SCHED_STARTHOOK is not set
# CONFIG_SCHED_ATEXIT is not set
# CONFIG_SCHED_ONEXIT is not set
-CONFIG_USER_ENTRYPOINT="nsh_main"
-CONFIG_DISABLE_OS_API=y
-# CONFIG_DISABLE_CLOCK is not set
-# CONFIG_DISABLE_POSIX_TIMERS is not set
-# CONFIG_DISABLE_PTHREAD is not set
-# CONFIG_DISABLE_SIGNALS is not set
-# CONFIG_DISABLE_MQUEUE is not set
-# CONFIG_DISABLE_ENVIRON is not set
#
# Signal Numbers
@@ -417,19 +494,10 @@ CONFIG_SIG_SIGCONDTIMEDOUT=16
CONFIG_SIG_SIGWORK=17
#
-# Sizes of configurable things (0 disables)
+# POSIX Message Queue Options
#
-CONFIG_MAX_TASKS=16
-CONFIG_MAX_TASK_ARGS=4
-CONFIG_NPTHREAD_KEYS=4
-CONFIG_NFILE_DESCRIPTORS=8
-CONFIG_NFILE_STREAMS=8
-CONFIG_NAME_MAX=32
CONFIG_PREALLOC_MQ_MSGS=4
CONFIG_MQ_MAXMSGSIZE=32
-CONFIG_MAX_WDOGPARMS=2
-CONFIG_PREALLOC_WDOGS=16
-CONFIG_PREALLOC_TIMERS=4
#
# Stack and heap information
@@ -446,6 +514,12 @@ CONFIG_PTHREAD_STACK_DEFAULT=2048
CONFIG_DEV_NULL=y
# CONFIG_DEV_ZERO is not set
# CONFIG_LOOP is not set
+
+#
+# Buffering
+#
+# CONFIG_DRVR_WRITEBUFFER is not set
+# CONFIG_DRVR_READAHEAD is not set
# CONFIG_RAMDISK is not set
# CONFIG_CAN is not set
# CONFIG_ARCH_HAVE_PWM_PULSECOUNT is not set
@@ -456,6 +530,7 @@ CONFIG_ARCH_HAVE_I2CRESET=y
# CONFIG_I2S is not set
# CONFIG_RTC is not set
# CONFIG_WATCHDOG is not set
+# CONFIG_TIMER is not set
# CONFIG_ANALOG is not set
# CONFIG_AUDIO_DEVICES is not set
# CONFIG_VIDEO_DEVICES is not set
@@ -488,6 +563,7 @@ CONFIG_NETDEVICES=y
# CONFIG_ETH0_PHY_AM79C874 is not set
# CONFIG_ETH0_PHY_KS8721 is not set
# CONFIG_ETH0_PHY_KSZ8051 is not set
+# CONFIG_ETH0_PHY_KSZ8081 is not set
# CONFIG_ETH0_PHY_KSZ90x1 is not set
CONFIG_ETH0_PHY_DP83848C=y
# CONFIG_ETH0_PHY_LAN8720 is not set
@@ -567,17 +643,33 @@ CONFIG_NET=y
# CONFIG_NET_NOINTS is not set
CONFIG_NET_MULTIBUFFER=y
# CONFIG_NET_PROMISCUOUS is not set
+CONFIG_NET_BUFSIZE=650
+CONFIG_NET_RECEIVE_WINDOW=624
+CONFIG_NET_GUARDSIZE=2
+
+#
+# Socket Support
+#
CONFIG_NSOCKET_DESCRIPTORS=10
CONFIG_NET_NACTIVESOCKETS=16
CONFIG_NET_SOCKOPTS=y
# CONFIG_NET_SOLINGER is not set
-CONFIG_NET_BUFSIZE=650
-# CONFIG_NET_TCPURGDATA is not set
+
+#
+# Network Device Operations
+#
+# CONFIG_NETDEV_PHY_IOCTL is not set
+
+#
+# Raw Socket Support
+#
+# CONFIG_NET_PKT is not set
#
# TCP/IP Networking
#
CONFIG_NET_TCP=y
+# CONFIG_NET_TCPURGDATA is not set
CONFIG_NET_TCP_CONNS=40
CONFIG_NET_MAX_LISTENPORTS=40
CONFIG_NET_TCP_READAHEAD=y
@@ -595,20 +687,48 @@ CONFIG_NET_UDP=y
CONFIG_NET_UDP_CONNS=8
CONFIG_NET_BROADCAST=y
# CONFIG_NET_RXAVAIL is not set
+
+#
+# ICMP Networking Support
+#
CONFIG_NET_ICMP=y
CONFIG_NET_ICMP_PING=y
# CONFIG_NET_PINGADDRCONF is not set
+
+#
+# IGMPv2 Client Support
+#
# CONFIG_NET_IGMP is not set
-# CONFIG_NET_STATISTICS is not set
-CONFIG_NET_RECEIVE_WINDOW=624
+
+#
+# ARP Configuration
+#
+CONFIG_NET_ARP=y
CONFIG_NET_ARPTAB_SIZE=16
+CONFIG_NET_ARP_MAXAGE=120
# CONFIG_NET_ARP_IPIN is not set
+
+#
+# Network I/O Buffer Support
+#
CONFIG_NET_IOB=y
CONFIG_IOB_NBUFFERS=24
CONFIG_IOB_BUFSIZE=196
CONFIG_IOB_NCHAINS=8
-CONFIG_IOB_THROTTLE=0
+# CONFIG_NET_ARCH_INCR32 is not set
+# CONFIG_NET_ARCH_CHKSUM is not set
+# CONFIG_NET_STATISTICS is not set
+
+#
+# Routing Table Configuration
+#
# CONFIG_NET_ROUTE is not set
+CONFIG_NET_ETHERNET=y
+
+#
+# Crypto API
+#
+# CONFIG_CRYPTO is not set
#
# File Systems
@@ -618,6 +738,7 @@ CONFIG_IOB_THROTTLE=0
# File system configuration
#
# CONFIG_DISABLE_MOUNTPOINT is not set
+# CONFIG_FS_AUTOMOUNTER is not set
# CONFIG_DISABLE_PSEUDOFS_OPERATIONS is not set
# CONFIG_FS_READABLE is not set
# CONFIG_FS_WRITABLE is not set
@@ -728,6 +849,7 @@ CONFIG_BUILTIN_PROXY_STACKSIZE=1024
# CONFIG_EXAMPLES_BUTTONS is not set
# CONFIG_EXAMPLES_CAN is not set
# CONFIG_EXAMPLES_CONFIGDATA is not set
+# CONFIG_EXAMPLES_CPUHOG is not set
# CONFIG_EXAMPLES_DHCPD is not set
# CONFIG_EXAMPLES_ELF is not set
# CONFIG_EXAMPLES_FTPC is not set
@@ -738,7 +860,6 @@ CONFIG_BUILTIN_PROXY_STACKSIZE=1024
# CONFIG_EXAMPLES_HIDKBD is not set
# CONFIG_EXAMPLES_KEYPADTEST is not set
# CONFIG_EXAMPLES_IGMP is not set
-# CONFIG_EXAMPLES_LCDRW is not set
# CONFIG_EXAMPLES_MM is not set
# CONFIG_EXAMPLES_MODBUS is not set
# CONFIG_EXAMPLES_MOUNT is not set
@@ -755,13 +876,14 @@ CONFIG_EXAMPLES_NSH=y
# CONFIG_EXAMPLES_NXLINES is not set
# CONFIG_EXAMPLES_NXTEXT is not set
# CONFIG_EXAMPLES_OSTEST is not set
-# CONFIG_EXAMPLES_PASHELLO is not set
# CONFIG_EXAMPLES_PIPE is not set
# CONFIG_EXAMPLES_POSIXSPAWN is not set
# CONFIG_EXAMPLES_QENCODER is not set
# CONFIG_EXAMPLES_RGMP is not set
# CONFIG_EXAMPLES_ROMFS is not set
# CONFIG_EXAMPLES_SENDMAIL is not set
+# CONFIG_EXAMPLES_SERIALBLASTER is not set
+# CONFIG_EXAMPLES_SERIALRX is not set
# CONFIG_EXAMPLES_SERLOOP is not set
# CONFIG_EXAMPLES_SLCD is not set
# CONFIG_EXAMPLES_SMART_TEST is not set
@@ -814,6 +936,7 @@ CONFIG_NETUTILS_NETLIB=y
CONFIG_NETUTILS_WEBCLIENT=y
CONFIG_NSH_WGET_USERAGENT="NuttX/6.xx.x (; http://www.nuttx.org/)"
# CONFIG_NETUTILS_WEBSERVER is not set
+# CONFIG_NETUTILS_NTPCLIENT is not set
# CONFIG_NETUTILS_DISCOVER is not set
# CONFIG_NETUTILS_XMLRPC is not set
@@ -826,8 +949,19 @@ CONFIG_NSH_WGET_USERAGENT="NuttX/6.xx.x (; http://www.nuttx.org/)"
# NSH Library
#
CONFIG_NSH_LIBRARY=y
+
+#
+# Command Line Configuration
+#
CONFIG_NSH_READLINE=y
# CONFIG_NSH_CLE is not set
+CONFIG_NSH_LINELEN=80
+# CONFIG_NSH_DISABLE_SEMICOLON is not set
+# CONFIG_NSH_CMDPARMS is not set
+CONFIG_NSH_MAXARGUMENTS=6
+# CONFIG_NSH_ARGCAT is not set
+CONFIG_NSH_NESTDEPTH=3
+# CONFIG_NSH_DISABLEBG is not set
CONFIG_NSH_BUILTIN_APPS=y
#
@@ -882,23 +1016,37 @@ CONFIG_NSH_BUILTIN_APPS=y
CONFIG_NSH_CODECS_BUFSIZE=128
# CONFIG_NSH_CMDOPT_HEXDUMP is not set
CONFIG_NSH_FILEIOSIZE=1024
-CONFIG_NSH_LINELEN=80
-# CONFIG_NSH_DISABLE_SEMICOLON is not set
-# CONFIG_NSH_CMDPARMS is not set
-CONFIG_NSH_MAXARGUMENTS=6
-# CONFIG_NSH_ARGCAT is not set
-CONFIG_NSH_NESTDEPTH=3
+
+#
+# Scripting Support
+#
# CONFIG_NSH_DISABLESCRIPT is not set
# CONFIG_NSH_DISABLE_ITEF is not set
# CONFIG_NSH_DISABLE_LOOPS is not set
-# CONFIG_NSH_DISABLEBG is not set
-CONFIG_NSH_CONSOLE=y
#
-# USB Trace Support
+# Console Configuration
#
-# CONFIG_NSH_ALTCONDEV is not set
+CONFIG_NSH_CONSOLE=y
# CONFIG_NSH_ARCHINIT is not set
+
+#
+# Networking Configuration
+#
+# CONFIG_NSH_DHCPC is not set
+CONFIG_NSH_IPADDR=0x0a000002
+CONFIG_NSH_DRIPADDR=0x0a000001
+CONFIG_NSH_NETMASK=0xffffff00
+# CONFIG_NSH_DNS is not set
+CONFIG_NSH_NOMAC=y
+CONFIG_NSH_SWMAC=y
+# CONFIG_NSH_ARCHMAC is not set
+CONFIG_NSH_MACADDR=0x00e0deadbeef
+CONFIG_NSH_MAX_ROUNDTRIP=20
+
+#
+# Telnet Configuration
+#
CONFIG_NSH_TELNET=y
CONFIG_NSH_TELNETD_PORT=23
CONFIG_NSH_TELNETD_DAEMONPRIO=100
@@ -907,13 +1055,6 @@ CONFIG_NSH_TELNETD_CLIENTPRIO=100
CONFIG_NSH_TELNETD_CLIENTSTACKSIZE=2048
CONFIG_NSH_IOBUFFER_SIZE=512
# CONFIG_NSH_TELNET_LOGIN is not set
-# CONFIG_NSH_DHCPC is not set
-CONFIG_NSH_IPADDR=0x0a000002
-CONFIG_NSH_DRIPADDR=0x0a000001
-CONFIG_NSH_NETMASK=0xffffff00
-# CONFIG_NSH_DNS is not set
-CONFIG_NSH_NOMAC=y
-CONFIG_NSH_MAX_ROUNDTRIP=20
#
# NxWidgets/NxWM
@@ -929,35 +1070,37 @@ CONFIG_NSH_MAX_ROUNDTRIP=20
#
#
-# USB CDC/ACM Device Commands
+# Custom Free Memory Command
#
+# CONFIG_SYSTEM_FREE is not set
#
-# USB Composite Device Commands
+# EMACS-like Command Line Editor
#
+# CONFIG_SYSTEM_CLE is not set
#
-# Custom Free Memory Command
+# FLASH Program Installation
#
-# CONFIG_SYSTEM_FREE is not set
+# CONFIG_SYSTEM_INSTALL is not set
#
-# I2C tool
+# FLASH Erase-all Command
#
#
-# INI File Parser
+# Intel HEX to binary conversion
#
-# CONFIG_SYSTEM_INIFILE is not set
+# CONFIG_SYSTEM_HEX2BIN is not set
#
-# FLASH Program Installation
+# I2C tool
#
-# CONFIG_SYSTEM_INSTALL is not set
#
-# FLASH Erase-all Command
+# INI File Parser
#
+# CONFIG_SYSTEM_INIFILE is not set
#
# NxPlayer media player library / command Line
@@ -976,6 +1119,14 @@ CONFIG_SYSTEM_READLINE=y
CONFIG_READLINE_ECHO=y
#
+# P-Code Support
+#
+
+#
+# PHY Tool
+#
+
+#
# Power Off
#
# CONFIG_SYSTEM_POWEROFF is not set
@@ -996,21 +1147,20 @@ CONFIG_READLINE_ECHO=y
# CONFIG_SYSTEM_SYSINFO is not set
#
-# USB Monitor
+# VI Work-Alike Editor
#
+# CONFIG_SYSTEM_VI is not set
#
-# EMACS-like Command Line Editor
+# Stack Monitor
#
-# CONFIG_SYSTEM_CLE is not set
#
-# VI Work-Alike Editor
+# USB CDC/ACM Device Commands
#
-# CONFIG_SYSTEM_VI is not set
#
-# Stack Monitor
+# USB Composite Device Commands
#
#
@@ -1018,6 +1168,10 @@ CONFIG_READLINE_ECHO=y
#
#
+# USB Monitor
+#
+
+#
# Zmodem Commands
#
# CONFIG_SYSTEM_ZMODEM is not set