diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa174da..df4e5cb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,9 @@ jobs: - name: limelight3g script: ./install_limelight3g.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: limelight4 + script: ./install_limelight4.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 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 @@ -51,7 +54,7 @@ jobs: - name: rock5c script: ./install_opi5.sh base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v2.4.0/ubuntu-24.04-preinstalled-server-arm64-rock-5c.img.xz - + name: "Build for ${{ matrix.name }}" steps: diff --git a/install_limelight3g.sh b/install_limelight3g.sh index 6836f24..e43547d 100644 --- a/install_limelight3g.sh +++ b/install_limelight3g.sh @@ -8,7 +8,7 @@ chmod +x ./install_pi.sh ./install_pi.sh # Install our new config.txt with OV9281 overlay -install -m 644 limelight3g/config.txt /boot/ +install -m 644 limelight4/config.txt /boot/ # Add the one extra file for the LL3 wget https://datasheets.raspberrypi.org/cmio/dt-blob-cam1.bin -O /boot/dt-blob.bin diff --git a/install_limelight4.sh b/install_limelight4.sh new file mode 100644 index 0000000..6836f24 --- /dev/null +++ b/install_limelight4.sh @@ -0,0 +1,14 @@ +#!/bin/bash -v + +# Verbose and exit on errors +set -ex + +# Run the pi install script +chmod +x ./install_pi.sh +./install_pi.sh + +# Install our new config.txt with OV9281 overlay +install -m 644 limelight3g/config.txt /boot/ + +# Add the one extra file for the LL3 +wget https://datasheets.raspberrypi.org/cmio/dt-blob-cam1.bin -O /boot/dt-blob.bin diff --git a/limelight3g/config.txt b/limelight3g/config.txt index 94dba68..21bda7c 100644 --- a/limelight3g/config.txt +++ b/limelight3g/config.txt @@ -40,6 +40,6 @@ arm_boost=1 # dtoverlay=imx290,clock-frequency=74250000 # dtoverlay=imx290,clock-frequency=37125000 # dtoverlay=imx378 -dtoverlay=ov9281 +dtoverlay=ov9281,cam0 ############################################################## diff --git a/limelight4/config.txt b/limelight4/config.txt new file mode 100644 index 0000000..94dba68 --- /dev/null +++ b/limelight4/config.txt @@ -0,0 +1,45 @@ +# Automatically load overlays for detected DSI displays/cameras +display_auto_detect=1 +camera_auto_detect=1 + +# Automatically load initramfs files, if found +auto_initramfs=1 + +# Enable DRM VC4 V3D driver +dtoverlay=vc4-kms-v3d +max_framebuffers=2 + +# Run in 64-bit mode +arm_64bit=1 + +# Disable compensation for displays with overscan +disable_overscan=1 + +[cm4] +# Enable host mode on the 2711 built-in XHCI USB controller. +# This line should be removed if the legacy DWC2 controller is required +# (e.g. for USB device mode) or if USB support is not required. +otg_mode=1 + +[pi4] +# Run as fast as firmware / board allows +arm_boost=1 + +[all] +############################################################## +### PHOTONVISION CAM CONFIG +### Comment/Uncomment to change which camera is supported +### Picam V1, V2 or HQ: uncomment (remove leading # ) from camera_auto_detect=1, +### and comment out all following lines +### IMX290/327/OV9281/Any other cameras that require additional overlays: +### Comment out (add a # ) to camera_auto_detect=1, and uncomment the line for +### the sensor you're trying to user + +# camera_auto_detect=1 + +# dtoverlay=imx290,clock-frequency=74250000 +# dtoverlay=imx290,clock-frequency=37125000 +# dtoverlay=imx378 +dtoverlay=ov9281 + +##############################################################