Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3655166pxb; Mon, 24 Jan 2022 14:33:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJy94Q6brjn5EblZEc+32DMSGTUY5bCnAG7/J2sa6mUAKb8x/kmMqW0Sf7RyFsVMUOnv80ME X-Received: by 2002:a17:903:22ca:b0:14b:3bbd:82ed with SMTP id y10-20020a17090322ca00b0014b3bbd82edmr9610111plg.37.1643063615060; Mon, 24 Jan 2022 14:33:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643063615; cv=none; d=google.com; s=arc-20160816; b=cP8XvgSdixQDR4Khsf/kDaWfy8+b0CweIoTAvwI0uyxbKcnl1C0odhdfMybDs78r/Y B0qTY2GY+2D0DhobEmtcqTD8VORSSoiccjrsyR8QwZMsudxdHCY4/QGFpjoNe+DC82Md 49cDuRv9tXLaYCRT7hVtnrIOtBQXfgXcAZgd9aQZg+NQb6OYL8AYCxO1YgElJwYaNTQz TkACwx2aHWtB4hjf13P1V1YosvU3Ilj2IQV8PtNi6JIpnSKIKjUMwW6rFI8Int2f6tq7 Er88y/741NyF3lbVG+s6KhXX99YVB5cFZ587aHjexyRjQ5/5VKCEZCDkPnIcv/cZ4JlL WEpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0RmDthoirMtOdPwVvH7oZ8LHgs0pRkYuF/9EFrc8IdU=; b=y0moydGzF+9qS7ufNsg2vZqvh4lL2ecba7pqdhnwnNYCCP5F0c/ULlunCL/ZJ71dVA TUNlq3Vxpb39wBcarB0jG5DzADiACz0svqtC1xufkUH/ieqqGxsRajVCISFYaAdtBJ26 fHQAZXNi9yf6GJWMomrg33RiLM2u3DGyIAh+r4gOKKVf2ApI999EW0BMn9ClmFUOdMp+ i1HyjoFs7P3hqKBgytcPGFP8U2c4ppHKOkhO/V74ySWNXtFyfX71uxpa/UNsbZASUA7F mfE/cCLDsJQHsLE6KDfJLrpVMqNHbAUfVIqoCYId/kmpqEKxWYhF6gIwhc+FJ7u7okKN Oscw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EVnJN71n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si560744pjd.35.2022.01.24.14.33.23; Mon, 24 Jan 2022 14:33:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EVnJN71n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1587522AbiAXW2h (ORCPT + 99 others); Mon, 24 Jan 2022 17:28:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1455287AbiAXVfL (ORCPT ); Mon, 24 Jan 2022 16:35:11 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A50F2C0612FB; Mon, 24 Jan 2022 12:21:55 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 16AE0B81257; Mon, 24 Jan 2022 20:21:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77E40C340E5; Mon, 24 Jan 2022 20:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055712; bh=gpWjQ0VaBNniP4xA1fEF6HlyF6wN8PjRmBVxu/REmpg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EVnJN71nSyTPLS0JzkZiJ1wyP4/U6yDBSK/RIRzC9RvC0GeC98Ss3bP2x3hcRw/Hy 31JiSQd1t9nnY1amFrJOJe4TkEqxiOga2AjoGGm9eyf4VqNG9TnTbOuYH5QDPNan3P zsZOPPMzyQOqF+sXKNO4GwKqCzSnTiBd2b0KhxLQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Steven Maddox , Christian Lamparter , Linus Walleij , Arnd Bergmann , Sasha Levin Subject: [PATCH 5.15 241/846] ARM: dts: gemini: NAS4220-B: fis-index-block with 128 KiB sectors Date: Mon, 24 Jan 2022 19:35:58 +0100 Message-Id: <20220124184109.240826033@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christian Lamparter [ Upstream commit 4754eab7e5a78bdefe7a960c5c260c95ebbb5fa6 ] Steven Maddox reported in the OpenWrt bugzilla, that his RaidSonic IB-NAS4220-B was no longer booting with the new OpenWrt 21.02 (uses linux 5.10's device-tree). However, it was working with the previous OpenWrt 19.07 series (uses 4.14). |[ 5.548038] No RedBoot partition table detected in 30000000.flash |[ 5.618553] Searching for RedBoot partition table in 30000000.flash at offset 0x0 |[ 5.739093] No RedBoot partition table detected in 30000000.flash |... |[ 7.039504] Waiting for root device /dev/mtdblock3... The provided bootlog shows that the RedBoot partition parser was looking for the partition table "at offset 0x0". Which is strange since the comment in the device-tree says it should be at 0xfe0000. Further digging on the internet led to a review site that took some useful PCB pictures of their review unit back in February 2009. Their picture shows a Spansion S29GL128N11TFI01 flash chip. >From Spansion's Datasheet: "S29GL128N: One hundred twenty-eight 64 Kword (128 Kbyte) sectors" Steven also provided a "cat /sys/class/mtd/mtd0/erasesize" from his unit: "131072". With the 128 KiB Sector/Erasesize in mind. This patch changes the fis-index-block property to (0xfe0000 / 0x20000) = 0x7f. Fixes: b5a923f8c739 ("ARM: dts: gemini: Switch to redboot partition parsing") Reported-by: Steven Maddox Signed-off-by: Christian Lamparter Signed-off-by: Linus Walleij Tested-by: Steven Maddox Link: https://lore.kernel.org/r/20211206004334.4169408-1-linus.walleij@linaro.org' Bugzilla: https://bugs.openwrt.org/index.php?do=details&task_id=4137 Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- arch/arm/boot/dts/gemini-nas4220b.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/gemini-nas4220b.dts b/arch/arm/boot/dts/gemini-nas4220b.dts index 13112a8a5dd88..6544c730340fa 100644 --- a/arch/arm/boot/dts/gemini-nas4220b.dts +++ b/arch/arm/boot/dts/gemini-nas4220b.dts @@ -84,7 +84,7 @@ partitions { compatible = "redboot-fis"; /* Eraseblock at 0xfe0000 */ - fis-index-block = <0x1fc>; + fis-index-block = <0x7f>; }; }; -- 2.34.1