mirror of
https://github.com/openwrt/openwrt.git
synced 2025-04-15 06:57:08 +00:00
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 <yangshiji66@qq.com> (cherry picked from commit eba0a8deb65de70b0d913f9ec8910640a79d0191)
This commit is contained in:
parent
9155d40513
commit
d2ae7613b5
target/linux/ramips
@ -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 */
|
||||
};
|
||||
};
|
||||
|
@ -95,8 +95,9 @@
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
compatible = "denx,uimage";
|
||||
compatible = "openwrt,uimage", "denx,uimage";
|
||||
label = "firmware";
|
||||
openwrt,ih-magic = <0x12291000>;
|
||||
reg = <0x50000 0xfb0000>;
|
||||
};
|
||||
};
|
||||
|
@ -1256,6 +1256,8 @@ define Device/youku_yk-l1
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 \
|
||||
kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += youku-yk1 youku,yk1
|
||||
UIMAGE_MAGIC := 0x12291000
|
||||
UIMAGE_NAME := 400000000000000000000000
|
||||
endef
|
||||
TARGET_DEVICES += youku_yk-l1
|
||||
|
||||
@ -1266,6 +1268,8 @@ define Device/youku_yk-l1c
|
||||
DEVICE_MODEL := YK-L1c
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 \
|
||||
kmod-usb-ledtrig-usbport
|
||||
UIMAGE_MAGIC := 0x12291000
|
||||
UIMAGE_NAME := 400000000000000000000000
|
||||
endef
|
||||
TARGET_DEVICES += youku_yk-l1c
|
||||
|
||||
|
@ -2079,6 +2079,8 @@ define Device/youku_yk-l2
|
||||
DEVICE_MODEL := YK-L2
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport
|
||||
UIMAGE_MAGIC := 0x12291000
|
||||
UIMAGE_NAME := 400000000000000000003000
|
||||
endef
|
||||
TARGET_DEVICES += youku_yk-l2
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user