Skip to content

Commit a9db193

Browse files
Merge branch 'pr/crschardt/120' into opi-gpio-line-names
2 parents 67ea3f2 + df76e3e commit a9db193

File tree

9 files changed

+71
-14
lines changed

9 files changed

+71
-14
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
minimum_free_mb: 2000
9999
image_url: ${{ matrix.base_image }}
100100
root_location: ${{ matrix.root_location || 'partition=2' }}
101+
boot_partition:
101102
shrink_image: ${{ matrix.shrink_image || 'yes' }}
102103
commands: |
103104
set -e

install_dev_pi.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# Exit on errors, print commands, ignore unset variables
44
set -ex +u
55

6+
# mount partition 1 as /boot/firmware
7+
mkdir --parent /boot/firmware
8+
mount "${loopdev}p1" /boot/firmware
9+
ls -la /boot/firmware
10+
611
# silence log spam from dpkg
712
cat > /etc/apt/apt.conf.d/99dpkg.conf << EOF
813
Dpkg::Progress-Fancy "0";
@@ -15,8 +20,8 @@ chmod +x ./install.sh
1520
./install.sh --install-nm=yes --arch=aarch64
1621

1722
# and edit boot partition
18-
install -m 644 config.txt /boot/
19-
install -m 644 userconf.txt /boot/
23+
install -m 644 config.txt /boot/firmware
24+
install -m 644 userconf.txt /boot/firmware
2025

2126
# configure hostname
2227
echo "photonvision" > /etc/hostname
@@ -46,3 +51,5 @@ apt-get clean
4651

4752
rm -rf /usr/share/doc
4853
rm -rf /usr/share/locale/
54+
55+
umount /boot/firmware

install_limelight.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# Exit on errors, print commands, ignore unset variables
44
set -ex +u
55

6+
# mount partition 1 as /boot/firmware
7+
mkdir --parent /boot/firmware
8+
mount "${loopdev}p1" /boot/firmware
9+
ls -la /boot/firmware
10+
611
# silence log spam from dpkg
712
cat > /etc/apt/apt.conf.d/99dpkg.conf << EOF
813
Dpkg::Progress-Fancy "0";
@@ -15,11 +20,11 @@ chmod +x ./install.sh
1520
./install.sh --install-nm=yes --arch=aarch64 --version="$1"
1621

1722
# edit boot partition
18-
install -m 644 limelight/config.txt /boot/
19-
install -m 644 userconf.txt /boot/
23+
install -m 644 limelight/config.txt /boot/firmware/
24+
install -m 644 userconf.txt /boot/firmware/
2025

2126
# install LL DTS
22-
dtc -O dtb limelight/gloworm-dt.dts -o /boot/dt-blob.bin
27+
dtc -O dtb limelight/gloworm-dt.dts -o /boot/firmware/dt-blob.bin
2328

2429
# Kill wifi and other networking things
2530
install -v -m 644 -D -t /etc/systemd/system/dhcpcd.service.d/ files/wait.conf
@@ -45,3 +50,5 @@ apt-get clean
4550

4651
rm -rf /usr/share/doc
4752
rm -rf /usr/share/locale/
53+
54+
umount /boot/firmware

install_limelight3.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@ set -ex +u
77
chmod +x ./install_pi.sh
88
./install_pi.sh
99

10+
# mount partition 1 as /boot/firmware
11+
mkdir --parent /boot/firmware
12+
mount "${loopdev}p1" /boot/firmware
13+
ls -la /boot/firmware
14+
1015
# Add the one extra file for the LL3
11-
wget https://datasheets.raspberrypi.org/cmio/dt-blob-cam1.bin -O /boot/dt-blob.bin
16+
wget https://datasheets.raspberrypi.org/cmio/dt-blob-cam1.bin -O /boot/firmware/dt-blob.bin
17+
18+
umount /boot/firmware

install_limelight3g.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@ set -ex +u
77
chmod +x ./install_pi.sh
88
./install_pi.sh
99

10+
# mount partition 1 as /boot/firmware
11+
mkdir --parent /boot/firmware
12+
mount "${loopdev}p1" /boot/firmware
13+
ls -la /boot/firmware
14+
1015
# Install our new config.txt with OV9281 overlay
11-
install -m 644 limelight3g/config.txt /boot/
16+
install -m 644 limelight3g/config.txt /boot/firmware
1217

