mediatek: add script to trigger scrubbing of FIP-in-UBI
authorDaniel Golle <daniel@makrotopia.org>
Sun, 11 Aug 2024 22:45:46 +0000 (23:45 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 12 Aug 2024 10:31:37 +0000 (11:31 +0100)
commit8cf9a932fa7cebbfad1e9fab0ea633482adb8436
treeb9900e837628fa3d6423006c9fe88304c1fdd275
parent1554af4c4380504eb1b37a100e56ecae749a67d5
mediatek: add script to trigger scrubbing of FIP-in-UBI

Read the 'fip' static volume in order to trigger scrubbing in case of
detecting flipped bits while reading.
We have to do this in Linux because we never read or touch the 'fip'
volume and the UBISPL implementation in ARM TrustedFirmware-A does NOT
handle scrubbing itself.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/base-files/lib/preinit/07_trigger_fip_scrubbing [new file with mode: 0644]