Using OKLI image to fix the booting stuck issue.
Tested with u-boot extracted from TP-Link stock images
"RE200(EU)_V1_171206.zip" and "RE210(US_CA)_V1_171205.zip".
Fixes: https://github.com/openwrt/openwrt/issues/16296
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/16473
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit
b62e6f5beb2a574c67ba5159f0049e54cdf25d69)
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/mtd/partitions/uimage.h>
/ {
aliases {
};
partition@20000 {
- compatible = "tplink,firmware";
+ compatible = "openwrt,uimage", "denx,uimage";
label = "firmware";
reg = <0x20000 0x7c0000>;
+ openwrt,offset = <0x1000>;
+ openwrt,ih-magic = <IH_MAGIC_OKLI>;
};
partition@7e0000 {
TARGET_DEVICES += tplink_archer-mr200
define Device/tplink_re200-v1
- $(Device/tplink-v1)
+ $(Device/tplink-v1-okli)
SOC := mt7620a
DEVICE_MODEL := RE200
DEVICE_VARIANT := v1
TARGET_DEVICES += tplink_re200-v1
define Device/tplink_re210-v1
- $(Device/tplink-v1)
+ $(Device/tplink-v1-okli)
SOC := mt7620a
DEVICE_MODEL := RE210
DEVICE_VARIANT := v1