ath79: migrate to use uimage
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
f873bd76fb
commit
0056ee65f2
@ -3,6 +3,7 @@
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/mtd/partitions/uimage.h>
|
||||
|
||||
#include "qca956x.dtsi"
|
||||
|
||||
@ -102,22 +103,30 @@
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
label = "loader1";
|
||||
reg = <0x050000 0x010000>;
|
||||
};
|
||||
|
||||
partition@60000 {
|
||||
compatible = "openwrt,uimage", "denx,uimage";
|
||||
openwrt,ih-magic = <IH_MAGIC_OKLI>;
|
||||
label = "firmware";
|
||||
reg = <0x060000 0xe20000>;
|
||||
};
|
||||
|
||||
partition@e80000 {
|
||||
label = "loader2";
|
||||
reg = <0xe80000 0x010000>;
|
||||
};
|
||||
|
||||
partition@e90000 {
|
||||
label = "unused";
|
||||
reg = <0xe90000 0x160000>;
|
||||
};
|
||||
|
||||
partition@1 {
|
||||
label = "oem_firmware";
|
||||
reg = <0x050000 0xfa0000>;
|
||||
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "rootfs";
|
||||
reg = <0x000000 0xe30000>;
|
||||
};
|
||||
|
||||
partition@e30000 {
|
||||
label = "kernel";
|
||||
reg = <0xe30000 0x170000>;
|
||||
};
|
||||
};
|
||||
|
||||
art: partition@ff0000 {
|
||||
|
||||
@ -2421,15 +2421,18 @@ endef
|
||||
TARGET_DEVICES += xiaomi_mi-router-4q
|
||||
|
||||
define Device/xwrt_csac
|
||||
$(Device/loader-okli-uimage)
|
||||
SOC := qca9563
|
||||
DEVICE_VENDOR := XWRT
|
||||
DEVICE_MODEL := CSAC
|
||||
KERNEL_SIZE := 1472k
|
||||
IMAGE_SIZE := 16000k
|
||||
IMAGES += factory-10.bin factory-05.bin
|
||||
IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to 14528k | append-kernel | check-size | append-metadata
|
||||
IMAGE/factory-10.bin := $$(IMAGE/sysupgrade.bin) | xwrt_csac10-factory $(1)
|
||||
IMAGE/factory-05.bin := $$(IMAGE/sysupgrade.bin) | xwrt_csac05-factory $(1)
|
||||
IMAGE_SIZE := 14464k
|
||||
LOADER_FLASH_OFFS := 0x60000
|
||||
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
|
||||
IMAGES += breed-factory.bin factory-10.bin factory-05.bin
|
||||
IMAGE/breed-factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
|
||||
prepad-okli-kernel $(1) | pad-to 14528k | append-okli-kernel $(1)
|
||||
IMAGE/factory-10.bin := $$(IMAGE/breed-factory.bin) | xwrt_csac10-factory $(1)
|
||||
IMAGE/factory-05.bin := $$(IMAGE/breed-factory.bin) | xwrt_csac05-factory $(1)
|
||||
DEVICE_PACKAGES := kmod-leds-reset kmod-ath10k-ct ath10k-firmware-qca9888-ct kmod-usb-core kmod-usb2
|
||||
endef
|
||||
TARGET_DEVICES += xwrt_csac
|
||||
|
||||
Loading…
Reference in New Issue
Block a user