From: Vitaliy Sochnev Date: Sat, 25 Jul 2026 00:18:40 +0000 (+0100) Subject: uboot-airoha: fix ethernet on Nokia XG-040G-MD X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb8402e3edbb167b732463cb6e0fb9fb87dd11e4;p=thirdparty%2Fopenwrt.git uboot-airoha: fix ethernet on Nokia XG-040G-MD U-Boot v2026.07 ships arch/arm/dts/an7581-u-boot.dtsi, which declares gdm1 with status = "disabled". That file is appended to the end of the board DTS, so it overrides the MAC enabled by the board and U-Boot ends up without a network device: No ethernet found. Add a board specific an7581-nokia-xg-040g-md-u-boot.dtsi re-enabling gdm1. U-Boot only pulls in the first matching *-u-boot.dtsi (firstword in scripts/Makefile.lib), so the board file must include the SoC one explicitly, otherwise the entire an7581 U-Boot glue is dropped along with it: uart1 bootph-all, the eth/pcs/snfi/mmc nodes and the ATF reserved memory. Same approach as en7581-evb and Nokia Valyrian. Tested on Nokia XG-040G-MD: TFTP recovery boot works again. Fixes: baeacca59889 ("uboot-airoha: update to v2026.07") Closes: https://github.com/openwrt/openwrt/issues/24385 Signed-off-by: Vitaliy Sochnev Link: https://github.com/openwrt/openwrt/pull/24410 Signed-off-by: Jonas Jelonek --- diff --git a/package/boot/uboot-airoha/patches/401-add-nokia-xg-040g-md.patch b/package/boot/uboot-airoha/patches/401-add-nokia-xg-040g-md.patch index be59a760864..a250813bfcd 100644 --- a/package/boot/uboot-airoha/patches/401-add-nokia-xg-040g-md.patch +++ b/package/boot/uboot-airoha/patches/401-add-nokia-xg-040g-md.patch @@ -293,3 +293,13 @@ +ð { + status = "okay"; +}; +--- /dev/null ++++ b/arch/arm/dts/an7581-nokia-xg-040g-md-u-boot.dtsi +@@ -0,0 +1,7 @@ ++// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) ++ ++#include "an7581-u-boot.dtsi" ++ ++&gdm1 { ++ status = "okay"; ++};