Gregory Nutt
749ea9e881
This commit removes the ping6 command from NSH and replaces it with the apps/system/ping6 built-in command. The NSH ping6 command had to be removed because it violated the portable POSIX OS interface. The apps/system/ping6 command uses the sem-standard IPPROTO_ICMP6 socket interface.
...
Squashed commit of the following:
apps/system ping and ping6: Fix a backward test.
apps/system/ping6: ping6 logic now builds without error.
apps/system/ping and ping6: Minor clean-up to configuration settings.
apps/system/ping6: Minor clean-up to be able to configure CONFIG_SYSTEM_PING6
apps/nshlib: Remove support for ping6 from NSH.
apps/system/ping6: Add IPPROTO_ICMPv6 ping6. Initial commit is simply a clone of the IPPROTO_ICMP ping logic.
Rename CONFIG_NET_ICMPv6_PING to CONFIG_NET_ICMPv6_SOCKET.
2017-10-24 11:19:41 -06:00
Gregory Nutt
c1ec7db8a9
This commite eliminates the ping command from NSH and replaces it with a ping 'built-in' at apps/system/ping. The original NSH version of ping violated the portable POSIX interface and, hence, had to be removed. The new system/ping command uses the new IPPROTO_ICMP AF_INET datagram sockets to implement ping.
...
Squashed commit of the following:
apps/system/ping: Fix some timing issues.
apps/system/ping: A few timing related corrections.
apps/nshlib: Remove support for the NSH 'ping' command. The implementation of that command violated the portable POSIX interface and has been replaced with a ping 'built-in' command at apps/system/ping.
apps/system/ping: Add larger payload. Verify content of echoed payload.
apps/system/ping: Various fixes for a clean compile
system/ping: Add new build structure for system ping command.
2017-10-23 08:50:01 -06:00
Gregory Nutt
35ec1b9244
Squashed commit of the following:
...
apps/fsutils/mkfatfs: New user-space fatfs appears to work fine.
apps/fsutils/mkfatfs: Move mkfatfs from the OS to here. Not fully integrated on the intial commit.
2017-10-20 12:35:19 -06:00
Gregory Nutt
3367bde8fe
NSH: Add conditions so that ifconfig and ifup will not be disabled if we are using only PF_IEEE802154
2017-08-21 09:32:07 -06:00
Gregory Nutt
7a7c7ee93a
Update README and fix some conditional compilation from the last commit.
2017-08-11 15:56:53 -06:00
Gregory Nutt
5dcf5620e3
NSH Library: Add a route command that will dump the content of routing table.
2017-08-11 15:33:26 -06:00
Gregory Nutt
342de81641
NSH library: Add a Telnetd command. This is needed when network initialization is deferred. In that case, telnet daemon cannot be started until the network is finally initialized. The telnetd command was added just for that case: So that the telnet daemon can be started from the NSH command line after the network is configured.
2017-06-26 18:00:13 -06:00
Gregory Nutt
a0915850b9
wireless/wapi: wpa_driver_wext_associate() now accepts a configuration parameter that can be used to specify the wireless properties. nshlib: NSH now has configuration options to select the wireless properties. It builds the configuration structure and passes this to wpa_driver_wext_associate() so that it will setwork the network as configured.
2017-05-06 11:28:11 -06:00
Gregory Nutt
5b7f2b0ce2
Eliminate a warning
2017-04-29 08:52:10 -06:00
Gregory Nutt
8369052a22
NSH library: Extend ifconfig to support 6loWPAN. Adapt to some changes in configuration variable usage.
2017-04-08 12:21:40 -06:00
David Sidrane
35cf98d4df
Print expanded variables if -x
2017-04-05 18:31:47 -06:00
David Sidrane
d03aa9112e
Added support for set [{+|-}{e|x|xe|ex}] [<name> <value>]
...
Set the 'exit on error control' and/or 'print a trace' of commands when parsing scripts in NSH. The settinngs are in effect from the point of exection, until they are changed again, or in the case of the init script, the settings are returned to the default settings when it exits.
Included child scripts will run with the parents settings and changes made in the child script will effect the parent on return.
Use 'set -e' to enable and 'set +e' to disable (ignore) the exit condition on commands. The default is -e. Errors cause script to exit.
Use 'set -x' to enable and 'set +x' to disable (silence) printing a trace of the script commands as they are ececuted. The default is +x. No printing of a trace of script commands as they are executed.
2017-04-05 18:25:59 -06:00
Gregory Nutt
7a0e08c37b
NSH: Add readlink command.
2017-02-05 10:35:11 -06:00
Gregory Nutt
2ac55ec4e7
NSH: Add support for the 'ln' command.
2017-02-02 19:40:59 -06:00
Alan Carvalho de Assis
cdedb412ed
apps/nshlib: Add printf command to NSH, e.g., controlling /dev/userleds from command line: nsh> printf \x01 > /dev/userleds
2016-10-01 07:44:15 -06:00
Gregory Nutt
823b8c3981
FIFO_SIZE vs PIPE_SIZE
2016-08-04 16:25:47 -06:00
Gregory Nutt
e4914622b3
NSH: cmd_mkfifo depend son CONFIG_DEV_PIPE_SIZE > 0
2016-08-04 12:57:02 -06:00
Gregory Nutt
7d517413cb
Things that use mkfifo() and pipe() depend on CONFIG_PIPES
2016-07-20 10:46:05 -06:00
Mateusz Szafoni
d93e8e5c17
Remove references to CONFIG_SYSLOG
2016-06-27 18:39:55 +02:00
Marten Svanfeldt
33c6a6bb75
Make NSH net-initialization be a configuration option
...
Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
2016-06-09 05:29:01 +02:00
Gregory Nutt
b8c8bea22c
Add an 'arp' command to NSH to support access to the OS ARP table
2016-02-08 14:49:05 -06:00
Gregory Nutt
0720f9a357
NSH: Add option to use platform-specific logic to verify login credentials; Add option to add a delay after each failed login attempt
2016-01-22 10:46:19 -06:00
Gregory Nutt
07cf99130c
nsh_stdsession() cannot use the same login logic as nsh_session(); Also put telnet login in a separate file for symmetry
2016-01-20 15:22:02 -06:00
Gregory Nutt
93d9d5e4ca
apps/nshlib: All NSH sessions may now be protected with passwords stored in the encrypted /etc/passwd file
2016-01-20 14:42:39 -06:00
Gregory Nutt
681bfa2605
NSH: Add logic for the case where the passwd file is read-only. ROMFS image needs to be marked as const, or it will end up in RAM.
2016-01-20 13:05:25 -06:00
Gregory Nutt
3dad8a29a2
NSH now supports an MOTD string that will be presented after the greeting
2016-01-20 11:18:08 -06:00
Gregory Nutt
fe05a8444f
apps/nshlib: Add useradd, userdel, and passwd commends
2016-01-20 09:37:25 -06:00
Gregory Nutt
b5c5055c41
NSH: Remove partial implementation of the use of IOBJ/IPTR in NSH. There are some complications
2016-01-17 07:53:52 -06:00
Gregory Nutt
16ed293417
Revert "Revert "NSH: All nsh_output strings tagged with IOBJ so that they may be stored in FLASH on AVR""
...
This reverts commit fd083ee981
.
2016-01-17 07:41:51 -06:00
Gregory Nutt
fd083ee981
Revert "NSH: All nsh_output strings tagged with IOBJ so that they may be stored in FLASH on AVR"
...
This reverts commit cb6a914d08
.
2016-01-17 07:39:17 -06:00
Stefan Kolb
3b820bbc78
NSH: Correct an error in conditional compilation
2016-01-13 06:53:33 -06:00
Gregory Nutt
cb6a914d08
NSH: All nsh_output strings tagged with IOBJ so that they may be stored in FLASH on AVR
2016-01-05 16:38:50 -06:00
Gregory Nutt
f09b7e400f
NSH: Add a time command that can be used to time other commands
2015-12-31 09:16:38 -06:00
Gregory Nutt
f0a21d3d48
NSH: Add module commands: insmod, rmmod, and lsmod
2015-12-13 09:55:52 -06:00
Gregory Nutt
082b452016
Move string trimming logic in nsh_fsutils.c as nsh_trimspaces()
2015-11-28 15:01:00 -06:00
Gregory Nutt
88d3ac1c92
apps/nshlib: nsh_readfile() should not be marked as static
2015-11-28 11:39:50 -06:00
Gregory Nutt
631c9cec12
apps/nshlib: The I/O buffer, g_iobuffer, should not be a global buffer. That will not work in an environment where there are multiple NSH sessions. The I/O buffer must, instead, be a part part of the session-specific data defined in nsh_console.h # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit.
2015-11-28 11:13:47 -06:00
Ken Pettit
d82b8a2e23
apps/nshlib: Add a new NSH losmart command. losmart setups up a loop device for the smart MTD driver similar to losetup but with different syntax. From Ket Petit.
2015-11-28 09:05:05 -06:00
Gregory Nutt
92b1eb36c8
nshlib: Move trim_dir() and foreach_direntry() from nsh_fscmds.c to nsh_fsutils.c as nsh_trimdir() and nsh_foreach_direntry(), respectively
2015-11-28 08:29:27 -06:00
Gregory Nutt
510f325ae4
nshlib: Use CONFIG_NSH_PROC_MOUNTPOINT instead of literal /proc; Move readfile() from nsh_proccmds.c to nsh_fsutils.c as nsh_readfile()
2015-11-28 07:23:08 -06:00
Gregory Nutt
0fb32570ff
apps/nshlib: Remove all references to internal OS interface netdev_foreach(). Logic in ifconfig, ifup, and ifown now use the procfs file system to examine networking status.
2015-11-27 17:47:09 -06:00
Gregory Nutt
bb88ff9b12
nshlib/: ifconfig now uses /proc/net/eth0 to display network configuration. You will need to enable the procfs file system in order to use ifconfig
2015-11-27 16:57:22 -06:00
Gregory Nutt
32b992971b
apps/nshlib: The 'ifconfig' command now uses /proc/net/stat to show network statistics. A consequence of this is that you cannot view network statistics if the procfs is not enabled and mounted at /proc
2015-11-27 13:04:11 -06:00
Gregory Nutt
a62bf6727f
NSH no long calls losetup() and loteardown() directly. Now it uses /dev/loop and performs these operations using ioctl() calls
2015-11-25 17:55:16 -06:00
Gregory Nutt
178c9780a8
NSH: Add support for basename and dirname commands
2015-11-23 10:21:15 -06:00
Ken Pettit
ad48d89fe2
mksmartfs: Move into apps/fsutils from kernel, now uses only open and ioctl. Add configuration option to supported multiple root directories. From Ken Petit
2015-11-23 06:59:56 -06:00
Gregory Nutt
146f126ead
nshlib: Now that NuttX automatically converts block to character devices, the implemention of the DD command no longer has to muck with block to character conversion
2015-11-21 11:57:41 -06:00
Gregory Nutt
e9447c6058
Standardize nameing of the pre-processor definitiongs group header
2015-10-02 14:06:11 -06:00
Gregory Nutt
ce3a2dc0d4
NSH changes to work with the network local loopback device
2015-08-24 13:59:52 -06:00
Gregory Nutt
820c5c42dd
readline/NSH: Extend the tab-completion logic so that NSH commands can also be completed by pressing the tab key
2015-07-30 12:11:58 -06:00
Gregory Nutt
25d45d642f
Add an NSH nslookup command
2015-07-13 11:19:02 -06:00
Gregory Nutt
d710b7c3b7
Add support for the NSH uname command
2015-07-04 15:13:11 -06:00
Gregory Nutt
95eea325cf
Add poweroff and reboot NSH commands as alternatives to the shutdown command
2015-07-04 12:44:24 -06:00
Gregory Nutt
a2a1530694
The NSH shutdown command now supports the --reset option, if available in hardware
2015-07-04 11:11:16 -06:00
Gregory Nutt
a18ed33d99
NSH now supports a shutdown command if CONFIG_BOARDCTL_POWEROFF-y
2015-07-04 08:20:19 -06:00
Gregory Nutt
905f881162
Enhancements to NSH ifconfig for case of multi-link operation, TUN device and local connections. From Max Neklyudov.
2015-05-19 12:26:20 -06:00
Gregory Nutt
23075e0b30
Allow NSH date command with no RTC. This command is useful without an RTC too. Also, this permits testing on the simulator which never has an RTC
2015-04-11 12:13:18 -06:00
Gregory Nutt
9fcd34f1c4
NSH initialization now calls boardctl(BOARDIOC_INIT) instead of board_app_initaliaze. Modify all configurations: Make sure that CONFIG_LIB_BOARDCTL=y appears wherever CONFIG_NSH_ARCHINIT=y appears. Remove support for CONFIG_NSH_ARCHMAC. It is not used and there are better ways to do that operation
2015-03-31 12:14:16 -06:00
Gregory Nutt
6bad91308d
Rename arch_nshinitialize() to board_app_initialize()
2015-03-31 10:21:31 -06:00
Gregory Nutt
5060e08fcb
Unix domain: With these changes I can build a system with no link layer enabled, only Unix domain sockets
2015-01-27 15:26:03 -06:00
Gregory Nutt
b39fb98d86
apps/nshlib: Add the ping6 command to support checking IPv6 networks. NSH logic is complete but still missing some network level support
2015-01-23 12:49:49 -06:00
Gregory Nutt
71d2ae0fac
NSH library: Disable put and get commends of TFTP client is not enabled; disable wget command if web client is not enabled
2015-01-19 10:32:46 -06:00
Gregory Nutt
da8ba5dfd5
Remove use of CONFIG_MASK_TASK_ARGS from NSH
2014-11-13 06:27:29 -06:00
Gregory Nutt
eaddb9059f
Emit a warning if number of arguments to builtin or file app can be truncated
2014-11-12 14:23:14 -06:00
Gregory Nutt
131b8c5946
Move CONFIG_NSH_TMPDIR to CONFIG_LIBC_TMPDIR
2014-11-05 07:49:20 -06:00
Gregory Nutt
4eadcabc1b
Several commands must be disabled in the kernel build because they depend on interfaces that are not available outside of the kernel: dd, df, losetup, mkfatfs, mkdr, and ps.
2014-09-07 10:46:06 -06:00
Gregory Nutt
7c7a81aa69
Rename CONFIG_NUTTX_KERNEL to CONFIG_BUILD_PROTECTED; Partially integrate new CONFIG_BUILD_KERNEL
2014-08-29 14:47:22 -06:00
Gregory Nutt
c18504f820
Minor corrections during integration of link status monitor
2014-08-17 11:26:02 -06:00
Gregory Nutt
5943cf2c2b
Extend the NSH network initialization logic. There is now an option that will create a network monitor thread that will monitor the state of the link. When the link goes down, the code will attempt to gracefully put the Ethernet driver in a down state; When the link comes back, the code will attempt to bring the network back up.
2014-08-17 09:51:26 -06:00
Gregory Nutt
b651f37ce7
Remove CONFIG_DISABLE_CLOCK
2014-08-07 12:35:24 -06:00
Gregory Nutt
dc57af80fc
NSH networking: There is now a configuration option that will bring up the network on an separate thread. Since the network bring-up is asynchronous, there are not serial console start-up delays due to the network negotiation time.
2014-08-06 11:59:41 -06:00
Gregory Nutt
d4aa9e7b6d
NSH Networking: Also add an option to let platform-specific logic select the MAC address.
2014-08-06 10:12:10 -06:00
Gregory Nutt
16b2090ca0
NSH Networking: Software assigned MAC address is now configurable. From Lazlo
2014-08-06 09:19:26 -06:00
Gregory Nutt
187e4f204d
NSH Keyboard Input: Worked okay until you try to disabled the keyboard
2014-07-06 08:09:33 -06:00
Gregory Nutt
9a49735c4b
NSH: Add an option to take stdin from a USB keyboard device
2014-07-03 16:25:02 -06:00
Gregory Nutt
7a98f10283
The alternate console device CONFIG_NSH_CONDEV must not be defined unconditionally. This causes errors when using Telnet sessions. This was solved by adding CONFIG_NSH_ALTCONDEV: CONFIG_NSH_ALTCONDEV enables or disables the feature then, if enabled, CONFIG_NSH_CONDEV provides the alternative console device name
2014-05-05 08:52:02 -06:00
Gregory Nutt
2bc6d67866
unlink/rm can now be used on nodes in the pseudo-filesystem. There is new configuration option to suppress these costly and mostly useless operations on the pseudo-filesystem
2014-02-20 18:14:02 -06:00
Gregory Nutt
c88b844190
Nodes in the pseudo-filesystem can now be renamed or moved within the pseduo-filesystem
2014-02-19 13:14:39 -06:00
Gregory Nutt
b39f432020
mkdir can now be used to create empty directories in the pseudo-filesystem.
2014-02-19 10:30:50 -06:00
Gregory Nutt
b70ce5f634
rmdir now may be used to remove empty nodes from the pseudo-filesystem
2014-02-19 10:01:26 -06:00
Gregory Nutt
612d8ed14c
NSH: Add a break command; if-then-else and looping behavior can not be configured out of the build for small systems that need minimal scripting capability
2014-01-18 09:39:16 -06:00
Gregory Nutt
cfb7c77ed3
NSH: Add support for while-do-done and until-do-done loops
2014-01-17 15:56:32 -06:00
Gregory Nutt
97e1d8b535
Add true and false commands; repartition some logic to better support forthcoming looping
2014-01-17 13:24:44 -06:00
Gregory Nutt
65b4921b23
Back quoted NSH arguments now functional
2014-01-11 09:50:54 -06:00
Gregory Nutt
d499f287ad
Add support for backquoated commands as command arguments
2014-01-10 18:42:24 -06:00
Gregory Nutt
819a4b5779
NSH: Separate command line parsing from command execution. Add support for multiple, semicolone separated commands on each line
2014-01-10 15:23:26 -06:00
Gregory Nutt
cdd15a12f6
NSH library: Allow USB trace without a USB console
2013-11-06 07:09:00 -06:00
Gregory Nutt
ff88e86ef2
Add NSH addroute and delroute commands
2013-10-05 15:42:20 -06:00
Gregory Nutt
c4e46f5b62
Changes to NSH and readline to permit NSH to work on a platform with no file system
2013-09-30 11:34:04 -06:00
Gregory Nutt
4bb75f9a3f
More ARMv7-A files that are just copies of the ARMv4/5 files for now
2013-07-19 11:43:04 -06:00
Gregory Nutt
8d7ab4ba99
NSH cmp command by Andrew Twidgell
2013-07-18 08:24:29 -06:00
Gregory Nutt
f2139ef029
Misc changes for clean built od mikroe-stm32f4 configurations
2013-05-01 09:21:13 -06:00
Gregory Nutt
cadc8bf98f
Add -h option to NSH git command; And NSH mksmartfs command. From Ken Petit
2013-04-30 18:03:04 -06:00
patacongo
dd90abae95
More LPC1788 changes from Rommel Marcelo + a few kernel build fixes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5715 42af7a65-404d-4744-a932-0658087f49c3
2013-03-07 01:52:30 +00:00
patacongo
978d3212ff
Add support for a login script (in addition to the init script); Add logic so that a USB console session can connect and reconnect to the USB serial device
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5582 42af7a65-404d-4744-a932-0658087f49c3
2013-01-29 22:11:04 +00:00
patacongo
2a9cdbc492
The USB monitor now works with configs/stm32f4discovery/usbnsh
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5581 42af7a65-404d-4744-a932-0658087f49c3
2013-01-29 18:32:04 +00:00
patacongo
bf21cdcb7a
The USB monitor now works with the stm32f4discover/nsh configuration (but not with the usbnsh configuration)
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5580 42af7a65-404d-4744-a932-0658087f49c3
2013-01-29 17:42:58 +00:00
patacongo
140d3e4374
NSH will now run files from the file system; Add logic to unload and clean-up after running a task from a file system; Extensions to builtin apps from Mike Smith
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5529 42af7a65-404d-4744-a932-0658087f49c3
2013-01-17 18:32:13 +00:00
patacongo
b81afc12fd
Implement redirection of output from NSH builtin commands to a file in a mounted volume
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5521 42af7a65-404d-4744-a932-0658087f49c3
2013-01-15 21:01:37 +00:00
patacongo
b60be3682d
Several patches from Petteri Aimonen (mostly NxWidgets)
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5324 42af7a65-404d-4744-a932-0658087f49c3
2012-11-09 14:54:29 +00:00