]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
uboot-airoha: fix ethernet on Nokia XG-040G-MD
authorVitaliy Sochnev <sochnev.v.74@gmail.com>
Sat, 25 Jul 2026 00:18:40 +0000 (01:18 +0100)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Tue, 28 Jul 2026 07:46:23 +0000 (09:46 +0200)
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 <sochnev.v.74@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24410
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
package/boot/uboot-airoha/patches/401-add-nokia-xg-040g-md.patch

index be59a760864fce533a41ec6f1cd9e3bda562379c..a250813bfcd5ff70729bf0f271a5500074c494fa 100644 (file)
 +&eth {
 +      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";
++};