From patchwork Sun Dec 11 23:54:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1714744 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=J3t7gy5p; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=hpPrza0+; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NVhXS411Dz23pD for ; Mon, 12 Dec 2022 10:57:58 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mpyyxBDPISgyb0Pe15NpB9L9tLAjRdf8rv1/UjduKII=; b=J3t7gy5puVtKK/ LNVQ4vjGN39I/ESRq7y504bSvs0/ruauMC1Bzv0y9RQT55rPx5P5CthDJqTMP0UtjvK8pg5Ddf5wX MNxRtcMWlF1aanH2MLwgZmFZdgvZmie/bo2wCs2bd3KtuB7ysT1Jwk7BH2vZUYKSHhAorPycHk0jw PUDqDQqdLL3hXcI+VITr49BAYOegHBta3yRgNPoXMX/wh/hx+wBmTo3w4AbO4jR/U21NhKGLABG8l uYnDvSjeBvFmlihzyqIm+M5OQtqn3zXs5rYjq+U06EdqqET/Vfo7R7UDgIfNDuDGtYu1WVSfalgta FTQajAX7MBZfuDZmBOng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p4W9K-005RRg-Ar; Sun, 11 Dec 2022 23:54:26 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p4W9G-005RPS-U8 for openwrt-devel@lists.openwrt.org; Sun, 11 Dec 2022 23:54:24 +0000 Received: by mail-lf1-x129.google.com with SMTP id g7so15918389lfv.5 for ; Sun, 11 Dec 2022 15:54:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=h33R6/vN3/DaStKmOfWfz2W+4R8FU8xvLLdtdT0cxes=; b=hpPrza0+g+3/aWlLrkVIVY9HLeqPHvSifxEZubqRc3PHJItRUlHG+A/rlAgo3ynuaf eMj004YJwnUkCdzHP8VvJzgRhYwcaezcBG4rRJfGpWZUXjevcOgGT+BmUsFlz2lw7pGn HoKu4ur2FW6Wq7ZvAMH+OHdPgyRJ15ORaocfjzQszHDMGHd0LHKc6YO1mp6cFeDsm5+w RJadx6w5k5AszVz04vQEhocGq5bF5Hx4VctiLZMh8xtGr3enjz+nAJScSMC4OQUcV+c/ CHwCdFECQK3tVO1I/2zdYcqTitxG/0yL64ZP7zVYC8LQDjFUnJRjyj/PFnub1LZDPn0B Ns7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h33R6/vN3/DaStKmOfWfz2W+4R8FU8xvLLdtdT0cxes=; b=4RyF8ckL4B1fcaXY8rO9+OU9i7CZIqty/a2J6GDJIldhhawpZGG6HRYaN6G5ZeEby2 eXGD+TguCu0UkWKQgsoY78nCkqtiNOBxruZ1U446XOlIgrBiQSvwfzHHwf3NVTuK+DdG kNqbCBI0cDP8U72E6TRP+VyIm9tMy2c+pIdcB4/fMoPz/x6msIIResaVy9BZR5Gmszjh rRj7Hx4KaPrzOc453ZC+5+IMmvuRia6lcY00YYhwwScAByNrIavPSjwJxc79eOeaHsom dG272uk29D07zW8f4FeThtrsidSZ9XL9DTxFewJUZHTteT9X4PBhEYz/dXU434xwucw1 LgYg== X-Gm-Message-State: ANoB5pn4XdESKVoy2B4NTZWbV6udvFjYQCITy/5U4rDAmjwLlO6l217B 2ER4pGzskHRnysRvK/DVxXCoRA== X-Google-Smtp-Source: AA0mqf78C70oUJusi3mVx3JP/IuZsXMQOUqaDnY58j40BKX8YGm0we3bv5nRbgfs876YDn5BSCHLdg== X-Received: by 2002:a05:6512:c18:b0:4b5:9414:55ff with SMTP id z24-20020a0565120c1800b004b5941455ffmr4723235lfu.42.1670802859927; Sun, 11 Dec 2022 15:54:19 -0800 (PST) Received: from Fecusia.lan (c-05d8225c.014-348-6c756e10.bbcust.telenor.se. [92.34.216.5]) by smtp.gmail.com with ESMTPSA id u19-20020a05651220d300b0048aee825e2esm1130696lfr.282.2022.12.11.15.54.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Dec 2022 15:54:19 -0800 (PST) From: Linus Walleij To: Sebastian Luft , Hans Ulli Kroll , Hauke Mehrtens , Christian Lamparter Cc: openwrt-devel@lists.openwrt.org, Corentin Labbe , Linus Walleij Subject: [PATCH] gemini: Set proper default networks Date: Mon, 12 Dec 2022 00:54:16 +0100 Message-Id: <20221211235416.4124144-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221211_155423_003169_C3F28777 X-CRM114-Status: UNSURE ( 6.09 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Some Gemini devices are NAS type devices and need to ask for DHCP IP on eth0. Some has a LAN/WAN setup. Add sensible defaults for all known devices. Signed-off-by: Linus Walleij --- .../gemini/base-files/etc/board.d/02_network | 15 +++++++++++++++ 1 file changed, 15 insertions(+) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:129 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Some Gemini devices are NAS type devices and need to ask for DHCP IP on eth0. Some has a LAN/WAN setup. Add sensible defaults for all known devices. Signed-off-by: Linus Walleij --- .../gemini/base-files/etc/board.d/02_network | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/target/linux/gemini/base-files/etc/board.d/02_network b/target/linux/gemini/base-files/etc/board.d/02_network index d6ee5cadfe25..93a02a7564ef 100644 --- a/target/linux/gemini/base-files/etc/board.d/02_network +++ b/target/linux/gemini/base-files/etc/board.d/02_network @@ -9,16 +9,31 @@ dlink,dir-685) ucidef_set_interface "eth" device "eth0" protocol "none" ucidef_set_interfaces_lan_wan "lan0 lan1 lan2 lan3" "wan" ;; +dlink,dns-313|\ +edimax,ns-2502|\ +raidsonic,ib-4220-b|\ +wiliboard,wbd111|\ +wiliboard,wbd222) + # NAS machines with a single ethernet port + ucidef_set_interface_lan "eth0" "dhcp" + ;; itian,sq201) # These are all connected to eth1 thru VSC7395 ucidef_set_interface "eth" device "eth1" protocol "none" ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth0" ;; +ssi,1328) + ucidef_set_interfaces_lan_wan "eth0" "eth1" + ;; storlink,gemini324) # These are all connected to eth1 thru VSC7385 ucidef_set_interface "eth" device "eth1" protocol "none" ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth0" ;; +teltonika,rut1xx) + # One ethernet LAN which is offering DHCP + ucidef_set_interface_lan "eth0" + ;; esac board_config_flush