anchao
b5cfd93444
apps/: Modification to build system: Unified application compilation rules
2018-09-03 09:29:56 -06:00
Gregory Nutt
3e396d8e4e
apps/nshlib: Fix a copy paste error introduced in commit 9a42be5e9b
2018-09-02 15:33:22 -06:00
Gregory Nutt
9a42be5e9b
apps/nshlib: When using waitpid() to wait for a built-in application or a file application to exit. Add the WUNTRACED options to so the the waitpid() call will also be awakened if the waited-for task is stopped as well.
2018-09-02 14:19:30 -06:00
Juha Niskanen
cef306e335
apps/nshlib/nsh_console.c: Do not dereference NULL 'pstate'
2018-08-29 06:18:30 -06:00
Gregory Nutt
c4512f5ddf
apps/nshlib: Fix problem in last commit. CONFIG_BOARDCTL_FINALINIT=y is an insufficient condition for calling boardctl(BOARDIOC_FINALINIT, 0). Also need CONFIG_NSH_ARCHINIT=y.
2018-08-28 15:48:51 -06:00
ligd
93f1c13b62
apps/: Call BOARDIOC_FINALINIT after start-up script (or immediately after BOARIOC_INIT is there is no start-up script).
2018-08-28 15:44:03 -06:00
Gregory Nutt
bb4c5c49ef
Replace usage of SIGKILL with SIGINIT
2018-08-28 12:02:26 -06:00
anchao
3c2396116d
apps/nshlib/Kconfig: Move 'option modules' from NSH_FILE_APPS to BUILD_LOADABLE
2018-08-27 07:04:29 -06:00
ligd
d36e1c87fe
apps/nshlib: Add control-C support for terminating built-in and exec'ed file tasks.
2018-08-26 07:48:38 -06:00
anchao
220653f21c
Squashed commit of the following:
...
Author: anchao <anchao@pinecone.net>
apps/, most main() function: Correct CONFIG_BUILD_LOADABLE usage
Loadable apps/: Correct loadable symbol table generate
apps/system/ubloxmodem: Fix build break
apps/examples/ostest: start restart/waitpid/user test from main loop
apps/nshlib: Expand reboot and poweroff commands to include a second, optional mode argument
Author: Gregory Nutt <gnutt@nuttx.org>
An attempt to fix build issues. Does not work.
apps/examples/ostest: Fix some inappropriate renaming of static functions introduced with recent patches.
apps/builtin/exec_builtin.c: Fix a error introduced by recent comments. Found in build testing.
Author: anchao <anchao@pinecone.net>
apps/builtin/exec_builtin.c: Try posix_spawn if builtin apps do not have have an entry point.
apps/Application.mk: introduce MODULE config to simplify tristate(m)
apps/nsh: Change the nuttx shell module type to tristate
apps: Add loadable application support
script/mksymtab: Generate symbol table name by default
apps/builtin: Allow loadable applications can register with apps/builtin.
2018-08-23 11:06:15 -06:00
Xiang Xiao
dbf152cbeb
apps/nshlib: (1) NSH prompt string is now configurable. nsh> is still the default. (2) Increase the default configuration for the maximum number of command line arguments to 7 (CONFIG_NSH_MAXARGUMENTS). This is needed for 'mount' with the -o option.
2018-08-23 07:34:30 -06:00
Xiang Xiao
8116d10da3
apps/fsutils/mksmartfs: Add a check to see if the SmartFS is already formatted. apps/nshlib: Add a force flag (-f) to mksmartfs. SmartFS will be formatted only if (1) the FLASH does not already hold a SmartFS, or (2) the force flag is set
2018-08-23 07:14:30 -06:00
ligd
bee98898f0
apps/nshlib: Expand reboot and poweroff commands to include a second, optional mode argument
2018-08-23 06:21:47 -06:00
Gregory Nutt
2f982e9c77
Revert "Squashed commit of the following:"
...
This reverts commit 25b92edd9f
.
2018-08-22 12:06:32 -06:00
anchao
25b92edd9f
Squashed commit of the following:
...
apps/builtin/exec_builtin.c: Try posix_spawn if builtin apps do not have have an entry point.
apps/Application.mk: introduce MODULE config to simplify tristate(m)
apps/nsh: Change the nuttx shell module type to tristate
apps: Add loadable application support
script/mksymtab: Generate symbol table name by default
apps/builtin: Allow loadable applications can register with apps/builtin.
2018-08-22 09:30:38 -06:00
Gregory Nutt
32f50985a6
Fix references to examples/nsh left in previous commit.
2018-08-18 09:33:25 -06:00
Gregory Nutt
a57610c2c4
Remove trailing spaces at the end of lines.
2018-08-13 07:47:26 -06:00
Gregory Nutt
f2ef84f048
apps/nshlib: Back out 516a743344
. While the change is fuly functional and adds a pleasing symmetry to the control commands, it is also redundant and serves no real purpose other than requiring more FLASH.
2018-08-12 06:15:29 -06:00
Gregory Nutt
f759ad3196
Backs out most of commit 093391fcff
. I was confused. I re-emplemented a feature that already existed. Silly me.
2018-08-11 10:47:46 -06:00
Gregory Nutt
a7f4a9db23
Revert "apps/nshlib/nsh_command.c: Update help text."
...
This reverts commit 0511002543
.
2018-08-11 10:39:48 -06:00
Gregory Nutt
0511002543
apps/nshlib/nsh_command.c: Update help text.
2018-08-11 10:34:57 -06:00
Gregory Nutt
093391fcff
apps/nshlib/nsh_test.c: The test command will now accept '!' inversion when used in the form: [ ! <expression> ].
2018-08-11 10:20:03 -06:00
Gregory Nutt
ff192a4a58
apps/nshlib: I was able to cause an assertion with some typos in an testing the 'fi' command. Not an important thing, but this will protect against the assertion.
2018-08-11 09:30:53 -06:00
Gregory Nutt
5cfe9c2787
Update README file.
2018-08-11 08:21:52 -06:00
Gregory Nutt
516a743344
apps/nshlib: Extend Beat Küng's commit 888ad352eb
so that inverted logic may also be used in repeat and while loops.
2018-08-11 07:53:22 -06:00
Beat Küng
888ad352eb
Merged in bkueng/nuttx-apps (pull request #150 )
...
nsh: add inverted logic support in the form of 'if ! <cmd>'
Approved-by: GregoryN <gnutt@nuttx.org>
2018-08-11 13:14:41 +00:00
Gregory Nutt
303629dbe4
apps/nshlib: Small parsing improvement plus some added comments.
2018-08-06 15:52:02 -06:00
Gregory Nutt
cb556d6236
apps/nshlib: Add parsing support for back-slash quoted characters. Currenlty only implemented properly if CONFIG_NSH_ARGCAT is also selected. This commit is in response to Bitbucket Issue 11 opened by Maciej Wójcik
2018-08-06 13:28:31 -06:00
Gregory Nutt
922283ee5d
Squashed commit of the following:
...
Merged in masayuki2009/nuttx.apps/loadable_app (pull request #148 )
loadable app support
* apps: Introduce a build system for loadable apps for nsh.
This PR consits of following changes. (NOTE: Changes to each
application will be provided separately)
apps/nshlib/Kconfig:
Add 'option modules' to NSH_FILE_APPS so that a user can change
an application configuration to tristate (y/n/m)
apps/Make.defs:
Override COMPILE and COMPILEXX macros to compile loadable apps.
To make loadable apps, -DLOADABLE_APP is added to the flags.
Also, introduce ELFLD to link a lodable app.
Please note that the variable 'LOADABLE' must be defined in
each application Makefile if you want to make a loadable app.
apps/Application.mk:
Add .build target in case of 'LOADABLE=y' which is used to
link a final loadable application and install the app to
apps/bin.
apps/Makefile:
Add SYMTABSRC and SYMTABOBJ variables for loadable apps which
will be generated under the apps directory.
Add make_symbols target which will be called when all applications
are installed to generate symtab_app.c which is used for
nsh to inform symbol information to the NuttX kernel.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* apps/examples/hello: Apply changes to support a lodable app.
Kconfig:
Change the application state from bool to tristate
Make.defs:
Change the condition to build. By default, the application is
not selected (i.e. 'n'), so if other states (i.e. y/m) are
selected, the application will be compiled.
Makefile:
If the application is specified to 'm', the variable 'LOADABLE'
must be defined here. Also note that other variables (PRIORITY
and STACKSIZE) can only be used for built-in apps.
hello_main.c
Add LOADABLE_APP condition to main().
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* apps/examples/helloxx: Apply changes to support a lodable app.
Kconfig:
Change the application state from bool to tristate
Make.defs:
Change the condition to build. By default, the application is
not selected (i.e. 'n'), so if other states (i.e. y/m) are
selected, the application will be compiled.
Makefile:
If the application is specified to 'm', the variable 'LOADABLE'
must be defined here. Also note that other variables (PRIORITY
and STACKSIZE) can only be used for built-in apps.
helloxx_main.c
Add LOADABLE_APP condition to main().
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: GregoryN <gnutt@nuttx.org>
2018-08-03 12:05:01 -06:00
Gregory Nutt
3403b1b0e9
apps/nshlib/README.txt: Clarify arguments to the mkrd command.
2018-06-22 11:35:44 -06:00
Gregory Nutt
36d6348368
apps/nslib: Try to eliminate and uninitialized variable warning.
2018-06-17 15:37:42 -06:00
Beat Küng
c6697c150d
Merged in bkueng/nuttx-apps (pull request #138 )
...
nsh_parse.c: fix 'while' and 'until' loop condition
The loop condition logic was inverted:
while true; do echo "test"; done
would exit immediately, while using 'until' would stay in the loop.
This is the opposite of how it is supposed to work.
The reason is that 'state' was set wrong because 'whilematch' is a bool.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-06-06 12:50:41 +00:00
Boris Astardzhiev
940b7f8a3e
apps/nshlib/nsh.h: Fix typo.. #undef not #undefine.
2018-05-14 07:24:46 -06:00
Boris Astardzhiev
2c2fc512d6
nshlib/nsh_fscmds.c: Add the -r option which can be used to specify the number of entries in the FAT12/FAT16 root directory.
2018-05-11 09:50:54 -06:00
Juha Niskanen
052a7009b3
Merged in juniskane/apps_upstream/echo_fix_pr (pull request #135 )
...
apps/nshlib: Fix echo command with zero arguments, broken after commit 8ecf618
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-04-19 04:12:51 +00:00
Juha Niskanen
c4ca133b6f
apps/nshlib: Remove non-existent CONFIG_NSH_TMPDIR from README.txt
2018-04-17 05:54:00 -06:00
Gregory Nutt
0094b411da
apps/netutils/netlib: Various fixes needed to get a clean netlib build with Bluetooth only.
2018-04-03 10:01:55 -06:00
Gregory Nutt
467a7980f0
apps/nshlib/: In netcommds.c, the UNUSED() macro may be applied to an undefined symbol when IPv6 is enabled but IPv4 is not.
2018-03-31 09:27:52 -06:00
Gregory Nutt
bb6877ed78
apps/nshlib: Fix compile error when CONFIG_NSH_DISABLESCRIPT is not defined. The field np_flags does not exist if scripting is disabled.
2018-01-22 08:32:40 -06:00
Gregory Nutt
e2e53117a5
Remove some section headers when the sections are empty.
2018-01-13 08:35:44 -06:00
Gregory Nutt
661718ee19
apps/nshlib: Add irqinfo command.
2018-01-12 17:58:44 -06:00
Gregory Nutt
d96c236b31
Revert "apps/nshlib: restore space delimiter that was removed in last change to the NSH echo command."
...
This reverts commit 7cdf9b07d8
.
2018-01-10 07:53:03 -06:00
Gregory Nutt
7cdf9b07d8
apps/nshlib: restore space delimiter that was removed in last change to the NSH echo command.
2018-01-10 07:46:24 -06:00
Gregory Nutt
99512b90db
apps/nshlib: truncate command will now use ftruncate (vs. truncate) if it had to create the file with creat().
2018-01-10 07:26:21 -06:00
Masayuki Ishikawa
8ecf618a4d
apps/nshlib: Add support for '-n' option to the echo command.
2018-01-10 07:26:20 -06:00
Masayuki Ishikawa
bd6bf35ffd
nshlib/nsh_telnetd.c: Add support for telnet character mode.
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2018-01-10 07:15:16 +09:00
Gregory Nutt
7a2aac8876
apps/nshlib: Add support for a truncate command. This will be used to test the new ftruncate file system support.
2018-01-04 12:52:17 -06:00
Gregory Nutt
626f41084b
apps/nshlib: Correct error introduced to conditional compilation
2017-11-14 08:42:16 -06:00
Gregory Nutt
e37f4b7004
apps/nshlib: Big simplification of last change. /proc/kmm, umm, and progmem have been replaced with a single procfs file called /proc/meminfo. The NSH free command now degenerates to a simple dump of /proc/meminfo.
2017-11-13 13:35:04 -06:00
Gregory Nutt
0cda4cec15
apps/nshlib: The free commands no longer used mallinfo() to get the state of the use heap. Two reasons: That is not useful information in the kernel build. And (2) there are other memory resources of interest in other configurations such as the Kernel heap in PROTECTED and KERNEL builds, and the prog mem uses when FLASH is used to hold modifiable data. The free command has been extended to just dump the content of procfs entries and to include all of these other memory resources of the procfs entries are available.
2017-11-13 12:55:03 -06:00
Dmitriy Linikov
dea8d93f64
Merged in hardlulz/modem-3.0-nuttx-apps/fix-compile-nsh_routecmds (pull request #118 )
...
Fixed the compilation of nsh_routecmds.c, broken after commit 6b9d23c6aa
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-03 12:28:19 +00:00
Gregory Nutt
7556eb3814
nshlib/: Fix some botched conditional compilation.
2017-11-02 17:13:49 -06:00
DL
bf209bcf1d
Fixed misprint in cmd_wget
2017-11-01 06:18:40 +03:00
Gregory Nutt
ef353ed632
Fix parsing of empty strings when CONFIG_NSH_CMDPARMS is not defined. Problem noted by Juha Niskanen.
2017-10-27 06:41:26 -06:00
Gregory Nutt
62f7838c5e
nshlib: Tighten up some conditional logic
2017-10-26 16:07:42 -06:00
Gregory Nutt
40d9701ea0
nshlib: Remove a dangling function that is no longer used after last mount/df chagnes
2017-10-26 13:38:30 -06:00
Gregory Nutt
1f1d114901
Update some comments
2017-10-26 13:31:57 -06:00
Gregory Nutt
3788928cbf
nshlib: df command no long uses the non-standard OS interface foreach_mountpoint(). No simply cats /proc/fs/blocks or /proc/fs/usage.
2017-10-26 13:28:37 -06:00
Gregory Nutt
20076688c2
nshlib: mount command no long uses the non-standard OS interface foreach_mountpoint(). No simply cats /proc/fs/mount when there are no arguments to the mount command.
2017-10-26 12:17:03 -06:00
Anthony Merlino
a8bf5718f5
apps/nshlib: ifconfig improvements
2017-10-24 17:26:17 -06:00
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
bccf0092a4
nshlib: Remove some dangling IPv4 ping logic. system/ping: Add DNS hostname support.
2017-10-23 09:59:03 -06:00
Gregory Nutt
ed9dd1db53
Update a README.txt file
2017-10-23 09:22:42 -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
976ce0550c
NSH: eliminate a warning
2017-09-27 12:05:19 -06:00
Masayuki Ishikawa
4822878990
nshlib/nsh_netcmds.c: Fix a compilation error when IPv4/IPv6 dual stack is enabled
2017-09-26 11:28:40 +09:00
Bruno Herrera
3fe720d1e2
Fixes for problems found by Coverity in the apps/ repository:
...
nshlib/nsh_parse.c: Avoid truncating the strcmp result into a unsigned char variable.
nshlib/nsh_netcmds.c: Check for valid hostip before using it.
nshlib/nsh_ddcmd.c: Fix resouce leak when 'if=' or 'of=' params are repeated in the command line. For example:
dd if=/dev/null if=/dev/zero of=/dev/null or
dd if=/dev/zero of=/dev/zero of=/dev/null
2017-09-25 07:34:34 -06:00
Gregory Nutt
cdf0528933
examples/dac: Lets use printf instead of _info in application code.
2017-09-01 07:39:39 -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
41ce937ed0
Changes to netlib and nsh so that you build build with PF_IEEE802154 enabled and 6LoWPAN disabled.
2017-08-20 09:09:47 -06:00
Gregory Nutt
767b29335c
Eliminate some warnings found in build testing.
2017-08-13 12:25:22 -06:00
Gregory Nutt
7a8561728c
The last change added .PRECIOUS: $(BIN) to everyway Makefile in hopes the libapps.a will not be deleted on Control-C (unproven so far). However, $(BIN) may contain back slashes in some build platforms and that causes problems for make: It can't handle the backslashes in the .PRECIOUS dependency list. $(BIN) replaced with ../../libapp.a, where the number of ../ depends on the depth of the Makefile in the apps/ source tree.
2017-08-13 11:03:17 -06:00
Gregory Nutt
a66da34f18
All Makefiles: Add .PRECIOUS: apps/libapps.a to every Makefile. Hopefully this will end awkward problems when you Control-C out of a build and libapps.a is deleted.
2017-08-13 09:35:14 -06:00
Gregory Nutt
970e98a902
Additional changes associated with last commit.
2017-08-12 12:11:22 -06:00
Gregory Nutt
90ebda9120
Eliminate another warning about an unused function
2017-08-12 12:09:01 -06:00
Gregory Nutt
1cdf4ad8d1
Fix a warning found in build testing
2017-08-12 11:14:30 -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
1e23b30afe
more issues with last change: netmask must be in network order.
2017-08-10 16:08:09 -06:00
Gregory Nutt
654d526a69
NSH addroute/delroute: Fix an indexing problem introduced with previous commit.
2017-08-10 11:40:12 -06:00
Gregory Nutt
52e4da1e41
NSH addroute and delroute: All expression of the netmask in IPv4 CIDR or IPv6 slash notation. This really reduces the pain of using the commands, especially for IPv6.
2017-08-10 10:30:20 -06:00
Gregory Nutt
f58768db3d
NSH library: Update addroute and delroute command. The would support either IPv4 or IPv6, but not both.
2017-08-10 09:15:44 -06:00
Gregory Nutt
3b8c97747d
netutils/netlib: Fix netlib_nodaddrconv() so that its return type is the same as other address conversion functions. NSH: Correct parsing of ifconfig so that you can specify the HW address without specifying the IP address.
2017-08-02 14:30:34 -06:00
Gregory Nutt
d6050d70a2
NSH library: Extend ifconfig command so that it can set variable length packet radio addresss.
2017-08-02 13:13:19 -06:00
Gregory Nutt
c343fc618e
apps/netutils/netlib: Add support for PktRadio IOCTL commands.
2017-08-02 12:40:50 -06:00
Gregory Nutt
7d0037b08a
NSH: Misc changes needed for PktRadio support.
2017-07-30 16:03:56 -06:00
Gregory Nutt
7441c5422f
Socket I/F: Cleanup for good CONFIG_NET_PKT build.
2017-07-14 13:43:04 -06:00
Masayuki Ishikawa
ef04aeaead
NSH library: Fix build break in nsh_command.c with IPv4/IPv6 dual stack.
2017-07-04 10:13:26 +09:00
Gregory Nutt
d81d9c419b
Eliminat a warning when both Ethernet and 6LoWPAN are enabled; improve some naming.
2017-07-02 11:28:12 -06:00
Gregory Nutt
28415d662b
netutils/telnetd and users of telnetd: Add support for IPv6.
2017-06-27 09:14:13 -06:00
Gregory Nutt
98204bad94
system/telnet: POLL must not be disabled in configuration. Telnet client port argument is no optional.
2017-06-27 07:46:16 -06:00
Gregory Nutt
9091716419
revise some of the state handling in the previous commit.
2017-06-26 18:16:05 -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
d5a897fa1b
Merge branch 'master' of bitbucket.org:nuttx/apps into ieee802154
2017-06-19 13:35:34 -06:00
Gregory Nutt
2f975e8f06
nshlib: fix size of 6LoWPAN extended address.
2017-06-19 09:47:17 -06:00
Oleg Evseev
f13d4125a4
Merged in lukegluke/apps (pull request #91 )
...
fix copy-paste typo in nsh_usbconsole.c
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-19 15:29:09 +00:00
Oleg Evseev
8ee1e79d03
fix copy-paste typo in nsh_usbconsole.c
2017-06-19 15:05:06 +00:00
Gregory Nutt
2bb14d854d
L should be capitalized in 6LoWPAN
2017-06-18 16:02:11 -06:00
Gregory Nutt
2e4740e6bb
i8sak: Missing newline in fprintf output
2017-06-18 11:28:36 -06:00
Gregory Nutt
9485744265
NSH network initialization: Do not set the IP address for 6loWPAN. The 6loWPAN stack uses IP address that derive from the ieee 802.15.4 addressing and cannot be (safely) configured by the user.
2017-06-17 11:31:04 -06:00
Gregory Nutt
22d9c69d87
NSH network configuration: Re-factor a function that has gotten too big and too complex.
2017-06-17 10:37:31 -06:00
Gregory Nutt
033b42789b
NSH: Fix some ieee 802.15.4 initialization logic. It should not set the saddr or panid; those cannot be hard-coded but must come from the coordinator.
2017-06-17 10:04:18 -06:00
Masayuki Ishikawa
41dee001ad
Merge branch 'master' into bug_fix_by_sony
2017-05-22 09:13:02 +09:00
Gregory Nutt
4e7b17d783
Fix some typos in comments.
2017-05-21 12:05:07 -06:00
Gregory Nutt
8c1446671c
apps/nshlib: Add a new option CONFIG_NSH_NETLOCAL that will suppress some built in operations and will support manual configuration of a wireless network
2017-05-21 12:00:55 -06:00
Simon Piriou
523d7645c4
wapi: add basic wapi_event_stream_extract implementation
2017-05-21 16:24:49 +02:00
Nobutaka Toyoshima
3a8cfb6c04
nshlib: Fix a resource leak in cmd_hexdump()
...
Jira: PDFW15IS-265
Coverity-ID: 10786
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-05-20 17:57:03 +09:00
Sebastien Lorquet
ea1025ead2
DHCPC: Remove hard-coded interface device. Now passed as a parameter to dhcpc_open().
2017-05-19 15:31:22 -06:00
Sebastien Lorquet
297844b1ce
Fix comments formatting
2017-05-19 17:50:26 +02:00
Sebastien Lorquet
aefddc3648
Second batch of changes (no problems)
2017-05-19 17:37:17 +02:00
Gregory Nutt
13911d9b17
Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they.
2017-05-11 13:40:03 -06:00
Gregory Nutt
1bad025c81
Cosmetic changes to comments
2017-05-11 07:46:08 -06:00
Gregory Nutt
5fbf2fd8d1
NSH wireless setup: Move call to nsh_associate(). It should be possible to associate with an AP when DHCPC is disabled.
2017-05-09 06:39:08 -06:00
Gregory Nutt
8380447e1a
Merge remote-tracking branch 'origin/master' into ieee802154
2017-05-08 14:31:54 -06:00
Gregory Nutt
0376019c35
WPA associate: NSH was not setting the algorithm parameter.
2017-05-08 13:28:08 -06:00
Gregory Nutt
6ec8e56f89
Merge remote-tracking branch 'origin/master' into ieee802154
2017-05-06 11:30:48 -06:00
Gregory Nutt
40a1fbf498
Forgot to add a file in the last commit.
2017-05-06 11:28:56 -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
44ace8e1cc
6loWPAN: Replace some Rime address naming with more consistent short/exended address terminology
2017-05-04 08:21:12 -06:00
Simon Piriou
33027bd66e
wireless/wext: Add drivers_wext from the WPA supplicant; Integrate into NSH
2017-05-02 09:43:48 -06:00
Gregory Nutt
a5c439777d
nshlib/nsh_netinit.c: If IEEE802.11 selected use wlan0 instead of eth0 for network device name.
2017-05-02 08:26:21 -06:00
Gregory Nutt
5b7f2b0ce2
Eliminate a warning
2017-04-29 08:52:10 -06:00
Gregory Nutt
08b2fee0fb
NSH: Needs to include tftp.h if TFTP no disabled
2017-04-29 08:42:26 -06:00
Ian McAfee
8007332ab1
I need to look at the registers that are at or around 0xe000ef90. Using mw and xd, I see that nsh does not support pointers greater than 0x7fffffff. A quick look at the source shows that the pointers for those two commands are set with calls to strtol() rather than strtoul(). Changing the two pointer-setting instances to strtoul() fixes the problem, at least for my architecture/config.
2017-04-26 17:54:56 -06:00
Gregory Nutt
ad608c705c
nshlib: nsh_netcmds.c should include netlib.h even if neither TCP nor UDP are enabled
2017-04-25 08:25:23 -06:00
Gregory Nutt
c2bdd49421
netlib and NSH: Add logic to set the IEEE802.15.4 PAN ID.
2017-04-19 18:10:39 -06:00
Masayuki Ishikawa
6b75120352
NSH library: Fix open flags in nsh_codeccmd.c
...
Jira: PDFW15IS-2824
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-04-19 16:12:44 +09:00
Gregory Nutt
775d1052a5
NSH set command: Eliminate useless argc check of SCRIPTS are enabled but ENVIRONMENT is disabled
2017-04-09 12:03:18 -06:00
Gregory Nutt
169bcab331
NSH: Eliminate warning about unused variable.
2017-04-09 11:54:59 -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
Gregory Nutt
194c2d86a8
6loWPAN: Add network IOCTL support to set the node address
2017-04-06 16:00:41 -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
eef0161dd4
examples/nettest: Trying to adapt to use for testing 6loWPAN.
2017-04-03 15:33:39 -06:00
Gregory Nutt
efa2de16a4
NSH: Fix some warnings about integer/pointer casts of different sizes (probably only effects 64-bit simulation)
2017-04-03 09:26:10 -06:00
Jussi Kivilinna
3e2743e826
nshlib: fix building when CONFIG_NET_USRSOCK enabled with other link-layer
2017-03-31 09:10:55 -06:00
Tomasz Wozniak
71b45ed2c2
built-in libc defect workaround: replace '%6.6u' format with an equivalent '%06u'
2017-03-21 09:39:51 +01:00
Gregory Nutt
2ef46ce4ba
NSH library: In nsh_argexand(), if CONFIG_NSH_ARGCAT is defined but CONFIG_NSH_CMDPARMS defined and/or CONFIG_DISABLE_ENVIRON not defined, then there is a situation that causes an infinite loop in the parser. Noted by Freddie Chopin.
2017-03-09 08:07:22 -06:00
Alan Carvalho de Assis
8e7ed15cce
NSHLIB uname command: Eliminate 'defined but not used' warning in some configurations
2017-03-07 15:36:18 -06:00
Alan Carvalho de Assis
d506939b59
NSHLIB ps command: Eliminate 'defined but not used' warning in some configurations
2017-03-07 15:10:17 -06:00
Gregory Nutt
a7e34f3b97
Make use of FAR storage class consistent
2017-02-27 07:54:21 -06:00
Gregory Nutt
fa4b047d35
Fix typo in last commit
2017-02-27 07:49:49 -06:00
Gregory Nutt
590791e12d
NSH: Eliminate a warning when all memory inspection commands are disabled.
2017-02-27 07:30:52 -06:00
Gregory Nutt
bab5df0966
Eliminate a warning about an unused variable.
2017-02-27 07:30:52 -06:00
Gregory Nutt
81645fe18f
strcasecmp, strncasecmp, bzero, bcmp, and bcopy should be defined in strings.h, not string.h. bzero, bcmp, and bcopy are legacy functions; the contemporary counterparts should be used instead.
2017-02-16 15:58:15 -06:00
Gregory Nutt
740b528199
apps/examples/stat: Add a simple test for stat(), fstat(), and statfs().
2017-02-13 14:08:19 -06:00
Gregory Nutt
bf9ca8868e
NSH: Both arguments of 'ln' command may be relative paths
2017-02-07 07:56:54 -06:00
Gregory Nutt
1a696b0367
Fix a memory leak in the 'ln' command when a failure occurs.
2017-02-06 10:20:29 -06:00
Gregory Nutt
7a0e08c37b
NSH: Add readlink command.
2017-02-05 10:35:11 -06:00
Gregory Nutt
bb81a3d11d
NSH ls command: if node is a symobolic link, use readlink() to get and the display the target of the symblic link.
2017-02-03 14:13:25 -06:00
Gregory Nutt
9fbca32710
Soft links: Fixed logic in RTOS. Remove NSH kludge of last commit.
2017-02-03 13:23:27 -06:00
Gregory Nutt
51f71304d1
NSH: Extend ls command to show type of symbolic link.
2017-02-03 11:21:37 -06:00
Gregory Nutt
2ac55ec4e7
NSH: Add support for the 'ln' command.
2017-02-02 19:40:59 -06:00
Gregory Nutt
d195751a90
Update NSH and examples/modules for changes in kernel module interface.
2017-01-22 15:11:49 -06:00
Masayuki Ishikawa
4bf85f7c7b
NSH: dd command will show statistics
2016-12-19 18:33:34 -06:00
Gregory Nutt
9b951b4dd8
apps/nshlib: nsh_getdirpath(), use snprint instead of sprintf to avoid possibility of buffer overrun. Noted by Chung Hwan Kim.
2016-10-11 17:35:31 -06:00
Gregory Nutt
2c8ac4440a
apps/nshlib: Don't try to flush output streams if stdio buffered I/O is not supported.
2016-10-06 08:36:15 -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
Neil Hancock
7fc401d3c1
Correct an assertion
2016-09-12 07:26:37 -06:00
Aleksandr Vyhovanec
e832e73b99
nshlib/: Fix missing semicolon; include string.h.
2016-09-05 07:05:17 -06:00
Gregory Nutt
8cfa1dbd3b
The previous commit was reverted. My concern was misplaced: There is a guard boolean to prevent running the init script more than once. This comment just restores some of the good cosmetic changes that were included in the reverted commit.
2016-08-25 14:28:25 -06:00
Gregory Nutt
4eda22b4db
Revert "This commit adds nsh_consolechild(). I noticed that there are several examples that call nsh_consolemain.c to create to create a new NSH session. That will not always work because nsh_consolemain() performs the one-time initialization needed by the NSH library: Mounting, reading, and running the start-up script, configuring USB tracing. Some of those actions will cause failures if attempted twice."
...
This reverts commit 4d364d836a
.
2016-08-25 14:19:36 -06:00
Gregory Nutt
4d364d836a
This commit adds nsh_consolechild(). I noticed that there are several examples that call nsh_consolemain.c to create to create a new NSH session. That will not always work because nsh_consolemain() performs the one-time initialization needed by the NSH library: Mounting, reading, and running the start-up script, configuring USB tracing. Some of those actions will cause failures if attempted twice.
...
Here are some offenders: examples/cc3000/shell.c, examples/nsh/nsh_main.c, examples/nxterm/nxterm_main.c, and examples/pty_test/pty_test.c. It is possible that for some of those, that represents the first call to nsh_consolemain(). But probably not.
To give other initialization options, I added nsh_consolechild() which is identical to nsh_consolemain() other than it omits all of the one-time initialization. Of course, you would not get the result that you wanted if nsh_consolechild() were called without nsh_consolemain().
2016-08-25 14:14:23 -06:00
Gregory Nutt
e39cfc97c7
Add logic to support an NSH-specific system command
2016-08-25 11:34:36 -06:00
Mateusz Szafoni
6ff8074532
apps/nshlib/nsh_syscmds.c: missing semicolon
2016-08-25 14:26:33 +02:00
Gregory Nutt
c9378ef87e
Fix hex representation of IP address. Also noted by Michał Łyszczek
2016-08-19 06:35:29 -06:00
Gregory Nutt
b9d56991f3
Update some comments. Remove trailing whitespace noted by Michał Łyszczek
2016-08-19 06:25:42 -06:00
Gregory Nutt
823b8c3981
FIFO_SIZE vs PIPE_SIZE
2016-08-04 16:25:47 -06:00
Gregory Nutt
fff8a91e52
Oops, wrong kind of comments
2016-08-04 13:32:19 -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
d5b7268d95
ramdisk.h moved from include/fs/nuttx/ to include/nuttx/drivers.
2016-07-20 14:02:41 -06:00
Gregory Nutt
7d517413cb
Things that use mkfifo() and pipe() depend on CONFIG_PIPES
2016-07-20 10:46:05 -06:00
Gregory Nutt
b1230ce87a
NSH: Eliminate a warning about discarding const
2016-07-15 08:31:47 -06:00
David Alessio
f48b3c73b0
When Priority Inheritance is enabled, the format of /proc/<PID>/status changes to show both the current priority and the thread’s base priority. This messes up the format of cmd_ps.
...
The attached patch fixes cmd_ps to ignore the base priority.
2016-07-15 07:01:02 -06:00
Gregory Nutt
dd7c4c9493
NSH library: Don't show stack usage is CONFIG_STACK_COLORATION is not enabled.
2016-07-13 07:06:32 -06:00
David Alessio
1d8ef23b88
Use fixed point math for cmd_ps removing dependency on floating point libs.
2016-07-12 06:48:30 -06:00
Sebastien Lorquet
2cbad44f1d
This is the Pokemon patch to change all includes fronm <apps/bla/bla.h> to "bla/bla.h"
2016-07-11 10:11:18 -06:00
David Alessio
63ff107419
Fix a typo a a preceding change.
2016-07-11 06:56:34 -06:00
David Alessio
f553fd1316
Recent enhancements to cmd_ps trips a floating point exception if LIBC_FLOATINGPOINT is not defined (at least on Cortex M4 w/ hardfloat). I’m using a buildroot gcc configured to support Cortex-M4F and the hard float ABI, target files are compiles with: -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard. I’m not sure the best way to address this, but the attached patch file is the first that comes to mind. Note, I added the float qualifier ‘F’ after a few constants to prevent the compiler from promoting the multiplication and division to double (expensive on M4F) then demoting to single float for the store. (sorry, it’s one of my many pet peeves ;)
...
`
2016-07-10 17:49:58 -06:00
David Sidrane
6eab2b7811
Take 2
2016-07-01 09:45:00 -10:00
Gregory Nutt
97e41cdcc5
Add a missing blank line
2016-07-01 13:27:15 -06: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
f48a813e0e
Move apps/include/builtin.h to apps/include/builtin/builtin.h
2016-07-01 07:08:03 -06: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
cd741c82cf
apps/include: Move all header files associated with modules in apps/system to apps/include/system
2016-07-01 06:48:22 -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
Frank Benkert
65e050dbfb
NSH: PS-Command: print out the stack usage if stack coloration is enabled.
2016-06-30 07:28:42 -06:00
Gregory Nutt
0559581b91
Trivial changes after review of PR
2016-06-27 11:36:34 -06:00
Mateusz Szafoni
d93e8e5c17
Remove references to CONFIG_SYSLOG
2016-06-27 18:39:55 +02: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
fa4cd10d33
Trivial modification of debug statement
2016-06-23 08:05:06 -06:00
Gregory Nutt
bb06f7368f
Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info().
2016-06-20 11:48:15 -06:00
Gregory Nutt
5098539063
Add _ to front of remaining debug macros
2016-06-16 12:12:34 -06:00
Gregory Nutt
cc03ecefc8
Rename err() to _err()
2016-06-16 11:44:22 -06:00
Gregory Nutt
65899c99e6
apps/nshlib: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
2016-06-14 14:18:07 -06:00
Gregory Nutt
586b0aa7e0
Change names of *dbg() * *err()
2016-06-11 15:51:27 -06:00
Gregory Nutt
f4bae25e32
Rename *lldbg to *llerr
2016-06-11 14:55:13 -06:00