STM32F746-DISCO: Enable the NSH telnet sessions

This commit is contained in:
Gregory Nutt
2015-07-20 10:54:47 -06:00
parent 784a3eb4d0
commit 2e09cf3112
2 changed files with 57 additions and 3 deletions
+44 -1
View File
@@ -45,6 +45,9 @@ STATUS
console on USART6 and RS-232 shield. Very few other drivers are in
place yet.
2015-07-20: STM32 F7 Ethernet appears to be functional, but has had
only light testing.
Development Environment
=======================
@@ -496,10 +499,50 @@ Configuration Directories
NOTES:
1. Both IPv4 and IPv6 protocoals are enabled.
1. Both IPv4 and IPv6 protocoals are enabled. Fixed IP addresses are
used. The default configurationi target has these IP address:
IPv4: 10.0.0.2
IPv6: fc00::2
These are, of course, easily changes by reconfiguring via 'make
menuconfig'
2. UDP, TCIP/IP, ARP, ICMP, and ICMPv6 are also enabled.
3. NSH offers several network oriented commands such as: ipconfig,
ifup, ifdown, ping, and ping6.
4. Telnet sessions are supported. You can start a Telnet session from
any host on the network using a command like:
$ telnet 10.0.0.2
Trying 10.0.0.2...
Connected to 10.0.0.2.
Escape character is '^]'.
NuttShell (NSH) NuttX-7.10
nsh> help
help usage: help [-v] [<cmd>]
[ dd hexdump mb ping6 sleep
? echo ifconfig mkdir ps test
break exec ifdown mkfifo pwd true
cat exit ifup mh rm uname
cd false kill mv rmdir unset
cp free losetup mw set usleep
cmp help ls ping sh xd
Builtin Apps:
nsh>
Under either Linux or Cygwin
5. The PHY address is either 0 or 1, depending on the state of the
LAN8720 RXER/PHYAD0 when the hardware is reset. That connects to the
STM32 F7 via PG2. PG2 is not controlled but appears to result in a
PHY address of 0.
nsh:
---
Configures the NuttShell (NSH) located at apps/examples/nsh. The
+13 -2
View File
@@ -920,7 +920,7 @@ CONFIG_EXAMPLES_NSH_CXXINITIALIZE=y
# CONFIG_NETUTILS_FTPC is not set
# CONFIG_NETUTILS_JSON is not set
# CONFIG_NETUTILS_SMTP is not set
# CONFIG_NETUTILS_TELNETD is not set
CONFIG_NETUTILS_TELNETD=y
# CONFIG_NETUTILS_TFTPC is not set
CONFIG_NETUTILS_NETLIB=y
# CONFIG_NETUTILS_WEBCLIENT is not set
@@ -1021,7 +1021,6 @@ CONFIG_NSH_FILEIOSIZE=512
# Console Configuration
#
CONFIG_NSH_CONSOLE=y
# CONFIG_NSH_ALTCONDEV is not set
# CONFIG_NSH_ARCHINIT is not set
#
@@ -1080,6 +1079,18 @@ CONFIG_NSH_SWMAC=y
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
CONFIG_NSH_TELNETD_DAEMONSTACKSIZE=2048
CONFIG_NSH_TELNETD_CLIENTPRIO=100
CONFIG_NSH_TELNETD_CLIENTSTACKSIZE=2048
CONFIG_NSH_IOBUFFER_SIZE=512
# CONFIG_NSH_TELNET_LOGIN is not set
#
# NxWidgets/NxWM
#