2
0
forked from Ivasoft/openwrt

mediatek: rework Bananapi BPi-R2

* introduce recovery (=initramfs) vs. production dual boot scheme
 * make use of uImage.FIT (instead of FAT partition)
 * generate images using build steps (instead of external scripts)
 * simplify sysupgrade and config restore (thanks to uImage.FIT)
 * make sure mmc devices are ordered persistently (set DT aliases)

This commit breaks sysupgrade from existing installations, you will
have to re-install using the sdcard.img.gz image.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle
2021-07-10 16:35:47 +01:00
parent 6b2000b6ff
commit 86a61e716e
8 changed files with 156 additions and 150 deletions

View File

@@ -6,9 +6,6 @@ move_config() {
local partdev partnum
case $(board_name) in
bananapi,bpi-r2)
partnum=2
;;
unielec,u7623-02-emmc-512m)
if grep -q root=/dev/mmcblk0p2 /proc/cmdline; then
partnum=1;