1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

28621 Commits

Author SHA1 Message Date
Leandro Lanzieri
08ace5a353
boards/Kconfig: Declare common board symbol 2020-04-08 17:37:06 +02:00
Leandro Lanzieri
9ebfcdaa10
Kconfig: Include BOARD and CPU Kconfig files if present 2020-04-08 17:37:05 +02:00
Leandro Lanzieri
4ae944bac2
makefiles/kconfig: Output out.config with generated configuration
'merged.config' may not always be present (e.g. when no files to merge
are present). In order to always have an up-to-date configuration file
'out.config' will be generated mirroring the content of 'autoconf.h'.
This is the file that the build system will include to read the current
configuration symbols.
2020-04-08 17:37:05 +02:00
benpicco
45afaa0faf
Merge pull request #13716 from benpicco/Makefile.features-cpu
Makefile.features: provide CPU as a feature
2020-04-08 16:43:29 +02:00
Leandro Lanzieri
dddeb54e7d
usbus/cdc/ecm: Expose configurations to Kconfig 2020-04-08 16:31:46 +02:00
Leandro Lanzieri
8b857844fc
usbus/cdc/ecm: Move USBUS_CDC_ECM_CONFIG_SPEED to 'CONFIG_' 2020-04-08 16:30:58 +02:00
Leandro Lanzieri
335b0ceb50
usbus/cdc/ecm: Move USBUS_CDC_ECM_CONFIG_SPEED_UPSTREAM to 'CONFIG_' 2020-04-08 16:27:04 +02:00
Leandro Lanzieri
88e50658f3
usbus/cdc/ecm: Move USBUS_CDC_ECM_CONFIG_SPEED_DOWNSTREAM to 'CONFIG_' 2020-04-08 16:24:59 +02:00
Leandro Lanzieri
037f746120
Merge pull request #13836 from miri64/tests/enh/gnrc_rpl_srh-asyncsniffer
gnrc_rpl_srh: use AsyncSniffer for sniffing
2020-04-08 15:56:47 +02:00
Dylan Laduranty
f9a4c509b1
Merge pull request #13797 from benpicco/cpu/samd21-pwm
cpu/samd21: pwm: allow to use channels > 3
2020-04-08 15:45:22 +02:00
Martine S. Lenders
bb947f750a gnrc_rpl_srh: use AsyncSniffer for sniffing
The sniffer in `tests/gnrc_rpl_srh` always had stability issues, since
it uses some badly synchronized threading of mine. Since v2.4.3 scapy
has its own [asynchronous sniffer] (which is already used in
`tests/gnrc_dhcpv6_client_6lbr`), so I ported my sniffer implementation
to use that instead.

[asynchronous sniffer]: https://scapy.readthedocs.io/en/latest/usage.html#asynchronous-sniffing
2020-04-08 15:36:34 +02:00
Benjamin Valentin
4d90a9c6b5 cpu/samd21: pwm: fix GCLK_ID & APBCMASK calculation
GCLK_ID and APBCMASK entries are not always uniform.
The previous hack would already break for TCC3.

