Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
472e809
Added manual partition management to ensure OrangePi can use temp folder
judsonjames Jan 9, 2024
c70e5ca
Create orangepi-image-generation.yml
judsonjames Jan 9, 2024
6ec7c5e
Temporarily force images to be build
judsonjames Jan 9, 2024
d1da3d0
Merge pull request #1 from judsonjames/orangepi-patch
judsonjames Jan 9, 2024
ed28cde
Merge branch 'master' of https://github.com/judsonjames/photonvision …
judsonjames Jan 9, 2024
682b770
Add functions for pushd and popd since OPi5 image doesn't have them
judsonjames Jan 9, 2024
ef81a7c
Add logging to help figure out what's silently failing in CI
judsonjames Jan 9, 2024
22788b7
Update ARM builds to use ARM Builder
judsonjames Jan 9, 2024
af87314
Fix arm-runner-action syntax
judsonjames Jan 9, 2024
3eaf336
Logging
judsonjames Jan 9, 2024
e76035b
Testing ARM Runner with base commands
judsonjames Jan 9, 2024
0a10ae9
Testing ARM Runner with DietPi
judsonjames Jan 9, 2024
410767b
Testing ARM Runner with Minimal Install Script
judsonjames Jan 9, 2024
dcc1d72
Add Compression step to get .xz images
judsonjames Jan 9, 2024
5f18d0e
Attempt to fix CPU lookup for OrangePi
judsonjames Jan 9, 2024
6d35346
Re-enforce logging and reduce size of final XZ images
judsonjames Jan 9, 2024
c72da43
Re-re-enlarge OPi build to make passing build
judsonjames Jan 9, 2024
28400cd
Fix where the PhotonVision JAR lives
judsonjames Jan 9, 2024
af47c76
Revert unneeded files. Cleanup repo before review.
judsonjames Jan 9, 2024
eb17d4e
Add newline at end of scripts for WPILib formatting
judsonjames Jan 9, 2024
ce283bd
Fix white space issues for WPILib formatting
judsonjames Jan 9, 2024
da4f45d
Add image_additional_mb parameter and remove servicefile from arm-runner
judsonjames Jan 9, 2024
7d7edb3
Re-test image creation after PR fixes
judsonjames Jan 9, 2024
4af9acb
Fix script name in test build workflow
judsonjames Jan 9, 2024
fa0a59a
Delete .github/workflows/orangepi-image-generation.yml
amquake Jan 13, 2024
ca4055d
Merge branch 'master' into fixes/orangepi-image-generation
amquake Jan 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,20 @@ jobs:
artifact-name: LinuxArm64
image_suffix: RaspberryPi
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2024.0.4/photonvision_raspi.img.xz
cpu: cortex-a7
image_additional_mb: 0
- os: ubuntu-latest
artifact-name: LinuxArm64
image_suffix: limelight2
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2024.0.4/photonvision_limelight.img.xz
cpu: cortex-a7
image_additional_mb: 0
- os: ubuntu-latest
artifact-name: LinuxArm64
image_suffix: orangepi5
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2024.0.4/photonvision_opi5.img.xz
cpu: cortex-a8
image_additional_mb: 4096

runs-on: ${{ matrix.os }}
name: "Build image - ${{ matrix.image_url }}"
Expand All @@ -293,11 +299,23 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: jar-${{ matrix.artifact-name }}
# TODO- replace with the arm-runner action and run this inside of the chroot. but this works for now.
- name: Generate image
- uses: pguyot/arm-runner-action@v2
name: Generate image
id: generate_image
with:
base_image: ${{ matrix.image_url }}
image_additional_mb: ${{ matrix.image_additional_mb }}
optimize_image: yes
cpu: ${{ matrix.cpu }}
commands: |
chmod +x scripts/arm_runner_installer.sh
./scripts/arm_runner_installer.sh
- name: Compress image
run: |
chmod +x scripts/generatePiImage.sh
./scripts/generatePiImage.sh ${{ matrix.image_url }} ${{ matrix.image_suffix }}
new_jar=$(realpath $(find . -name photonvision\*-linuxarm64.jar))
new_image_name=$(basename "${new_jar/.jar/_${{ matrix.image_suffix }}.img}")
mv ${{ steps.generate_image.outputs.image }} $new_image_name
sudo xz -T 0 -v $new_image_name
- uses: actions/upload-artifact@v4
name: Upload image
with:
Expand Down
12 changes: 12 additions & 0 deletions scripts/armrunner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
###
# Alternative ARM Runner installer to setup PhotonVision JAR
# for ARM based builds such as Raspberry Pi, Orange Pi, etc.
# This assumes that the image provided to arm-runner-action contains
# the servicefile needed to auto-launch PhotonVision.
###
NEW_JAR=$(realpath $(find . -name photonvision\*-linuxarm64.jar))
echo "Using jar: " $(basename $NEW_JAR)

DEST_PV_LOCATION=/opt/photonvision
sudo mkdir -p $DEST_PV_LOCATION
sudo cp $NEW_JAR ${DEST_PV_LOCATION}/photonvision.jar