Skip to content

Commit 7979368

Browse files
authored
Add support for building rubik image (#2110)
1 parent 831df40 commit 7979368

File tree

3 files changed

+58
-11
lines changed

3 files changed

+58
-11
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
env:
13-
IMAGE_VERSION: v2025.0.4
13+
IMAGE_VERSION: v2026.0.3
1414

1515
jobs:
1616

@@ -517,8 +517,34 @@ jobs:
517517
with:
518518
name: image-${{ matrix.image_suffix }}
519519
path: photonvision*.xz
520+
build-rubik-image:
521+
needs: [build-package]
522+
523+
if: ${{ github.event_name != 'pull_request' }}
524+
525+
runs-on: ubuntu-24.04
526+
name: "Build image - Rubik Pi 3"
527+
528+
steps:
529+
- name: Checkout code
530+
uses: actions/checkout@v4
531+
with:
532+
fetch-depth: 0
533+
- uses: actions/download-artifact@v4
534+
with:
535+
name: jar-LinuxArm64
536+
- name: Generate image
537+
run: |
538+
wget https://raw.githubusercontent.com/PhotonVision/photon-image-modifier/refs/tags/$IMAGE_VERSION/mount_rubikpi3.sh
539+
chmod +x mount_rubikpi3.sh
540+
./mount_rubikpi3.sh https://github.com/PhotonVision/photon-image-modifier/releases/download/$IMAGE_VERSION/photonvision_rubikpi3.tar.xz /tmp/build/scripts/armrunner.sh
541+
- uses: actions/upload-artifact@v4
542+
name: Upload image
543+
with:
544+
name: image-rubikpi3
545+
path: photonvision*.xz
520546
release:
521-
needs: [build-photonlib-vendorjson, build-package, build-image, combine]
547+
needs: [build-photonlib-vendorjson, build-package, build-image, build-rubik-image, combine]
522548
runs-on: ubuntu-22.04
523549
steps:
524550
# Download all fat JARs

docs/source/docs/quick-start/networking.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,7 @@ The camera streams start at 1181 with two ports for each camera (ex. 1181 and 11
9999
:::{warning}
100100
If your camera stream isn't sent to the same port as it's originally found on, its stream will not be visible in the UI.
101101
:::
102+
103+
## SSH Access
104+
105+
For advanced users, SSH access is available for coprocessors running PhotonVision. This allows you to perform advanced configurations and troubleshooting. The default credentials are: `photon:vision` for all devices using an image of `v2026.0.3` or later. The legacy credentials of `pi:raspberry` will still work, but it's recommended to switch to the new credentials as the old ones will be deprecated in a future release.
Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# Quick Install
1+
# Quick Installation Guide
22

3-
## Install the latest image of photonvision for your coprocessor
4-
5-
- For the supported coprocessors
6-
- RPi 3,4,5
7-
- Orange Pi 5, 5B, 5 Pro
8-
- Limelight 2, 2+, 3, 3G
3+
- For the following supported coprocessors
4+
- {ref}`Raspberry Pi 3,4,5 <docs/quick-start/quick-install:Raspberry Pi and Orange Pi Installation>`
5+
- {ref}`Orange Pi 5, 5B, 5 Pro <docs/quick-start/quick-install:Raspberry Pi and Orange Pi Installation>`
6+
- {ref}`Limelight 2, 2+, 3, 3G, 4 <docs/quick-start/quick-install:LimeLight Installation>`
7+
- {ref}`Rubik Pi 3 <docs/quick-start/quick-install:Rubik Pi 3 Installation>`
98

109
For installing on non-supported devices {ref}`see here. <docs/advanced-installation/sw_install/index:Software Installation>`
1110

@@ -20,17 +19,35 @@ For installing on non-supported devices {ref}`see here. <docs/advanced-installat
2019
| Limelight 2 | photonvision-{version}-linuxarm64_limelight2.img.xz | photonvision-{version}-linuxarm64.jar |
2120
| Limelight 3 | photonvision-{version}-linuxarm64_limelight3.img.xz | photonvision-{version}-linuxarm64.jar |
2221
| Limelight 3G | photonvision-{version}-linuxarm64_limelight3G.img.xz | photonvision-{version}-linuxarm64.jar |
22+
| Limelight 4 | photonvision-{version}-linuxarm64_limelight4.img.xz | photonvision-{version}-linuxarm64.jar |
23+
| Rubik Pi 3 | photonvision-{version}-linuxarm64_rubikpi3.tar.xz | photonvision-{version}-linuxarm64.jar |
24+
25+
Unless otherwise noted in release notes or if updating from the prior years version, to update PhotonVision after the initial installation, use the offline update option in the settings page with the downloaded jar file from the latest release.
26+
27+
## Raspberry Pi and Orange Pi Installation
2328

2429
Use the [Raspberry Pi Imager](https://www.raspberrypi.com/software/) to flash the image onto the coprocessors microSD card. Select the downloaded `.img.xz` file, select your microSD card, and flash.
2530

2631
:::{warning}
2732
Balena Etcher can also be used, but historically has had issues such as bootlooping (the system will repeatedly boot and restart) when imaging your device. Use at your own risk.
2833
:::
2934

30-
Limelights have a different installation processes. Simply connect the limelight to your computer using the proper usb cable. Select the compute module. If it doesn’t show up after 30s try using another USB port, initialization may take a while. If prompted, install the recommended missing drivers. Select the image, and flash.
35+
## Limelight Installation
3136

32-
Unless otherwise noted in release notes or if updating from the prior years version, to update PhotonVision after the initial installation, use the offline update option in the settings page with the downloaded jar file from the latest release.
37+
:::{note}
38+
In order to mount the Limelight 4 on your computer, it's necessary to use `rpiboot`. To do this, follow the instructions [here](https://docs.limelightvision.io/docs/docs-limelight/getting-started/limelight-4#4-updating-limelightos).
39+
:::
40+
41+
Limelights have a different installation processes. Simply connect the limelight to your computer using the proper usb cable. Select the compute module in the [Raspberry Pi Imager](https://www.raspberrypi.com/software/). If it doesn’t show up after 30s try using another USB port, initialization may take a while. If prompted, install the recommended missing drivers. Select the image, and flash.
3342

3443
:::{note}
3544
Limelight 2, 2+, and 3 will need a [custom hardware config file](https://github.com/PhotonVision/photonvision/tree/main/docs/source/docs/advanced-installation/sw_install/files) for lighting to work.
3645
:::
46+
47+
## Rubik Pi 3 Installation
48+
49+
:::{warning}
50+
The Qualcomm Launcher caches files. If you flash multiple times, you may need to clear the cache by navigating to your temp directory, and deleting the `qualcomm-launcher` folder.
51+
:::
52+
53+
To flash the Rubik Pi 3 coprocessor, it's necessary to use the [Qualcomm Launcher](https://softwarecenter.qualcomm.com/catalog/item/Qualcomm_Launcher). Upload a custom image by selecting the *Custom* option in the launcher. Choose the downloaded PhotonVision `.tar.xz` file and follow the prompts to complete the installation. It is recommended to skip the *Configure Login* process, as PhotonVision will handle the necessary settings.

0 commit comments

Comments
 (0)