Skip to content

Commit

Permalink
ramips: use OKLI loader for TP-Link RE200 v1 and RE210 v1
Browse files Browse the repository at this point in the history
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: openwrt/openwrt#16296
Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt/openwrt#16473
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit b62e6f5)
  • Loading branch information
DragonBluep authored and hauke committed Oct 8, 2024
1 parent fb44dd7 commit 1efcdb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/mtd/partitions/uimage.h>

/ {
aliases {
Expand Down Expand Up @@ -51,9 +52,11 @@
};

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 {
Expand Down
4 changes: 2 additions & 2 deletions target/linux/ramips/image/mt7620.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ endef
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
Expand All @@ -1257,7 +1257,7 @@ endef
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
Expand Down

0 comments on commit 1efcdb2

Please sign in to comment.