From 89ae9c5b13eaa07f7af1053b80f46b0d90e0be39 Mon Sep 17 00:00:00 2001 From: Vitaliy Sochnev Date: Sat, 25 Jul 2026 01:25:18 +0100 Subject: [PATCH] uboot-airoha: fix ethernet on Gemtek W1700K The board enables gdm1 in its DTS, but U-Boot v2026.07 ships arch/arm/dts/an7581-u-boot.dtsi, which is appended to the end of the board DTS and declares gdm1 with status = "disabled". The board setting is overridden and U-Boot ends up without a network device. Add a board specific an7581-w1700k-ubi-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. This is the same fix that was confirmed to restore networking on the Nokia XG-040G-MD. It is compile tested only and verified by inspecting the generated DTB - I have no W1700K hardware, so it is unverified on the actual device and needs testing by someone who has one. Fixes: baeacca59889 ("uboot-airoha: update to v2026.07") Signed-off-by: Vitaliy Sochnev Link: https://github.com/openwrt/openwrt/pull/24410 Signed-off-by: Jonas Jelonek --- .../patches/999-airoha-add-gemtek-w1700k.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/boot/uboot-airoha/patches/999-airoha-add-gemtek-w1700k.patch b/package/boot/uboot-airoha/patches/999-airoha-add-gemtek-w1700k.patch index 4c13fe32644..22393cd4800 100644 --- a/package/boot/uboot-airoha/patches/999-airoha-add-gemtek-w1700k.patch +++ b/package/boot/uboot-airoha/patches/999-airoha-add-gemtek-w1700k.patch @@ -316,3 +316,13 @@ Signed-off-by: Kenneth Kasilag +&gdm1 { + status = "okay"; +}; +--- /dev/null ++++ b/arch/arm/dts/an7581-w1700k-ubi-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"; ++}; -- 2.47.3