9cc6cad0af52ecc7b8098b915f94c23edde550cc
[openwrt/staging/ldir.git] /
1 From 6dd3b939370094eb79529683be84500f3c757404 Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Tue, 6 Jun 2023 16:43:20 +0100
4 Subject: [PATCH 19/19] arm64: dts: mt7986: increase bl2 partition on NAND of
5 Bananapi R3
6
7 The bootrom burned into the MT7986 SoC will try multiple locations on
8 the SPI-NAND flash to load bl2 in case the bl2 image located at the the
9 previously attempted offset is corrupt.
10
11 Use 0x100000 instead of 0x80000 as partition size for bl2 on SPI-NAND,
12 allowing for up to four redundant copies of bl2 (typically sized a
13 bit less than 0x40000).
14
15 Fixes: 8e01fb15b8157 ("arm64: dts: mt7986: add Bananapi R3")
16 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
17 Link: https://lore.kernel.org/r/ZH9UGF99RgzrHZ88@makrotopia.org
18 Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
19 ---
20 .../boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nand.dtso | 6 +++---
21 1 file changed, 3 insertions(+), 3 deletions(-)
22
23 --- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nand.dtso
24 +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nand.dtso
25 @@ -29,13 +29,13 @@
26
27 partition@0 {
28 label = "bl2";
29 - reg = <0x0 0x80000>;
30 + reg = <0x0 0x100000>;
31 read-only;
32 };
33
34 - partition@80000 {
35 + partition@100000 {
36 label = "reserved";
37 - reg = <0x80000 0x300000>;
38 + reg = <0x100000 0x280000>;
39 };
40
41 partition@380000 {