aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorMantas Pucka <mantas@8devices.com>2017-05-08 13:28:38 +0300
committerPiotr Dymacz <pepe2k@gmail.com>2017-05-15 22:43:33 +0200
commit68b5d34f69421264de6e5d77760fcc2bfe9ee687 (patch)
treef6e3f9a783b577cdc4acd484f1198873ed54e134 /target/linux/ar71xx/base-files
parent43a7a1a05e0906f8adacd9c09b5c0be79fc94de1 (diff)
downloadupstream-68b5d34f69421264de6e5d77760fcc2bfe9ee687.tar.gz
upstream-68b5d34f69421264de6e5d77760fcc2bfe9ee687.tar.bz2
upstream-68b5d34f69421264de6e5d77760fcc2bfe9ee687.zip
ar71xx: add support for 8devices Rambutan development board
Rambutan is a Wifi module based on QCA9550/9557 http://www.8devices.com/products/rambutan This commit adds basic support for Rambutan development kit Specification: - 720/600/200 MHz (CPU/DDR/AHB) - 128 MB of DDR2 RAM - 128 MB of NAND Flash - 1x 100Mbps Ethernet - 1x 1000Mbps Ethernet (PHY on dev-kit) - 1x Wifi radio 2x2 MIMO, dualband 2.4 and 5 GHz - 2x U.FL connectors on module, chip antennas on dev-kit - 1x miniPCIe slot - 1x USB2.0 host socket + 1x USB2.0 pins on 2.54mm header Flash instructions: Stock firmware is OpenWrt, so use: sysupgrade -n /tmp/lede-ar71xx-nand-rambutan-squashfs-sysupgrade.tar or upgarde from GUI (don't save config) Use factory image to flash from U-Boot: tftpboot 80060000 lede-ar71xx-nand-rambutan-squashfs-factory.ubi nand erase.part ubi nand write 80060000 ubi ${filesize} Signed-off-by: Mantas Pucka <mantas@8devices.com> [split support in uboot-envtools package into a separate commit, fixed alphabetical order in lib/preinit/05_set_iface_mac_ar71xx] Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rw-r--r--target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rw-r--r--target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx6
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh2
4 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
index 945167bee6..4db1b148a2 100644
--- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
+++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
@@ -74,6 +74,9 @@ case "$FIRMWARE" in
ath9k_eeprom_extract "caldata" 4096 2048
ath9k_patch_firmware_mac $(mtd_get_mac_binary caldata 0)
;;
+ rambutan)
+ ath9k_eeprom_extract "art" 4096 2048
+ ;;
z1)
. /lib/upgrade/nand.sh
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 92ee516235..5c3b1a7e1b 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -811,6 +811,9 @@ ar71xx_board_detect() {
*"R6100")
name="r6100"
;;
+ *"Rambutan"*)
+ name="rambutan"
+ ;;
*"RE450")
name="re450"
;;
diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx
index 50f59defe1..277287d383 100644
--- a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx
+++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx
@@ -44,6 +44,12 @@ preinit_set_mac_address() {
mac_wan=$(mtd_get_mac_binary caldata 6)
[ -n "$mac_wan" ] && ifconfig eth0 hw ether "$mac_wan"
;;
+ rambutan)
+ mac_lan=$(mtd_get_mac_binary art 0)
+ [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
+ mac_wan=$(mtd_get_mac_binary art 6)
+ [ -n "$mac_wan" ] && ifconfig eth1 hw ether "$mac_wan"
+ ;;
tew-632brp)
fetch_mac_from_mtd config lan_mac wan_mac
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 5be678ea36..8ebdea3018 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -521,6 +521,7 @@ platform_check_image() {
c-60|\
nbg6716|\
r6100|\
+ rambutan|\
wndr3700v4|\
wndr4300)
nand_do_platform_check $board $1
@@ -663,6 +664,7 @@ platform_pre_upgrade() {
c-60|\
nbg6716|\
r6100|\
+ rambutan|\
rb-411|\
rb-411u|\
rb-433|\