Files
monok8s/build.env
T
penguin a2e5c2aa7a Upgrade ASK kernel base to Linux 6.18.30
Move the custom ASK/NXP kernel build from lf-6.18.2-1.0.0 toward
the upstream stable 6.18.y baseline, currently 6.18.30.

This pulls in upstream stable fixes, including the BPF verifier fix needed
by Cilium. The previous 6.18.2-based kernel triggered:

  verifier bug: REG INVARIANTS VIOLATION (false_reg1)
  reg_bounds_sanity_check()
  bpf_prog_load()
  cilium-agent

The issue is no longer reproduced on 6.18.30 after fresh boot:
Cilium 1.19.2 reports healthy, BPF datapath is active, all controllers are
healthy, cluster health is reachable, and dmesg no longer shows the verifier
warning.

Refresh affected ASK upstream patch splits:
- add bridge br_input patch
- refresh xfrm policy/state patches
- update package/kernel build inputs for 6.18.30
2026-05-16 03:41:54 +08:00

76 lines
2.0 KiB
Bash

DOCKER_IMAGE_ROOT=monok8s
# Image tag
TAG=dev
# NXP's Linux Factory
LINUX_FACTORY=6.18.2-1.0.0
NXP_VERSION=lf-$(LINUX_FACTORY)
NXP_KERNEL_VERSION=6.18.30-1.0.0-dev
# This kernel applies upstream fixes
# If you want the original, use:
# https://github.com/nxp-qoriq/linux/archive/refs/tags/lf-${NXP_KERNEL_VERSION}.tar.gz
# and change NXP_KERNEL_VERSION to match LINUX_FACTORY
# However you may have to fix the failed patches in patches/ask/upstream/kernel/
NXP_KERNEL_URL=https://github.com/tgckpg/linux-layerscape-stable/archive/refs/tags/lf-${NXP_KERNEL_VERSION}.tar.gz
FMLIB_VERSION=lf-$(LINUX_FACTORY)
FMC_VERSION=lf-$(LINUX_FACTORY)
DPDK_VERSION=lf-$(LINUX_FACTORY)
VPP_VERSION=lf-$(LINUX_FACTORY)
VPP_UPSTREAM_VERSION=23.10
# ASK's deps
MONO_ASK_VERSION=mt-6.12.49-2.2.0
LIBNFNETLINK_VERSION=1.0.2
LIBMNL_VERSION=1.0.5
LIBNFCT_VERSION=1.1.0
LIBCLI_VERSION=1.10.7
# Check the package version for Debian trixies (what ASK uses)
LIBXML2_VERSION=2.11.7
TCLAP_VERSION=1.2.5
LIBPCAP_VERSION=1.10.4
CRIO_VERSION=cri-o.arm64.v1.35.2
KUBE_VERSION=v1.35.3
# Mono's tutorial said fsl-ls1046a-rdb.dtb but our shipped board is not that one
# We need fsl-ls1046a-rdb-sdk.dtb here
DEVICE_TREE_TARGET=mono-gateway-dk-sdk
# Arch, should always be arm64 for our board. This is here in case branching off to other devices
ARCH=arm64
CROSS_COMPILE=aarch64-linux-gnu-
# Tools for initramfs
BUSYBOX_VERSION=1_36_1
E2FSPROGS_VERSION=1.47.4
UBOOT_VERSION=v2026.01
## Alpine Linux
ALPINE_VER=3.23.3
ALPINE_ARCH=aarch64
# Only applies to new installations
ALPINE_HOSTNAME=monok8s-hostname
# Upper case [A-Z]_ only, used for naming env vars
BUILD_TAG=MONOK8S
# Optional apt cache
# example: apt-cacher-ng.eco-system.svc.cluster.local:3142
APT_PROXY=
# remote image repository prefix to push to
# e.g. ghcr.io/monok8s
IMAGE_REPOSITORY=
# Mirror
# You can host your local mirror by running (but you'll need to download them first)
# kubectl apply -f devtools/dep-pkg-mirror.yaml
# devtools/push-dep-pkg-mirror.sh
# e.g. http://dep-pkg-mirror.default.svc.cluster.local/monok8s
DEP_PKG_MIRROR=