/ {
compatible = "tplink,re305-v1", "mediatek,mt7628an-soc";
model = "TP-Link RE305 v1";
+
+ virtual_flash {
+ compatible = "mtd-concat";
+ devices = <&fwconcat0>, <&fwconcat1>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ compatible = "tplink,firmware";
+ label = "firmware";
+ reg = <0x0 0x0>;
+ };
+ };
+ };
};
&spi0 {
read-only;
};
- partition@20000 {
- compatible = "tplink,firmware";
- label = "firmware";
+ fwconcat0: partition@20000 {
+ label = "fwconcat0";
reg = <0x20000 0x5e0000>;
};
};
};
- /*
- The flash space between 0x650000 and 0x7f0000 is blank in the
- stock firmware so it is left out as well.
- */
+ fwconcat1: partition@650000 {
+ label = "fwconcat1";
+ reg = <0x650000 0x1a0000>;
+ };
partition@7f0000 {
label = "radio";
define Device/tplink_re305-v1
$(Device/tplink-safeloader)
- IMAGE_SIZE := 6016k
+ IMAGE_SIZE := 7680k
+ KERNEL_SIZE := 6016k
DEVICE_MODEL := RE305
DEVICE_VARIANT := v1
DEVICE_PACKAGES := kmod-mt76x2
+ DEVICE_COMPAT_VERSION := 2.0
+ DEVICE_COMPAT_MESSAGE := Partition design has changed compared to older versions due to size restrictions and unsused flash. \
+ Upgrade via sysupgrade mechanism is not possible, so new installation via TFTP is required.
+ IMAGES := sysupgrade.bin
+ IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
TPLINK_BOARD_ID := RE305-V1
endef
TARGET_DEVICES += tplink_re305-v1