-
Notifications
You must be signed in to change notification settings - Fork 27
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
Update the Rasbian image to Debian 12 Bookworm to support Raspi 5 #100
Draft
yangsong-cnyn
wants to merge
2
commits into
openthread:main
Choose a base branch
from
yangsong-cnyn:raspbian_bookworm
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -178,9 +178,9 @@ fi | |||
configure_apt_source() | ||||
{ | ||||
if [ "$IN_CHINA" = 1 ]; then | ||||
echo 'deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpi | ||||
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpi' | sudo tee /etc/apt/sources.list | ||||
echo 'deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui' | sudo tee /etc/apt/sources.list.d/raspi.list | ||||
echo 'deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bookworm main non-free contrib rpi | ||||
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bookworm main non-free contrib rpi' | sudo tee /etc/apt/sources.list | ||||
echo 'deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bookworm main ui' | sudo tee /etc/apt/sources.list.d/raspi.list | ||||
fi | ||||
} | ||||
configure_apt_source | ||||
|
@@ -189,13 +189,16 @@ echo "127.0.0.1 $(hostname)" >>/etc/hosts | |||
chown -R pi:pi /home/pi/repo | ||||
cd /home/pi/repo/ot-br-posix | ||||
apt-get update | ||||
apt-get install -y --no-install-recommends git python3-pip | ||||
apt-get install -y --no-install-recommends git python3-pip python3-venv | ||||
su -c "DOCKER=1 ${build_options[*]} script/bootstrap" pi | ||||
|
||||
rm -rf /home/pi/repo/ot-br-posix/third_party/openthread/repo | ||||
cp -rp /home/pi/repo/openthread /home/pi/repo/ot-br-posix/third_party/openthread/repo | ||||
|
||||
apt-get purge -y cmake | ||||
|
||||
python3 -m venv /home/pi/.venv | ||||
superwhd marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
source /home/pi/.venv/bin/activate | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should you call |
||||
pip3 install scikit-build | ||||
pip3 install cmake==3.20.2 | ||||
cmake --version | ||||
|
@@ -214,13 +217,18 @@ fi | |||
|
||||
# nRF Connect SDK related actions | ||||
if [ "${REFERENCE_PLATFORM?}" = "ncs" ]; then | ||||
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py | ||||
sudo python2 get-pip.py | ||||
apt-get install -y --no-install-recommends vim wiringpi | ||||
pip install wrapt==1.12.1 | ||||
pip install nrfutil | ||||
apt-get install -y --no-install-recommends vim | ||||
|
||||
wget https://project-downloads.drogon.net/wiringpi-latest.deb | ||||
sudo dpkg -i wiringpi-latest.deb | ||||
|
||||
pip3 install wrapt==1.12.1 | ||||
pip3 install nrfutil | ||||
|
||||
# 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 | ||||
|
||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
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 | ||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could the name of the virtual env be more specific so it's less likely to conflict with other virtual envs?