Skip to content

Commit 4579eda

Browse files
authored
move to latest radxa zero 3w image (#10)
* move to latest radxa zero 3w image * switch to debian base image * remove resolv.conf before writing it
1 parent 6a9d199 commit 4579eda

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/build.yml

+19-6
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,26 @@ jobs:
1919
run: |
2020
sudo apt-get update
2121
sudo apt-get install -y qemu-user-static
22-
system=radxa-zero3_ubuntu_jammy_cli_b6.img
23-
wget -nv https://github.com/radxa-build/radxa-zero3/releases/download/b6/${system}.xz
24-
unxz -T4 ${system}.xz
22+
23+
# https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-generic-arm64.tar.xz
24+
# https://github.com/OpenIPC/sbc-groundstations/releases/download/zero3w-v1.7.0/radxaZero3wrev2.img.xz
25+
26+
host=https://cloud.debian.org/images/cloud/bullseye
27+
release=latest
28+
system=debian-11-generic-arm64.tar
29+
30+
wget -nv ${host}/${release}/${system}.xz
31+
# unxz -T4 ${system}.xz
32+
tar -xf ${system}.xz
2533
2634
output=output
2735
mkdir $output
28-
device=$(sudo losetup -P --show -f ${system})
29-
sudo mount ${device}p3 $output
36+
37+
# device=$(sudo losetup -P --show -f ${system})
38+
# sudo mount ${device}p3 $output
39+
40+
device=$(sudo losetup -P --show -f disk.raw)
41+
sudo mount ${device}p1 $output
3042
3143
cat > build.sh << EOL
3244
#!/bin/bash
@@ -44,7 +56,8 @@ jobs:
4456
4557
chmod 755 build.sh
4658
sudo cp -r build.sh CMakeLists.txt src $output/home
47-
echo nameserver 8.8.8.8 | sudo tee -a $output/etc/resolv.conf
59+
sudo rm $output/etc/resolv.conf
60+
echo nameserver 1.1.1.1 | sudo tee -a $output/etc/resolv.conf
4861
sudo chroot $output /home/build.sh
4962
sudo cp $output/home/build/pixelpilot .
5063

0 commit comments

Comments
 (0)