Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running ./script/setup in Build and install OTBR #2273

Closed
DSimeone1989 opened this issue May 3, 2024 · 17 comments
Closed

Error running ./script/setup in Build and install OTBR #2273

DSimeone1989 opened this issue May 3, 2024 · 17 comments

Comments

@DSimeone1989
Copy link

Describe the bug A clear and concise description of what the bug is.
Dear all,
I try to follow this guide: https://openthread.io/codelabs/openthread-border-router#1
And unfortunately I am having issues with ./script/setup / INFRA_IF_NAME=wlan0 ./script/setup.
I get following error and do not know what to do or to enable.

Console/log output If applicable, add console/log output to help explain your problem.

Running ./script/setup

dsimeone1@RPi1:~/ot-br-posix $ ./script/setup
+++ dirname ./script/setup
++ cd ./script/..
++ [[ ! -n '' ]]
++ grep -s 'BeagleBone Black' /sys/firmware/devicetree/base/model
++ case "${OSTYPE}" in
++ have_or_die lsb_release
++ have lsb_release
++ command -v lsb_release
+++ lsb_release -i
+++ cut -c17-
+++ tr '[:upper:]' '[:lower:]'
++ PLATFORM=debian
++ echo 'Current platform is debian'
Current platform is debian
++ with BORDER_ROUTING
++ local value
+++ printenv BORDER_ROUTING
++ value=
++ [[ -z '' ]]
++ [[ -f examples/platforms/debian/default ]]
+++ . examples/platforms/debian/default
++++ NAT64=0
++++ DNS64=0
++++ DHCPV6_PD=0
++++ NETWORK_MANAGER=0
++++ BACKBONE_ROUTER=1
++++ BORDER_ROUTING=1
++++ REST_API=1
+++ eval echo '${BORDER_ROUTING-}'
++++ echo 1
++ value=1
++ [[ 1 == 1 ]]
++ with DHCPV6_PD
++ local value
+++ printenv DHCPV6_PD
++ value=
++ [[ -z '' ]]
++ [[ -f examples/platforms/debian/default ]]
+++ . examples/platforms/debian/default
++++ NAT64=0
++++ DNS64=0
++++ DHCPV6_PD=0
++++ NETWORK_MANAGER=0
++++ BACKBONE_ROUTER=1
++++ BORDER_ROUTING=1
++++ REST_API=1
+++ eval echo '${DHCPV6_PD-}'
++++ echo 0
++ value=0
++ [[ 0 == 1 ]]
++ with BORDER_ROUTING
++ local value
+++ printenv BORDER_ROUTING
++ value=
++ [[ -z '' ]]
++ [[ -f examples/platforms/debian/default ]]
+++ . examples/platforms/debian/default
++++ NAT64=0
++++ DNS64=0
++++ DHCPV6_PD=0
++++ NETWORK_MANAGER=0
++++ BACKBONE_ROUTER=1
++++ BORDER_ROUTING=1
++++ REST_API=1
+++ eval echo '${BORDER_ROUTING-}'
++++ echo 1
++ value=1
++ [[ 1 == 1 ]]
++ with NETWORK_MANAGER
++ local value
+++ printenv NETWORK_MANAGER
++ value=
++ [[ -z '' ]]
++ [[ -f examples/platforms/debian/default ]]
+++ . examples/platforms/debian/default
++++ NAT64=0
++++ DNS64=0
++++ DHCPV6_PD=0
++++ NETWORK_MANAGER=0
++++ BACKBONE_ROUTER=1
++++ BORDER_ROUTING=1
++++ REST_API=1
+++ eval echo '${NETWORK_MANAGER-}'
++++ echo 0
++ value=0
++ [[ 0 == 1 ]]
++ STAGE_DIR=/home/dsimeone1/ot-br-posix/stage
++ BUILD_DIR=/home/dsimeone1/ot-br-posix/build
++ [[ -d /home/dsimeone1/ot-br-posix/stage ]]
++ [[ -d /home/dsimeone1/ot-br-posix/build ]]
++ export PATH=/home/dsimeone1/ot-br-posix/stage/usr/bin:/home/dsimeone1/ot-br-posix/stage/usr/sbin:/home/dsimeone1/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/dsimeone1/n/bin:/home/dsimeone1/.local/bin:/home/dsimeone1/.local/bin
++ PATH=/home/dsimeone1/ot-br-posix/stage/usr/bin:/home/dsimeone1/ot-br-posix/stage/usr/sbin:/home/dsimeone1/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/dsimeone1/n/bin:/home/dsimeone1/.local/bin:/home/dsimeone1/.local/bin
+++ basename ./script/setup
++ TASKNAME=setup
++ BEFORE_HOOK=examples/platforms/debian/before_setup
++ AFTER_HOOK=examples/platforms/debian/after_setup
++ [[ ! -f examples/platforms/debian/before_setup ]]
++ BEFORE_HOOK=/dev/null
++ [[ ! -f examples/platforms/debian/after_setup ]]
++ AFTER_HOOK=/dev/null

  • . script/_border_routing
    ++ INFRA_IF_NAME=wlan0
    ++ readonly INFRA_IF_NAME
    ++ SYSCTL_ACCEPT_RA_FILE=/etc/sysctl.d/60-otbr-accept-ra.conf
    ++ readonly SYSCTL_ACCEPT_RA_FILE
    ++ DHCPCD_CONF_FILE=/etc/dhcpcd.conf
    ++ readonly DHCPCD_CONF_FILE
    ++ DHCPCD_CONF_BACKUP_FILE=/etc/dhcpcd.conf.orig
    ++ readonly DHCPCD_CONF_BACKUP_FILE
  • . script/_otbr
    ++ OTBR_TOP_BUILDDIR=/home/dsimeone1/ot-br-posix/build/otbr
    ++ readonly OTBR_TOP_BUILDDIR
    ++ OTBR_OPTIONS=
    ++ readonly OTBR_OPTIONS
    ++ REFERENCE_DEVICE=0
    ++ readonly REFERENCE_DEVICE
  • . script/_ipforward
    ++ SYSCTL_IP_FORWARD=/etc/sysctl.d/60-otbr-ip-forward.conf
  • . script/_nat64
    ++ NAT64_SERVICE=openthread
    ++ TAYGA_DEFAULT=/etc/default/tayga
    ++ TAYGA_CONF=/etc/tayga.conf
    ++ TAYGA_IPV4_ADDR=192.168.255.1
    ++ TAYGA_IPV6_ADDR=fdaa:bb:1::1
    ++ TAYGA_TUN_V6_ADDR=fdaa:bb:1::2
    ++ NAT64_PREFIX=64:ff9b::/96
    ++ DYNAMIC_POOL=192.168.255.0/24
    ++ NAT44_SERVICE=/etc/init.d/otbr-nat44
    ++ WLAN_IFNAMES=wlan0
    ++ THREAD_IF=wpan0
  • . script/_dns64
    ++ BIND_CONF_OPTIONS=/etc/bind/named.conf.options
    ++ NAT64_PREFIX=64:ff9b::/96
    ++ DNS64_NAMESERVER_ADDR=127.0.0.1
    +++ echo 64:ff9b::/96
    +++ tr '"/"' '"/"'
    ++ DNS64_CONF='dns64 64:ff9b::/96 { clients { thread; }; recursive-only yes; };'
    ++ without NAT64
    ++ with NAT64
    ++ local value
    +++ printenv NAT64
    ++ value=
    ++ [[ -z '' ]]
    ++ [[ -f examples/platforms/debian/default ]]
    +++ . examples/platforms/debian/default
    ++++ NAT64=0
    ++++ DNS64=0
    ++++ DHCPV6_PD=0
    ++++ NETWORK_MANAGER=0
    ++++ BACKBONE_ROUTER=1
    ++++ BORDER_ROUTING=1
    ++++ REST_API=1
    +++ eval echo '${NAT64-}'
    ++++ echo 0
    ++ value=0
    ++ [[ 0 == 1 ]]
    ++ '[' debian = raspbian ']'
    ++ '[' debian = beagleboneblack ']'
    ++ '[' debian = ubuntu ']'
  • . script/_dhcpv6_pd
    ++ '[' debian = ubuntu ']'
    ++ WAN_INTERFACE=eth0
    ++ WLAN_INTERFACE=wlan0
    ++ WPAN_INTERFACE=wpan0
    ++ DHCPCD_CONF=/etc/dhcpcd.conf
    ++ DHCPCD_CONF_BACKUP=/etc/dhcpcd.conf.orig
    ++ NCP_STATE_NOTIFIER=/usr/sbin/ncp_state_notifier
    ++ NCP_STATE_DISPATCHER=/etc/ncp_state_notifier/dispatcher.d
    ++ NCP_STATE_NOTIFIER_SERVICE_NAME=ncp_state_notifier.service
    ++ NCP_STATE_NOTIFIER_SERVICE=/etc/systemd/system/ncp_state_notifier.service
    ++ DHCPCD_RELOADER=/etc/ncp_state_notifier/dispatcher.d/dhcpcd_reloader
    ++ without DHCPV6_PD
    ++ with DHCPV6_PD
    ++ local value
    +++ printenv DHCPV6_PD
    ++ value=
    ++ [[ -z '' ]]
    ++ [[ -f examples/platforms/debian/default ]]
    +++ . examples/platforms/debian/default
    ++++ NAT64=0
    ++++ DNS64=0
    ++++ DHCPV6_PD=0
    ++++ NETWORK_MANAGER=0
    ++++ BACKBONE_ROUTER=1
    ++++ BORDER_ROUTING=1
    ++++ REST_API=1
    +++ eval echo '${DHCPV6_PD-}'
    ++++ echo 0
    ++ value=0
    ++ [[ 0 == 1 ]]
  • . script/_network_manager
    ++ AP_CONN=BorderRouter-AP
    ++ ETH_CONN=BorderRouter-Eth
    ++ AP_HELPER_SCRIPT=/etc/NetworkManager/dispatcher.d/ap-helper
    ++ DHCPV6_HELPER_SCRIPT=/etc/NetworkManager/dispatcher.d/dhcpv6-helper
  • . script/_rt_tables
  • . script/_swapfile
    ++ SWAP_REQUIRED=false
    ++ SWAP_FILENAME=/swapfile
    ++ SWAP_BLOCK_SIZE=1M
    ++ SWAP_BLOCK_CNT=1024
  • . script/_sudo_extend
    ++ ETC_SUDOERS=/etc/sudoers
    ++ SUDO_EXTEND_TIME=false
    ++ SUDO_EXTEND_TIME_AMOUNT=120
  • . script/_disable_services
  • . script/_firewall
    ++ FIREWALL_SERVICE=/etc/init.d/otbr-firewall
    ++ sudo modprobe ip6table_filter
    ++ FIREWALL=1
  • main
  • . /dev/null
  • extend_sudo_timeout
  • local _why
  • _why=Disabled
  • false
  • false
  • echo 'sudo-timeout: Not extending, Disabled'
    sudo-timeout: Not extending, Disabled
  • setup_swapfile
  • false
  • echo 'Swapfile: not required'
    Swapfile: not required
  • disable_services
  • case $PLATFORM in
  • echo 'Nothing to disable'
  • otbr_uninstall
  • have systemctl
  • command -v systemctl
  • sudo systemctl stop otbr-web
    Failed to stop otbr-web.service: Unit otbr-web.service not loaded.
  • true
  • sudo systemctl stop otbr-agent
    Failed to stop otbr-agent.service: Unit otbr-agent.service not loaded.
  • true
  • sudo systemctl disable otbr-web
    Failed to disable unit: Unit file otbr-web.service does not exist.
  • true
  • sudo systemctl disable otbr-agent
    Failed to disable unit: Unit file otbr-agent.service does not exist.
  • true
  • sudo systemctl is-enabled otbr-web
    Failed to get unit file state for otbr-web.service: No such file or directory
  • sudo systemctl is-enabled otbr-agent
    Failed to get unit file state for otbr-agent.service: No such file or directory
  • sudo killall otbr-web otbr-agent
    otbr-web: no process found
    otbr-agent: no process found
  • true
  • cd /home/dsimeone1/ot-br-posix/build/otbr
  • sudo xargs rm
    script/_otbr: line 54: install_manifests.txt: No such file or directory
  • true
  • have systemctl
  • command -v systemctl
  • sudo systemctl daemon-reload
  • border_routing_uninstall
  • with BORDER_ROUTING
  • local value
    ++ printenv BORDER_ROUTING
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${BORDER_ROUTING-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • accept_ra_uninstall
  • test '!' -f /etc/sysctl.d/60-otbr-accept-ra.conf
  • sudo rm -v /etc/sysctl.d/60-otbr-accept-ra.conf
    removed '/etc/sysctl.d/60-otbr-accept-ra.conf'
  • dhcpcd_enable_ipv6
  • '[' -f /etc/dhcpcd.conf.orig ']'
  • network_manager_uninstall
  • with NETWORK_MANAGER
  • local value
    ++ printenv NETWORK_MANAGER
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${NETWORK_MANAGER-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • return 0
  • dhcpv6_pd_uninstall
  • with DHCPV6_PD
  • local value
    ++ printenv DHCPV6_PD
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${DHCPV6_PD-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • return 0
  • nat64_uninstall
  • with NAT64
  • local value
    ++ printenv NAT64
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${NAT64-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • return 0
  • dns64_uninstall
  • with NAT64
  • local value
    ++ printenv NAT64
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${NAT64-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • return 0
  • rt_tables_uninstall
  • with BACKBONE_ROUTER
  • local value
    ++ printenv BACKBONE_ROUTER
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${BACKBONE_ROUTER-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • sudo sed -i.bak '/88\s+openthread/d' /etc/iproute2/rt_tables
  • ipforward_uninstall
  • test '!' -f /etc/sysctl.d/60-otbr-ip-forward.conf
  • sudo rm -v /etc/sysctl.d/60-otbr-ip-forward.conf
    removed '/etc/sysctl.d/60-otbr-ip-forward.conf'
  • firewall_uninstall
  • with FIREWALL
  • local value
    ++ printenv FIREWALL
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${FIREWALL-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • firewall_stop
  • with FIREWALL
  • local value
    ++ printenv FIREWALL
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${FIREWALL-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • with DOCKER
  • local value
    ++ printenv DOCKER
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${DOCKER-}'
    +++ echo
  • value=
  • [[ '' == 1 ]]
  • have systemctl
  • command -v systemctl
  • sudo systemctl stop otbr-firewall
  • have systemctl
  • command -v systemctl
  • sudo systemctl disable otbr-firewall
    otbr-firewall.service is not a native service, redirecting to systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install disable otbr-firewall
  • have update-rc.d
  • command -v update-rc.d
  • sudo update-rc.d otbr-firewall remove
  • test '!' -f /etc/init.d/otbr-firewall
  • sudo rm /etc/init.d/otbr-firewall
  • firewall_install
  • with FIREWALL
  • local value
    ++ printenv FIREWALL
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${FIREWALL-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • sudo cp script/otbr-firewall /etc/init.d/otbr-firewall
  • sudo chmod a+x /etc/init.d/otbr-firewall
  • have systemctl
  • command -v systemctl
  • sudo systemctl enable otbr-firewall
    otbr-firewall.service is not a native service, redirecting to systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install enable otbr-firewall
  • sudo systemctl start otbr-firewall
  • ipforward_install
  • sudo tee /etc/sysctl.d/60-otbr-ip-forward.conf
    net.ipv6.conf.all.forwarding = 1
    net.ipv4.ip_forward = 1
  • without DOCKER
  • with DOCKER
  • local value
    ++ printenv DOCKER
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${DOCKER-}'
    +++ echo
  • value=
  • [[ '' == 1 ]]
  • ipforward_enable
  • echo 1
  • sudo tee /proc/sys/net/ipv6/conf/all/forwarding
    1
  • echo 1
  • sudo tee /proc/sys/net/ipv4/ip_forward
    1
  • rt_tables_install
  • with BACKBONE_ROUTER
  • local value
    ++ printenv BACKBONE_ROUTER
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${BACKBONE_ROUTER-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • rt_tables_uninstall
  • with BACKBONE_ROUTER
  • local value
    ++ printenv BACKBONE_ROUTER
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${BACKBONE_ROUTER-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • sudo sed -i.bak '/88\s+openthread/d' /etc/iproute2/rt_tables
  • sudo sh -c 'echo "88 openthread" >>/etc/iproute2/rt_tables'
  • without DOCKER
  • with DOCKER
  • local value
    ++ printenv DOCKER
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${DOCKER-}'
    +++ echo
  • value=
  • [[ '' == 1 ]]
  • sudo sh -c 'echo "" >>/etc/sysctl.conf'
  • sudo sh -c 'echo "# OpenThread configuration" >>/etc/sysctl.conf'
  • sudo sh -c 'echo "net.core.optmem_max=65536" >>/etc/sysctl.conf'
  • sudo sh -c 'sysctl -p /etc/sysctl.conf'
    net.core.optmem_max = 65536
    net.core.optmem_max = 65536
    net.core.optmem_max = 65536
    net.core.optmem_max = 65536
    net.core.optmem_max = 65536
    net.core.optmem_max = 65536
    net.core.optmem_max = 65536
    net.core.optmem_max = 65536
    net.core.optmem_max = 65536
    net.core.optmem_max = 65536
  • nat64_install
  • with NAT64
  • local value
    ++ printenv NAT64
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${NAT64-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • return 0
  • dns64_install
  • with NAT64
  • local value
    ++ printenv NAT64
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${NAT64-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • return 0
  • network_manager_install
  • with NETWORK_MANAGER
  • local value
    ++ printenv NETWORK_MANAGER
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${NETWORK_MANAGER-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • return 0
  • dhcpv6_pd_install
  • with DHCPV6_PD
  • local value
    ++ printenv DHCPV6_PD
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${DHCPV6_PD-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • return 0
  • border_routing_install
  • with BORDER_ROUTING
  • local value
    ++ printenv BORDER_ROUTING
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${BORDER_ROUTING-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • dhcpcd_disable_ipv6
  • '[' -f /etc/dhcpcd.conf ']'
  • accept_ra_install
  • sudo tee /etc/sysctl.d/60-otbr-accept-ra.conf
    net.ipv6.conf.wlan0.accept_ra = 2
    net.ipv6.conf.wlan0.accept_ra_rt_info_max_plen = 64
  • without DOCKER
  • with DOCKER
  • local value
    ++ printenv DOCKER
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${DOCKER-}'
    +++ echo
  • value=
  • [[ '' == 1 ]]
  • accept_ra_enable
  • with BORDER_ROUTING
  • local value
    ++ printenv BORDER_ROUTING
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${BORDER_ROUTING-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • '[' -f /proc/sys/net/ipv6/conf/wlan0/accept_ra ']'
  • echo 2
  • sudo tee /proc/sys/net/ipv6/conf/wlan0/accept_ra
    2
  • '[' -f /proc/sys/net/ipv6/conf/wlan0/accept_ra_rt_info_max_plen ']'
  • echo 64
  • sudo tee /proc/sys/net/ipv6/conf/wlan0/accept_ra_rt_info_max_plen
    64
  • otbr_install
  • otbr_options=()
  • local otbr_options
  • [[ -n '' ]]
  • otbr_options=("-DBUILD_TESTING=OFF" "-DCMAKE_INSTALL_PREFIX=/usr" "-DOTBR_DBUS=ON" "-DOTBR_DNSSD_DISCOVERY_PROXY=ON" "-DOTBR_SRP_ADVERTISING_PROXY=ON" "-DOTBR_INFRA_IF_NAME=${INFRA_IF_NAME}" "-DOTBR_MDNS=${OTBR_MDNS:=mDNSResponder}" "-DOTBR_VERSION=" "-DOT_PACKAGE_VERSION=" "${otbr_options[@]}")
  • with WEB_GUI
  • local value
    ++ printenv WEB_GUI
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${WEB_GUI-}'
    +++ echo
  • value=
  • [[ '' == 1 ]]
  • with BORDER_ROUTING
  • local value
    ++ printenv BORDER_ROUTING
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${BORDER_ROUTING-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • otbr_options+=("-DOTBR_BORDER_ROUTING=ON")
  • with REST_API
  • local value
    ++ printenv REST_API
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${REST_API-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • otbr_options+=("-DOTBR_REST=ON")
  • with BACKBONE_ROUTER
  • local value
    ++ printenv BACKBONE_ROUTER
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${BACKBONE_ROUTER-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • otbr_options+=("-DOTBR_BACKBONE_ROUTER=ON")
  • [[ 0 == \1 ]]
  • [[ 0 == \1 ]]
  • with NAT64
  • local value
    ++ printenv NAT64
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${NAT64-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • with NAT64
  • local value
    ++ printenv NAT64
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${NAT64-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • with FIREWALL
  • local value
    ++ printenv FIREWALL
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${FIREWALL-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • otbr_options+=("-DOT_FIREWALL=ON")
  • ./script/cmake-build -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=/usr -DOTBR_DBUS=ON -DOTBR_DNSSD_DISCOVERY_PROXY=ON -DOTBR_SRP_ADVERTISING_PROXY=ON -DOTBR_INFRA_IF_NAME=wlan0 -DOTBR_MDNS=mDNSResponder -DOTBR_VERSION= -DOT_PACKAGE_VERSION= -DOTBR_BORDER_ROUTING=ON -DOTBR_REST=ON -DOTBR_BACKBONE_ROUTER=ON -DOT_FIREWALL=ON
    +++ dirname ./script/cmake-build
    ++ cd ./script/..
    ++ [[ ! -n '' ]]
    ++ grep -s 'BeagleBone Black' /sys/firmware/devicetree/base/model
    ++ case "${OSTYPE}" in
    ++ have_or_die lsb_release
    ++ have lsb_release
    ++ command -v lsb_release
    +++ lsb_release -i
    +++ cut -c17-
    +++ tr '[:upper:]' '[:lower:]'
    ++ PLATFORM=debian
    ++ echo 'Current platform is debian'
    Current platform is debian
    ++ with BORDER_ROUTING
    ++ local value
    +++ printenv BORDER_ROUTING
    ++ value=
    ++ [[ -z '' ]]
    ++ [[ -f examples/platforms/debian/default ]]
    +++ . examples/platforms/debian/default
    ++++ NAT64=0
    ++++ DNS64=0
    ++++ DHCPV6_PD=0
    ++++ NETWORK_MANAGER=0
    ++++ BACKBONE_ROUTER=1
    ++++ BORDER_ROUTING=1
    ++++ REST_API=1
    +++ eval echo '${BORDER_ROUTING-}'
    ++++ echo 1
    ++ value=1
    ++ [[ 1 == 1 ]]
    ++ with DHCPV6_PD
    ++ local value
    +++ printenv DHCPV6_PD
    ++ value=
    ++ [[ -z '' ]]
    ++ [[ -f examples/platforms/debian/default ]]
    +++ . examples/platforms/debian/default
    ++++ NAT64=0
    ++++ DNS64=0
    ++++ DHCPV6_PD=0
    ++++ NETWORK_MANAGER=0
    ++++ BACKBONE_ROUTER=1
    ++++ BORDER_ROUTING=1
    ++++ REST_API=1
    +++ eval echo '${DHCPV6_PD-}'
    ++++ echo 0
    ++ value=0
    ++ [[ 0 == 1 ]]
    ++ with BORDER_ROUTING
    ++ local value
    +++ printenv BORDER_ROUTING
    ++ value=
    ++ [[ -z '' ]]
    ++ [[ -f examples/platforms/debian/default ]]
    +++ . examples/platforms/debian/default
    ++++ NAT64=0
    ++++ DNS64=0
    ++++ DHCPV6_PD=0
    ++++ NETWORK_MANAGER=0
    ++++ BACKBONE_ROUTER=1
    ++++ BORDER_ROUTING=1
    ++++ REST_API=1
    +++ eval echo '${BORDER_ROUTING-}'
    ++++ echo 1
    ++ value=1
    ++ [[ 1 == 1 ]]
    ++ with NETWORK_MANAGER
    ++ local value
    +++ printenv NETWORK_MANAGER
    ++ value=
    ++ [[ -z '' ]]
    ++ [[ -f examples/platforms/debian/default ]]
    +++ . examples/platforms/debian/default
    ++++ NAT64=0
    ++++ DNS64=0
    ++++ DHCPV6_PD=0
    ++++ NETWORK_MANAGER=0
    ++++ BACKBONE_ROUTER=1
    ++++ BORDER_ROUTING=1
    ++++ REST_API=1
    +++ eval echo '${NETWORK_MANAGER-}'
    ++++ echo 0
    ++ value=0
    ++ [[ 0 == 1 ]]
    ++ STAGE_DIR=/home/dsimeone1/ot-br-posix/stage
    ++ BUILD_DIR=/home/dsimeone1/ot-br-posix/build
    ++ [[ -d /home/dsimeone1/ot-br-posix/stage ]]
    ++ [[ -d /home/dsimeone1/ot-br-posix/build ]]
    ++ export PATH=/home/dsimeone1/ot-br-posix/stage/usr/bin:/home/dsimeone1/ot-br-posix/stage/usr/sbin:/home/dsimeone1/ot-br-posix/stage/usr/bin:/home/dsimeone1/ot-br-posix/stage/usr/sbin:/home/dsimeone1/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/dsimeone1/n/bin:/home/dsimeone1/.local/bin:/home/dsimeone1/.local/bin
    ++ PATH=/home/dsimeone1/ot-br-posix/stage/usr/bin:/home/dsimeone1/ot-br-posix/stage/usr/sbin:/home/dsimeone1/ot-br-posix/stage/usr/bin:/home/dsimeone1/ot-br-posix/stage/usr/sbin:/home/dsimeone1/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/dsimeone1/n/bin:/home/dsimeone1/.local/bin:/home/dsimeone1/.local/bin
    +++ basename ./script/cmake-build
    ++ TASKNAME=cmake-build
    ++ BEFORE_HOOK=examples/platforms/debian/before_cmake-build
    ++ AFTER_HOOK=examples/platforms/debian/after_cmake-build
    ++ [[ ! -f examples/platforms/debian/before_cmake-build ]]
    ++ BEFORE_HOOK=/dev/null
    ++ [[ ! -f examples/platforms/debian/after_cmake-build ]]
    ++ AFTER_HOOK=/dev/null
  • OTBR_TOP_SRCDIR=/home/dsimeone1/ot-br-posix
  • readonly OTBR_TOP_SRCDIR
  • OTBR_TOP_BUILD_DIR=/home/dsimeone1/ot-br-posix/build/otbr
  • readonly OTBR_TOP_BUILD_DIR
  • OTBR_TARGET=
  • main -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=/usr -DOTBR_DBUS=ON -DOTBR_DNSSD_DISCOVERY_PROXY=ON -DOTBR_SRP_ADVERTISING_PROXY=ON -DOTBR_INFRA_IF_NAME=wlan0 -DOTBR_MDNS=mDNSResponder -DOTBR_VERSION= -DOT_PACKAGE_VERSION= -DOTBR_BORDER_ROUTING=ON -DOTBR_REST=ON -DOTBR_BACKBONE_ROUTER=ON -DOT_FIREWALL=ON
  • local builddir=/home/dsimeone1/ot-br-posix/build/otbr
  • mkdir -p /home/dsimeone1/ot-br-posix/build/otbr
  • cd /home/dsimeone1/ot-br-posix/build/otbr
  • cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON /home/dsimeone1/ot-br-posix -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=/usr -DOTBR_DBUS=ON -DOTBR_DNSSD_DISCOVERY_PROXY=ON -DOTBR_SRP_ADVERTISING_PROXY=ON -DOTBR_INFRA_IF_NAME=wlan0 -DOTBR_MDNS=mDNSResponder -DOTBR_VERSION= -DOT_PACKAGE_VERSION= -DOTBR_BORDER_ROUTING=ON -DOTBR_REST=ON -DOTBR_BACKBONE_ROUTER=ON -DOT_FIREWALL=ON
    -- OTBR package name: OpenThread_BorderRouter
    -- Version: 0.3.0-ae8b4a8
    -- OpenThread Source Directory: /home/dsimeone1/ot-br-posix/third_party/openthread/repo
    -- OT_APP_CLI=ON
    -- OT_APP_NCP=ON
    -- OT_APP_RCP=ON
    -- OT_FTD=ON
    -- OT_MTD=ON
    -- OT_RCP=ON

-- OpenThread ON/OFF/Unspecified Configs
-- OT_15_4=ON --> OPENTHREAD_CONFIG_RADIO_LINK_IEEE_802_15_4_ENABLE=1
-- OT_ANDROID_NDK=""
-- OT_ANYCAST_LOCATOR=ON --> OPENTHREAD_CONFIG_TMF_ANYCAST_LOCATOR_ENABLE=1
-- OT_ASSERT=""
-- OT_BACKBONE_ROUTER=ON --> OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE=1
-- OT_BACKBONE_ROUTER_DUA_NDPROXYING=OFF --> OPENTHREAD_CONFIG_BACKBONE_ROUTER_DUA_NDPROXYING_ENABLE=0
-- OT_BACKBONE_ROUTER_MULTICAST_ROUTING=""
-- OT_BLE_TCAT=""
-- OT_BORDER_AGENT=ON --> OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE=1
-- OT_BORDER_AGENT_EPSKC=""
-- OT_BORDER_AGENT_ID=ON --> OPENTHREAD_CONFIG_BORDER_AGENT_ID_ENABLE=1
-- OT_BORDER_ROUTER=ON --> OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE=1
-- OT_BORDER_ROUTING=ON --> OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE=1
-- OT_BORDER_ROUTING_DHCP6_PD=OFF --> OPENTHREAD_CONFIG_BORDER_ROUTING_DHCP6_PD_ENABLE=0
-- OT_BORDER_ROUTING_COUNTERS=ON --> OPENTHREAD_CONFIG_IP6_BR_COUNTERS_ENABLE=1
-- OT_CHANNEL_MANAGER=""
-- OT_CHANNEL_MANAGER_CSL=""
-- OT_CHANNEL_MONITOR=""
-- OT_COAP=ON --> OPENTHREAD_CONFIG_COAP_API_ENABLE=1
-- OT_COAP_BLOCK=""
-- OT_COAP_OBSERVE=""
-- OT_COAPS=ON --> OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE=1
-- OT_COMMISSIONER=ON --> OPENTHREAD_CONFIG_COMMISSIONER_ENABLE=1
-- OT_CSL_AUTO_SYNC=""
-- OT_CSL_DEBUG=""
-- OT_CSL_RECEIVER=""
-- OT_CSL_RECEIVER_LOCAL_TIME_SYNC=""
-- OT_DATASET_UPDATER=ON --> OPENTHREAD_CONFIG_DATASET_UPDATER_ENABLE=1
-- OT_DEVICE_PROP_LEADER_WEIGHT=""
-- OT_DHCP6_CLIENT=""
-- OT_DHCP6_SERVER=""
-- OT_DIAGNOSTIC=""
-- OT_DNS_CLIENT=ON --> OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE=1
-- OT_DNS_CLIENT_OVER_TCP=""
-- OT_DNS_DSO=""
-- OT_DNS_UPSTREAM_QUERY=OFF --> OPENTHREAD_CONFIG_DNS_UPSTREAM_QUERY_ENABLE=0
-- OT_DNSSD_SERVER=ON --> OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE=1
-- OT_DUA=""
-- OT_ECDSA=ON --> OPENTHREAD_CONFIG_ECDSA_ENABLE=1
-- OT_EXTERNAL_HEAP=ON --> OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE=1
-- OT_FIREWALL=ON --> OPENTHREAD_POSIX_CONFIG_FIREWALL_ENABLE=1
-- OT_HISTORY_TRACKER=ON --> OPENTHREAD_CONFIG_HISTORY_TRACKER_ENABLE=1
-- OT_IP6_FRAGM=""
-- OT_JAM_DETECTION=""
-- OT_JOINER=ON --> OPENTHREAD_CONFIG_JOINER_ENABLE=1
-- OT_LINK_METRICS_INITIATOR=OFF --> OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE=0
-- OT_LINK_METRICS_MANAGER=OFF --> OPENTHREAD_CONFIG_LINK_METRICS_MANAGER_ENABLE=0
-- OT_LINK_METRICS_SUBJECT=ON --> OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE=1
-- OT_LINK_RAW=""
-- OT_LOG_LEVEL_DYNAMIC=ON --> OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE=1
-- OT_MAC_FILTER=ON --> OPENTHREAD_CONFIG_MAC_FILTER_ENABLE=1
-- OT_MDNS=""
-- OT_MESH_DIAG=""
-- OT_MESSAGE_USE_HEAP=""
-- OT_MLE_LONG_ROUTES=""
-- OT_MLR=ON --> OPENTHREAD_CONFIG_MLR_ENABLE=1
-- OT_MULTIPAN_RCP=""
-- OT_MULTIPLE_INSTANCE=""
-- OT_NAT64_BORDER_ROUTING=OFF --> OPENTHREAD_CONFIG_NAT64_BORDER_ROUTING_ENABLE=0
-- OT_NAT64_TRANSLATOR=OFF --> OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE=0
-- OT_NEIGHBOR_DISCOVERY_AGENT=""
-- OT_NETDATA_PUBLISHER=ON --> OPENTHREAD_CONFIG_NETDATA_PUBLISHER_ENABLE=1
-- OT_NETDIAG_CLIENT=ON --> OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE=1
-- OT_OPERATIONAL_DATASET_AUTO_INIT=""
-- OT_OTNS=""
-- OT_PING_SENDER=ON --> OPENTHREAD_CONFIG_PING_SENDER_ENABLE=1
-- OT_PLATFORM_BOOTLOADER_MODE=""
-- OT_PLATFORM_KEY_REF=""
-- OT_PLATFORM_LOG_CRASH_DUMP=""
-- OT_PLATFORM_NETIF=ON --> OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE=1
-- OT_PLATFORM_POWER_CALIBRATION=""
-- OT_PLATFORM_UDP=ON --> OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE=1
-- OT_REFERENCE_DEVICE=""
-- OT_SERVICE=ON --> OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE=1
-- OT_SETTINGS_RAM=""
-- OT_SLAAC=ON --> OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE=1
-- OT_SNTP_CLIENT=""
-- OT_SRP_ADV_PROXY=""
-- OT_SRP_CLIENT=ON --> OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE=1
-- OT_SRP_SERVER=ON --> OPENTHREAD_CONFIG_SRP_SERVER_ENABLE=1
-- OT_TCP=OFF --> OPENTHREAD_CONFIG_TCP_ENABLE=0
-- OT_TIME_SYNC=""
-- OT_TREL=OFF --> OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE=0
-- OT_TX_BEACON_PAYLOAD=""
-- OT_TX_QUEUE_STATS=""
-- OT_UDP_FORWARD=OFF --> OPENTHREAD_CONFIG_UDP_FORWARD_ENABLE=0
-- OT_UPTIME=ON --> OPENTHREAD_CONFIG_UPTIME_ENABLE=1
-- OT_VERHOEFF_CHECKSUM=""


-- OT_PLATFORM="posix"
-- OT_THREAD_VERSION="1.3" -> OPENTHREAD_CONFIG_THREAD_VERSION=OT_THREAD_VERSION_1_3
-- OT_LOG_LEVEL="INFO" --> OPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_INFO
-- OT_LOG_OUTPUT=""
-- OT_VENDOR_NAME=""
-- OT_VENDOR_MODEL=""
-- OT_VENDOR_SW_VERSION=""
-- OT_POWER_SUPPLY=""
-- OT_MLE_MAX_CHILDREN=""
-- OT_RCP_RESTORATION_MAX_COUNT=""
-- OT_RCP_TX_WAIT_TIME_SECS=""
-- Package Name: OPENTHREAD
-- Setting default package version: 9e4cbb8
-- Package Version: 9e4cbb8
-- OT_PLATFORM_CONFIG="openthread-core-posix-config.h"
-- OT_PLATFORM_POSIX_CONFIG_FILE=""
-- Readline: readline
CMake Warning (dev) at third_party/openthread/repo/third_party/mbedtls/repo/CMakeLists.txt:39 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The following variable(s) would be set to empty:

PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Deprecation Warning at third_party/cJSON/repo/CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Warning (dev) at third_party/cJSON/repo/CMakeLists.txt:4 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The following variable(s) would be set to empty:

PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH

This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/dsimeone1/ot-br-posix/build/otbr

  • [[ -n '' ]]
  • ninja
    [7/13] Building CXX object src/mdns/CMakeFiles/otbr-mdns.dir/mdns_mdnssd.cpp.o
    FAILED: src/mdns/CMakeFiles/otbr-mdns.dir/mdns_mdnssd.cpp.o
    /usr/bin/c++ -DHAVE_LIBSYSTEMD=1 -DMBEDTLS_CONFIG_FILE="/home/dsimeone1/ot-br-posix/third_party/openthread/mbedtls-config.h" -DOTBR_ENABLE_BACKBONE_ROUTER=1 -DOTBR_ENABLE_BORDER_AGENT=1 -DOTBR_ENABLE_BORDER_ROUTING=1 -DOTBR_ENABLE_BORDER_ROUTING_COUNTERS=1 -DOTBR_ENABLE_DBUS_SERVER=1 -DOTBR_ENABLE_DHCP6_PD=0 -DOTBR_ENABLE_DNSSD_DISCOVERY_PROXY=1 -DOTBR_ENABLE_EPSKC=0 -DOTBR_ENABLE_LINK_METRICS_TELEMETRY=0 -DOTBR_ENABLE_MDNS_MDNSSD=1 -DOTBR_ENABLE_NAT64=0 -DOTBR_ENABLE_NOTIFY_UPSTART=1 -DOTBR_ENABLE_PUBLISH_MESHCOP_BA_ID=1 -DOTBR_ENABLE_REST_SERVER=1 -DOTBR_ENABLE_SRP_ADVERTISING_PROXY=1 -DOTBR_ENABLE_SRP_SERVER_AUTO_ENABLE_MODE=1 -DOTBR_ENABLE_VENDOR_INFRA_LINK_SELECT=0 -DOTBR_MESHCOP_SERVICE_INSTANCE_NAME=""OpenThread BorderRouter"" -DOTBR_PACKAGE_NAME="OpenThread_BorderRouter" -DOTBR_PACKAGE_VERSION="0.3.0-ae8b4a8" -DOTBR_PRODUCT_NAME="BorderRouter" -DOTBR_SYSLOG_FACILITY_ID=LOG_USER -DOTBR_VENDOR_NAME="OpenThread" -I/home/dsimeone1/ot-br-posix/include -I/home/dsimeone1/ot-br-posix/src -I/home/dsimeone1/ot-br-posix/build/otbr/third_party/openthread/repo/etc/cmake -I/home/dsimeone1/ot-br-posix/third_party/openthread/repo/etc/cmake -I/home/dsimeone1/ot-br-posix/third_party/openthread/repo/include -I/home/dsimeone1/ot-br-posix/third_party/openthread/repo/src/posix/platform/include -I/home/dsimeone1/ot-br-posix/third_party/openthread/repo/src -I/home/dsimeone1/ot-br-posix/third_party/openthread/repo/third_party/mbedtls/repo/include -Wall -Wextra -Werror -Wfatal-errors -Wuninitialized -Wno-missing-braces -std=c++11 -MD -MT src/mdns/CMakeFiles/otbr-mdns.dir/mdns_mdnssd.cpp.o -MF src/mdns/CMakeFiles/otbr-mdns.dir/mdns_mdnssd.cpp.o.d -o src/mdns/CMakeFiles/otbr-mdns.dir/mdns_mdnssd.cpp.o -c /home/dsimeone1/ot-br-posix/src/mdns/mdns_mdnssd.cpp
    /home/dsimeone1/ot-br-posix/src/mdns/mdns_mdnssd.cpp: In function ‘otbrError otbr::Mdns::DNSErrorToOtbrError(DNSServiceErrorType)’:
    /home/dsimeone1/ot-br-posix/src/mdns/mdns_mdnssd.cpp:91:10: error: ‘kDNSServiceErr_ServiceNotRunning’ was not declared in this scope
    91 | case kDNSServiceErr_ServiceNotRunning:
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated due to -Wfatal-errors.
    [8/13] cd /home/dsimeone1/ot-br-posix/build/otbr/third_party/openthread/repo...home/dsimeone1/ot-br-posix/third_party/openthread/repo/etc/cmake/print.cmake
    OPENTHREAD_CONFIG_RADIO_LINK_IEEE_802_15_4_ENABLE=1
    OPENTHREAD_CONFIG_TMF_ANYCAST_LOCATOR_ENABLE=1
    OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE=1
    OPENTHREAD_CONFIG_BACKBONE_ROUTER_DUA_NDPROXYING_ENABLE=0
    OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE=1
    OPENTHREAD_CONFIG_BORDER_AGENT_ID_ENABLE=1
    OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE=1
    OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE=1
    OPENTHREAD_CONFIG_BORDER_ROUTING_DHCP6_PD_ENABLE=0
    OPENTHREAD_CONFIG_IP6_BR_COUNTERS_ENABLE=1
    OPENTHREAD_CONFIG_COAP_API_ENABLE=1
    OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE=1
    OPENTHREAD_CONFIG_COMMISSIONER_ENABLE=1
    OPENTHREAD_CONFIG_DATASET_UPDATER_ENABLE=1
    OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE=1
    OPENTHREAD_CONFIG_DNS_UPSTREAM_QUERY_ENABLE=0
    OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE=1
    OPENTHREAD_CONFIG_ECDSA_ENABLE=1
    OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE=1
    OPENTHREAD_POSIX_CONFIG_FIREWALL_ENABLE=1
    OPENTHREAD_CONFIG_HISTORY_TRACKER_ENABLE=1
    OPENTHREAD_CONFIG_JOINER_ENABLE=1
    OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE=0
    OPENTHREAD_CONFIG_LINK_METRICS_MANAGER_ENABLE=0
    OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE=1
    OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE=1
    OPENTHREAD_CONFIG_MAC_FILTER_ENABLE=1
    OPENTHREAD_CONFIG_MLR_ENABLE=1
    OPENTHREAD_CONFIG_NAT64_BORDER_ROUTING_ENABLE=0
    OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE=0
    OPENTHREAD_CONFIG_NETDATA_PUBLISHER_ENABLE=1
    OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE=1
    OPENTHREAD_CONFIG_PING_SENDER_ENABLE=1
    OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE=1
    OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE=1
    OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE=1
    OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE=1
    OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE=1
    OPENTHREAD_CONFIG_SRP_SERVER_ENABLE=1
    OPENTHREAD_CONFIG_TCP_ENABLE=0
    OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE=0
    OPENTHREAD_CONFIG_UDP_FORWARD_ENABLE=0
    OPENTHREAD_CONFIG_UPTIME_ENABLE=1
    OPENTHREAD_CONFIG_THREAD_VERSION=OT_THREAD_VERSION_1_3
    OPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_INFO
    OPENTHREAD_CONFIG_ENABLE_BUILTIN_MBEDTLS=1
    OPENTHREAD_CONFIG_ENABLE_BUILTIN_MBEDTLS_MANAGEMENT=0
    OPENTHREAD_CONFIG_POSIX_SETTINGS_PATH=/var/lib/thread
    PACKAGE_NAME=OPENTHREAD
    OPENTHREAD_PLATFORM_POSIX=1
    OPENTHREAD_PLATFORM_CORE_CONFIG_FILE=openthread-core-posix-config.h
    OPENTHREAD_POSIX_CONFIG_DAEMON_ENABLE=1
    OPENTHREAD_CONFIG_NCP_HDLC_ENABLE=1
    OPENTHREAD_CONFIG_LOG_CLI=1
    OPENTHREAD_CONFIG_MAX_STATECHANGE_HANDLERS=3
    OPENTHREAD_CONFIG_MLE_STEERING_DATA_SET_OOB_ENABLE=1
    OPENTHREAD_CONFIG_TCP_ENABLE=0
    OPENTHREAD_POSIX_CONFIG_FILE=/home/dsimeone1/ot-br-posix/build/otbr/src/agent/openthread-otbr-posix-config.h
    OPENTHREAD_CONFIG_TMF_PROXY_DUA_ENABLE=1
    OPENTHREAD_CONFIG_TMF_PROXY_MLR_ENABLE=1
    ninja: build stopped: subcommand failed.

The deamon I find for this is running.

dsimeone1@RPi1:~ $ systemctl status mdnsd.service
● mdns.service - LSB: Apple Multicast DNS / DNS Service Discovery daemon
Loaded: loaded (/etc/init.d/mdns; generated)
Active: active (running) since Fri 2024-05-03 13:32:50 CEST; 1min 49s ago
Docs: man:systemd-sysv-generator(8)
Tasks: 1 (limit: 8738)
CPU: 88ms
CGroup: /system.slice/mdns.service
└─967 /usr/sbin/mdnsd

May 03 13:32:50 RPi1 systemd[1]: Starting mdns.service - LSB: Apple Multicast DNS / DNS Service Discovery daemon...
May 03 13:32:50 RPi1 mdns[928]: Starting Apple Darwin Multicast DNS / DNS Service Discovery daemon: mdnsd.
May 03 13:32:50 RPi1 systemd[1]: Started mdns.service - LSB: Apple Multicast DNS / DNS Service Discovery daemon.
May 03 13:32:50 RPi1 mDNSResponder[967]: Default: mDNSResponder (Engineering Build) (May 3 2024 12:15:46) starting

Additional context Add any other context about the problem here.
I also followed this guide: https://openthread.io/codelabs/openthread-hardware#2
I was able to get to step 4 without any hiccups.

Hope you can help me out.
Thanks in advance.

@wgtdkp
Copy link
Member

wgtdkp commented May 3, 2024

Have you ran ./script/bootstrap?

@DSimeone1989
Copy link
Author

DSimeone1989 commented May 3, 2024

Yes, I did.

It mentioned something like this:

In file included from NetMonitor.c:26:
../mDNSCore/mDNS.c: In function ‘mDNS_StopQueryWithRemoves’:
../mDNSCore/mDNS.c:14272:74: warning: implicit conversion from ‘enum ’ to ‘QC_result’ [-Wenum-conversion]
14272 | question->QuestionCallback(m, question, &cr->resrec, mDNSfalse);
| ^~~~~~~~~
../mDNSCore/mDNS.c: In function ‘mDNS_DeactivateNetWake_internal’:
../mDNSCore/mDNS.c:15216:68: warning: implicit conversion from ‘enum ’ to ‘QC_result’ [-Wenum-conversion]
15216 | m->SPSBrowseCallback(m, &set->NetWakeBrowse, mDNSNULL, mDNSfalse);
| ^~~~~~~~~
cc objects/prod/mDNSPosix.c.o objects/prod/mDNSUNP.c.o objects/prod/mDNSDebug.c.o objects/prod/GenLinkedList.c.o objects/prod/DNSDigest.c.o objects/prod/uDNS.c.o objects/prod/DNSCommon.c.o objects/prod/PlatformCommon.c.o objects/prod/dso.c.o objects/prod/dso-transport.c.o objects/prod/dnssd_clientshim.c.o objects/prod/mdns_addr_tailq.c.o objects/prod/misc_utilities.c.o objects/prod/NetMonitor.c.o -o build/prod/mDNSNetMonitor
NetMonitor done
cc -I../mDNSCore -I../mDNSShared -I../mDNSShared/utilities -I../DSO -I../ServiceRegistration -Iobjects/prod -fwrapv -W -Wall -DPOSIX_BUILD -DPID_FILE="/var/run/mdnsd.pid" -DMDNS_UDS_SERVERPATH="/var/run/mdnsd" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -ftabstop=4 -Wno-expansion-to-defined -g -DMDNS_DEBUGMSGS=0 -c -fPIC -o objects/prod/nss_mdns.c.so.o nss_mdns.c
cc -shared -o build/prod/libnss_mdns-0.2.so objects/prod/dnssd_clientlib.c.so.o objects/prod/dnssd_clientstub.c.so.o objects/prod/dnssd_ipc.c.so.o objects/prod/dnssd_errstring.c.so.o objects/prod/nss_mdns.c.so.o
strip -S build/prod/libnss_mdns-0.2.so
Name Service Switch module done

  • sudo make install os=linux tls=no
    cp mdnsd.sh /etc/init.d/mdns
    chmod ugo+x /etc/init.d/mdns
    ln -s -f /etc/init.d/mdns /etc/rc2.d/S52mdns
    ln -s -f /etc/init.d/mdns /etc/rc3.d/S52mdns
    ln -s -f /etc/init.d/mdns /etc/rc4.d/S52mdns
    ln -s -f /etc/init.d/mdns /etc/rc5.d/S52mdns
    ln -s -f /etc/init.d/mdns /etc/rc0.d/K16mdns
    ln -s -f /etc/init.d/mdns /etc/rc6.d/K16mdns
    /etc/init.d/mdns installed
    if test -x /usr/sbin/mdnsd; then /etc/init.d/mdns stop; fi
    Stopping mdns (via systemctl): mdns.serviceWarning: The unit file, source configuration file or drop-ins of mdns.service changed on disk. Run 'systemctl daemon-reload' to reload units.
    .
    cp build/prod/mdnsd /usr/sbin/mdnsd
    /etc/init.d/mdns start
    Starting mdns (via systemctl): mdns.serviceWarning: The unit file, source configuration file or drop-ins of mdns.service changed on disk. Run 'systemctl daemon-reload' to reload units.

The bootstrap script ended with:

.
/usr/sbin/mdnsd installed
cp build/prod/libdns_sd.so /usr/lib/libdns_sd.so.1
ln -s -f /usr/lib/libdns_sd.so.1 /usr/lib/libdns_sd.so
/usr/lib/libdns_sd.so.1 /usr/include/dns_sd.h installed
/usr/share/man/man8/mdnsd.8 installed
cp ../Clients/build/dns-sd /usr/bin/dns-sd
/usr/bin/dns-sd installed
cp build/prod/libnss_mdns-0.2.so /lib/libnss_mdns-0.2.so
chmod 444 /lib/libnss_mdns-0.2.so
ln -s -f /lib/libnss_mdns-0.2.so /lib/libnss_mdns.so.2
ldconfig
/lib/libnss_mdns.so.2 /etc/nss_mdns.conf /usr/share/man/man5/nss_mdns.conf.5 /usr/share/man/man8/libnss_mdns.8 installed

  • sudo apt-get install --no-install-recommends -y libboost-dev libboost-filesystem-dev libboost-system-dev
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    libboost-dev is already the newest version (1.74.0.3).
    libboost-filesystem-dev is already the newest version (1.74.0.3).
    libboost-system-dev is already the newest version (1.74.0.3).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  • without NAT64
  • with NAT64
  • local value
    ++ printenv NAT64
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${NAT64-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • without DNS64
  • with DNS64
  • local value
    ++ printenv DNS64
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${DNS64-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • without NETWORK_MANAGER
  • with NETWORK_MANAGER
  • local value
    ++ printenv NETWORK_MANAGER
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${NETWORK_MANAGER-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • without DHCPV6_PD
  • with DHCPV6_PD
  • local value
    ++ printenv DHCPV6_PD
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${DHCPV6_PD-}'
    +++ echo 0
  • value=0
  • [[ 0 == 1 ]]
  • sudo apt-get install --no-install-recommends -y libjsoncpp-dev
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    libjsoncpp-dev is already the newest version (1.9.5-4).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  • without REFERENCE_DEVICE
  • with REFERENCE_DEVICE
  • local value
    ++ printenv REFERENCE_DEVICE
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${REFERENCE_DEVICE-}'
    +++ echo
  • value=
  • [[ '' == 1 ]]
  • without BACKBONE_ROUTER
  • with BACKBONE_ROUTER
  • local value
    ++ printenv BACKBONE_ROUTER
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${BACKBONE_ROUTER-}'
    +++ echo 1
  • value=1
  • [[ 1 == 1 ]]
  • sudo apt-get install --no-install-recommends -y libnetfilter-queue1 libnetfilter-queue-dev
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    libnetfilter-queue1 is already the newest version (1.0.5-3).
    libnetfilter-queue-dev is already the newest version (1.0.5-3).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  • without WEB_GUI
  • with WEB_GUI
  • local value
    ++ printenv WEB_GUI
  • value=
  • [[ -z '' ]]
  • [[ -f examples/platforms/debian/default ]]
    ++ . examples/platforms/debian/default
    +++ NAT64=0
    +++ DNS64=0
    +++ DHCPV6_PD=0
    +++ NETWORK_MANAGER=0
    +++ BACKBONE_ROUTER=1
    +++ BORDER_ROUTING=1
    +++ REST_API=1
    ++ eval echo '${WEB_GUI-}'
    +++ echo
  • value=
  • [[ '' == 1 ]]
  • sudo apt-get install -y iptables ipset
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    iptables is already the newest version (1.8.9-2).
    ipset is already the newest version (7.17-1).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  • sudo apt-get install -y libprotobuf-dev protobuf-compiler
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    libprotobuf-dev is already the newest version (3.21.12-3).
    protobuf-compiler is already the newest version (3.21.12-3).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  • . /dev/null

I "sudo systemctl daemon-reload" and tried it again.
The error in the setup script is still the same.

SEGGER/JLink, nRF5x Command Line Tools and ARM GNU Toolchain are installed.

@wgtdkp
Copy link
Member

wgtdkp commented May 3, 2024

Thanks! Could you help provide below information:

  1. The git commit id of your ot-br-posix checkout
  2. file /usr/include/dns_sd.h on your RPi
  3. Can you confirm that it is "mDNSResponder-1790.80.10" being installed in your script/bootstrap? You can check by looking at the source code of file script/bootstrap (search "mDNSResponder-1790.80.10")

@DSimeone1989
Copy link
Author

Hi,
1.
commit ae8b4a8 (grafted, HEAD -> main, origin/main, origin/HEAD)
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu May 2 08:27:54 2024 -0700

dns_sdh.txt

I would say "yes", but look for yourself.
Log_bootstrap.txt

Thanks.

@DSimeone1989
Copy link
Author

Dear all,
Any updates on this one?
Is anything missing?
Thx.

@superwhd
Copy link
Contributor

superwhd commented May 11, 2024

Your dns_sd.h may be too old according to its content.

The copyright section of your dns_sd.h:

 * Copyright (c) 2003-2004, Apple Computer, Inc. All rights reserved.\

Mine (which is version 1661):

Copyright (c) 2003-2023 Apple Inc. All rights reserved.

I'm not sure why it wasn't updated at the bootstrap step though.

@wgtdkp
Copy link
Member

wgtdkp commented May 11, 2024

Your Log_bootstrap.txt doesn't include the full bootstrap log.

My suspect is that it's not successfully installing the mDNSResponder in the bootstrap script, but you are using the existing old version on your raspberry pi. Could you just install the latest version of mDNSRsponder by yourself?

E.g.

  1. Download and unzip https://github.com/apple-oss-distributions/mDNSResponder/releases/tag/mDNSResponder-2200.100.94.0.2
  2. go to mDNSPosix folder and run make install

@DSimeone1989
Copy link
Author

Dear all,
First of all thank you very much.
Here the complete bootstrap file: script_bootstrap.txt

It seems I have installed mDNSResponder-1790.80.10.
I did as you said - see my steps: mDNSResponder.txt

At the end I get this error:

../mDNSShared/PlatformCommon.c: In function ‘getMillisecondsFromTicks’:
../mDNSShared/PlatformCommon.c:803:37: error: ‘UINT_MAX’ undeclared (first use in this function)
803 | const mDNSu32 maxMilliseconds = UINT_MAX;
| ^~~~~~~~
../mDNSShared/PlatformCommon.c:41:1: note: ‘UINT_MAX’ is defined in header ‘<limits.h>’; did you forget to ‘#include <limits.h>’?
40 | #include "mdns_strict.h"
+++ |+#include <limits.h>
41 |
../mDNSShared/PlatformCommon.c:803:37: note: each undeclared identifier is reported only once for each function it appears in
803 | const mDNSu32 maxMilliseconds = UINT_MAX;
| ^~~~~~~~
../mDNSShared/PlatformCommon.c:810:47: error: ‘INT_MAX’ undeclared (first use in this function)
810 | const mDNSu32 maxWholeSecsFromMaxTicks = (INT_MAX / (mDNSu32)mDNSPlatformOneSecond);
| ^~~~~~~
../mDNSShared/PlatformCommon.c:810:47: note: ‘INT_MAX’ is defined in header ‘<limits.h>’; did you forget to ‘#include <limits.h>’?
make: *** [Makefile:514: objects/prod/PlatformCommon.c.o] Error 1

Can you help me once again?
Thank you very much.

@superwhd
Copy link
Contributor

For manual installation of mDNSResponder, I think you can just add #include <limits.h> in mDNSShared/PlatformCommon.c and it will be buildable

@DSimeone1989
Copy link
Author

Dear superwhd,

did that already and got this in the process.
PlatformCommonc.txt
mbedtls_error.txt

I am so sorry to bother you again and again.
But I am a noob in this.

Thx

@DSimeone1989
Copy link
Author

Dear all,

I think I am at the last step...
Log bootstrap: bootstrap_new.txt
Log setup: setup_new.txt

Last step fails (27/27). I am running my Raspberry Pi 4B with Homebridge on Avahi.
Do I have to change it or is there a way around?

Thanks.

@superwhd
Copy link
Contributor

I think you need to check which version of mDNSResponder is installed and referenced by otbr-agent when building. Maybe you can take a look at dns_sd.h to see if it's the desired version.

Also, I saw two versions 2200.100.94.0.2 and 1790.80.10 in your logs. If you'd like to install mDNSResponder manually instead of letting script/boostrap handle it, you should skip the step of installing it in script/bootstrap.

@DSimeone1989
Copy link
Author

Dear all,

I handled the script/boostrap concerning mDNSResonder.
But I do not know what to do with dns_sd.h and otbr-agent.
Can you explain what I have to do exactly?

Thanks.

@superwhd
Copy link
Contributor

superwhd commented May 13, 2024

Your log:

/usr/bin/ld: src/mdns/libotbr-mdns.a(mdns_mdnssd.cpp.o): in function `otbr::Mdns::PublisherMDnsSd::HostSubscription::Resolve()':\
mdns_mdnssd.cpp:(.text+0x412c): undefined reference to `DNSServiceGetAddrInfo'\

It indicates that the version of your dns_sd.h header is incorrect, which means you may not failed to install the header file.

You may check if /usr/include/dns_sd.h is the same as mDNSShared/dns_sd.h. If not, you may consider manually removing it and rerun script/bootstrap to install mDNSResponder.

@DSimeone1989
Copy link
Author

Dear all,

I deleted /usr/include/dns_sd.h, I installed 2200.100.94.0.2 manually and edited #mDNS in the bootstrap to not getting 1790.80.10, I edited #include <limits.h> to mDNSShared/PlatformCommon.c, I switched to eth0, then I ran every command again and still get the same result.

Last step - otbr_install fails with the same look.
[491/491] Linking CXX executable src/agent/otbr-agent
FAILED: src/agent/otbr-agent
: && /usr/bin/c++ -rdynamic src/agent/CMakeFiles/otbr-agent.dir/application.cpp.o src/agent/CMakeFiles/otbr-agent.dir/main.cpp.o -o src/agent/otbr-agent src/border_agent/libotbr-border-agent.a src/backbone_router/libotbr-backbone-router.a src/dbus/server/libotbr-dbus-server.a src/mdns/libotbr-mdns.a src/rest/libotbr-rest.a third_party/openthread/repo/src/posix/platform/libopenthread-posix.a third_party/openthread/repo/src/cli/libopenthread-cli-ftd.a third_party/openthread/repo/src/core/libopenthread-ftd.a third_party/openthread/repo/src/lib/spinel/libopenthread-spinel-rcp.a third_party/openthread/repo/src/lib/spinel/libopenthread-radio-spinel.a third_party/openthread/repo/src/lib/hdlc/libopenthread-hdlc.a src/sdp_proxy/libotbr-sdp-proxy.a src/ncp/libotbr-ncp.a src/common/libotbr-common.a src/utils/libotbr-utils.a -lsystemd src/trel_dnssd/libotbr-trel-dnssd.a src/dbus/common/libotbr-dbus-common.a -L/usr/lib/aarch64-linux-gnu -ldbus-1 src/proto/libotbr-proto.a /usr/lib/aarch64-linux-gnu/libprotobuf-lite.so third_party/http-parser/libhttp_parser.a third_party/cJSON/repo/libcjson.a -lm src/mdns/libotbr-mdns.a src/utils/libotbr-utils.a -ldns_sd src/common/libotbr-common.a third_party/openthread/repo/src/posix/platform/libopenthread-posix.a third_party/openthread/repo/src/cli/libopenthread-cli-ftd.a third_party/openthread/repo/src/lib/spinel/libopenthread-spinel-rcp.a third_party/openthread/repo/src/lib/spinel/libopenthread-radio-spinel.a third_party/openthread/repo/src/lib/hdlc/libopenthread-hdlc.a third_party/openthread/repo/src/lib/platform/libopenthread-platform.a third_party/openthread/repo/src/lib/url/libopenthread-url.a -lutil -lrt -lanl third_party/openthread/repo/src/core/libopenthread-ftd.a third_party/openthread/repo/third_party/tcplp/libtcplp-ftd.a third_party/openthread/repo/src/core/libopenthread-ftd.a third_party/openthread/repo/third_party/tcplp/libtcplp-ftd.a third_party/openthread/repo/third_party/mbedtls/repo/library/libmbedtls.a third_party/openthread/repo/third_party/mbedtls/repo/library/libmbedx509.a third_party/openthread/repo/third_party/mbedtls/repo/library/libmbedcrypto.a && :
/usr/bin/ld: src/mdns/libotbr-mdns.a(mdns_mdnssd.cpp.o): in function otbr::Mdns::PublisherMDnsSd::ServiceInstanceResolution::GetAddrInfo(unsigned int)': mdns_mdnssd.cpp:(.text+0x3c34): undefined reference to DNSServiceGetAddrInfo'
/usr/bin/ld: src/mdns/libotbr-mdns.a(mdns_mdnssd.cpp.o): in function otbr::Mdns::PublisherMDnsSd::HostSubscription::Resolve()': mdns_mdnssd.cpp:(.text+0x412c): undefined reference to DNSServiceGetAddrInfo'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Does this help: cat /var/log/syslog | grep otbr

2024-05-14T09:12:38.522082+02:00 RPi1 systemd[1]: Stopping otbr-firewall.service - LSB: OTBR firewall...
2024-05-14T09:12:47.357034+02:00 RPi1 otbr-firewall[558]: + case "$1" in
2024-05-14T09:12:47.357284+02:00 RPi1 otbr-firewall[558]: + firewall_start
2024-05-14T09:12:47.357430+02:00 RPi1 otbr-firewall[558]: + firewall_stop
2024-05-14T09:12:47.357566+02:00 RPi1 otbr-firewall[558]: + ip6tables -C FORWARD -o wpan0 -j OTBR_FORWARD_INGRESS
2024-05-14T09:12:47.359710+02:00 RPi1 otbr-firewall[628]: ip6tables v1.8.9 (nf_tables): Chain 'OTBR_FORWARD_INGRESS' does not exist
2024-05-14T09:12:47.359926+02:00 RPi1 otbr-firewall[628]: Try ip6tables -h' or 'ip6tables --help' for more information. 2024-05-14T09:12:47.361295+02:00 RPi1 otbr-firewall[558]: + ip6tables -L OTBR_FORWARD_INGRESS 2024-05-14T09:12:47.363175+02:00 RPi1 otbr-firewall[679]: ip6tables v1.8.9 (nf_tables): chain OTBR_FORWARD_INGRESS' in table filter' is incompatible, use 'nft' tool. 2024-05-14T09:12:47.364485+02:00 RPi1 otbr-firewall[558]: + ipset_destroy_if_exist otbr-ingress-deny-src 2024-05-14T09:12:47.364671+02:00 RPi1 otbr-firewall[558]: + ipset list otbr-ingress-deny-src 2024-05-14T09:12:47.382691+02:00 RPi1 systemd[1]: Starting otbr-firewall.service - LSB: OTBR firewall... 2024-05-14T09:12:47.458446+02:00 RPi1 otbr-firewall[680]: ipset v7.17: The set with the given name does not exist 2024-05-14T09:12:47.458803+02:00 RPi1 otbr-firewall[558]: + ipset_destroy_if_exist otbr-ingress-deny-src-swap 2024-05-14T09:12:47.458984+02:00 RPi1 otbr-firewall[558]: + ipset list otbr-ingress-deny-src-swap 2024-05-14T09:12:47.467492+02:00 RPi1 otbr-firewall[692]: ipset v7.17: The set with the given name does not exist 2024-05-14T09:12:47.468113+02:00 RPi1 otbr-firewall[558]: + ipset_destroy_if_exist otbr-ingress-allow-dst 2024-05-14T09:12:47.468470+02:00 RPi1 otbr-firewall[558]: + ipset list otbr-ingress-allow-dst 2024-05-14T09:12:47.474967+02:00 RPi1 otbr-firewall[694]: ipset v7.17: The set with the given name does not exist 2024-05-14T09:12:47.475484+02:00 RPi1 otbr-firewall[558]: + ipset_destroy_if_exist otbr-ingress-allow-dst-swap 2024-05-14T09:12:47.475777+02:00 RPi1 otbr-firewall[558]: + ipset list otbr-ingress-allow-dst-swap 2024-05-14T09:12:47.481437+02:00 RPi1 otbr-firewall[695]: ipset v7.17: The set with the given name does not exist 2024-05-14T09:12:47.482141+02:00 RPi1 otbr-firewall[558]: + ipset create -exist otbr-ingress-deny-src hash:net family inet6 2024-05-14T09:12:47.518697+02:00 RPi1 otbr-firewall[558]: + ipset create -exist otbr-ingress-deny-src-swap hash:net family inet6 2024-05-14T09:12:47.525766+02:00 RPi1 otbr-firewall[558]: + ipset create -exist otbr-ingress-allow-dst hash:net family inet6 2024-05-14T09:12:47.533488+02:00 RPi1 otbr-firewall[558]: + ipset create -exist otbr-ingress-allow-dst-swap hash:net family inet6 2024-05-14T09:12:47.540535+02:00 RPi1 otbr-firewall[558]: + ip6tables -N OTBR_FORWARD_INGRESS 2024-05-14T09:12:47.552023+02:00 RPi1 otbr-firewall[558]: + ip6tables -I FORWARD 1 -o wpan0 -j OTBR_FORWARD_INGRESS 2024-05-14T09:12:47.563025+02:00 RPi1 otbr-firewall[558]: + ip6tables -A OTBR_FORWARD_INGRESS -m pkttype --pkt-type unicast -i wpan0 -j DROP 2024-05-14T09:12:47.675183+02:00 RPi1 otbr-firewall[558]: + ip6tables -A OTBR_FORWARD_INGRESS -m set --match-set otbr-ingress-deny-src src -j DROP 2024-05-14T09:12:47.722396+02:00 RPi1 otbr-firewall[558]: + ip6tables -A OTBR_FORWARD_INGRESS -m set --match-set otbr-ingress-allow-dst dst -j ACCEPT 2024-05-14T09:12:47.733719+02:00 RPi1 otbr-firewall[558]: + ip6tables -A OTBR_FORWARD_INGRESS -m pkttype --pkt-type unicast -j DROP 2024-05-14T09:12:47.743749+02:00 RPi1 otbr-firewall[558]: + ip6tables -A OTBR_FORWARD_INGRESS -j ACCEPT 2024-05-14T09:12:49.309536+02:00 RPi1 systemd[1]: Started otbr-firewall.service - LSB: OTBR firewall. 2024-05-14T09:37:19.544830+02:00 RPi1 systemd[1]: Stopping otbr-firewall.service - LSB: OTBR firewall... 2024-05-14T09:37:19.575275+02:00 RPi1 otbr-firewall[4270]: + case "$1" in 2024-05-14T09:37:19.575557+02:00 RPi1 otbr-firewall[4270]: + firewall_stop 2024-05-14T09:37:19.575659+02:00 RPi1 otbr-firewall[4270]: + ip6tables -C FORWARD -o wpan0 -j OTBR_FORWARD_INGRESS 2024-05-14T09:37:19.577742+02:00 RPi1 otbr-firewall[4270]: + ip6tables -D FORWARD -o wpan0 -j OTBR_FORWARD_INGRESS 2024-05-14T09:37:19.611849+02:00 RPi1 otbr-firewall[4270]: + ip6tables -C FORWARD -o wpan0 -j OTBR_FORWARD_INGRESS 2024-05-14T09:37:19.614481+02:00 RPi1 otbr-firewall[4278]: ip6tables: Bad rule (does a matching rule exist in that chain?). 2024-05-14T09:37:19.614686+02:00 RPi1 otbr-firewall[4270]: + ip6tables -L OTBR_FORWARD_INGRESS 2024-05-14T09:37:19.618169+02:00 RPi1 otbr-firewall[4279]: Chain OTBR_FORWARD_INGRESS (0 references) 2024-05-14T09:37:19.618328+02:00 RPi1 otbr-firewall[4279]: target prot opt source destination 2024-05-14T09:37:19.618397+02:00 RPi1 otbr-firewall[4279]: DROP all -- anywhere anywhere PKTTYPE = unicast 2024-05-14T09:37:19.618445+02:00 RPi1 otbr-firewall[4279]: DROP all -- anywhere anywhere match-set otbr-ingress-deny-src src 2024-05-14T09:37:19.618497+02:00 RPi1 otbr-firewall[4279]: ACCEPT all -- anywhere anywhere match-set otbr-ingress-allow-dst dst 2024-05-14T09:37:19.618554+02:00 RPi1 otbr-firewall[4279]: DROP all -- anywhere anywhere PKTTYPE = unicast 2024-05-14T09:37:19.618594+02:00 RPi1 otbr-firewall[4279]: ACCEPT all -- anywhere anywhere 2024-05-14T09:37:19.618689+02:00 RPi1 otbr-firewall[4270]: + ip6tables -w -F OTBR_FORWARD_INGRESS 2024-05-14T09:37:19.621137+02:00 RPi1 otbr-firewall[4270]: + ip6tables -w -X OTBR_FORWARD_INGRESS 2024-05-14T09:37:19.675916+02:00 RPi1 otbr-firewall[4270]: + ipset_destroy_if_exist otbr-ingress-deny-src 2024-05-14T09:37:19.676057+02:00 RPi1 otbr-firewall[4270]: + ipset list otbr-ingress-deny-src 2024-05-14T09:37:19.678265+02:00 RPi1 otbr-firewall[4282]: Name: otbr-ingress-deny-src 2024-05-14T09:37:19.678420+02:00 RPi1 otbr-firewall[4282]: Type: hash:net 2024-05-14T09:37:19.678470+02:00 RPi1 otbr-firewall[4282]: Revision: 7 2024-05-14T09:37:19.678518+02:00 RPi1 otbr-firewall[4282]: Header: family inet6 hashsize 1024 maxelem 65536 bucketsize 12 initval 0x92755564 2024-05-14T09:37:19.678570+02:00 RPi1 otbr-firewall[4282]: Size in memory: 1240 2024-05-14T09:37:19.678619+02:00 RPi1 otbr-firewall[4282]: References: 0 2024-05-14T09:37:19.678667+02:00 RPi1 otbr-firewall[4282]: Number of entries: 0 2024-05-14T09:37:19.678712+02:00 RPi1 otbr-firewall[4282]: Members: 2024-05-14T09:37:19.678809+02:00 RPi1 otbr-firewall[4270]: + ipset destroy otbr-ingress-deny-src 2024-05-14T09:37:19.680729+02:00 RPi1 otbr-firewall[4270]: + ipset_destroy_if_exist otbr-ingress-deny-src-swap 2024-05-14T09:37:19.680856+02:00 RPi1 otbr-firewall[4270]: + ipset list otbr-ingress-deny-src-swap 2024-05-14T09:37:19.683121+02:00 RPi1 otbr-firewall[4284]: Name: otbr-ingress-deny-src-swap 2024-05-14T09:37:19.683274+02:00 RPi1 otbr-firewall[4284]: Type: hash:net 2024-05-14T09:37:19.683362+02:00 RPi1 otbr-firewall[4284]: Revision: 7 2024-05-14T09:37:19.683410+02:00 RPi1 otbr-firewall[4284]: Header: family inet6 hashsize 1024 maxelem 65536 bucketsize 12 initval 0xce40192a 2024-05-14T09:37:19.683494+02:00 RPi1 otbr-firewall[4284]: Size in memory: 1240 2024-05-14T09:37:19.683542+02:00 RPi1 otbr-firewall[4284]: References: 0 2024-05-14T09:37:19.683616+02:00 RPi1 otbr-firewall[4284]: Number of entries: 0 2024-05-14T09:37:19.683661+02:00 RPi1 otbr-firewall[4284]: Members: 2024-05-14T09:37:19.683769+02:00 RPi1 otbr-firewall[4270]: + ipset destroy otbr-ingress-deny-src-swap 2024-05-14T09:37:19.685603+02:00 RPi1 otbr-firewall[4270]: + ipset_destroy_if_exist otbr-ingress-allow-dst 2024-05-14T09:37:19.685730+02:00 RPi1 otbr-firewall[4270]: + ipset list otbr-ingress-allow-dst 2024-05-14T09:37:19.688019+02:00 RPi1 otbr-firewall[4286]: Name: otbr-ingress-allow-dst 2024-05-14T09:37:19.688188+02:00 RPi1 otbr-firewall[4286]: Type: hash:net 2024-05-14T09:37:19.688241+02:00 RPi1 otbr-firewall[4286]: Revision: 7 2024-05-14T09:37:19.688289+02:00 RPi1 otbr-firewall[4286]: Header: family inet6 hashsize 1024 maxelem 65536 bucketsize 12 initval 0x3bf52d3d 2024-05-14T09:37:19.688351+02:00 RPi1 otbr-firewall[4286]: Size in memory: 1240 2024-05-14T09:37:19.688391+02:00 RPi1 otbr-firewall[4286]: References: 0 2024-05-14T09:37:19.688430+02:00 RPi1 otbr-firewall[4286]: Number of entries: 0 2024-05-14T09:37:19.688466+02:00 RPi1 otbr-firewall[4286]: Members: 2024-05-14T09:37:19.688547+02:00 RPi1 otbr-firewall[4270]: + ipset destroy otbr-ingress-allow-dst 2024-05-14T09:37:19.690366+02:00 RPi1 otbr-firewall[4270]: + ipset_destroy_if_exist otbr-ingress-allow-dst-swap 2024-05-14T09:37:19.690493+02:00 RPi1 otbr-firewall[4270]: + ipset list otbr-ingress-allow-dst-swap 2024-05-14T09:37:19.692784+02:00 RPi1 otbr-firewall[4288]: Name: otbr-ingress-allow-dst-swap 2024-05-14T09:37:19.692955+02:00 RPi1 otbr-firewall[4288]: Type: hash:net 2024-05-14T09:37:19.693004+02:00 RPi1 otbr-firewall[4288]: Revision: 7 2024-05-14T09:37:19.693046+02:00 RPi1 otbr-firewall[4288]: Header: family inet6 hashsize 1024 maxelem 65536 bucketsize 12 initval 0x345d24b5 2024-05-14T09:37:19.693118+02:00 RPi1 otbr-firewall[4288]: Size in memory: 1240 2024-05-14T09:37:19.693171+02:00 RPi1 otbr-firewall[4288]: References: 0 2024-05-14T09:37:19.693216+02:00 RPi1 otbr-firewall[4288]: Number of entries: 0 2024-05-14T09:37:19.693254+02:00 RPi1 otbr-firewall[4288]: Members: 2024-05-14T09:37:19.693332+02:00 RPi1 otbr-firewall[4270]: + ipset destroy otbr-ingress-allow-dst-swap 2024-05-14T09:37:19.695965+02:00 RPi1 systemd[1]: otbr-firewall.service: Deactivated successfully. 2024-05-14T09:37:19.696420+02:00 RPi1 systemd[1]: Stopped otbr-firewall.service - LSB: OTBR firewall. 2024-05-14T09:37:29.760806+02:00 RPi1 systemd[1]: Starting otbr-firewall.service - LSB: OTBR firewall... 2024-05-14T09:37:29.791838+02:00 RPi1 otbr-firewall[4445]: + case "$1" in 2024-05-14T09:37:29.792072+02:00 RPi1 otbr-firewall[4445]: + firewall_start 2024-05-14T09:37:29.792122+02:00 RPi1 otbr-firewall[4445]: + firewall_stop 2024-05-14T09:37:29.792163+02:00 RPi1 otbr-firewall[4445]: + ip6tables -C FORWARD -o wpan0 -j OTBR_FORWARD_INGRESS 2024-05-14T09:37:29.793778+02:00 RPi1 otbr-firewall[4451]: ip6tables v1.8.9 (nf_tables): Chain 'OTBR_FORWARD_INGRESS' does not exist 2024-05-14T09:37:29.793934+02:00 RPi1 otbr-firewall[4451]: Try ip6tables -h' or 'ip6tables --help' for more information.
2024-05-14T09:37:29.794016+02:00 RPi1 otbr-firewall[4445]: + ip6tables -L OTBR_FORWARD_INGRESS
2024-05-14T09:37:29.796577+02:00 RPi1 otbr-firewall[4452]: ip6tables v1.8.9 (nf_tables): chain OTBR_FORWARD_INGRESS' in table filter' is incompatible, use 'nft' tool.
2024-05-14T09:37:29.796764+02:00 RPi1 otbr-firewall[4445]: + ipset_destroy_if_exist otbr-ingress-deny-src
2024-05-14T09:37:29.796817+02:00 RPi1 otbr-firewall[4445]: + ipset list otbr-ingress-deny-src
2024-05-14T09:37:29.799013+02:00 RPi1 otbr-firewall[4453]: ipset v7.17: The set with the given name does not exist
2024-05-14T09:37:29.799186+02:00 RPi1 otbr-firewall[4445]: + ipset_destroy_if_exist otbr-ingress-deny-src-swap
2024-05-14T09:37:29.799236+02:00 RPi1 otbr-firewall[4445]: + ipset list otbr-ingress-deny-src-swap
2024-05-14T09:37:29.801449+02:00 RPi1 otbr-firewall[4454]: ipset v7.17: The set with the given name does not exist
2024-05-14T09:37:29.801638+02:00 RPi1 otbr-firewall[4445]: + ipset_destroy_if_exist otbr-ingress-allow-dst
2024-05-14T09:37:29.801688+02:00 RPi1 otbr-firewall[4445]: + ipset list otbr-ingress-allow-dst
2024-05-14T09:37:29.803893+02:00 RPi1 otbr-firewall[4455]: ipset v7.17: The set with the given name does not exist
2024-05-14T09:37:29.804077+02:00 RPi1 otbr-firewall[4445]: + ipset_destroy_if_exist otbr-ingress-allow-dst-swap
2024-05-14T09:37:29.804127+02:00 RPi1 otbr-firewall[4445]: + ipset list otbr-ingress-allow-dst-swap
2024-05-14T09:37:29.806268+02:00 RPi1 otbr-firewall[4456]: ipset v7.17: The set with the given name does not exist
2024-05-14T09:37:29.806403+02:00 RPi1 otbr-firewall[4445]: + ipset create -exist otbr-ingress-deny-src hash:net family inet6
2024-05-14T09:37:29.808783+02:00 RPi1 otbr-firewall[4445]: + ipset create -exist otbr-ingress-deny-src-swap hash:net family inet6
2024-05-14T09:37:29.811116+02:00 RPi1 otbr-firewall[4445]: + ipset create -exist otbr-ingress-allow-dst hash:net family inet6
2024-05-14T09:37:29.813646+02:00 RPi1 otbr-firewall[4445]: + ipset create -exist otbr-ingress-allow-dst-swap hash:net family inet6
2024-05-14T09:37:29.815987+02:00 RPi1 otbr-firewall[4445]: + ip6tables -N OTBR_FORWARD_INGRESS
2024-05-14T09:37:29.818691+02:00 RPi1 otbr-firewall[4445]: + ip6tables -I FORWARD 1 -o wpan0 -j OTBR_FORWARD_INGRESS
2024-05-14T09:37:29.821490+02:00 RPi1 otbr-firewall[4445]: + ip6tables -A OTBR_FORWARD_INGRESS -m pkttype --pkt-type unicast -i wpan0 -j DROP
2024-05-14T09:37:29.824700+02:00 RPi1 otbr-firewall[4445]: + ip6tables -A OTBR_FORWARD_INGRESS -m set --match-set otbr-ingress-deny-src src -j DROP
2024-05-14T09:37:29.827935+02:00 RPi1 otbr-firewall[4445]: + ip6tables -A OTBR_FORWARD_INGRESS -m set --match-set otbr-ingress-allow-dst dst -j ACCEPT
2024-05-14T09:37:29.831166+02:00 RPi1 otbr-firewall[4445]: + ip6tables -A OTBR_FORWARD_INGRESS -m pkttype --pkt-type unicast -j DROP
2024-05-14T09:37:29.834485+02:00 RPi1 otbr-firewall[4445]: + ip6tables -A OTBR_FORWARD_INGRESS -j ACCEPT
2024-05-14T09:37:29.838418+02:00 RPi1 systemd[1]: Started otbr-firewall.service - LSB: OTBR firewall.

I am about to give up.
Thanks for your help anyway.

@superwhd
Copy link
Contributor

superwhd commented May 14, 2024

You may try using avahi instead of mDNSResponder if you'd like to give it a try. Avahi is installed via package manager so it may be less error prone.

OTBR_MDNS=avahi ./script/setup

@DSimeone1989
Copy link
Author

It did it!
It ran through!
Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants