From f379a2b0fdee9f40a244c838984f4ce7449d9c33 Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Tue, 4 Nov 2025 10:51:09 +0100 Subject: [PATCH 1/4] sys-kernel/coreos-modules: build AMD GPU as module Signed-off-by: Mathieu Tortuyaux --- .../sys-kernel/coreos-modules/files/amd64_defconfig-6.12 | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/amd64_defconfig-6.12 b/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/amd64_defconfig-6.12 index a6eb3aeffcf..c19cbac2136 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/amd64_defconfig-6.12 +++ b/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/amd64_defconfig-6.12 @@ -26,6 +26,7 @@ CONFIG_CRYPTO_SHA256_SSSE3=m CONFIG_DCDBAS=m CONFIG_DEBUG_BOOT_PARAMS=y CONFIG_DELL_RBU=m +CONFIG_DRM_AMDGPU=m CONFIG_DRM_I915=m CONFIG_EDAC_AMD64=m CONFIG_EDAC_DECODE_MCE=m From 62aafa765fbf0b49b7fa5b9dff815221f7f0d933 Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Tue, 4 Nov 2025 10:58:28 +0100 Subject: [PATCH 2/4] changelog: add entry Signed-off-by: Mathieu Tortuyaux --- changelog/changes/2025-11-04-enable-amd-gpu-module.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/changes/2025-11-04-enable-amd-gpu-module.md diff --git a/changelog/changes/2025-11-04-enable-amd-gpu-module.md b/changelog/changes/2025-11-04-enable-amd-gpu-module.md new file mode 100644 index 00000000000..a3789adc3e4 --- /dev/null +++ b/changelog/changes/2025-11-04-enable-amd-gpu-module.md @@ -0,0 +1 @@ +- Build AMD GPU driver as module ([#3461](https://github.com/flatcar/scripts/pull/3461)) From 7f65d384fdc2b4d51015791be7ad43e315f27a54 Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Wed, 11 Mar 2026 17:01:47 +0100 Subject: [PATCH 3/4] sys-kernel/coreos-firmware: ignore some missing firmware It happens that some modules uses `MODULE_FIRMWARE` with a file not-shipped into 'linux-firmware'. In such a case, we can safely ignore those. e.g 'amdgpu/ip_discovery.bin' is not a file shipped by linux-firmware (see: https://github.com/torvalds/linux/commit/a79d3709c40d492fb859fb5cec4bb0b3eaa09a12) Signed-off-by: Mathieu Tortuyaux --- .../coreos-firmware-99999999.ebuild | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/coreos-firmware-99999999.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/coreos-firmware-99999999.ebuild index 4c1eaed6ed0..848efbde139 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/coreos-firmware-99999999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/coreos-firmware-99999999.ebuild @@ -154,13 +154,28 @@ src_prepare() { # Flatcar: generate a list of firmware local kernel_mods="${SYSROOT%/}/lib/modules/${KV_FULL}" + # It happens that some modules uses `MODULE_FIRMWARE` with a file + # not shipped into 'linux-firmware'. + # In such a case, we can safely ignore those. + # e.g 'amdgpu/ip_discovery.bin' is not a file shipped by linux-firmware (see: https://github.com/torvalds/linux/commit/a79d3709c40d492fb859fb5cec4bb0b3eaa09a12) + local module_firmware_skip_list=( + amdgpu/cyan_skillfish_gpu_info.bin + amdgpu/ip_discovery.bin + amdgpu/vega10_cap.bin + amdgpu/sienna_cichlid_cap.bin + amdgpu/navi12_cap.bin + amdgpu/aldebaran_cap.bin + amdgpu/gc_11_0_0_toc.bin + amdgpu/gc_11_0_3_mes.bin + ) + # Fail if any firmware is missing. einfo "Scanning for files required by ${KV_FULL}" echo "# Remove files that shall not be installed from this list." > ${PN}.conf local kofile fwfile failed for kofile in $(find "${kernel_mods}" -name '*.ko' -o -name '*.ko.xz'); do for fwfile in $(modinfo --field firmware "${kofile}"); do - if [[ ! -e "${fwfile}" ]]; then + if [[ ! -e "${fwfile}" ]] && ! [[ "${module_firmware_skip_list[*]}" =~ "${fwfile}" ]]; then eerror "Missing firmware: ${fwfile} (${kofile##*/})" failed=1 elif [[ -L "${fwfile}" ]]; then From c90a48ca0803f348b586a9bb941601f298f58ef5 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Thu, 12 Mar 2026 07:21:20 +0000 Subject: [PATCH 4/4] sys-kernel/coreos-firmware: Update from 20260221 to 20260309 Signed-off-by: Flatcar Buildbot Signed-off-by: Mathieu Tortuyaux --- changelog/updates/2026-03-12-linux-firmware-20260309-update.md | 1 + .../coreos-overlay/sys-kernel/coreos-firmware/Manifest | 2 +- ...firmware-20260221.ebuild => coreos-firmware-20260309.ebuild} | 0 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog/updates/2026-03-12-linux-firmware-20260309-update.md rename sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/{coreos-firmware-20260221.ebuild => coreos-firmware-20260309.ebuild} (100%) diff --git a/changelog/updates/2026-03-12-linux-firmware-20260309-update.md b/changelog/updates/2026-03-12-linux-firmware-20260309-update.md new file mode 100644 index 00000000000..59105e492b7 --- /dev/null +++ b/changelog/updates/2026-03-12-linux-firmware-20260309-update.md @@ -0,0 +1 @@ +- Linux Firmware ([20260309](https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tag/?h=20260309)) diff --git a/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/Manifest b/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/Manifest index c13511ce463..5d22564dcf7 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/Manifest +++ b/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/Manifest @@ -1 +1 @@ -DIST linux-firmware-20260221.tar.xz 610993132 BLAKE2B b81f3560d30ebc3a8c1a81cd0431b97dfc1ec595841a4e4b8a2118abaf912be2abb3175b3042c84c859edf98947ef9975ed1c2a70e4e3a3e464734af7404f499 SHA512 6d627228992b090b47758355d7717bbfd356792df201c3beb4860a75fa30d7eba1bcbf833b316ddb9dcfed0d931fa25e6ef4b23533ef529f086085699ceaa83c +DIST linux-firmware-20260309.tar.xz 610973936 BLAKE2B 62ec056ad09d3e6740b12454845ffeea250785b566f9c6239ebae19e52d3237a49eeb18bae3726cb7a1bb0bca7ad24b9bbac440132ba8fac3d0adccf654ab4c4 SHA512 2feb9f1221d72e909e36b1d56f50c8f4f20eb00dfcbbb1fa0e9661d0f4cc1a731ef9d8167e1dbe3edd637be9fcc20a3844dae44e05826bd441f77d6b44614e53 diff --git a/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/coreos-firmware-20260221.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/coreos-firmware-20260309.ebuild similarity index 100% rename from sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/coreos-firmware-20260221.ebuild rename to sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-firmware/coreos-firmware-20260309.ebuild