Skip to content
Snippets Groups Projects
Commit ed49d087 authored by Thibaut VARENE's avatar Thibaut VARENE Committed by Felix Fietkau
Browse files

ar71xx: mikrotik: erase firmware partition on SPI NOR devices in pre_upgrade()


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 flash LEDE on these devices),
this patch unconditionally erases the firmware partition in the pre_upgrade()
stage for all supported SPI NOR devices.

Signed-off-by: default avatarThibaut VARENE <hacks@slashdirt.org>
parent df36b5e1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment