From 6bd494c78537ca4c8a750cebdde664f76f09da74 Mon Sep 17 00:00:00 2001 From: Dmitry Ermakov <7954832+dimerr@users.noreply.github.com> Date: Sat, 14 Nov 2026 06:07:44 +0000 Subject: [PATCH 1/2] axera: toolchain-only configs for AX620E and AX620U Cut from #2670: only the two toolchain configs, which build a cross toolchain and nothing else. aarch64 musl with 5.15 headers for AX620E, arm musleabihf with 4.19 headers for AX620U. These are the kernel versions the deployed firmware's modules carry in their vermagic. The board images, the osdrv packages and the kernel configs wait for hardware and for a majestic build. --- .../configs/ax620e_toolchain_defconfig | 32 +++++++++++++++++++ .../configs/ax620u_toolchain_defconfig | 29 +++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 br-ext-chip-axera/configs/ax620e_toolchain_defconfig create mode 100644 br-ext-chip-axera/configs/ax620u_toolchain_defconfig diff --git a/br-ext-chip-axera/configs/ax620e_toolchain_defconfig b/br-ext-chip-axera/configs/ax620e_toolchain_defconfig new file mode 100644 index 0000000000..5627acc4b9 --- /dev/null +++ b/br-ext-chip-axera/configs/ax620e_toolchain_defconfig @@ -0,0 +1,32 @@ +# OpenIPC +# +# TOOLCHAIN-ONLY config for Axera AX620E/AX630C (aarch64 Cortex-A53). +# +# Bootstraps the aarch64 musl toolchain published as +# toolchain.axera-ax620e.tgz (consumed by ax620e_lite), DECOUPLED from +# the firmware package set -- see hi3519dv500_toolchain_defconfig for +# why this exists as its own config. Used only by +# .github/workflows/toolchain.yml. +# +BR2_OPENIPC_SOC_VENDOR="axera" +BR2_OPENIPC_SOC_MODEL="ax620e" +BR2_OPENIPC_SOC_FAMILY="ax620e" + +# Architecture (aarch64 Cortex-A53) +BR2_aarch64=y +BR2_cortex_a53=y + +# Toolchain -- aarch64 musl, 5.15 kernel headers (the real deployed +# AX620E firmware's own kernel version, confirmed from its modules' +# vermagic -- see br-ext-chip-axera/board/ax620e/README.md). Same block +# as ax620e_lite so the produced toolchain matches byte-for-byte what +# the firmware expects. +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y +BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/openipc/firmware/releases/download/$(OPENIPC_TOOLCHAIN).tgz" +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="aarch64-openipc-linux-musl" +BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_15=y +BR2_KERNEL_HEADERS_5_15=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y +BR2_GCC_VERSION_13_X=y +BR2_TOOLCHAIN_EXTERNAL_CXX=y diff --git a/br-ext-chip-axera/configs/ax620u_toolchain_defconfig b/br-ext-chip-axera/configs/ax620u_toolchain_defconfig new file mode 100644 index 0000000000..d84529aee2 --- /dev/null +++ b/br-ext-chip-axera/configs/ax620u_toolchain_defconfig @@ -0,0 +1,29 @@ +# OpenIPC +# +# TOOLCHAIN-ONLY config for Axera AX620U (Cortex-A7 x4, AArch32). +# +# Bootstraps the arm musleabihf toolchain published as +# toolchain.axera-ax620u.tgz (consumed by ax620u_lite), DECOUPLED from +# the firmware package set. +# +BR2_OPENIPC_SOC_VENDOR="axera" +BR2_OPENIPC_SOC_MODEL="ax620u" +BR2_OPENIPC_SOC_FAMILY="ax620u" + +# Architecture (Cortex-A7, AArch32) +BR2_arm=y +BR2_cortex_a7=y +BR2_ARM_FPU_NEON_VFPV4=y +BR2_ARM_INSTRUCTIONS_THUMB2=y + +# Toolchain -- arm musleabihf, 4.19 kernel headers (the real deployed +# AX620U firmware's own kernel version, confirmed from its modules' +# vermagic -- see br-ext-chip-axera/board/ax620u/README.md). +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y +BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/openipc/firmware/releases/download/$(OPENIPC_TOOLCHAIN).tgz" +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-openipc-linux-musleabihf" +BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_19=y +BR2_KERNEL_HEADERS_4_19=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y +BR2_TOOLCHAIN_EXTERNAL_CXX=y From 78f214cdb922d29e91cf966c2dc54deeaccb7050 Mon Sep 17 00:00:00 2001 From: AI Dev Date: Sat, 14 Nov 2026 06:08:27 +0000 Subject: [PATCH 2/2] ci: register the axera toolchain configs They build no image, so ci-matrix lists them in UNBUILT_BOARDS the same way as hi3519dv500_toolchain. toolchain.yml now names them, so a dispatch publishes toolchain.axera-ax620e and toolchain.axera-ax620u. --- .github/scripts/ci-matrix.py | 5 +++++ .github/workflows/toolchain.yml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.github/scripts/ci-matrix.py b/.github/scripts/ci-matrix.py index a54b2b6a90..6413527bd5 100644 --- a/.github/scripts/ci-matrix.py +++ b/.github/scripts/ci-matrix.py @@ -169,6 +169,11 @@ # Not firmware images at all: no BR2_OPENIPC_VARIANT, so nothing the repack # step or the manifest knows how to name. "hi3519dv500_toolchain": "toolchain config, produces no firmware image", + # Axera has no image yet. These two configs publish its toolchains so + # majestic can be ported first. The boards follow once a camera has run + # them (#2670). + "ax620e_toolchain": "toolchain config, produces no firmware image", + "ax620u_toolchain": "toolchain config, produces no firmware image", "s2l22m_lite": "no variant set; Ambarella S2L has no board directory", "s2l33m_lite": "no variant set; Ambarella S2L has no board directory", diff --git a/.github/workflows/toolchain.yml b/.github/workflows/toolchain.yml index 5e07370780..b39ba94853 100644 --- a/.github/workflows/toolchain.yml +++ b/.github/workflows/toolchain.yml @@ -31,6 +31,10 @@ jobs: run: | set -eu ALL=$(sed -e 's/#.*//' <<'LIST' + # Axera: toolchain-only configs, no firmware image yet (#2670). + ax620e_toolchain + ax620u_toolchain + # Sigmastar # infinity3: msc313e/msc316dc/msc316dm share this one. msc313e_lite