From 34360c4c63708a104ef6ab621dc1cae831e091a2 Mon Sep 17 00:00:00 2001 From: "Issam E. Maghni" Date: Thu, 19 Feb 2026 08:16:39 -0500 Subject: [PATCH] raspberry-pi/5: add `macb` module if netboot This module is required to have Ethernet in initial RAM disk. --- raspberry-pi/5/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/raspberry-pi/5/default.nix b/raspberry-pi/5/default.nix index d90c7886..535588ee 100644 --- a/raspberry-pi/5/default.nix +++ b/raspberry-pi/5/default.nix @@ -24,7 +24,8 @@ in ++ lib.optional (linuxVariant == "linux") "rp1_pci" ++ lib.optional (linuxVariant == "linux-rpi") "rp1" # CONFIG_PINCTRL_RP1 is not a tristate in RPi's fork. - ++ lib.optional (linuxVariant == "linux") "pinctrl-rp1"; + ++ lib.optional (linuxVariant == "linux") "pinctrl-rp1" + ++ lib.optional config.boot.initrd.network.enable "macb"; }; hardware.deviceTree.filter = lib.mkDefault "bcm2712*-rpi-*.dtb";