1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/ethos
2022-04-22 22:22:28 +02:00
..
.gitignore dist/tools/ethos: add .gitignore for ethos 2016-02-17 11:38:53 +01:00
ethos.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02: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 gnrc_netif: remove GNRC_NETIF_NUMOF macro 2020-03-26 11:12:23 +01:00
setup_network.sh dist/tools: provide DHCPv6 server support for network setup scripts 2020-04-03 17:47:39 +02:00
start_network.sh tools/ethos: add support for radvd / auto_subnets 2022-04-22 22:22:28 +02:00

Requirements

  • currently, the host side only compiles on Linux

Usage

To use, add

#
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>