From patchwork Mon May 17 09:57:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Valentin?= X-Patchwork-Id: 1479330 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=WnYzD2Wj; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FkF3N4mzNz9sWQ for ; Mon, 17 May 2021 19:59:28 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=cVkU/vY8n85kmnX0HZOovuDkykknvU2kc0xO4lUKTvQ=; b=WnYzD2Wjh4x7J1wLlF0TAzgfRt 56Obepm7qrHBAW7n1t+yFMlZ6IAlJ8So7cam/o7IzOhNBoivBe1oijFLeSDBkCO2JcFuJCvmSoFes FchXye1kjS16hhTIUTCg67vmXlWI/HrRS/4WMbUmdZtEeXVvzdOBCQXvpVpMViJB/ZsnHW9OoDP7c 4r2Mzjs+3/KTjRpcvTCqGeoMOGNNxtfI4XMy1mRzA0NE1pjBp11h1c+ymgVDgp7F7WjhiGblII4Ur fQdZD1HwqBFaaYCrJYLfxIlsRYBo6S46VAHG+FnOw4tD0I5iF1uYB4F0fQKlC8TZRq0/RosEFliJQ h010grSg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lia0I-00EUCI-RH; Mon, 17 May 2021 09:57:39 +0000 Received: from mail3.marcant.net ([217.14.160.188]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lia00-00EU5u-SE for openwrt-devel@lists.openwrt.org; Mon, 17 May 2021 09:57:27 +0000 Received: from [192.168.180.1] (port=55070 helo=admins.marcant.net) by mail3.marcant.net with esmtp (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1liZzx-0007am-1Y; Mon, 17 May 2021 11:57:17 +0200 Received: from varus.marcant.loc (unknown [192.168.3.44]) by admins.marcant.net (Postfix) with ESMTPA id 4DEEF280919; Mon, 17 May 2021 11:57:17 +0200 (CEST) From: =?utf-8?q?Andr=C3=A9_Valentin?= To: openwrt-devel@lists.openwrt.org, a.valentin@ddimension.net Cc: avalentin@marcant.net Subject: [PATCH v2 0/4] Add support for ZyXEL LTE3301-Plus Date: Mon, 17 May 2021 11:57:07 +0200 Message-Id: <20210517095712.24332-1-avalentin@marcant.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210517_105723_991972_3BBF9168 X-CRM114-Status: GOOD ( 10.65 ) X-Spam-Score: 0.0 (/) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22desiato=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__This_set_adds_support_for_the_ZyXEL_LT?= =?unknown-8bit?q?E3301-Plus=2C_an_indoor?= =?unknown-8bit?q?_3G/4G_indoor_LTE_router_with_Wifi=2E_Andr=C3=A9_Valentin_?= =?unknown-8bit?q?=284=29=3A_firmware-utils=3A_zytrx=3A?= =?unknown-8bit?q?_Add_support_for_ZyXEL_LTE3301-Plus_mtdsplit-squashfs=3A_al?= =?unknown-8bit?q?low_devicetree_to?= =?unknown-8bit?q?_define_the_name_of_the_new_partition_package/mtdutils=3A_a?= =?unknown-8bit?q?dd_ubifs-tools_package?= =?unknown-8bit?b?IGNvbiBbLi4uXSA=?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=280=2E0_points=2C_5=2E0_req?= =?unknown-8bit?q?uired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_0=2E0_SPF=5FHELO=5FNONE__________SPF=3A_HELO_does_not_publ?= =?unknown-8bit?q?ish_an_SPF_Record?= 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 This set adds support for the ZyXEL LTE3301-Plus, an indoor 3G/4G indoor LTE router with Wifi. André Valentin (4): firmware-utils: zytrx: Add support for ZyXEL LTE3301-Plus mtdsplit-squashfs: allow devicetree to define the name of the new partition package/mtdutils: add ubifs-tools package containing mkfs.ubifs ramips: mt7621: Add support for ZyXEL LTE3301-Plus package/boot/uboot-envtools/files/ramips | 1 + package/utils/mtd-utils/Makefile | 17 ++ .../drivers/mtd/mtdsplit/mtdsplit_squashfs.c | 16 +- .../ramips/dts/mt7621_zyxel_lte3301-plus.dts | 209 ++++++++++++++++++ target/linux/ramips/image/mt7621.mk | 22 ++ .../mt7621/base-files/etc/board.d/01_leds | 4 + .../mt7621/base-files/etc/board.d/02_network | 3 +- .../base-files/etc/board.d/03_gpio_switches | 3 + .../mt7621/base-files/etc/init.d/bootcount | 1 + .../lib/preinit/79_lte3301-plus-setup-ubi | 43 ++++ .../mt7621/base-files/lib/upgrade/platform.sh | 33 ++- tools/firmware-utils/src/zytrx.c | 1 + 12 files changed, 350 insertions(+), 3 deletions(-) create mode 100644 target/linux/ramips/dts/mt7621_zyxel_lte3301-plus.dts create mode 100644 target/linux/ramips/mt7621/base-files/lib/preinit/79_lte3301-plus-setup-ubi