You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/09/13 22:42:20 UTC
[GitHub] [incubator-nuttx] acassis commented on issue #7086: Any chance of getting netcat working on Nuttx 8.2?
acassis commented on issue #7086:
URL: https://github.com/apache/incubator-nuttx/issues/7086#issuecomment-1246020006
Hi @greg5678 unfortunately you cannot just copy a new directory from apps to old NuttX version neither vice-versa.
You need to adapt the Makefile/Make.defs/Kconfig and even the source file C (in the past was name_main() now is just main() name), after that you will get:
```
$ telnet 192.168.0.16
Trying 192.168.0.16...
Connected to 192.168.0.16.
Escape character is '^]'.
NuttShell (NSH)
nsh> ?
help usage: help [-v] [<cmd>]
[ cmp free mb pwd time
? dirname help mkdir rm true
arp dd hexdump mh rmdir uname
basename df ifconfig mount set umount
break echo ifdown mv sh unset
cat exec ifup mw sleep usleep
cd exit kill nslookup test xd
cp false ls ps telnetd
Builtin Apps:
netcat
wapi
nsh>
```
Kconfig: https://pastebin.com/raw/pU7urzR1
Make.defs: https://pastebin.com/raw/LTkeEmLq
Makefile: https://pastebin.com/raw/JPNGPrTh
Edite the netcat_main.c and rename the main function to netcat_main
Good luck!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org