From db58e06180c5884e4bb9f670d7f20546815b8c8d Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Mon, 10 Mar 2025 18:53:00 +0800 Subject: [PATCH 01/11] Add limelight-4 supportg Signed-off-by: Jade Turner --- .github/workflows/main.yml | 5 ++++- install_limelight4.sh | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 install_limelight4.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa174da4..df4e5cb9 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_limelight4.sh b/install_limelight4.sh new file mode 100644 index 00000000..6836f24e --- /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 From 857537127f58aa90632b18280defb1f7e9b2d752 Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Wed, 12 Mar 2025 22:55:58 +0800 Subject: [PATCH 02/11] juniormk change Signed-off-by: Jade Turner --- install_limelight3g.sh | 2 +- limelight3g/config.txt | 2 +- limelight4/config.txt | 45 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 limelight4/config.txt diff --git a/install_limelight3g.sh b/install_limelight3g.sh index 6836f24e..e43547dc 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/limelight3g/config.txt b/limelight3g/config.txt index 94dba680..21bda7c7 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 00000000..94dba680 --- /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 + +############################################################## From d1f440793e300cfd8db3476493fabcf2b1c60226 Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Fri, 9 May 2025 11:13:42 +0800 Subject: [PATCH 03/11] fixes Signed-off-by: Jade Turner --- limelight3g/config.txt | 2 +- limelight4/config.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/limelight3g/config.txt b/limelight3g/config.txt index 21bda7c7..94dba680 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,cam0 +dtoverlay=ov9281 ############################################################## diff --git a/limelight4/config.txt b/limelight4/config.txt index 94dba680..1f215216 100644 --- a/limelight4/config.txt +++ b/limelight4/config.txt @@ -15,13 +15,13 @@ arm_64bit=1 # Disable compensation for displays with overscan disable_overscan=1 -[cm4] +[cm5] # 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] +[pi5] # Run as fast as firmware / board allows arm_boost=1 @@ -40,6 +40,6 @@ arm_boost=1 # dtoverlay=imx290,clock-frequency=74250000 # dtoverlay=imx290,clock-frequency=37125000 # dtoverlay=imx378 -dtoverlay=ov9281 +dtoverlay=ov9281,cam0 ############################################################## From 19bc3082194426e644ea447eef2bdd0720c2b6be Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Fri, 9 May 2025 11:14:20 +0800 Subject: [PATCH 04/11] fix Signed-off-by: Jade Turner --- install_limelight3g.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_limelight3g.sh b/install_limelight3g.sh index e43547dc..6836f24e 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 limelight4/config.txt /boot/ +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 From 1b94540ceff6ba4afdbb69e0a3fbfc0ca6ef45c9 Mon Sep 17 00:00:00 2001 From: Jade Date: Wed, 2 Jul 2025 22:21:38 +0800 Subject: [PATCH 05/11] trigger actions rerun --- install_limelight4.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install_limelight4.sh b/install_limelight4.sh index 6836f24e..5da5c7ff 100644 --- a/install_limelight4.sh +++ b/install_limelight4.sh @@ -3,6 +3,7 @@ # Verbose and exit on errors set -ex + # Run the pi install script chmod +x ./install_pi.sh ./install_pi.sh From 31557028e056d0672aed6643a0d0bbe9b0fc2b09 Mon Sep 17 00:00:00 2001 From: Jade Date: Wed, 2 Jul 2025 23:19:32 +0800 Subject: [PATCH 06/11] Update install_limelight4.sh --- install_limelight4.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_limelight4.sh b/install_limelight4.sh index 5da5c7ff..edcb0d63 100644 --- a/install_limelight4.sh +++ b/install_limelight4.sh @@ -9,7 +9,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 From f045b8da8dab5cbfa0e6e44ea5caee0bc3bb4b8c Mon Sep 17 00:00:00 2001 From: Jade Date: Fri, 29 Aug 2025 23:55:24 +0800 Subject: [PATCH 07/11] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e69de29b..282e5913 100644 --- a/README.md +++ b/README.md @@ -0,0 +1 @@ +trigger ci From 9aeaca726ad33f09ce6a321b7f33a0578e82675f Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Sun, 14 Sep 2025 14:16:58 +0800 Subject: [PATCH 08/11] Fix Signed-off-by: Jade Turner --- README.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 282e5913..00000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -trigger ci From 4d3c445f59d28ac81daca8e850e62147f18cb505 Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Sun, 14 Sep 2025 14:17:43 +0800 Subject: [PATCH 09/11] fix 2 electric boogaloo Signed-off-by: Jade Turner --- README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 00000000..e69de29b From 2893fe10ac6bb8955e18cce6302a0291ec79f607 Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Sun, 14 Sep 2025 14:18:50 +0800 Subject: [PATCH 10/11] Remove uneeded file Signed-off-by: Jade Turner --- install_limelight4.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/install_limelight4.sh b/install_limelight4.sh index edcb0d63..8d358d7e 100644 --- a/install_limelight4.sh +++ b/install_limelight4.sh @@ -10,6 +10,3 @@ chmod +x ./install_pi.sh # Install our new config.txt with OV9281 overlay 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 From f50e93816762a8883f6eaf7907fa1cc66aa2acd5 Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Mon, 15 Sep 2025 13:00:07 +0800 Subject: [PATCH 11/11] fix Signed-off-by: Jade Turner --- install_limelight4.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/install_limelight4.sh b/install_limelight4.sh index 8d358d7e..e451133a 100644 --- a/install_limelight4.sh +++ b/install_limelight4.sh @@ -3,7 +3,6 @@ # Verbose and exit on errors set -ex - # Run the pi install script chmod +x ./install_pi.sh ./install_pi.sh