arm-trusted-firmware-mediatek: fix NAND read failure on SNFI
authorDaniel Golle <daniel@makrotopia.org>
Sun, 11 Aug 2024 22:18:53 +0000 (23:18 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 12 Aug 2024 10:31:37 +0000 (11:31 +0100)
commitc22ba7544eaa556bee92725d6ec13061247d25ad
treea7cd27c9f04c791bf299cc7e0eb1cb5fb0707a70
parent81481c805aa56f6452d7e7577d42eb6b89a6869d
arm-trusted-firmware-mediatek: fix NAND read failure on SNFI

A bug has plagued bl2 which caused failure to boot and bricked Linksys
E8450 and Belkin RT3200 devices in case of correctable bitflips being
detected during a read operation. A simple logic error resulted in read
to be considered errornous instead of just continueing in case of
correctable bitflips.

Address this by importing a patch fixing that logic error.

The issue, which has been dubbed as the "OpenWrt Kiss of Death", and is
now a thing of the past.

Users should preemptively update bl2 to prevent their devices being at
risk.

Link: https://github.com/mtk-openwrt/arm-trusted-firmware/pull/11
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/boot/arm-trusted-firmware-mediatek/Makefile
package/boot/arm-trusted-firmware-mediatek/patches/0004-mediatek-snfi-fix-return-code-when-reading.patch [new file with mode: 0644]