From e1d8e876cd2bfb6d0b3eae783107cfb1ed1da109 Mon Sep 17 00:00:00 2001 From: compwiz3688 <59293368+compwiz3688@users.noreply.github.com> Date: Fri, 11 Jul 2025 09:44:24 -0400 Subject: [PATCH 1/4] Added support for deploying x86 to Balena --- bin/deploy_to_balena.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/deploy_to_balena.sh b/bin/deploy_to_balena.sh index e6266f85e..9edf52ee7 100755 --- a/bin/deploy_to_balena.sh +++ b/bin/deploy_to_balena.sh @@ -6,7 +6,7 @@ print_help() { echo "Usage: deploy_to_balena.sh [options]" echo "Options:" echo " -h, --help show this help message and exit" - echo " -b, --board BOARD specify the board to build for (pi1, pi2, pi3, pi4, pi5)" + echo " -b, --board BOARD specify the board to build for (pi1, pi2, pi3, pi4, pi5, x86)" echo " -f, --fleet FLEET specify the fleet name to deploy to" echo " -s, --short-hash HASH specify the short hash to use for the image tag" echo " -d, --dev run in dev mode" @@ -23,7 +23,7 @@ while [[ $# -gt 0 ]]; do -b|--board) export BOARD="$2" - if [[ $BOARD =~ ^(pi1|pi2|pi3|pi4|pi5)$ ]]; then + if [[ $BOARD =~ ^(pi1|pi2|pi3|pi4|pi5|x86)$ ]]; then echo "Building for $BOARD" else echo "Invalid board $BOARD" @@ -91,7 +91,7 @@ function prepare_balena_file() { cat docker-compose.balena.yml.tmpl | \ envsubst > balena-deploy/docker-compose.yml - if [[ "$BOARD" == "pi5" ]]; then + if [ "$BOARD" == "pi5" ] || [ "$BOARD" == "x86" ]; then sed -i '/devices:/ {N; /\n.*\/dev\/vchiq:\/dev\/vchiq/d}' \ balena-deploy/docker-compose.yml fi @@ -118,7 +118,7 @@ else cat docker-compose.balena.dev.yml.tmpl | \ envsubst > docker-compose.yml - if [[ "$BOARD" == "pi5" ]]; then + if [ "$BOARD" == "pi5" ] || [ "$BOARD" == "x86" ]; then sed -i '/devices:/ {N; /\n.*\/dev\/vchiq:\/dev\/vchiq/d}' \ docker-compose.yml fi From 0753473f3ac08e4861242d2872733dec39854a8c Mon Sep 17 00:00:00 2001 From: CWP <59293368+compwiz3688@users.noreply.github.com> Date: Mon, 14 Jul 2025 12:18:27 -0400 Subject: [PATCH 2/4] Update bin/deploy_to_balena.sh Co-authored-by: Nico Miguelino --- bin/deploy_to_balena.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/deploy_to_balena.sh b/bin/deploy_to_balena.sh index 9edf52ee7..ea15812b3 100755 --- a/bin/deploy_to_balena.sh +++ b/bin/deploy_to_balena.sh @@ -118,7 +118,7 @@ else cat docker-compose.balena.dev.yml.tmpl | \ envsubst > docker-compose.yml - if [ "$BOARD" == "pi5" ] || [ "$BOARD" == "x86" ]; then + if [[ $BOARD =~ ^(pi5|x86)$ ]]; then sed -i '/devices:/ {N; /\n.*\/dev\/vchiq:\/dev\/vchiq/d}' \ docker-compose.yml fi From c2a26f5b71209e0a1793c4d5b0caf6af1cd6e788 Mon Sep 17 00:00:00 2001 From: CWP <59293368+compwiz3688@users.noreply.github.com> Date: Mon, 14 Jul 2025 12:18:35 -0400 Subject: [PATCH 3/4] Update bin/deploy_to_balena.sh Co-authored-by: Nico Miguelino --- bin/deploy_to_balena.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/deploy_to_balena.sh b/bin/deploy_to_balena.sh index ea15812b3..28b266ee2 100755 --- a/bin/deploy_to_balena.sh +++ b/bin/deploy_to_balena.sh @@ -91,7 +91,7 @@ function prepare_balena_file() { cat docker-compose.balena.yml.tmpl | \ envsubst > balena-deploy/docker-compose.yml - if [ "$BOARD" == "pi5" ] || [ "$BOARD" == "x86" ]; then + if [[ $BOARD =~ ^(pi5|x86)$ ]]; then sed -i '/devices:/ {N; /\n.*\/dev\/vchiq:\/dev\/vchiq/d}' \ balena-deploy/docker-compose.yml fi From 89f1f22cbc1a5ea3fc3dccd25e7db138288c0394 Mon Sep 17 00:00:00 2001 From: CWP <59293368+compwiz3688@users.noreply.github.com> Date: Sun, 3 Aug 2025 15:48:21 -0400 Subject: [PATCH 4/4] Update balena-fleet-deployment.md --- docs/balena-fleet-deployment.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/balena-fleet-deployment.md b/docs/balena-fleet-deployment.md index 2f538c4ce..cd5d29ac5 100644 --- a/docs/balena-fleet-deployment.md +++ b/docs/balena-fleet-deployment.md @@ -164,3 +164,7 @@ a while for the device to appear online. Once done, the display should show the Anthias splash screen. You can now add assets via the web interface. + +## Deploying x86 devices + +Some preliminary code has been enabled to deploy to x86 fleets. However, at this time, it only works in Proxmox VM using the Intel NUC device type.