Skip to content

Commit

Permalink
Update the Rasbian image to Debian 12 Bookworm to support Raspi 5
Browse files Browse the repository at this point in the history
  • Loading branch information
yangsong-cnyn committed Jan 10, 2025
1 parent 767ecf1 commit a449898
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions script/otbr-cleanup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 4 additions & 8 deletions script/otbr-setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}")
Expand All @@ -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[@]}")
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit a449898

Please sign in to comment.