Ethernet Over USB net helper script and docs

- for CDC ECM driver

Squashed commit of the following:

commit aa9a715498e15ad46d43318a663d296f38160cf8
Author: Adam Feuer <adam@starcat.io>
Date:   Mon Feb 24 16:42:52 2020 -0800

    code formatting; removed ping

commit 56520b7f7e2b7f03697eacc2f2b5450b0f7af676
Author: Adam Feuer <adam@starcat.io>
Date:   Mon Feb 24 16:42:32 2020 -0800

    add description of netusb.sh helper script

commit afee3d33b1e66138afb7e9713d86b765ceab55b0
Author: Adam Feuer <adam@starcat.io>
Date:   Mon Feb 24 16:41:40 2020 -0800

    readme formatting

commit 772e36021f4aee2ba1df408ad29d8b9adedeed9f
Author: Adam Feuer <adam@starcat.io>
Date:   Sun Feb 23 11:38:50 2020 -0800

    updated readme, removed redundant configs

commit 082785178aa6e0d1578034b4b163785fdcb61f22
Author: Adam Feuer <adam@starcat.io>
Date:   Sat Feb 22 17:40:05 2020 -0800

    README, defconfig, and helper script improvements
This commit is contained in:
Adam Feuer
2020-02-24 16:44:51 -08:00
committed by Xiang Xiao
parent 90eed5c8f8
commit 511e548613
5 changed files with 193 additions and 201 deletions
+19
View File
@@ -787,6 +787,25 @@ mkdeps.c, cnvwindeps.c, mkwindeps.sh, and mknulldeps.sh
eventually be solvable but for now continue to use mkwindeps.sh in
that mixed environment.
netusb.sh
---------
Helper script used to set up the CDC ECM Ethernet Over USB driver,
host routes, and IP Tables rules to support networking with a NuttX
system that has a CDC ECM Ethernet Over USB driver configured. Only
supported on Linux.
General usage:
$ ./tools/netusb.sh
Usage: tools/netusb.sh <main-interface> <usb-net-interface> <on|off>
This has been tested on the SAMA5D3-Xplained board; see
`boards/arm/sama5/sama5d3-xplained/README.txt` for more information on how
to configure the CDC ECM driver for that board.
README.txt
----------