Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3589686pxb; Mon, 24 Jan 2022 12:58:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkwq07yJSJ8z1KoNU67bRCY1v8Da2lRM4FUrIGu62ILJEXThB25ajhJ35gTQBuyNBfZYhx X-Received: by 2002:a17:90a:34cc:: with SMTP id m12mr164528pjf.24.1643057930829; Mon, 24 Jan 2022 12:58:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057930; cv=none; d=google.com; s=arc-20160816; b=KHnCjOigkoRaybVn7r2JTnq0RxidJwkatMEfNfWwEzIhYcIu06YI03M2WDSyUX6yS3 au4Yr9sH0bKmLFwrfqoKTmIHe5NTp/GIkXLRX4FmQZEkVU4zuBsmPDHludwNKW4FCT51 VtjOqBra6GcypnXKV9DYMJ9sG8T8So34WztIIG2YKmKruxgERLz97A9EMm2KFGmB1WwU hCeyzPQEcl/yCZfA2UB6wmIdwuvfTWdPrIvQ7nfON+t8VaSaS73rAsJUL3gpPDlcWHHH ubdo7egcBt30hDzPsmo2MyCJLOKbkNBQ6t/EpJ2uPdQEeYQ/6xnX2+83JCBIrcLykq76 Bz5g== 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=Drt2+So68QcJbmJ8/qfpEZlZXO1MqaczOR+OZhMZRVw=; b=VV6DwtOWQ6iyIsqy5ZXP4Feg1zN31FswdKMrxvdY5yqCIe3s+opl8d0DQfBYPoPnFl 4aTZjbuweXaBqxySRBsiBoZGps4B0GQiKnDBNVIgOb8ebOxcuMy0cZauWIOFJLxC1HXy P5/KUEgMfK+yCPIzxr2s1FINHQNgiMkMOpIZj/rhcGZiSG9iI4lzEqh/VGryL4DJjq0v PJSTQL4kYqiFFqYP+V0FM2/drUWw0uL7+5nxjmtef1Dm3id9QQV60x2bbPFLR23wlw6O E5nuaqJ0DUuT1KyMaFUdmbp3nrciW2hXrGkyt5QE4zowdIEPPVVVVUw7u1rOSQuNBUix HcxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q53UTEcA; 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 v19si17001633pfu.27.2022.01.24.12.58.34; Mon, 24 Jan 2022 12:58:50 -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=Q53UTEcA; 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 S1381751AbiAXUXd (ORCPT + 99 others); Mon, 24 Jan 2022 15:23:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359871AbiAXUBJ (ORCPT ); Mon, 24 Jan 2022 15:01:09 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 039C2C055A9B; Mon, 24 Jan 2022 11:28:30 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 839FB60917; Mon, 24 Jan 2022 19:28:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6185CC340E8; Mon, 24 Jan 2022 19:28:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052509; bh=hazNcpa85LKHtize4WzzuyjDhfQX2MzPxLFQYOF7I9I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q53UTEcAn/blL6RqQFGl5QqEudgClKrBOHSCby2R95fiPXOBcOIOXecTZlcJiNJ+H BrawiiD2IDz2+VJ6bM1UYLIHHGR4Grd6hvpj+gkgODBTsosvXVbte0SUONhxKb1GFF WO0YNHNQnzybe7GqYl2LcI01OAlmafPmqwcAzJMY= 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.4 082/320] ARM: dts: gemini: NAS4220-B: fis-index-block with 128 KiB sectors Date: Mon, 24 Jan 2022 19:41:06 +0100 Message-Id: <20220124183956.534259323@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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 e1020e07e1366..60cec653ac7c6 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