diff options
author | Christian Mehlis <christian@m3hlis.de> | 2017-02-26 12:25:57 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-03-30 09:57:22 +0200 |
commit | dc4eae7a8cf676911b0048b1e73c6f9adeea2f06 (patch) | |
tree | aabdb124ca654ccb242f3588231bfbdf1ca6c402 /target/linux/ar71xx/base-files | |
parent | 967b6be118e3217e8d6a28df9c615d3255e7b1ae (diff) | |
download | upstream-dc4eae7a8cf676911b0048b1e73c6f9adeea2f06.tar.gz upstream-dc4eae7a8cf676911b0048b1e73c6f9adeea2f06.tar.bz2 upstream-dc4eae7a8cf676911b0048b1e73c6f9adeea2f06.zip |
ar71xx: Compex WPJ563 support
Specification:
- SoC: Qualcomm Atheros QCA9563 (775 MHz, MIPS 74Kc)
- RAM: 128 MiB
- Storage: 16MB NOR flash
- Wireless: Built into QCA9563 (Dragonfly), PHY modes b/g/n, 3x3 MIMO
- Ethernet: 2x1G
Tested and working:
- ethernet / switch / lan / wan
- 2.4GHz SoC wifi
- PCIe
- leds
- buzzer
Ramload:
- tftpboot 0x84000000 lede-ar71xx-generic-wpj563-16M-initramfs-uImage.bin
- bootm 0x84000000
Install:
- tftpboot 0x80500000 lede-ar71xx-generic-wpj563-16M-squashfs-sysupgrade.bin
- erase 0x9f030000 +$filesize
- erase 0x9f680000 +1
- cp.b $fileaddr 0x9f030000 $filesize
Erasing 0x9f680000 is required because uboot defines
"bootcmd=bootm 0x9f680000 || bootm 0x9f030000", so it first tries to boot
the higher address. I think the 16 mb flash are intended to be used as
8+8mb for a fallback image. In my hardware only the lower address has a
bootable image. But to make sure future hardware will boot lede too, I
erase one block, so uboot will skip this address.
Signed-off-by: Christian Mehlis <christian@m3hlis.de>
Diffstat (limited to 'target/linux/ar71xx/base-files')
4 files changed, 11 insertions, 0 deletions
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 e5892ac485..bf7c4dcd3c 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -466,6 +466,10 @@ ar71xx_setup_interfaces() ucidef_add_switch "switch0" \ "5:lan" "1:wan" "6@eth0" ;; + wpj563) + ucidef_add_switch "switch0" \ + "0@eth0" "2:lan" "3:wan" + ;; wrt160nl) ucidef_set_interfaces_lan_wan "eth0.1" "eth1" ucidef_add_switch "switch0" \ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index fed51a17d7..3cde175664 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -469,6 +469,9 @@ get_status_led() { wpj558) status_led="$board:green:sig3" ;; + wpj563) + status_led="$board:green:sig1" + ;; wrt400n|\ wrt160nl) status_led="$board:blue:wps" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index eedcb7829c..25f6b01c18 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -1240,6 +1240,9 @@ ar71xx_board_detect() { *"WPJ558") name="wpj558" ;; + *"WPJ563") + name="wpj563" + ;; *"WPN824N") name="wpn824n" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 2f0228b823..fb582091ce 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -283,6 +283,7 @@ platform_check_image() { wpj342|\ wpj344|\ wpj531|\ + wpj563|\ wrt400n|\ wrtnode2q|\ wzr-450hp2|\ |