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# Enable OpenThread network
15CONFIG_NET_L2_OPENTHREAD=y
16
17CONFIG_OPENTHREAD_DEBUG=y
18CONFIG_OPENTHREAD_L2_DEBUG=y
19CONFIG_OPENTHREAD_L2_LOG_LEVEL_INF=y
20
21# Enable OpenThread shell
22CONFIG_SHELL=y
23CONFIG_OPENTHREAD_SHELL=y
24
25# This follows https://openthread.io/guides/border-router guides
26# It uses the default values from otbr-web page
27CONFIG_OPENTHREAD_PANID=4660
28CONFIG_OPENTHREAD_CHANNEL=15
29CONFIG_OPENTHREAD_NETWORK_NAME="OpenThreadDemo"
30CONFIG_OPENTHREAD_XPANID="0x1111111122222222"
31CONFIG_OPENTHREAD_JOINER=y
32CONFIG_OPENTHREAD_JOINER_AUTOSTART=y
33CONFIG_OPENTHREAD_JOINER_PSKD="J01NU5"
34CONFIG_OPENTHREAD_SLAAC=y
35
36CONFIG_NET_IPV6_NBR_CACHE=n
37CONFIG_NET_IPV6_MLD=n
38
39# mbedTLS tweaks
40CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=768
41
42# UpdateHub
43CONFIG_MAIN_STACK_SIZE=8192
44CONFIG_UPDATEHUB_COAP_BLOCK_SIZE_EXP=2
45
46# Only tested with 6to4
47#
48#######################
49CONFIG_DNS_SERVER_IP_ADDRESSES=y
50# Add google IPv4 DNS Server
51# https://www.ultratools.com/tools/ipv4toipv6Result?address=8.8.8.8
52# Mapped Address: 0:0:0:0:0:ffff:808:808
53# Extract value                 >808:808<
54# Add prefix        64:ff9b::
55CONFIG_DNS_SERVER1="64:ff9b::808:808"
56# Repeat the above step with your server IPv4 address translated to IPv6
57CONFIG_UPDATEHUB_SERVER="<your server ip address>"
58