improve native README
This commit is contained in:
parent
1505730589
commit
944d10c07d
@ -11,6 +11,27 @@ CFLAGS="-DHAVE_VALGRIND_VALGRIND_H" make
|
|||||||
That way native can tell valgrind about RIOTs stacks and prevent
|
That way native can tell valgrind about RIOTs stacks and prevent
|
||||||
valgrind from reporting lots of false positives.
|
valgrind from reporting lots of false positives.
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
Simply pass the ordinary command to valgrind like this:
|
||||||
|
|
||||||
|
valgrind ./bin/RIOT.elf tap0
|
||||||
|
|
||||||
|
This will yield some information whenever valgrind detects an invalid
|
||||||
|
memory access.
|
||||||
|
|
||||||
|
In order to debug the program when this occurs you can pass the
|
||||||
|
--db-attach parameter to valgrind like this:
|
||||||
|
|
||||||
|
valgrind --db-attach=yes ./bin/RIOT.elf tap0
|
||||||
|
|
||||||
|
Now, you will be asked whether you would like to attach the running
|
||||||
|
process to gdb whenever a problem occurs.
|
||||||
|
|
||||||
|
In order for this to work under Linux 3.4 or newer, you might need to
|
||||||
|
disable the ptrace access restrictions:
|
||||||
|
As root call:
|
||||||
|
|
||||||
|
echo 0 > /proc/sys/kernel/yama/ptrace_scope
|
||||||
|
|
||||||
|
|
||||||
NETWORK SUPPORT
|
NETWORK SUPPORT
|
||||||
@ -18,6 +39,7 @@ NETWORK SUPPORT
|
|||||||
|
|
||||||
If you compile RIOT for the native cpu and include the native_net
|
If you compile RIOT for the native cpu and include the native_net
|
||||||
module, you need to specify a network interface like this:
|
module, you need to specify a network interface like this:
|
||||||
|
|
||||||
./bin/default-native.elf tap0
|
./bin/default-native.elf tap0
|
||||||
|
|
||||||
|
|
||||||
@ -29,8 +51,11 @@ can use to create a network of tap interfaces.
|
|||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
To create a bridge and two (or count at your option) tap interfaces:
|
To create a bridge and two (or count at your option) tap interfaces:
|
||||||
|
|
||||||
./tapsetup.sh create [count]
|
./tapsetup.sh create [count]
|
||||||
|
|
||||||
To delete the bridge and all tap interfaces:
|
To delete the bridge and all tap interfaces:
|
||||||
|
|
||||||
./tapsetup.sh delete
|
./tapsetup.sh delete
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user