From c34f953fefe8ad57dc9f259e074f83df5688d776 Mon Sep 17 00:00:00 2001 From: Alexis Green Date: Fri, 19 Aug 2016 13:56:24 -0700 Subject: ipq806x: Build image for Netgear Nighthawk X4 R7500v2 Signed-off-by: Alexis Green [Jo-Philipp Wich: add missing DEVICE_TITLE, fix model name in commit title] Signed-off-by: Jo-Philipp Wich --- target/linux/ipq806x/base-files/etc/board.d/01_leds | 1 + target/linux/ipq806x/base-files/etc/board.d/02_network | 1 + .../linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 2 ++ target/linux/ipq806x/base-files/lib/ipq806x.sh | 3 +++ target/linux/ipq806x/base-files/lib/upgrade/platform.sh | 2 ++ 5 files changed, 9 insertions(+) (limited to 'target/linux/ipq806x/base-files') diff --git a/target/linux/ipq806x/base-files/etc/board.d/01_leds b/target/linux/ipq806x/base-files/etc/board.d/01_leds index 17f1a28abc..12d9e7b1b7 100755 --- a/target/linux/ipq806x/base-files/etc/board.d/01_leds +++ b/target/linux/ipq806x/base-files/etc/board.d/01_leds @@ -20,6 +20,7 @@ c2600) ;; d7800 |\ r7500 |\ +r7500v2 |\ r7800) ucidef_set_led_usbdev "usb1" "USB 1" "${board}:white:usb1" "1-1" ucidef_set_led_usbdev "usb2" "USB 2" "${board}:white:usb3" "3-1" diff --git a/target/linux/ipq806x/base-files/etc/board.d/02_network b/target/linux/ipq806x/base-files/etc/board.d/02_network index 16cc13cfc0..b72045538a 100755 --- a/target/linux/ipq806x/base-files/etc/board.d/02_network +++ b/target/linux/ipq806x/base-files/etc/board.d/02_network @@ -17,6 +17,7 @@ ap148 |\ c2600 |\ d7800 |\ r7500 |\ +r7500v2 |\ r7800) ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0" diff --git a/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index a23dd80a00..c7977e6375 100644 --- a/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -56,6 +56,7 @@ case "$FIRMWARE" in hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr) ath10kcal_extract "art" 4096 12064 ;; + r7500v2 |\ r7800) ath10kcal_extract "art" 4096 12064 ;; @@ -71,6 +72,7 @@ case "$FIRMWARE" in hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr) ath10kcal_extract "art" 20480 12064 ;; + r7500v2 |\ r7800) ath10kcal_extract "art" 20480 12064 ;; diff --git a/target/linux/ipq806x/base-files/lib/ipq806x.sh b/target/linux/ipq806x/base-files/lib/ipq806x.sh index adac916f6b..0b11b721a7 100644 --- a/target/linux/ipq806x/base-files/lib/ipq806x.sh +++ b/target/linux/ipq806x/base-files/lib/ipq806x.sh @@ -29,6 +29,9 @@ ipq806x_board_detect() { *"R7500") name="r7500" ;; + *"R7500v2") + name="r7500v2" + ;; *"Linksys EA8500"*) name="ea8500" ;; diff --git a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh index cfd7cd7ed6..7726abb91f 100644 --- a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh +++ b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh @@ -10,6 +10,7 @@ platform_check_image() { d7800 |\ ea8500 |\ r7500 |\ + r7500v2 |\ r7800) nand_do_platform_check $board $1 return $?; @@ -34,6 +35,7 @@ platform_pre_upgrade() { ap148 |\ d7800 |\ r7500 |\ + r7500v2 |\ r7800) nand_do_upgrade "$1" ;; -- cgit v1.2.3