From patchwork Fri May 5 12:54:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thibaut X-Patchwork-Id: 1777634 X-Patchwork-Delegate: ynezz@true.cz 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=qhoKHRpa; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=ll6QqZNq; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=slashdirt.org header.i=@slashdirt.org header.a=rsa-sha256 header.s=mail header.b=WfhQ0WFx; 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 4QCX212jQfz213r for ; Fri, 5 May 2023 23:43:05 +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: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=JksAnAgRIQ25qDCj2yPuS9sSeTy4kLECFVcidGzmKdM=; b=qhoKHRpaHkI0W7 9rVUhnOHLNkTFc8AEDQAaOeDKFDsipw+A+ST8nA6C8DWCiYVPGHEtRj4IPvwSfUQPVEvmNqxq0LQt uMa9yIqWQmqQbdVUotUDBuU3kXE6Ij53Y5O0JU8E2TwHqMcPpNbl2YR1DeF6co0ZB2tm75kFG77Cf V2+XdN32QzOzTQNgM02+5xzgz0YmgJN7PGCON2DU+0z4oNMRcVWImE7vmBasrNdb3rlSWZa99Ttz2 wOpiqaP+WTt/ADMhpdFrx1BGTUg33Pl5ti7qx8bES/IfY/hJUS5Cm41ZCxDamilaYm6nddSv9S8ST Y7Cr6MAdsNtmViEA7ONw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1puvfz-00B0nl-2E; Fri, 05 May 2023 13:40:47 +0000 Received: from desiato.infradead.org ([90.155.92.199]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1puvfw-00B0m4-0F for openwrt-devel@bombadil.infradead.org; Fri, 05 May 2023 13:40:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=W0+WdGGZqc2elMGrdOK73cJdqdkTjRcTQ9Nj9TgPTns=; b=ll6QqZNqvV8qjsP3xhbSQkE78t OcPayh4aseCAGuFRp1C39e4IASfg5j3InbIyDZxC+ak5rTtXyRCcEc/hZezvBvUryOZDgC0sX2WGj uwDkPGrRtLLURfbodaoIc8bmJZjVYJNMWEFqHpFd5WrOCNOZQHLWSPMV8gUr+1YolnNQXuAC+zbbX pnjYC1ZHRLF4uPHI7LNH0/vmor+APklIt3Qb0ggZBOMBXy/porgEamOmIW9KGupPpYSfRNCaApv3j AHsK263WwuEj0406N0h23lK4H2Z93EBq3sbT/QTl8SNoAv7TCXerVk3eWo8ZtnGyd4rgyjKgn5gVw VhHiW0NA==; Received: from vps.slashdirt.org ([144.91.108.218]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1puux0-003FfJ-1m for openwrt-devel@lists.openwrt.org; Fri, 05 May 2023 12:54:21 +0000 Received: from Chuck.tardis.lan (tardis.herebedragons.eu [171.22.3.161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vps.slashdirt.org (Postfix) with ESMTPSA id 3C6C560165; Fri, 5 May 2023 14:54:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 vps.slashdirt.org 3C6C560165 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=slashdirt.org; s=mail; t=1683291252; bh=i+hfa13Qsx2WhlNXbKTMhIDZT5eZH23GzZzSx8B/EX8=; h=From:To:Cc:Subject:Date:From; b=WfhQ0WFxvEZ3UJAD+lLqD2wZF/Izk3gyjaqH9U424Wu9MPq7FScaG2EmzSrqC4mqY uNJUZWcr47zmAGFgXqcNWswI6KlCakSKcMFAbaksTIAAKR+JkID+7JIo7aD2bEaZJv yW8VAH5zjclrSrwLtN8Phu40J40zCYJY0G6lYgss= From: =?utf-8?q?Thibaut_VAR=C3=88NE?= To: openwrt-devel@lists.openwrt.org Cc: ansuelsmth@gmail.com, =?utf-8?q?Thibaut_VAR=C3=88NE?= , =?utf-8?b?TWljaGE=?= =?utf-8?b?xYIgS8SZcGllxYQ=?= Subject: [PATCH] ath79: mikrotik: bump compat version for yafut images Date: Fri, 5 May 2023 14:54:03 +0200 Message-Id: <20230505125403.15780-1-hacks@slashdirt.org> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230505_135418_795388_3D9E2246 X-CRM114-Status: GOOD ( 10.01 ) X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "desiato.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: Following 5264296, Mirotik NAND devices now use yafut to flash the kernel on devices. This method is incompatible with the old-style "kernel2minor" flash mechanism. Even though NAND images were disabled in default build since 21.02, a user flashing a new-style image onto an old-style image would result in in a soft-brick[1]. In order to prevent such accidental mi [...] Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.4 NO_DNS_FOR_FROM RBL: Envelope sender has no MX or A DNS records [listed in slashdirt.org. IN A] 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_EF Message has a valid DKIM or DK signature from envelope-from domain -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 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 Following 5264296, Mirotik NAND devices now use yafut to flash the kernel on devices. This method is incompatible with the old-style "kernel2minor" flash mechanism. Even though NAND images were disabled in default build since 21.02, a user flashing a new-style image onto an old-style image would result in in a soft-brick[1]. In order to prevent such accidental mishap, especially as these device images will be reenabled in the upcoming release, bump the compat version. After the new image is flashed, the compat version can be updated: uci set system.@system[0].compat_version='1.1' uci commit [1] https://github.com/openwrt/openwrt/pull/12225#issuecomment-1517529262 Cc: Michał Kępień Signed-off-by: Thibaut VARÈNE Reviewed-by: Robert Marko --- target/linux/ath79/image/common-mikrotik.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/linux/ath79/image/common-mikrotik.mk b/target/linux/ath79/image/common-mikrotik.mk index ce349b60b1..b37c8b7197 100644 --- a/target/linux/ath79/image/common-mikrotik.mk +++ b/target/linux/ath79/image/common-mikrotik.mk @@ -18,4 +18,8 @@ endef define Device/mikrotik_nand $(Device/mikrotik) IMAGE/sysupgrade.bin = append-kernel | sysupgrade-tar | append-metadata + DEVICE_COMPAT_MESSAGE := \ + NAND images switched to yafut. If running older image, reinstall from initramfs. + DEVICE_COMPAT_VERSION := 1.1 + endef