|
楼主 |
发表于 2023-11-13 22:57
|
显示全部楼层
diff -Naur openwrt/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1-16.dts openwrt-wdr4300-16/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1-16.dts
--- openwrt/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1-16.dts 1970-01-01 01:00:00.000000000 +0100
+++ openwrt-wdr4300-16/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1-16.dts 2021-05-04 22:28:12.870137111 +0200
@@ -0,0 +1,45 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "ar9344_tplink_tl-wdr4300.dtsi"
+
+/ {
+ model = "TP-Link TL-WDR4300 v1 16";
+ compatible = "tplink,tl-wdr4300-v1", "qca,ar9344";
+};
+
+&spi {
+ num-cs = <1>;
+
+ status = "okay";
+
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <25000000>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ uboot: partition@0 {
+ label = "u-boot";
+ reg = <0x000000 0x020000>;
+ read-only;
+ };
+
+ partition@20000 {
+ compatible = "tplink,firmware";
+ label = "firmware";
+ reg = <0x020000 0xfd0000>;
+ };
+ /delete-node/ partition@7f0000;
+ art: partition@ff0000 {
+ label = "art";
+ reg = <0xff0000 0x010000>;
+ read-only;
+ };
+ };
+ };
+};
+
diff -Naur openwrt/target/linux/ath79/generic/base-files/etc/board.d/02_network openwrt-wdr4300-16/target/linux/ath79/generic/base-files/etc/board.d/02_network
--- openwrt/target/linux/ath79/generic/base-files/etc/board.d/02_network 2021-05-04 22:23:55.409445782 +0200
+++ openwrt-wdr4300-16/target/linux/ath79/generic/base-files/etc/board.d/02_network 2021-05-04 22:31:02.011216281 +0200
@@ -287,6 +287,7 @@
tplink,archer-c7-v5|\
tplink,tl-wdr3600-v1|\
tplink,tl-wdr4300-v1|\
+ tplink,tl-wdr4300-v1-16|\
tplink,tl-wdr4300-v1-il|\
tplink,tl-wdr4310-v1)
ucidef_add_switch "switch0" \
@@ -583,6 +584,7 @@
mercury,mw4530r-v1|\
tplink,tl-wdr3600-v1|\
tplink,tl-wdr4300-v1|\
+ tplink,tl-wdr4300-v1-16|\
tplink,tl-wdr4300-v1-il)
base_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
wan_mac=$(macaddr_add "$base_mac" 1)
diff -Naur openwrt/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom openwrt-wdr4300-16/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
--- openwrt/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom 2021-05-04 22:20:16.646634511 +0200
+++ openwrt-wdr4300-16/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom 2021-05-04 22:29:33.272823270 +0200
@@ -94,6 +94,7 @@
tplink,tl-wdr3500-v1|\
tplink,tl-wdr3600-v1|\
tplink,tl-wdr4300-v1|\
+ tplink,tl-wdr4300-v1-16|\
tplink,tl-wdr4300-v1-il|\
tplink,tl-wdr4310-v1|\
tplink,tl-wdr4900-v2|\
diff -Naur openwrt/target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration openwrt-wdr4300-16/target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration
--- openwrt/target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration 2021-05-04 22:20:16.646634511 +0200
+++ openwrt-wdr4300-16/target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration 2021-05-04 22:30:14.199236628 +0200
@@ -57,6 +57,7 @@
tplink,archer-c7-v2|\
tplink,tl-wdr3600-v1|\
tplink,tl-wdr4300-v1|\
+tplink,tl-wdr4300-v1-16|\
tplink,tl-wdr4300-v1-il|\
tplink,tl-wdr4310-v1)
migrate_leds "blue:=green:"
diff -Naur openwrt/target/linux/ath79/image/generic-tp-link.mk openwrt-wdr4300-16/target/linux/ath79/image/generic-tp-link.mk
--- openwrt/target/linux/ath79/image/generic-tp-link.mk 2021-05-04 22:23:55.409445782 +0200
+++ openwrt-wdr4300-16/target/linux/ath79/image/generic-tp-link.mk 2021-05-04 22:27:17.137735165 +0200
@@ -531,6 +531,17 @@
endef
TARGET_DEVICES += tplink_tl-wdr4300-v1
+define Device/tplink_tl-wdr4300-v1-16
+ $(Device/tplink-16mlzma)
+ SOC := ar9344
+ DEVICE_MODEL := TL-WDR4300
+ DEVICE_VARIANT := v1 16MB
+ DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
+ TPLINK_HWID := 0x43000001
+ SUPPORTED_DEVICES += tl-wdr4300-
+endef
+TARGET_DEVICES += tplink_tl-wdr4300-v1-16
+
define Device/tplink_tl-wdr4300-v1-il
$(Device/tplink-8mlzma)
SOC := ar9344
cp wdr-4300-16.patch /tmp |
|