From patchwork Tue May 21 07:50:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1937280 X-Patchwork-Delegate: linus.walleij@linaro.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=Iw8QeGej; 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=exFFlL0N; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vk69y5rcqz23tw for ; Tue, 21 May 2024 17:53:09 +1000 (AEST) 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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bY53J//3zMvtxE/nyk7WZwiCUSN0TmgDvMqL8sST4QY=; b=Iw8QeGejKaRgQM VrbsSFwaKJbryMUVaaKpu3lZW4c2zGGMmAHfZ7mimzPcdFiynLxQk9nM9JdjSIQ+iUMJUTFH1oIzc qfnjrwNxYPoM1kJy64PYAtBumdG1vv7L5EMn9KwfpkWw2ozsmFVFDZUOQOPRXAwE0V4/F/vtfmBaL VcZN1jsLsrSUPWps1hid7FyHDDN5m2n0MGdC91iYkBuVkTSxwchgh7m/XQaReoUCXlelGf+MU3Pc5 0ATAIj2ZuxPPHmj7+gKyQRYPH/z8SYixflvUrwhB0l6rvRqNEddJfvQdwG1a/VSuYTyNBO0zKZgoM X36PCtP1yVhvqGSboRYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9KH1-0000000Geza-3zHJ; Tue, 21 May 2024 07:51:03 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9KGx-0000000Gexf-1KuT for openwrt-devel@lists.openwrt.org; Tue, 21 May 2024 07:51:00 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-51f60817e34so5856615e87.2 for ; Tue, 21 May 2024 00:50:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716277857; x=1716882657; darn=lists.openwrt.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=brNwf4REoat/d2N9a69sFjOcwE8gkwPXThNTXS3qUR8=; b=exFFlL0NXGQPCc8h6tWVeYix93mLGjlLPad12+V5fLamS6KgzBA5QGPbWMAT9K2REc SDGnBsspa/GytlSfNxeKXZHXk5RO20qrzeLNNijyUUbySqCiFycKZdrwGxOTS8F7vC7C saK7jHg1ER+WH2HBHOdagg8Y205bakOjHB7m/MxU5Y/gkJC5nGRby6UGWoZVoWvDwcXf 0TfrwtrUDVccon52x+ZKW2x8KcxRrRW8Xy3lx9kG71yBj1cu3cP+nDQK0HSAFpyObvJ2 g88W/JiDO2Wb5XwK4SqZkjU3b4h2VGKEYI004EznF0xd7m9M2PCX4kccDmq+B8dcZ4yI RGoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716277857; x=1716882657; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=brNwf4REoat/d2N9a69sFjOcwE8gkwPXThNTXS3qUR8=; b=Y7qVf6Nxf4nzigNFTg65JeRgL31nDvd6DcayiKFp4UdxUWzvZ1PDVGFtS8ZjrGa942 l6iDiv8oVXTqj4ZlhyPyeOvmB6gvEFWaoM1DqtPDeNcL5IeKS+w/66raLxlUmcWzqgkv QQLe1BAqAlFojQUwzf18LwCfKLluOtyYC+C2ptvCyFs7WaZaP/mocMepKx7G1OvX36nh QivruSFl4NWDxd0hYJkAlISpoAEP/PlhSpnPpewY3eT8vac+ki6C2YuYxXOUy/zupf2w ttxaPKDMxrIR4GTEJ8nRZ3joKQtKACEMkO0xIqMNhh8pJnniTPR4Id+59/ycGw/l5Hkh AqBQ== X-Gm-Message-State: AOJu0YxBtshK49iRAaW0sjGNz28uqVCCuP1cLL6+EaoPXfmiB14cFHms epcR0lQJhKN/+Y8GNDC1d9mafTPi55LB7Yp+0hZSGTnOyKbjw9gNmQsL1SkTnwpV1yS59QZEEw5 /Ox0= X-Google-Smtp-Source: AGHT+IHGi6m8G8CbJ4EQSCGgThb6/dp7fxwsYgUfVR7SIG4/5MTwzCoox68Gomuq/fwttajH9BygiQ== X-Received: by 2002:a05:6512:33ce:b0:513:edf4:6f20 with SMTP id 2adb3069b0e04-5220fe79457mr21766048e87.54.1716277856796; Tue, 21 May 2024 00:50:56 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f39d368asm4604337e87.289.2024.05.21.00.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 00:50:55 -0700 (PDT) From: Linus Walleij Date: Tue, 21 May 2024 09:50:48 +0200 Subject: [PATCH 3/4] ixp4xx: Add back support for Freecom FSG-3 MIME-Version: 1.0 Message-Id: <20240521-ixp4xx-iomega-nas100d-v1-3-2da1ac27ab9a@linaro.org> References: <20240521-ixp4xx-iomega-nas100d-v1-0-2da1ac27ab9a@linaro.org> In-Reply-To: <20240521-ixp4xx-iomega-nas100d-v1-0-2da1ac27ab9a@linaro.org> To: openwrt-devel@lists.openwrt.org, Howard Harte , Krzysztof Halasa , Raylynn Knight , Eric , Rod Whitby Cc: Linus Walleij X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240521_005059_395762_C8C9696F X-CRM114-Status: GOOD ( 14.47 ) 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: OpenWrt supported the Freecom FSG-3 in the past. It has 64 MB of RAM so will run fine, but the bare 4 MB of flash makes it a non-default target. The generated compressed image is currently below 4MB ( [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:134 listed in] [list.dnswl.org] 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 OpenWrt supported the Freecom FSG-3 in the past. It has 64 MB of RAM so will run fine, but the bare 4 MB of flash makes it a non-default target. The generated compressed image is currently below 4MB (just 3.3 MB) though, so it should be possible to flash just fine with a rootfs on a harddrive or USB stick, which is what the FSG-3 used in the past as well. The device has a WAN port on eth0 and three LAN ports on eth1. The LAN ports are probably a DSA switch but the old OpenWrt base never activated that, instead it relies on boot defaults. Due to questionable usablity without tweaking and further work this image is not built by default, but made available for developers who know what they are doing. The TAR+CRC image generation is a rewritten version of the earlier support code. Signed-off-by: Linus Walleij --- .../linux/ixp4xx/base-files/etc/board.d/02_network | 1 + target/linux/ixp4xx/image/Makefile | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/target/linux/ixp4xx/base-files/etc/board.d/02_network b/target/linux/ixp4xx/base-files/etc/board.d/02_network index 96d7b31282c2..7f75a2e20d33 100644 --- a/target/linux/ixp4xx/base-files/etc/board.d/02_network +++ b/target/linux/ixp4xx/base-files/etc/board.d/02_network @@ -4,6 +4,7 @@ board_config_update case "$(board_name)" in +freecom,fsg-3|\ gateworks,gw2348|\ gateworks,gw2358) ucidef_set_interfaces_lan_wan "eth0" "eth1" diff --git a/target/linux/ixp4xx/image/Makefile b/target/linux/ixp4xx/image/Makefile index 14d74cfb7017..15f40821eb21 100644 --- a/target/linux/ixp4xx/image/Makefile +++ b/target/linux/ixp4xx/image/Makefile @@ -12,6 +12,16 @@ define Build/linksys-ixp425-image mv $@.new $@ endef +define Build/freecom-image + mkdir -p $@.tmptar + # Add kernel + cp $@ $@.tmptar/zImage + cd $@.tmptar && tar -c -j -f $@.new --numeric-owner --owner=0 --group=0 * + rm -rf $@.tmptar + encode_crc $@.new $@ + rm -f $@.new +endef + # Build sysupgrade image define BuildFirmware/Generic dd if=$(KDIR)/zImage of=$(KDIR)/zImage.pad bs=64k conv=sync; \ @@ -36,6 +46,20 @@ define Device/Default BLOCKSIZE := 128k endef +define Device/freecom_fsg_3 + DEVICE_VENDOR := Freecom + DEVICE_MODEL := FSG-3 + DEVICE_PACKAGES := ixp4xx-microcode-ethernet kmod-rtc-isl1208 kmod-ath5k wpad-basic-mbedtls + # Only 4 MB of Flash so not building by default + DEFAULT := n + DEVICE_DTS := intel-ixp42x-freecom-fsg-3 + KERNEL := kernel-bin | append-dtb + IMAGES := factory.bin + # This has to boot from harddisk so just append the kernel + IMAGE/factory.bin := append-kernel | freecom-image +endef +TARGET_DEVICES += freecom_fsg_3 + define Device/gateworks_avila DEVICE_VENDOR := Gateworks DEVICE_MODEL := Avila GW2348-4