1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/ethos
Martine S. Lenders 21807d40a5
start_networking.sh: add capability to not start uhcpd
As we now also support DHCPv6 we might want to use the setup-routine of
start_networking.sh but not start the UHCP server.
2020-02-26 12:40:03 +01:00
..
.gitignore dist/tools/ethos: add .gitignore for ethos 2016-02-17 11:38:53 +01:00
ethos.c tools/ethos: fix compilation warning in strncpy 2019-11-26 16:26:35 +01:00
LICENSE dist: add ethos UNIX tool 2016-02-07 19:15:15 +01:00
Makefile dist: ethos: add clean target 2016-04-11 17:03:28 +02:00
README.md dist/tools/ethos: add setup_network.sh script 2019-07-15 12:33:11 +02:00
setup_network.sh dist/tools/ethos: add setup_network.sh script 2019-07-15 12:33:11 +02:00
start_network.sh start_networking.sh: add capability to not start uhcpd 2020-02-26 12:40:03 +01:00

Requirements

  • currently, the host side only compiles on Linux

Usage

To use, add

#
GNRC_NETIF_NUMOF := 2
USEMODULE += stdio_ethos gnrc_netdev
CFLAGS += '-DETHOS_UART=UART_DEV(0)' -DETHOS_BAUDRATE=115200

to app Makefile, "make clean all flash", then run this tool as follows: # sudo ./ethos

setup_network.sh

This script sets up a tap device, configures a prefix and starts a uhcpd server serving that prefix towards the tap device. The tap device will be owned by the calling user, or if called with sudo, with the user that uses sudo. That way, ethos can use it without being root / using sudo.

E.g., use as follows:

$ sudo ./setup_network.sh riot0 2001:db8::0/64

Keep that running, then in another shell start ethos:

$ ethos riot0 <serial>