Commit Graph

157 Commits

Author SHA1 Message Date
David Sidrane
6eab2b7811 Take 2 2016-07-01 09:45:00 -10:00
Gregory Nutt
57a0f88728 Revert "Review of last PR"
This reverts commit 0e4c247e1d.
2016-07-01 13:26:34 -06:00
Gregory Nutt
0e4c247e1d Review of last PR 2016-07-01 13:22:36 -06:00
David Sidrane
cbe1d33786 Allow stack usage to be disabled on contrained systems 2016-07-01 08:59:46 -10:00
Gregory Nutt
0e76ca7474 Move apps/include/nsh.h to apps/include/nshlib/nshlib.h 2016-07-01 06:59:23 -06:00
Gregory Nutt
8a03660c72 Remove apps/system/usbmonitor. It has been moved to nuttx/drivers/usbmonitor. 2016-06-30 13:13:05 -06:00
Gregory Nutt
a2a9e20c65 Move NSH stuff out of nuttx/configs/Kconfig to here. Why was it in the NuttX tree. 2016-06-24 07:47:03 -06:00
Gregory Nutt
468bdcf8e6 Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES 2016-06-11 14:13:39 -06:00
Gregory Nutt
56e75e9db8 Rename CONFIG_DEBUG_VERBOSE to CONFIG_DEBUG_INFO 2016-06-11 11:50:38 -06:00
Sebastien Lorquet
d2aa24ad88 Make sure that APPNAME is defined in all Makefiles that generate applications 2016-06-09 10:51:04 -06: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
0943afd2f9 Kconfig files: All USB-related options depend on CONFIG_LIB_BOARDCTRL and now set CONFIG_BOARDCTL_USBDEVCTL=y 2016-03-26 07:13:57 -06: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
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
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
aa35ebb6b6 Correct a typo in CONFIG_NSH_IPADDR help text. 2015-12-02 16:17:50 +00:00
Gregory Nutt
997ba578e4 Default value for LOSMART support should be disabled if MTD_SMART is not selected 2015-11-29 07:20:09 -06:00
Gregory Nutt
7e7dd916ce apps/nshlib: The 'ps' command now uses /proc/(pid)/ to obtain task status information. A consequence of this is that you cannot use the 'ps' command if the procfs is not enabled and mounted at /proc. 2015-11-28 15:03:21 -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
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
c3b09d5d8b NSH: By default, basename and dirname should be disabled if scripting is disabled 2015-11-23 17:22:37 -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
OrbitalFox
93876b5af3 Kconfig: Improved comments 2015-09-24 08:28:50 -06:00
Pavel Pisa
64fb2c63b6 Correct numerous places where NETUTILS_DNSCLIENT was instead of NETDB_DNSCLIENT 2015-08-20 16:08:45 -06:00
Gregory Nutt
74801cf38e apps/tools/mkkconfig.sh: The top-level Kconfig file is not auto-generated. The autogenerated Kconfig file will be constructed so that every second level directory that contains a Kconfig file will automatically be sourced 2015-08-11 17:49:10 -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
812450ebe6 If NSH or Webclient is selected, make sure that CONFIG_LIBC_NETDB is enabled; reanem dnsclient.h to dns.h 2015-07-12 09:25:39 -06:00
Gregory Nutt
d710b7c3b7 Add support for the NSH uname command 2015-07-04 15:13:11 -06:00
Gregory Nutt
f9afefe7e9 Fix a typo in a Kconfig file 2015-07-04 13:17:10 -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
a18ed33d99 NSH now supports a shutdown command if CONFIG_BOARDCTL_POWEROFF-y 2015-07-04 08:20:19 -06:00
Gregory Nutt
d5b6949c9f Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation 2015-06-28 08:14:53 -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
d8d4a3486c SAMV7 USB: Updates to early initialization logic 2015-03-24 10:05:21 -06:00
Gregory Nutt
edf876ed1a Add missing options to NSH Library Kconfig. From Freddie Chopin 2015-03-02 06:16:38 -06:00
Gregory Nutt
ae142c0605 NSH: The default priority of the network initialization thread should be lower. It is CPU intensive and can interfere with other operations 2015-02-17 13:14:50 -06:00
Gregory Nutt
dc527f5c9d Fix errors in range of IPv6 netmask range in Kconfig files 2015-02-05 10:47:42 -06:00
Gregory Nutt
6273eb0160 ICMPv6: This completes coding of the ICMPv6 auto-configuration feature. It is not yet functional 2015-02-03 15:40:56 -06:00
Gregory Nutt
5499189417 Add netlib and application hooks for ICMPv6 auto-configuration (still incomplete 2015-02-03 08:01:55 -06:00
Gregory Nutt
c96aa9218a Correct name of fields in struct sockaddr_in6: sin6_port and sin6_family, not sin_port and sin_family 2015-01-20 18:14:09 -06:00
Gregory Nutt
27b3913c92 Fix defaults for IPv6 netmask 2015-01-20 13:48:03 -06:00
Gregory Nutt
9bff050ad0 Update ChangeLog 2015-01-19 09:03:10 -06:00
Gregory Nutt
fa035373e4 Correct spelling: MOUNTPOINT not MOUNTPOUNT. Numerous places. Some are problems. From Woohan Lee 2014-12-01 06:41:30 -06:00
Gregory Nutt
131b8c5946 Move CONFIG_NSH_TMPDIR to CONFIG_LIBC_TMPDIR 2014-11-05 07:49:20 -06:00
Gregory Nutt
f856424ce6 Add support for a custom NSH ROMFS startup image header file location. From Martin Lederhilger 2014-09-30 06:43:49 -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
61ab95593f Update README files, Kconfig help comments, and make the network monitor not EXPERIMENTAL 2014-08-18 07:24:47 -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
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
85f245202b SAMA5: Poll USB keyboard at a higher rate for better response 2014-07-29 08:57:35 -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
460eb3333c SAMA5D4-EK: NSH confuration now has FAT/ROMFS, /dev/zero, /dev/random via TRNG, an NSH startup script, and a RAM disk at /tmp 2014-06-28 16:11:41 -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
10e5365132 CONFIG_NSH_CONDEV is type string, not bool 2014-04-21 18:59:53 -06:00
Gregory Nutt
51f553c9a4 Long needed clean up of DNS resolver for coding style and naming conventions 2014-04-11 12:25:32 -06:00
Gregory Nutt
277ecb79c7 Should CPU load on each thread in the PS command 2014-02-27 11:11:24 -06:00
Gregory Nutt
20f6470e83 Add CONFIG_DEFAULT_SMALL that will select default values for configuration settings based upon either more features or smaller footprint. Turns out not be be useful for modifying existing defconfig files because the defaults do not apply in that case 2014-02-20 18:49:45 -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
5f385c17af Update README with configuration warning 2014-02-04 08:42:42 -06:00
Gregory Nutt
82d71bb439 Add an EMACS-like command line editor that can be used wit NSH 2014-02-02 10:25:53 -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
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
de324350b5 NSH: Code expects CONFIG_NSH_DRIPADDR and CONFIG_NSH_NETMASK even if DHCPC is necessary. For now, just removed the dependency on DHCPC in the Kconfig file, but more thought is needed. 2014-01-09 13:39:40 -06:00
Gregory Nutt
700b3989fb Add support for the XPT2046 touchscreen controller on the Viewtool LCD module 2014-01-09 10:57:17 -06:00
Gregory Nutt
e0156d95a1 NSH Configuration: Refactor networking and netutils dependencies 2014-01-09 10:46:28 -06:00
Gregory Nutt
74b0933088 Add skip= and count= options to the NSH hexdump command. From Ken Pettit 2013-11-01 07:15:14 -06:00
Gregory Nutt
ff88e86ef2 Add NSH addroute and delroute commands 2013-10-05 15:42:20 -06:00
Gregory Nutt
cbd35d4fee Fix NSH default IP address 2013-09-17 15:51:33 -06:00
Gregory Nutt
8d7ab4ba99 NSH cmp command by Andrew Twidgell 2013-07-18 08:24:29 -06:00
Gregory Nutt
60e6546ffb Add missing NSH configuration settings. Correct some conditional logic for STM32 FALSH pre-fetch settings. From Lorenz Meier 2013-06-02 13:16:35 -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
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
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
fefb836376 Add a binary 'loader' so that builtin applications can be executed from the BINFS file system
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5525 42af7a65-404d-4744-a932-0658087f49c3
2013-01-16 19:08:23 +00:00
patacongo
ce0a475c9f Rename apps/include/apps.h to builtin.h. Move parts of apps/builtins/exec_builtin.c to binfmt/libbuiltin/libbuiltin_utils.c
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5524 42af7a65-404d-4744-a932-0658087f49c3
2013-01-16 17:05:00 +00:00
patacongo
88d3058222 Rename namedapp as simply builtin
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5454 42af7a65-404d-4744-a932-0658087f49c3
2012-12-23 20:22:41 +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
patacongo
97fd74fbdd Add apps/netutils/codecs and associated NSH commands from Darcy Gong
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5280 42af7a65-404d-4744-a932-0658087f49c3
2012-10-31 14:36:00 +00:00
patacongo
d943f61d2d DNS fixes from Darcy Gong
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5268 42af7a65-404d-4744-a932-0658087f49c3
2012-10-28 13:20:36 +00:00
patacongo
eeb6e62b74 Ping/DNS fixes (part 2 of 2)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5236 42af7a65-404d-4744-a932-0658087f49c3
2012-10-20 14:15:59 +00:00
patacongo
9c58ee4a6f You can now configure a login for Telnet NSH session -- from Darcy Gong
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5231 42af7a65-404d-4744-a932-0658087f49c3
2012-10-12 16:59:17 +00:00
patacongo
3f958a3e8c Kconfig: Standardize board LED and button configurations
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5112 42af7a65-404d-4744-a932-0658087f49c3
2012-09-08 03:31:46 +00:00
patacongo
74e24323b5 More Shenzhou board logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5111 42af7a65-404d-4744-a932-0658087f49c3
2012-09-08 02:10:56 +00:00
patacongo
18a9d5dc92 Add Kconfig settings for the LPC17xx
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5094 42af7a65-404d-4744-a932-0658087f49c3
2012-09-05 17:20:19 +00:00
patacongo
0924661c3e Add perror()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5061 42af7a65-404d-4744-a932-0658087f49c3
2012-08-28 19:01:14 +00:00