Just explosively write down the cases, there are only 5 at most.
2020-04-08 15:24:05 +02:00
benpicco
ecd266f3d3
Merge pull request #13801 from miri64/tools/fix/start_network-interface-init
dist/tools/*/start_network.sh: ensure TUN/TAP interface
2020-04-08 12:51:03 +02:00
Martine Lenders
6ef0bf9410
Merge pull request #13835 from miri64/tests/fix/gnrc_netif_single
tests: fix for `GNRC_NETIF_SINGLE`
2020-04-08 12:03:55 +02:00
Martine S. Lenders
9bf0a2253a
tests/gnrc_sock_dns: set GNRC_NETIF_SINGLE 2020-04-08 11:11:41 +02:00
a5cf43da09
Merge pull request #13800 from benpicco/pkg/littlefs2-2.2
pkg/littlefs2: bump version to 2.2
2020-04-08 10:53:33 +02:00
14706d7423
Merge pull request #13243 from leandrolanzieri/pr/kconfig_migrate/net/nanocoap
net/nanocoap: Expose configurations to Kconfig
2020-04-08 10:51:54 +02:00
Leandro Lanzieri
1f24698a2a
Merge pull request #13792 from benpicco/pkg/nanopb-fixes
pkg/nanopb: fix for proto files with includes
2020-04-08 10:37:20 +02:00
Francisco
3b423a959d
Merge pull request #13194 from aabadie/pr/board/arduino-nano-33-ble
board/arduino-nano-33-ble: add initial support
2020-04-08 10:26:06 +02:00
Benjamin Valentin
7227b00b97 pkg/nanopb: extend the documentation 2020-04-08 10:18:56 +02:00
Martine Lenders
475048ab2f
Merge pull request #13833 from benpicco/dist/tools/sliptty-fix
gnrc_dhcpv6_client: fix for SLIP link-layer
2020-04-08 10:05:02 +02:00
239e0806b8
examples/default: add arduino-nano-33-ble to netif list 2020-04-08 09:59:22 +02:00
1f9ff9e767
makefiles/bossa: only use ROM_OFFSET with version 1.9 2020-04-08 09:58:21 +02:00
1aa6ce901e
dist/tools: add bossa version for nrf52 2020-04-08 09:58:21 +02:00
6d38a232d3
boards/arduino-nano-33-ble: initial support 2020-04-08 09:58:21 +02:00
75c6c389d0
Merge pull request #13276 from aabadie/pr/boards/adafruit-clue
boards/adafruit-clue: add initial support
2020-04-08 09:50:05 +02:00
04f890fa8b
tests: handle cases for bootloader_nrfutil blacklist 2020-04-08 09:35:08 +02:00
a12aeca9df
makefiles/stdio: handle case for bootloader_nrfutil blacklist 2020-04-08 09:35:08 +02:00
96cf9ac754
examples/default: add adafruit-clue to netif boards 2020-04-08 09:35:08 +02:00
6ba3b8b023
boards/adafruit-clue: add initial support 2020-04-08 09:35:08 +02:00
ebd1e8f016
makefiles/tools: add support for nrfutil 2020-04-08 09:35:08 +02:00
Leandro Lanzieri
56dc53a486
Merge pull request #13829 from kb2ma/nanocoap/remove_query_add_opts
net/nanocoap: remove obsolete functions for addition of Uri-Query option
2020-04-08 09:20:04 +02:00
Benjamin Valentin
f198d689be gnrc_dhcpv6_client: fix for SLIP link-layer
In a point-to-point serial connection, we don't have L2 addresses.
Set the link type & packet length accordingly and we will get a
prefix from KEA.
2020-04-07 22:08:57 +02:00
Martine Lenders
7e329189f0
Merge pull request #13832 from benpicco/dist/tools/sliptty-fix
sliptty/start_network.sh: fix with DHCPv6
2020-04-07 21:57:23 +02:00
Benjamin Valentin
079aea8775 sliptty/start_network.sh: fix with DHCPv6
The `start_network.sh` script creates a `${TUN}` interface, so
the `${TAP}` variable will always be empty.

This means start_dhcpd() will always fail as the DHCPv6 script is lacking
an interface.
2020-04-07 21:15:07 +02:00
Martine Lenders
d8045abdb6
Merge pull request #13830 from benpicco/dist/tools/sliptty-fix
sliptty/start_network.sh: don't default to DHCPv6
2020-04-07 20:42:14 +02:00
Benjamin Valentin
0e4fa19bda sliptty/start_network.sh: don't default to DHCPv6
DHCPv6 is enabled by the `-d` option.
It should not be enabled in absence of this option.
2020-04-07 20:12:53 +02:00
Ken Bannister
1ff78879ff net/nanocoap: remove obsolete functions to add Uri-Query option 2020-04-07 12:17:41 -04:00
Leandro Lanzieri
bc8bee4b17
Merge pull request #13714 from aabadie/pr/boards/stm32l4_common_clock
boards/stm32l4: add common clock configuration
2020-04-07 18:08:44 +02:00
Sören Tempel
65c7bbf76d gnrc_sock: Implement termination condition for fuzzing
The termination condition implemented in gnrc_pktbuf_malloc does not
work when using the sock interface as sock copies packet data to a local
buffer and frees the packet afterwards. As such, the fuzzing application
would exit before performing any input processing.

For this reason, the termination condition in gnrc_pktbuf_malloc is
disabled when using sock. Instead, the application terminates if
gnrc_sock_recv previously returned the fuzzing packet. The underlying
assumption of this implementation is that gnrc_sock_recv is called in a
loop.
2020-04-07 17:48:39 +02:00
Sören Tempel
e0570181e4 gnrc_pktbuf_malloc: Terminate when fuzzing packet is freed
Since RIOT is an operating system the native binary will never terminate
[0]. The termination condition for fuzzing GNRC is that the packet was
handled by the network stack and therefore freed. If it is never freed
we will deadlock meaning a memory leak was found, afl should be able to
detect this through timeouts.

This is currently only supported for gnrc_pktbuf_malloc since this is
the pktbuf implementation I used for fuzzing. Implementing this in
pktbuf.h is not possible.

[0]: Except NATIVE_AUTO_EXIT is defined, however, even with that define
set RIOT will only terminate when all threads terminated. Unfortunately,
gnrc_udp and other network threads will never terminate.
2020-04-07 17:48:39 +02:00
Sören Tempel
9e72f717e0 sys/fuzzing: Initialize
This adds a utility module which is used to write applications for
fuzzing RIOT network modules. The module provides a dummy network
interface which is configured with a static IPv6 addresses for modules
which perform operations on the underlying network interface. Besides,
it contains a utility function for transforming data received on
standard input into a `gnrc_pktsnip_t`.
2020-04-07 17:48:39 +02:00
9cc338d29e
boards/nucleo-l4*: use shared clock configuration 2020-04-07 17:42:56 +02:00
73615d690d
boards/stm32l4: introduce common clock configuration 2020-04-07 17:42:56 +02:00
Leandro Lanzieri
0137a06896
net/nanocoap: Expose configurations to Kconfig 2020-04-07 17:00:55 +02:00
Leandro Lanzieri
e80dcf2d8b
net/application_layer: Add Kconfig file and CoAP menu 2020-04-07 17:00:54 +02:00
Leandro Lanzieri
b6be8af81c
net/nanocoap: Move NANOCOAP_QS_MAX to 'CONFIG_' namespace 2020-04-07 17:00:53 +02:00
Leandro Lanzieri
2f72189aa2
net/nanocoap: Move NANOCOAP_BLOCK_SIZE_EXP_MAX to 'CONFIG_' namespace 2020-04-07 17:00:53 +02:00
Leandro Lanzieri
4052c01e85
net/nanocoap: Move NANOCOAP_URI_MAX to 'CONFIG_' namespace 2020-04-07 17:00:53 +02:00
Leandro Lanzieri
c84576ef6e
net/nanocoap: Move NANOCOAP_NOPTS_MAX to 'CONFIG_' namespace 2020-04-07 17:00:52 +02:00