From 48235341d74578f0f1a4a858add371a23914dcc5 Mon Sep 17 00:00:00 2001 From: "Cameron (3539)" Date: Mon, 23 Sep 2024 19:41:35 -0400 Subject: [PATCH 1/4] Copy BB stuff and fix script run? --- .github/workflows/main.yml | 3 ++ install_limelight3g.sh | 8 ++++++ limelight3g/config.txt | 57 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 install_limelight3g.sh create mode 100644 limelight3g/config.txt diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b4f3fc0..09d0e95 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,9 @@ jobs: - name: limelight3 script: ./install_limelight3.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: 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: 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 diff --git a/install_limelight3g.sh b/install_limelight3g.sh new file mode 100644 index 0000000..f3034e0 --- /dev/null +++ b/install_limelight3g.sh @@ -0,0 +1,8 @@ +# Run the pi install script +chmod +x ./install_pi.sh +./install_pi.sh + +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 \ No newline at end of file diff --git a/limelight3g/config.txt b/limelight3g/config.txt new file mode 100644 index 0000000..e43514f --- /dev/null +++ b/limelight3g/config.txt @@ -0,0 +1,57 @@ +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on + +[cm3] +dtparam=cam0_reg +dtparam=cam0_reg_gpio=3 +dtoverlay=cm-swap-i2c0 +dtoverlay=ov9281,cam0 + +# Automatically load overlays for detected cameras +camera_auto_detect=1 + +[cm4] +dtoverlay=ov9281 + +[all] + +# Automatically load overlays for detected DSI displays +display_auto_detect=1 + +# Enable DRM VC4 V3D driver +dtoverlay=vc4-kms-v3d +dtparam=spi=on +dtparam=audio=off + +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] +#camera_auto_detect=1 +gpu_mem=256 + +[cm3] +dtoverlay=enc28j60 +dtoverlay=pi3-disable-bt +gpio=45=op,dh +disable_camera_led=1 +disable_splash=1 +force_eeprom_read=0 \ No newline at end of file From 6c62719c068c4c27f9d132687132e460f06aa0a3 Mon Sep 17 00:00:00 2001 From: "Cameron (3539)" Date: Wed, 25 Sep 2024 21:37:29 -0400 Subject: [PATCH 2/4] Update config.txt --- limelight3g/config.txt | 54 ++++++++++++++++-------------------------- 1 file changed, 21 insertions(+), 33 deletions(-) diff --git a/limelight3g/config.txt b/limelight3g/config.txt index e43514f..94dba68 100644 --- a/limelight3g/config.txt +++ b/limelight3g/config.txt @@ -1,31 +1,12 @@ -#uncomment to overclock the arm. 700 MHz is the default. -#arm_freq=800 - -# Enable audio (loads snd_bcm2835) -dtparam=audio=on - -[cm3] -dtparam=cam0_reg -dtparam=cam0_reg_gpio=3 -dtoverlay=cm-swap-i2c0 -dtoverlay=ov9281,cam0 - -# Automatically load overlays for detected cameras +# Automatically load overlays for detected DSI displays/cameras +display_auto_detect=1 camera_auto_detect=1 -[cm4] -dtoverlay=ov9281 - -[all] - -# Automatically load overlays for detected DSI displays -display_auto_detect=1 +# Automatically load initramfs files, if found +auto_initramfs=1 # Enable DRM VC4 V3D driver dtoverlay=vc4-kms-v3d -dtparam=spi=on -dtparam=audio=off - max_framebuffers=2 # Run in 64-bit mode @@ -45,13 +26,20 @@ otg_mode=1 arm_boost=1 [all] -#camera_auto_detect=1 -gpu_mem=256 - -[cm3] -dtoverlay=enc28j60 -dtoverlay=pi3-disable-bt -gpio=45=op,dh -disable_camera_led=1 -disable_splash=1 -force_eeprom_read=0 \ No newline at end of file +############################################################## +### 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 e418f6a8272460a459f858b49cc99f90581ed594 Mon Sep 17 00:00:00 2001 From: "Cameron (3539)" Date: Fri, 27 Sep 2024 21:17:49 -0400 Subject: [PATCH 3/4] Update install_limelight3g.sh --- install_limelight3g.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/install_limelight3g.sh b/install_limelight3g.sh index f3034e0..6a40ebc 100644 --- a/install_limelight3g.sh +++ b/install_limelight3g.sh @@ -3,6 +3,3 @@ chmod +x ./install_pi.sh ./install_pi.sh 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 \ No newline at end of file From 780195563e7b1aa145c14e1bcc397d5e14e057d5 Mon Sep 17 00:00:00 2001 From: "Cameron (3539)" Date: Fri, 27 Sep 2024 21:25:44 -0400 Subject: [PATCH 4/4] Revert "Update install_limelight3g.sh" This reverts commit e418f6a8272460a459f858b49cc99f90581ed594. --- install_limelight3g.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install_limelight3g.sh b/install_limelight3g.sh index 6a40ebc..f3034e0 100644 --- a/install_limelight3g.sh +++ b/install_limelight3g.sh @@ -3,3 +3,6 @@ chmod +x ./install_pi.sh ./install_pi.sh 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 \ No newline at end of file