[Tutorial] Build, customize and use MediaTek open-source U-Boot and ATF

Indeed, I always use powerdown to cleanly power the board down and unplug the power. So I also will need to revert it.

shame they didn’t do like pi5 with a power down button

I wonder why real powerdown is not possible for r4 because it has a pmic (r3 does not).

But for me it is enough to simply halt and not reboot to safely switch off.

The bootrom burned into the MT7986 SoC will try multiple locations on the SPI-NAND flash to load bl2 in case the bl2 image located at the the previously attempted offset is corrupt.

Use 0x100000 instead of 0x80000 as partition size for bl2 on SPI-NAND, allowing for up to four redundant copies of bl2 (typically sized a bit less than 0x40000).

Fixes: 8e01fb15b8157 (“arm64: dts: mt7986: add Bananapi R3”) Signed-off-by: Daniel Golle

So what would be the locations the bootrom will look for bl2? Is it 0x0, 0x40000, 0x80000 and 0xc0000 ? With the word typically, that does not make it very sure, so I thought I can ask here.

Edit:

I’m guessing now that it will try to load starting at every next erase block of 0x20000 ?