diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-06-27 23:26:03 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-10-19 12:27:42 +0200 |
commit | 2c9aff289e71689c07770efb2ce9e5f1b30960f2 (patch) | |
tree | d75f00e22eeaed547c8ec3d4b323404ed3ee708c /target/linux/ar71xx/base-files | |
parent | 2af10c30fe5a7f1d13a790187868c1ee2209a575 (diff) | |
download | upstream-2c9aff289e71689c07770efb2ce9e5f1b30960f2.tar.gz upstream-2c9aff289e71689c07770efb2ce9e5f1b30960f2.tar.bz2 upstream-2c9aff289e71689c07770efb2ce9e5f1b30960f2.zip |
ar71xx: add support for Nokia WI2A-AC200i
Specifications:
- SoC: Qualcomm QCA9558 (720 MHz)
- RAM: 256MB
- Storage: 1MB NOR, 128 MB NAND flash
- Ethernet: 1x1000M
Installation:
1. Connect to serial console on the board
2. Boot initramfs image over u-boot
3. Copy image to the device and run sysupgrade
Installation without serial console is not supported at this time
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/ar71xx/base-files')
6 files changed, 38 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index 80d195301b..0694fe954f 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -824,6 +824,12 @@ r6100) ucidef_set_led_usbdev "usb" "USB" "netgear:blue:usb" "1-1" ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt" ;; +wi2a-ac200i) + ucidef_set_led_default "power" "Power (green)" "nokia:green:power" "1" + ucidef_set_led_default "wan" "Ethernet LED (green)" "nokia:green:wan" "1" + ucidef_set_led_wlan "wlan5g" "WLAN" "nokia:green:wlan-5g" "phy0tpt" + ucidef_set_led_wlan "wlan2g" "WLAN" "nokia:green:wlan-2g" "phy1tpt" + ;; wndr3700v4|\ wndr4300) ucidef_set_led_switch "wan-green" "WAN (green)" "netgear:green:wan" "switch0" "0x20" "0x08" diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index d83835204a..46b217136d 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -128,6 +128,7 @@ ar71xx_setup_interfaces() tl-wr902ac-v1|\ tube2h|\ unifiac-lite|\ + wi2a-ac200i|\ wndap360|\ wp543) ucidef_set_interface_lan "eth0" diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index ade726f726..7fa4ff0bcc 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -459,6 +459,9 @@ get_status_led() { airgatewaypro) status_led="ubnt:white:status" ;; + wi2a-ac200i) + status_led="nokia:green:ctrl" + ;; whr-g301n|\ whr-hp-g300n|\ whr-hp-gn|\ @@ -529,6 +532,9 @@ set_state() { local n=$(fw_printenv activeregion | cut -d = -f 2) fw_setenv "image${n}trynum" 0 ;; + wi2a-ac200i) + fw_setenv PKRstCnt 0 + ;; esac ;; esac diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index 85a2a63022..9a5f82b7cd 100644 --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -111,6 +111,9 @@ case "$FIRMWARE" in unifiac-pro) ath10kcal_extract "EEPROM" 20480 2116 ;; + wi2a-ac200i) + ath10kcal_extract "ART" 20480 2116 + ;; esac ;; "ath10k/cal-pci-0000:01:00.0.bin") diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 835ced67f3..929845110a 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -1231,6 +1231,9 @@ ar71xx_board_detect() { "WeIO"*) name="weio" ;; + *"WI2A-AC200i") + name="wi2a-ac200i" + ;; *"WHR-G301N") name="whr-g301n" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 778faeda5a..97d560189f 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -534,6 +534,7 @@ platform_check_image() { nbg6716|\ r6100|\ rambutan|\ + wi2a-ac200i|\ wndr3700v4|\ wndr4300) nand_do_platform_check $board $1 @@ -708,6 +709,7 @@ platform_pre_upgrade() { rb-2011uias-2hnd|\ rb-sxt2n|\ rb-sxt5n|\ + wi2a-ac200i|\ wndr3700v4|\ wndr4300) nand_do_upgrade "$1" @@ -743,6 +745,23 @@ platform_nand_pre_upgrade() { mtd erase kernel tar xf "$1" sysupgrade-routerboard/kernel -O | nandwrite -o "$fw_mtd" - ;; + wi2a-ac200i) + case "$(fw_printenv -n dualPartition)" in + imgA) + fw_setenv dualPartition imgB + fw_setenv ActImg NokiaImageB + ;; + imgB) + fw_setenv dualPartition imgA + fw_setenv ActImg NokiaImageA + ;; + esac + ubiblock -r /dev/ubiblock0_0 2>/dev/null >/dev/null + rm -f /dev/ubiblock0_0 + ubidetach -d 0 2>/dev/null >/dev/null + CI_UBIPART=ubi_alt + CI_KERNPART=kernel_alt + ;; esac } |