From eba0a8deb65de70b0d913f9ec8910640a79d0191 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Sat, 5 Nov 2022 19:52:08 +0800 Subject: ramips: improve compatibility for Youku YK-L2 and YK-L1 series Add UIMAGE_NAME and UIMAGE_MAGIC to allow users to directly install initramfs-kernel.bin from the stock firmware Web UI. At the same time, this change makes it possible to boot OpenWrt with the official u-boot. Notice: Since the stock firmware is based on OpenWrt and the configuration will be retained by default during the upgrade process, so we must use initramfs-kernel.bin to do a initial installation. After the system restarts, install sysupgrade.bin and do not retain any configuration. Signed-off-by: Shiji Yang --- target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi | 3 ++- target/linux/ramips/dts/mt7621_youku_yk-l2.dts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'target/linux/ramips/dts') diff --git a/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi b/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi index d15d2c0f4b..210b0d7d19 100644 --- a/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi +++ b/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi @@ -86,8 +86,9 @@ }; firmware: partition@50000 { - compatible = "denx,uimage"; + compatible = "openwrt,uimage", "denx,uimage"; label = "firmware"; + openwrt,ih-magic = <0x12291000>; /* reg property is set based on flash size in DTS files */ }; }; diff --git a/target/linux/ramips/dts/mt7621_youku_yk-l2.dts b/target/linux/ramips/dts/mt7621_youku_yk-l2.dts index e588e047eb..5342b40507 100644 --- a/target/linux/ramips/dts/mt7621_youku_yk-l2.dts +++ b/target/linux/ramips/dts/mt7621_youku_yk-l2.dts @@ -95,8 +95,9 @@ }; partition@50000 { - compatible = "denx,uimage"; + compatible = "openwrt,uimage", "denx,uimage"; label = "firmware"; + openwrt,ih-magic = <0x12291000>; reg = <0x50000 0xfb0000>; }; }; -- cgit v1.2.3