linux,code = <KEY_RESTART>;
};
};
+
+ virtual_flash {
+ compatible = "mtd-concat";
+
+ devices = <&firmware1 &firmware2 &firmware3>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ compatible = "openwrt,okli";
+ label = "firmware";
+ reg = <0x0 0x0>;
+ };
+ };
+ };
};
&gpio2 {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <10000000>;
+ spi-max-frequency = <50000000>;
+ m25p,fast-read;
partitions {
compatible = "fixed-partitions";
};
partition@30000 {
- label = "u-boot-env";
+ label = "config";
reg = <0x30000 0x10000>;
read-only;
};
};
partition@50000 {
- compatible = "denx,uimage";
- label = "firmware";
- reg = <0x50000 0x7b0000>;
+ label = "loader";
+ reg = <0x50000 0x10000>;
+ read-only;
+ };
+
+ firmware2: partition@60000 {
+ label = "firmware2";
+ reg = <0x60000 0x170000>;
+ };
+
+ partition@1d0000 {
+ label = "u-boot-env";
+ reg = <0x1d0000 0x10000>;
+ };
+
+ firmware3: partition@1e0000 {
+ label = "firmware3";
+ reg = <0x1e0000 0x20000>;
+ };
+
+ firmware1: partition@200000 {
+ label = "firmware1";
+ reg = <0x200000 0x600000>;
};
};
};
endef
TARGET_DEVICES += hnet_c108
-define Device/hootoo_ht-tm05
+define Device/sunvalley_filehub_common
SOC := mt7620n
IMAGE_SIZE := 6144k
- DEVICE_VENDOR := HooToo
- DEVICE_MODEL := HT-TM05
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-i2c-ralink
LOADER_TYPE := bin
LOADER_FLASH_OFFS := 0x200000
IMAGE/kernel.bin := append-loader-okli $(1) | check-size 64k
IMAGE/rootfs.bin := $$(sysupgrade_bin) | check-size
endef
+
+define Device/hootoo_ht-tm05
+ $(Device/sunvalley_filehub_common)
+ DEVICE_VENDOR := HooToo
+ DEVICE_MODEL := HT-TM05
+endef
TARGET_DEVICES += hootoo_ht-tm05
define Device/iodata_wn-ac1167gr
TARGET_DEVICES += ralink_mt7620a-v22sg-evb
define Device/ravpower_rp-wd03
- SOC := mt7620n
- IMAGE_SIZE := 7872k
+ $(Device/sunvalley_filehub_common)
DEVICE_VENDOR := RAVPower
DEVICE_MODEL := RP-WD03
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
SUPPORTED_DEVICES += ravpower,wd03
- DEFAULT := n
+ DEVICE_COMPAT_VERSION := 2.0
+ DEVICE_COMPAT_MESSAGE := Partition design has changed compared to older versions (up to 19.07) due to kernel size restrictions. \
+ Upgrade via sysupgrade mechanism is not possible, so new installation via TFTP is required.
endef
TARGET_DEVICES += ravpower_rp-wd03