1318
# Add the one extra file for the LL3
14-
wget https://datasheets.raspberrypi.org/cmio/dt-blob-cam1.bin -O /boot/dt-blob.bin
19+
wget https://datasheets.raspberrypi.org/cmio/dt-blob-cam1.bin -O /boot/firmware/dt-blob.bin
20+
21+
umount /boot/firmware

install_limelight4.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@ set -ex +u
77
chmod +x ./install_pi.sh
88
./install_pi.sh
99

10+
# mount partition 1 as /boot/firmware
11+
mkdir --parent /boot/firmware
12+
mount "${loopdev}p1" /boot/firmware
13+
ls -la /boot/firmware
14+
1015
# Install our new config.txt with OV9281 overlay
11-
install -m 644 limelight4/config.txt /boot/
16+
install -m 644 limelight4/config.txt /boot/firmware
17+
18+
umount /boot/firmware

install_luma_p1.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@ set -ex +u
77
chmod +x ./install_pi.sh
88
./install_pi.sh
99

10+
# mount partition 1 as /boot/firmware
11+
mkdir --parent /boot/firmware
12+
mount "${loopdev}p1" /boot/firmware
13+
ls -la /boot/firmware
14+
1015
# Install our new config.txt with OV9281 overlay
11-
install -m 644 luma_p1/config.txt /boot/
16+
install -m 644 luma_p1/config.txt /boot/firmware
1217

1318
# Add the database file for the p1 hardware config and default pipeline
1419
mkdir -p /opt/photonvision/photonvision_config
1520
install -v -m 644 luma_p1/photon.sqlite /opt/photonvision/photonvision_config/photon.sqlite
21+
22+
umount /boot/firmware

install_opi5.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# Exit on errors, print commands, ignore unset variables
44
set -ex +u
55

6+
# mount partition 1 as /CIDATA
7+
mkdir --parent /CIDATA
8+
mount "${loopdev}p1" /CIDATA
9+
ls -la /CIDATA
10+
611
# Create pi/raspberry login
712
if id "pi" >/dev/null 2>&1; then
813
echo 'user found'
@@ -62,9 +67,9 @@ apt-get --yes -qq install libc6 libstdc++6
6267
rm -f /etc/netplan/00-default-nm-renderer.yaml
6368

6469
# set NetworkManager as the renderer in cloud-init
65-
cp -f ./OPi5_CIDATA/network-config /boot/network-config
70+
cp -f ./OPi5_CIDATA/network-config /CIDATA/network-config
6671
# add customized user-data file for cloud-init
67-
cp -f ./OPi5_CIDATA/user-data /boot/user-data
72+
cp -f ./OPi5_CIDATA/user-data /CIDATA/user-data
6873

6974
# configure GPIO line names
7075
dtc -@ -I dts -O dtb -o $(echo /usr/lib/firmware/*-rockchip)/device-tree/rockchip/overlay/rk3588-line-names.dtbo ./files/rk3588-line-names.dtso
@@ -101,3 +106,5 @@ apt-get --yes -qq clean
101106

102107
rm -rf /usr/share/doc
103108
rm -rf /usr/share/locale/
109+
110+
umount /CIDATA

install_pi.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# Exit on errors, print commands, ignore unset variables
44
set -ex +u
55

6+
# mount partition 1 as /boot/firmware
7+
mkdir --parent /boot/firmware
8+
mount "${loopdev}p1" /boot/firmware
9+
ls -la /boot/firmware
10+
611
# silence log spam from dpkg
712
cat > /etc/apt/apt.conf.d/99dpkg.conf << EOF
813
Dpkg::Progress-Fancy "0";
@@ -15,8 +20,8 @@ chmod +x ./install.sh
1520
./install.sh -v "$1" --install-nm=yes --arch=aarch64 --version="$1"
1621

1722
# and edit boot partition
18-
install -m 644 config.txt /boot/
19-
install -m 644 userconf.txt /boot/
23+
install -m 644 config.txt /boot/firmware
24+
install -m 644 userconf.txt /boot/firmware
2025

2126
# configure hostname
2227
echo "photonvision" > /etc/hostname
@@ -46,3 +51,5 @@ apt-get clean
4651

4752
rm -rf /usr/share/doc
4853
rm -rf /usr/share/locale/
54+
55+
umount /boot/firmware

0 commit comments

Comments
 (0)