mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-06-30 14:10:44 +00:00
Compare commits
No commits in common. "6d70a3186f4dbd4a04e86e59beffaea40c1a7f66" and "e188ad0bfdbc3d1180633d9962b3875c85c96de6" have entirely different histories.
6d70a3186f
...
e188ad0bfd
93
.github/workflows/build-tow-boot.yml
vendored
93
.github/workflows/build-tow-boot.yml
vendored
|
|
@ -1,93 +0,0 @@
|
||||||
name: Build Enhanced Tow-Boot (mochabin, #748)
|
|
||||||
|
|
||||||
# Builds the SecuBox enhanced Tow-Boot for the GlobalScale MOCHAbin via Nix on
|
|
||||||
# the GitHub runner (cross-arm64), since no local Nix host is available. The
|
|
||||||
# build also validates the netboot Kconfig added on #748 (CMD_WGET/WGET/
|
|
||||||
# PROT_TCP/CMD_DHCP/CMD_TFTPBOOT/CMD_BOOTI/FIT_SIGNATURE, MVPP2, MV88E6XXX,
|
|
||||||
# USE_BOOTCOMMAND/EXTRA_ENV_SETTINGS) — a bad symbol fails the build here.
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
variant:
|
|
||||||
description: 'MOCHAbin RAM variant'
|
|
||||||
required: true
|
|
||||||
default: 'globalscale-mochabin-8gb'
|
|
||||||
type: choice
|
|
||||||
options:
|
|
||||||
- globalscale-mochabin-8gb
|
|
||||||
- globalscale-mochabin-4gb
|
|
||||||
- globalscale-mochabin-2gb
|
|
||||||
# push-triggered so it runs from the feature branch without default-branch
|
|
||||||
# registration (workflow_dispatch only registers from the default branch).
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'feature/748-enhanced-tow-boot-http-netboot-serial-fl'
|
|
||||||
paths:
|
|
||||||
- 'tools/Tow-Boot/**'
|
|
||||||
- '.github/workflows/build-tow-boot.yml'
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: build-tow-boot-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
env:
|
|
||||||
VARIANT: ${{ github.event.inputs.variant || 'globalscale-mochabin-8gb' }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: nix-build enhanced Tow-Boot
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
timeout-minutes: 90
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Install Nix
|
|
||||||
uses: DeterminateSystems/nix-installer-action@v4
|
|
||||||
|
|
||||||
- name: Build enhanced Tow-Boot (${{ env.VARIANT }})
|
|
||||||
working-directory: tools/Tow-Boot
|
|
||||||
run: |
|
|
||||||
set -euxo pipefail
|
|
||||||
nix-build -A ${{ env.VARIANT }} -o result-towboot
|
|
||||||
echo "=== result tree ==="
|
|
||||||
ls -lLR result-towboot/ | head -60
|
|
||||||
|
|
||||||
- name: Verify netboot Kconfig compiled in
|
|
||||||
working-directory: tools/Tow-Boot
|
|
||||||
run: |
|
|
||||||
set -uxo pipefail
|
|
||||||
# The built U-Boot .config may surface in the nix store output; grep it
|
|
||||||
# if present. Definitive runtime check is `help wget` on hardware.
|
|
||||||
cfg=$(find -L result-towboot* -name '.config' 2>/dev/null | head -1 || true)
|
|
||||||
if [ -n "${cfg:-}" ]; then
|
|
||||||
echo "=== U-Boot .config netboot symbols ==="
|
|
||||||
grep -E 'CONFIG_(CMD_WGET|WGET|PROT_TCP|CMD_DHCP|CMD_TFTPBOOT|CMD_BOOTI|FIT_SIGNATURE|MVPP2|MV88E6XXX|DM_DSA)=y' "$cfg" \
|
|
||||||
|| echo 'WARNING: expected netboot symbols not all =y in .config'
|
|
||||||
else
|
|
||||||
echo '(.config not exported by the device output; verify on hardware via `help wget`)'
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Collect artifacts
|
|
||||||
working-directory: tools/Tow-Boot
|
|
||||||
run: |
|
|
||||||
set -euxo pipefail
|
|
||||||
mkdir -p out
|
|
||||||
# The device output exposes binaries/Tow-Boot.<variant>.bin (spi/mmcboot/noenv)
|
|
||||||
if [ -d result-towboot/binaries ]; then
|
|
||||||
cp -Lr result-towboot/binaries/. out/
|
|
||||||
else
|
|
||||||
cp -Lr result-towboot/. out/ || true
|
|
||||||
fi
|
|
||||||
echo "=== collected ==="
|
|
||||||
ls -l out/
|
|
||||||
|
|
||||||
- name: Upload enhanced Tow-Boot artifacts
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: enhanced-tow-boot-${{ env.VARIANT }}
|
|
||||||
path: tools/Tow-Boot/out/*
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -109,16 +109,7 @@ in
|
||||||
BOOTCOUNT_LIMIT = yes;
|
BOOTCOUNT_LIMIT = yes;
|
||||||
BOOTCOUNT_ENV = yes;
|
BOOTCOUNT_ENV = yes;
|
||||||
|
|
||||||
# --- MV88E6xxx DSA switch (88E6141 Topaz) — make lan0-3 netbootable (#748) ---
|
# TODO: enable the MV88E6xxx switch chip?
|
||||||
DM_DSA = yes;
|
|
||||||
MV88E6XXX = yes;
|
|
||||||
DM_MDIO = yes;
|
|
||||||
PHY_FIXED = yes;
|
|
||||||
PHY_MARVELL = yes;
|
|
||||||
|
|
||||||
# --- Marvell PPv2 SoC NIC (mvpp2) — required to drive the eth ports (#748) ---
|
|
||||||
MVPP2 = yes;
|
|
||||||
PHY_GIGE = yes;
|
|
||||||
|
|
||||||
DEFAULT_DEVICE_TREE = freeform ''"armada-7040-mochabin"'';
|
DEFAULT_DEVICE_TREE = freeform ''"armada-7040-mochabin"'';
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user