forked from Ivasoft/openwrt
Asus RT-AC88U is an AC3100 router featuring 9 Ethernet ports over the integrated Broadcom and the external Realtek switch. Hardware info: * Processor: Broadcom BCM4709C0KFEBG dual-core @ 1.4 GHz * Switch: BCM53012 in BCM4709C0KFEBG & external RTL8365MB * DDR3 RAM: 512 MB * Flash: 128 MB (ESMT F59L1G81LA-25T) * 2.4GHz: BCM4366 4×4 2.4/5G single chip 802.11ac SoC * 5GHz: BCM4366 4×4 2.4/5G single chip 802.11ac SoC * Ports: 8 Ports, 1 WAN Ports Flashing instructions: * Boot to CFE Recovery Mode by holding the reset button while power-on. * Connect to the router with an ethernet cable. * Set IPv4 address of the computer to 192.168.1.2 subnet 255.255.255.0. * Head to http://192.168.1.1. * Reset NVRAM. * Upload the OpenWrt image. CFE bootloader may reject flashing the image due to image integrity check. In that case, follow the instructions below. * Rename the OpenWrt image as firmware.trx. * Run a TFTP server and make it serve the firmware.trx file. * Run the URL below on a browser or curl. http://192.168.1.1/do.htm?cmd=flash+-noheader+192.168.1.2:firmware.trx+flash0.trx Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> [rmilecki: mark BROKEN until we sort out nvram & CFE recovery] Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
80 lines
1.5 KiB
Plaintext
80 lines
1.5 KiB
Plaintext
#
|
|
# Copyright (C) 2011 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/system.sh
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
bcm53xx_setup_interfaces()
|
|
{
|
|
local board="$1"
|
|
|
|
case "$board" in
|
|
asus,rt-ac87u)
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
|
|
;;
|
|
asus,rt-ac88u)
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 extsw" "wan"
|
|
;;
|
|
linksys,panamera)
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5 lan6 lan7 lan8 extsw" "wan"
|
|
;;
|
|
luxul,xap-1610-v1)
|
|
ucidef_set_interface_lan "poe lan" "dhcp"
|
|
;;
|
|
meraki,mr32)
|
|
ucidef_set_interface_lan "poe" "dhcp"
|
|
;;
|
|
phicomm,k3)
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
|
|
;;
|
|
*)
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
bcm53xx_setup_macs()
|
|
{
|
|
local board="$1"
|
|
|
|
wan_macaddr="$(nvram get wan_hwaddr)"
|
|
|
|
case "$board" in
|
|
asus,rt-ac87u)
|
|
etXmacaddr=$(nvram get et1macaddr)
|
|
offset=1
|
|
;;
|
|
dlink,dir-885l | \
|
|
linksys,panamera | \
|
|
netgear,r7900 | \
|
|
netgear,r8000 | \
|
|
netgear,r8500)
|
|
etXmacaddr=$(nvram get et2macaddr)
|
|
offset=1
|
|
;;
|
|
luxul,xwr-3100v1 | \
|
|
luxul,xwr-3150-v1)
|
|
etXmacaddr=$(nvram get et0macaddr)
|
|
offset=5
|
|
;;
|
|
*)
|
|
etXmacaddr=$(nvram get et0macaddr)
|
|
offset=1
|
|
;;
|
|
esac
|
|
|
|
# If WAN MAC isn't explicitly set, calculate it using base MAC as reference.
|
|
[ -z "$wan_macaddr" -a -n "$etXmacaddr" ] && wan_macaddr=$(macaddr_add "$etXmacaddr" $offset)
|
|
|
|
[ -n "$wan_macaddr" ] && ucidef_set_interface_macaddr "wan" "$wan_macaddr"
|
|
}
|
|
|
|
board_config_update
|
|
board=$(board_name)
|
|
bcm53xx_setup_interfaces "$board"
|
|
bcm53xx_setup_macs "$board"
|
|
board_config_flush
|
|
|
|
exit 0
|