Skip to content

Commit

Permalink
move to latest radxa zero 3w image (#10)
Browse files Browse the repository at this point in the history
* move to latest radxa zero 3w image

* switch to debian base image

* remove resolv.conf before writing it
  • Loading branch information
luastoned authored Oct 3, 2024
1 parent 6a9d199 commit 4579eda
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,26 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
system=radxa-zero3_ubuntu_jammy_cli_b6.img
wget -nv https://github.com/radxa-build/radxa-zero3/releases/download/b6/${system}.xz
unxz -T4 ${system}.xz
# https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-generic-arm64.tar.xz
# https://github.com/OpenIPC/sbc-groundstations/releases/download/zero3w-v1.7.0/radxaZero3wrev2.img.xz
host=https://cloud.debian.org/images/cloud/bullseye
release=latest
system=debian-11-generic-arm64.tar
wget -nv ${host}/${release}/${system}.xz
# unxz -T4 ${system}.xz
tar -xf ${system}.xz
output=output
mkdir $output
device=$(sudo losetup -P --show -f ${system})
sudo mount ${device}p3 $output
# device=$(sudo losetup -P --show -f ${system})
# sudo mount ${device}p3 $output
device=$(sudo losetup -P --show -f disk.raw)
sudo mount ${device}p1 $output
cat > build.sh << EOL
#!/bin/bash
Expand All @@ -44,7 +56,8 @@ jobs:
chmod 755 build.sh
sudo cp -r build.sh CMakeLists.txt src $output/home
echo nameserver 8.8.8.8 | sudo tee -a $output/etc/resolv.conf
sudo rm $output/etc/resolv.conf
echo nameserver 1.1.1.1 | sudo tee -a $output/etc/resolv.conf
sudo chroot $output /home/build.sh
sudo cp $output/home/build/pixelpilot .
Expand Down

0 comments on commit 4579eda

Please sign in to comment.