From a449898769de7bb97b8f9b3006eef2dd3f3703a3 Mon Sep 17 00:00:00 2001 From: Yang Song Date: Thu, 9 Jan 2025 07:55:23 +0000 Subject: [PATCH] Update the Rasbian image to Debian 12 Bookworm to support Raspi 5 --- script/otbr-cleanup.bash | 1 + script/otbr-setup.bash | 12 ++++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/script/otbr-cleanup.bash b/script/otbr-cleanup.bash index 12d67ffa..9fe9fe69 100644 --- a/script/otbr-cleanup.bash +++ b/script/otbr-cleanup.bash @@ -36,6 +36,7 @@ readonly OTBR_BUILD_DEPS='apt-utils build-essential ninja-build cmake wget ca-ce readonly OTBR_DOCKER_DEPS='git ca-certificates' cd /home/pi/repo/ot-br-posix +deactivate # deactivate the virtual python environment /home/pi/.python3_venv mv ./script /tmp mv ./etc /tmp find . -delete diff --git a/script/otbr-setup.bash b/script/otbr-setup.bash index 6b41759e..32fec9dc 100755 --- a/script/otbr-setup.bash +++ b/script/otbr-setup.bash @@ -157,7 +157,6 @@ elif [ "${REFERENCE_RELEASE_TYPE?}" = "1.4" ]; then 'BORDER_ROUTING=1' 'NAT64=1' 'DNS64=1' - 'DHCPV6_PD_REF=1' "OTBR_OPTIONS=\"${OTBR_THREAD_1_4_OPTIONS[@]} -DOT_RCP_RESTORATION_MAX_COUNT=100 -DCMAKE_CXX_FLAGS='-DOPENTHREAD_CONFIG_MAC_CSL_REQUEST_AHEAD_US=5000'\"" ) build_options+=("${LOCAL_OPTIONS[@]}") @@ -167,7 +166,6 @@ elif [ "${REFERENCE_RELEASE_TYPE?}" = "1.4" ]; then 'BORDER_ROUTING=1' 'NAT64=1' 'DNS64=1' - 'DHCPV6_PD_REF=1' "OTBR_OPTIONS=\"${OTBR_THREAD_1_4_OPTIONS[@]}\"" ) build_options+=("${LOCAL_OPTIONS[@]}") @@ -197,16 +195,15 @@ cp -rp /home/pi/repo/openthread /home/pi/repo/ot-br-posix/third_party/openthread apt-get purge -y cmake -python3 -m venv /home/pi/.venv -source /home/pi/.venv/bin/activate +python3 -m venv /home/pi/.python3_venv +source /home/pi/.python3_venv/bin/activate + pip3 install scikit-build pip3 install cmake==3.20.2 cmake --version pip3 install zeroconf - -apt-get install -y --no-install-recommends libgirepository1.0-dev -pip3 install dbus-python PyGObject +apt-get install -y --no-install-recommends python3-gi python3-dbus su -c "${build_options[*]} script/setup" pi @@ -228,7 +225,6 @@ if [ "${REFERENCE_PLATFORM?}" = "ncs" ]; then # add calling of link_dongle.py script at startup to update symlink to the dongle sudo touch /etc/rc.local sudo chmod +x /etc/rc.local - sed -i '/exit 0/d' /etc/rc.local grep -qxF 'sudo systemctl restart otbr-agent.service' /etc/rc.local || echo 'sudo systemctl restart otbr-agent.service' >>/etc/rc.local echo 'exit 0' >>/etc/rc.local