Installing OTBR manually (Raspberry Pi) on Ubuntu fails

Dear Support Team,

I am following the guide at https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/protocols/matter/getting_started/testing/thread_one_otbr.html to implement an OTBR and chiptool on my Raspberry Pi 3 device. Previously, I was able to set up a working OTBR on the Pi running the 2021-05-07-raspios-buster-armhf-lite OS.

However, I have encountered an issue when attempting to run the OTBR on the Pi while using Ubuntu Server 22.04.2 LTS (64 bit) or Ubuntu Server 20.04.5 LTS (64 bit). Every time I enter the command "INFRA_IF_NAME=wlan0 ./script/setup", the build freezes at the same place "[403/454] Building CXX object src/dbus/server/CMakeFiles/otbr-dbus-server.dir/dbus_object.cpp.o" ( I am unable to open another connection to the Pi using Putty so I guess the CPU froze).

I would greatly appreciate your help in resolving this issue. Please let me know if you need any additional information.

Thank you.

  • Hi,

    Which SD card are you using on your Raspberry Pi, and what size is it?

    Please run "ip a" on the Pi and share the log here.

    Best regards,

    Marte

  • Hi,

    I'm using an 16GB microSD HC A1 class 10.

    I ran the cmd "ip a" after the build got stuck at "[403/454] Building CXX object src/dbus/server/CMakeFiles/otbr-dbus-server.dir/dbus_object.cpp.o", here's the result :

    rasp@raspberrypi:~/ot-br-posix$ ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host
           valid_lft forever preferred_lft forever
    2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
        link/ether b8:27:eb:54:55:16 brd ff:ff:ff:ff:ff:ff
    3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether b8:27:eb:01:00:43 brd ff:ff:ff:ff:ff:ff
        inet 192.168.2.13/24 metric 600 brd 192.168.2.255 scope global dynamic wlan0
           valid_lft 85610sec preferred_lft 85610sec
        inet6 2a01:cb04:b43:a300:ba27:ebff:fe01:43/64 scope global dynamic mngtmpaddr noprefixroute
           valid_lft 86375sec preferred_lft 575sec
        inet6 fe80::ba27:ebff:fe01:43/64 scope link
           valid_lft forever preferred_lft forever

  • Hi,

    I see no issues from the "ip a" command. You may be running out of RAM. Can you run "htop" in parallel with the "INFRA_IF_NAME=wlan0 ./script/setup" command to observe RAM and CPU usage of running the command?

    Best regards,
    Marte

  • Hi,

    I have ~ 1GB RAM on the raspberry which was not enough for the build.

    I added 1GB swap memory and I am now able to finish the build succesfully.

    Thank you

Related