123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- From: Zhao, Gang <gamerh2o@gmail.com>
- Date: Wed, 21 May 2014 23:26:28 +0800
- Subject: ar71xx: add support for dlink dir-615-e1
- Dlink dir-615-e1 can use dir-600-a1's image, but the image can't be
- uploaded through dlink's normal firmware update web page.
- Add profile for dir-615-e1 so the generated image can be uploaded
- through the firmware update web page.
- Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
- diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
- index 0d01119..c86044b 100755
- --- a/target/linux/ar71xx/base-files/etc/diag.sh
- +++ b/target/linux/ar71xx/base-files/etc/diag.sh
- @@ -61,6 +61,7 @@ get_status_led() {
- status_led="db120:green:status"
- ;;
- dir-600-a1 |\
- + dir-615-e1 |\
- dir-615-e4)
- status_led="d-link:green:power"
- ;;
- diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds
- index f1ac9ec..98568fa 100755
- --- a/target/linux/ar71xx/base-files/etc/uci-defaults/leds
- +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/leds
- @@ -52,6 +52,7 @@ rb750)
- ;;
-
- dir-600-a1|\
- +dir-615-e1|\
- dir-615-e4)
- ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
- ucidef_set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
- diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/network b/target/linux/ar71xx/base-files/etc/uci-defaults/network
- index e38a9b8..a2ac224 100755
- --- a/target/linux/ar71xx/base-files/etc/uci-defaults/network
- +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/network
- @@ -182,6 +182,7 @@ ap96 |\
- airrouter |\
- dir-600-a1 |\
- dir-615-c1 |\
- +dir-615-e1 |\
- dir-615-e4 |\
- ja76pf |\
- rb-750 |\
- diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
- index 11aa31b..9273012 100755
- --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
- +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
- @@ -201,6 +201,9 @@ ar71xx_board_detect() {
- *"DIR-600 rev. A1")
- name="dir-600-a1"
- ;;
- + *"DIR-615 rev. E1")
- + name="dir-615-e1"
- + ;;
- *"DIR-615 rev. E4")
- name="dir-615-e4"
- ;;
- diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
- index b25df6c..5fdd564 100755
- --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
- +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
- @@ -104,6 +104,7 @@ platform_check_image() {
- ap83 | \
- dir-600-a1 | \
- dir-615-c1 | \
- + dir-615-e1 | \
- dir-615-e4 | \
- ew-dorin | \
- ew-dorin-router | \
- diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-600-a1.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-600-a1.c
- index c0fa900..321fdce 100644
- --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-600-a1.c
- +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-600-a1.c
- @@ -141,6 +141,14 @@ static void __init dir_600_a1_setup(void)
- MIPS_MACHINE(ATH79_MACH_DIR_600_A1, "DIR-600-A1", "D-Link DIR-600 rev. A1",
- dir_600_a1_setup);
-
- +static void __init dir_615_e1_setup(void)
- +{
- + dir_600_a1_setup();
- +}
- +
- +MIPS_MACHINE(ATH79_MACH_DIR_615_E1, "DIR-615-E1", "D-Link DIR-615 rev. E1",
- + dir_615_e1_setup);
- +
- static void __init dir_615_e4_setup(void)
- {
- dir_600_a1_setup();
- diff --git a/target/linux/ar71xx/generic/profiles/d-link.mk b/target/linux/ar71xx/generic/profiles/d-link.mk
- index 98fe00f..9a8ab1b 100644
- --- a/target/linux/ar71xx/generic/profiles/d-link.mk
- +++ b/target/linux/ar71xx/generic/profiles/d-link.mk
- @@ -38,6 +38,16 @@ endef
-
- $(eval $(call Profile,DIR615C1))
-
- +define Profile/DIR615E1
- + NAME:=D-Link DIR-615 rev. E1
- + PACKAGES:=
- +endef
- +
- +define Profile/DIR615E1/Description
- + Package set optimized for the D-Link DIR-615 rev. E1.
- +endef
- +
- +$(eval $(call Profile,DIR615E1))
-
- define Profile/DIR615E4
- NAME:=D-Link DIR-615 rev. E4
- diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
- index a055521..11ba068 100644
- --- a/target/linux/ar71xx/image/Makefile
- +++ b/target/linux/ar71xx/image/Makefile
- @@ -804,6 +804,7 @@ $(eval $(call SingleProfile,AthLzma,$(fs_64k),PB92,pb92,PB92,ttyS0,115200,$$(pb9
-
- $(eval $(call SingleProfile,Cameo7240,$(fs_64k),DIR600A1,dir-600-a1,DIR-600-A1,ttyS0,115200,"AP91-AR7240-RT-090223-00"))
- $(eval $(call SingleProfile,Cameo7240,$(fs_64k),DIR601A1,dir-601-a1,DIR-600-A1,ttyS0,115200,"AP91-AR7240-RT-090223-02"))
- +$(eval $(call SingleProfile,Cameo7240,$(fs_64k),DIR615E1,dir-615-e1,DIR-615-E1,ttyS0,115200,"AP93-AR7240-RT-081028-00"))
- $(eval $(call SingleProfile,Cameo7240,$(fs_64k),DIR615E4,dir-615-e4,DIR-615-E4,ttyS0,115200,"AP99-AR7240-RT-091105-05"))
- $(eval $(call SingleProfile,Cameo7240,$(fs_64k),FR54RTR,fr-54rtr,DIR-600-A1,ttyS0,115200,"AP91-AR7240-RT-090223-01"))
-
- diff --git a/target/linux/ar71xx/patches-3.3/610-MIPS-ath79-openwrt-machines.patch b/target/linux/ar71xx/patches-3.3/610-MIPS-ath79-openwrt-machines.patch
- index 6d67f5f..c7d0220 100644
- --- a/target/linux/ar71xx/patches-3.3/610-MIPS-ath79-openwrt-machines.patch
- +++ b/target/linux/ar71xx/patches-3.3/610-MIPS-ath79-openwrt-machines.patch
- @@ -1,6 +1,6 @@
- --- a/arch/mips/ath79/machtypes.h
- +++ b/arch/mips/ath79/machtypes.h
- -@@ -16,18 +16,104 @@
- +@@ -16,18 +16,105 @@
-
- enum ath79_mach_type {
- ATH79_MACH_GENERIC = 0,
- @@ -21,6 +21,7 @@
- ATH79_MACH_PB44, /* Atheros PB44 reference board */
- + ATH79_MACH_DIR_600_A1, /* D-Link DIR-600 rev. A1 */
- + ATH79_MACH_DIR_615_C1, /* D-Link DIR-615 rev. C1 */
- ++ ATH79_MACH_DIR_615_E1, /* D-Link DIR-615 rev. E1 */
- + ATH79_MACH_DIR_615_E4, /* D-Link DIR-615 rev. E4 */
- + ATH79_MACH_DIR_825_B1, /* D-Link DIR-825 rev. B1 */
- + ATH79_MACH_EW_DORIN, /* embedded wireless Dorin Platform */
- @@ -306,7 +307,7 @@
- + select MYLOADER
- +
- +config ATH79_MACH_DIR_600_A1
- -+ bool "D-Link DIR-600 A1/DIR-615 E4 support"
- ++ bool "D-Link DIR-600 A1/DIR-615 E1/DIR-615 E4 support"
- + select SOC_AR724X
- + select ATH79_DEV_AP9X_PCI if PCI
- + select ATH79_DEV_ETH
|