diff options
author | Thibaut VARÈNE <hacks@slashdirt.org> | 2020-08-17 12:44:13 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-08-18 12:24:12 +0200 |
commit | 2cac31223d97fffacb8154f5739c67dfe078106f (patch) | |
tree | 11db04eb88e2b06baeb4fc52286e99e04eb2a4bb /tools/firmware-utils/src/mkrasimage.c | |
parent | d0498872ff71a79f0676cfc6b6b547c499bff712 (diff) | |
download | upstream-2cac31223d97fffacb8154f5739c67dfe078106f.tar.gz upstream-2cac31223d97fffacb8154f5739c67dfe078106f.tar.bz2 upstream-2cac31223d97fffacb8154f5739c67dfe078106f.zip |
ath79: mikrotik: erase firmware on SPI NOR before install
On Mikrotik SPI NOR devices, the firmware partition must be erased when
flashing from stock firmware, otherwise leftover bits (in particular a
kernel signature) can trigger a boot loop.
When booted from initramfs (the only way to install OpenWRT on these
devices), this patch unconditionally erases the firmware partition in
the do_upgrade() stage for all supported SPI NOR devices.
This is forward-ported from ed49d0876 and 20452a8db
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Diffstat (limited to 'tools/firmware-utils/src/mkrasimage.c')
0 files changed, 0 insertions, 0 deletions