diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ddf07cc..80f6745 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,9 @@ jobs: - name: raspi script: ./install_pi.sh base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-07-04/2024-07-04-raspios-bookworm-arm64-lite.img.xz + - name: raspi_dev + script: ./install_dev_pi.sh + base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-07-04/2024-07-04-raspios-bookworm-arm64-lite.img.xz - name: snakeyes script: ./install_snakeyes.sh base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-07-04/2024-07-04-raspios-bookworm-arm64-lite.img.xz diff --git a/install_dev_pi.sh b/install_dev_pi.sh new file mode 100644 index 0000000..1548160 --- /dev/null +++ b/install_dev_pi.sh @@ -0,0 +1,37 @@ +# Run normal photon installer +chmod +x ./install.sh +./install.sh -q + +# and edit boot partition +install -m 644 config.txt /boot/ +install -m 644 userconf.txt /boot/ + +# Kill wifi and other networking things +install -v -m 644 files/wait.conf /etc/systemd/system/dhcpcd.service.d/ +install -v files/rpi-blacklist.conf /etc/modprobe.d/blacklist.conf + +# Update pigipio service file to listen locally +install -v -m 644 files/pigpiod.service /lib/systemd/system/pigpiod.service +systemctl daemon-reload + +# Enable ssh/pigpiod +systemctl enable ssh +systemctl enable pigpiod + +# Remove extra packages too +echo "Purging extra things" +apt-get purge -y gdb gcc g++ linux-headers* libgcc*-dev +apt-get autoremove -y + +echo "Installing additional things" +sudo apt-get update +apt-get install -y pigpiod pigpio device-tree-compiler +apt-get install -y network-manager net-tools +# libcamera-driver stuff +apt-get install -y libegl1 libopengl0 libgl1-mesa-dri libgbm1 libegl1-mesa-dev libcamera-dev cmake build-essential libdrm-dev libgbm-dev default-jdk openjdk-17-jdk + +rm -rf /var/lib/apt/lists/* +apt-get clean + +rm -rf /usr/share/doc +rm -rf /usr/share/locale/ diff --git a/install_limelight.sh b/install_limelight.sh index 728af24..27b358b 100755 --- a/install_limelight.sh +++ b/install_limelight.sh @@ -31,7 +31,7 @@ sudo apt-get update apt-get install -y pigpiod pigpio device-tree-compiler apt-get install -y network-manager net-tools # libcamera-driver stuff -apt-get install -y libegl1 libopengl0 libgl1-mesa-dri libcamera0.3 libgbm1 +apt-get install -y libegl1 libopengl0 libgl1-mesa-dri libcamera-dev libgbm1 rm -rf /var/lib/apt/lists/* apt-get clean diff --git a/install_pi.sh b/install_pi.sh index 80e08a6..940a691 100755 --- a/install_pi.sh +++ b/install_pi.sh @@ -28,7 +28,7 @@ sudo apt-get update apt-get install -y pigpiod pigpio device-tree-compiler apt-get install -y network-manager net-tools # libcamera-driver stuff -apt-get install -y libegl1 libopengl0 libgl1-mesa-dri libcamera0.3 libgbm1 +apt-get install -y libegl1 libopengl0 libgl1-mesa-dri libcamera-dev libgbm1 rm -rf /var/lib/apt/lists/* apt-get clean