1# Copyright (c) 2020 O.S.Systems
2# SPDX-License-Identifier: Apache-2.0
3
4# Disable default configs
5CONFIG_BT=n
6
7CONFIG_NET_L2_ETHERNET=n
8CONFIG_NET_L2_IEEE802154=n
9
10CONFIG_NET_IPV4=n
11CONFIG_NET_DHCPV4=n
12CONFIG_NET_TCP=n
13
14# Use NVS as settings backend
15CONFIG_NVS=y
16
17# Enable OpenThread network
18CONFIG_NET_L2_OPENTHREAD=y
19
20CONFIG_OPENTHREAD_DEBUG=y
21CONFIG_OPENTHREAD_L2_DEBUG=y
22CONFIG_OPENTHREAD_L2_LOG_LEVEL_INF=y
23
24# Enable OpenThread shell
25CONFIG_SHELL=y
26CONFIG_OPENTHREAD_SHELL=y
27
28# This follows https://openthread.io/guides/border-router guides
29# It uses the default values from otbr-web page
30CONFIG_OPENTHREAD_PANID=4660
31CONFIG_OPENTHREAD_CHANNEL=15
32CONFIG_OPENTHREAD_NETWORK_NAME="OpenThreadDemo"
33CONFIG_OPENTHREAD_XPANID="0x1111111122222222"
34CONFIG_OPENTHREAD_JOINER=y
35CONFIG_OPENTHREAD_JOINER_AUTOSTART=y
36CONFIG_OPENTHREAD_JOINER_PSKD="J01NU5"
37CONFIG_OPENTHREAD_SLAAC=y
38
39CONFIG_NET_IPV6_NBR_CACHE=n
40CONFIG_NET_IPV6_MLD=n
41
42# mbedTLS tweaks
43CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=768
44
45# UpdateHub
46CONFIG_MAIN_STACK_SIZE=8192
47CONFIG_UPDATEHUB_COAP_BLOCK_SIZE_EXP=2
48
49# Only tested with 6to4
50#
51#######################
52CONFIG_DNS_SERVER_IP_ADDRESSES=y
53# Add google IPv4 DNS Server
54# https://www.ultratools.com/tools/ipv4toipv6Result?address=8.8.8.8
55# Mapped Address: 0:0:0:0:0:ffff:808:808
56# Extract value                 >808:808<
57# Add prefix        64:ff9b::
58CONFIG_DNS_SERVER1="64:ff9b::808:808"
59# Repeat the above step with your server IPv4 address translated to IPv6
60CONFIG_UPDATEHUB_SERVER="<your server ip address>"
61