|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. /lib/functions/system.sh
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
. /lib/functions/k2t.sh
|
|
|
|
|
|
|
|
ath79_setup_interfaces()
|
|
|
|
{
|
|
|
|
local board="$1"
|
|
|
|
|
|
|
|
case "$board" in
|
|
|
|
avm,fritz300e|\
|
|
|
|
devolo,dvl1200i|\
|
|
|
|
devolo,dvl1750c|\
|
|
|
|
devolo,dvl1750i|\
|
|
|
|
engenius,ecb1750|\
|
|
|
|
glinet,ar300m-lite|\
|
ath79: add support for Netgear EX6400 and EX7300
This is sold as a dual-band 802.11ac range extender. It has a sliding
switch for Extender mode or Access Point mode, a WPS button, a recessed
Reset button, a hard-power button, and a multitude of LED's, some
multiplexed via an NXP 74AHC164D chip. The internal serial header pinout is
Vcc, Tx, Rx, GND, with GND closest to the corner of the board. You may
connect at 115200 bps, 8 data bits, no parity, 1 stop bit.
Specification:
- System-On-Chip: QCA9558
- CPU/Speed: 720 MHz
- Flash-Chip: Winbond 25Q128FVSG
- Flash size: 16 MiB
- RAM: 128 MiB
- Wireless No1: QCA9558 on-chip 2.4GHz 802.11bgn, 3x3
- Wireless No2: QCA99x0 chip 5GHz 802.11an+ac, 4x4
- PHY: Atheros AR8035-A
Installation:
If you can get to the stock firmware's firmware upgrade option, just feed
it the factory.img and boot as usual. As an alternative, TFTP the
factory.img to the bootloader.
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
[whitespace fix in DTS and reorder of make variables]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
6 years ago
|
|
|
netgear,ex6400|\
|
|
|
|
netgear,ex7300|\
|
|
|
|
ocedo,koala|\
|
|
|
|
ocedo,raccoon|\
|
|
|
|
pcs,cap324|\
|
|
|
|
pisen,wmm003n|\
|
|
|
|
pqi,air-pen|\
|
|
|
|
tplink,cpe210-v2|\
|
|
|
|
tplink,cpe210-v3|\
|
|
|
|
tplink,re350k-v1|\
|
|
|
|
tplink,re450-v2|\
|
|
|
|
tplink,tl-mr10u|\
|
|
|
|
tplink,tl-mr3020-v1|\
|
|
|
|
tplink,tl-mr3040-v2|\
|
|
|
|
tplink,tl-wa901nd-v2|\
|
|
|
|
tplink,tl-wr703n|\
|
|
|
|
ubnt,bullet-m|\
|
|
|
|
ubnt,bullet-m-xw|\
|
|
|
|
ubnt,lap-120|\
|
|
|
|
ubnt,nanobeam-ac|\
|
|
|
|
ubnt,nanostation-ac-loco|\
|
|
|
|
ubnt,rocket-m|\
|
|
|
|
ubnt,unifiac-lite|\
|
|
|
|
ubnt,unifiac-mesh|\
|
|
|
|
ubnt,unifi|\
|
|
|
|
wd,mynet-wifi-rangeextender|\
|
|
|
|
winchannel,wb2000)
|
|
|
|
ucidef_set_interface_lan "eth0"
|
|
|
|
;;
|
ath79: add support for Archer C58/C59 v1
This commit adds support for the Archer C58 v1 and C59 v1, previously
supported in the ar71xx target.
CPU: Qualcomm QCA9561
RAM: 64M (C58) / 128M (C59)
FLASH: 8M (C58) / 16M (C59)
WiFi: QCA9561 bgn 3x3:3
QCA9888 nac 2x2:2
LED: Power, WiFi 2.4, WiFi 5, WAN green, WAN amber, LAN, WPS
Only C59: USB
BTN: WPS, WiFi, Reset
Installation
------------
Via Web-UI:
Update factory image via Web-UI.
Via TFTP:
Rename factory image to "tp_recovery.bin" and place it in the root-dir
of your tftp server. Configure to listen on 192.168.0.66. Power up the
router while holding down the reset-button. The router will flash itself
and reboot.
Note: For TFTP, you might need a switch between router and computer, as
link establishment might take to long.
Signed-off-by: David Bauer <mail@david-bauer.net>
6 years ago
|
|
|
avm,fritz4020|\
|
|
|
|
pcs,cr3000|\
|
ath79: add support for Archer C58/C59 v1
This commit adds support for the Archer C58 v1 and C59 v1, previously
supported in the ar71xx target.
CPU: Qualcomm QCA9561
RAM: 64M (C58) / 128M (C59)
FLASH: 8M (C58) / 16M (C59)
WiFi: QCA9561 bgn 3x3:3
QCA9888 nac 2x2:2
LED: Power, WiFi 2.4, WiFi 5, WAN green, WAN amber, LAN, WPS
Only C59: USB
BTN: WPS, WiFi, Reset
Installation
------------
Via Web-UI:
Update factory image via Web-UI.
Via TFTP:
Rename factory image to "tp_recovery.bin" and place it in the root-dir
of your tftp server. Configure to listen on 192.168.0.66. Power up the
router while holding down the reset-button. The router will flash itself
and reboot.
Note: For TFTP, you might need a switch between router and computer, as
link establishment might take to long.
Signed-off-by: David Bauer <mail@david-bauer.net>
6 years ago
|
|
|
tplink,archer-c58-v1|\
|
|
|
|
tplink,archer-c59-v1)
|
|
|
|
ucidef_set_interface_wan "eth0"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2"
|
|
|
|
;;
|
|
|
|
buffalo,bhr-4grv|\
|
|
|
|
buffalo,wzr-hp-g450h)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "2:lan" "3:lan" "4:lan" "5:lan" "1:wan"
|
|
|
|
;;
|
|
|
|
buffalo,bhr-4grv2)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "6@eth0"
|
|
|
|
;;
|
|
|
|
buffalo,wzr-hp-ag300h)
|
|
|
|
ucidef_set_interface_wan "eth1"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
|
|
|
|
;;
|
|
|
|
buffalo,wzr-hp-g302h-a1a0)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "1:lan:1" "3:lan:4" "4:lan:3" "5:lan:2" "2:wan"
|
|
|
|
;;
|
|
|
|
comfast,cf-e5|\
|
|
|
|
glinet,gl-ar150|\
|
|
|
|
glinet,gl-ar300m-nand|\
|
|
|
|
glinet,gl-ar300m-nor|\
|
|
|
|
glinet,gl-x750|\
|
|
|
|
tplink,tl-wr810n-v1|\
|
|
|
|
tplink,tl-wr810n-v2|\
|
|
|
|
ubnt,routerstation|\
|
|
|
|
yuncore,a770)
|
|
|
|
ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
|
|
|
;;
|
|
|
|
devolo,dvl1200e|\
|
|
|
|
devolo,dvl1750e|\
|
|
|
|
ocedo,ursus)
|
|
|
|
ucidef_set_interface_lan "eth0 eth1"
|
|
|
|
;;
|
|
|
|
dlink,dir-825-b1)
|
|
|
|
ucidef_set_interface_wan "eth1"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0:lan" "1:lan" "2:lan" "3:lan" "5@eth0"
|
|
|
|
;;
|
|
|
|
dlink,dir-825-c1|\
|
|
|
|
dlink,dir-835-a1|\
|
|
|
|
dlink,dir-859-a1|\
|
ath79: add suport for EnGenius EPG5000
EnGenius EPG5000 (v1.0.0, marketed as IoT Gateway) is a dual band
wireless router.
Specification
SoC: Qualcomm Atheros QCA9558
RAM: 256 MB DDR2
Flash: 16 MB SPI NOR
WIFI: 2.4 GHz 3T3R integrated
5 GHz 3T3R QCA9880 Mini PCIe card
Ethernet: 5x 10/100/1000 Mbps QCA8337N
USB: 1x 2.0
LEDS: 4x GPIO controlled
Buttons: 2x GPIO controlled
UART: 4 pin header, starting count from white triangle on PCB
1. VCC 3.3V, 2. GND, 3. TX, 4. RX
baud: 115200, parity: none, flow control: none
Installation
1. Connect to one of LAN (yellow) ethernet ports,
2. Open router configuration interface,
3. Go to Tools > Firmware,
4. Select OpenWrt factory image with dlf extension and hit Apply,
5. Wait few minutes, after the Power LED will stop blinking, the router
is ready for configuration.
Alternative installation
1. Prepare TFTP server with OpenWrt sysupgrade image,
2. Connect to one of LAN (yellow) ethernet ports,
3. Connect to UART port (leaving out VCC pin!),
4. Power on router,
5. When asked to enter a number 1 or 3 hit 2, this will select flashing
image from TFTP server option,
6. You'll be prompted to enter TFTP server ip (default is 192.168.99.8),
then router ip (default is 192.168.99.9) and for last, image name
downloaded from TFTP server (default is uImageESR1200_1750),
7. After providing all information U-Boot will start flashing the image,
You can observe progress on console, it'll take few minutes and when
the Power LED will stop blinking, router is ready for configuration.
Additional information
If connected to UART, when prompted for number on boot, one can enter
number 4 to open bootloader (U-Boot) command line.
OEM firmware shell password is: aigo3d0a0tdagr
useful for creating backup of original firmware.
When doing upgrade from OpenWrt ar71xx image, it is recomended to not keep
the old configuration.
Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
6 years ago
|
|
|
engenius,epg5000|\
|
|
|
|
tplink,archer-c2-v3|\
|
|
|
|
tplink,tl-wr1043nd-v4)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
|
|
|
|
;;
|
|
|
|
elecom,wrc-1750ghbk2-i|\
|
|
|
|
elecom,wrc-300ghbk2-i)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "2:lan:4" "3:lan:3" "4:lan:2" "5:lan:1" "1:wan"
|
|
|
|
;;
|
|
|
|
embeddedwireless,dorin)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "1:wan" "2:lan:3" "3:lan:2"
|
|
|
|
;;
|
|
|
|
engenius,ews511ap)
|
|
|
|
ucidef_set_interface_lan "eth0 eth1" "dhcp"
|
|
|
|
;;
|
|
|
|
etactica,eg200)
|
|
|
|
ucidef_set_interface_lan "eth0" "dhcp"
|
|
|
|
;;
|
|
|
|
glinet,gl-ar750s)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "2:lan:2" "3:lan:1" "1:wan"
|
|
|
|
;;
|
|
|
|
iodata,etg3-r|\
|
|
|
|
iodata,wn-ac1167dgr|\
|
|
|
|
iodata,wn-ac1600dgr|\
|
|
|
|
iodata,wn-ac1600dgr2|\
|
|
|
|
iodata,wn-ag300dgr|\
|
|
|
|
pcs,cr5000)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
|
|
|
|
;;
|
|
|
|
librerouter,librerouter-v1)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "5:wan" "6@eth1" "4:lan"
|
|
|
|
;;
|
|
|
|
nec,wg1200cr|\
|
|
|
|
ubnt,nanostation-ac|\
|
|
|
|
ubnt,unifiac-mesh-pro|\
|
|
|
|
ubnt,unifiac-pro)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "2:lan" "3:wan"
|
|
|
|
;;
|
|
|
|
nec,wg800hp)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "2:lan" "3:lan" "4:lan" "1:wan"
|
|
|
|
;;
|
|
|
|
netgear,wndr3700|\
|
|
|
|
netgear,wndr3700v2|\
|
|
|
|
netgear,wndr3800)
|
|
|
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5u@eth0"
|
|
|
|
ucidef_add_switch_attr "switch0" "blinkrate" 2
|
|
|
|
ucidef_add_switch_port_attr "switch0" 1 led 6
|
|
|
|
ucidef_add_switch_port_attr "switch0" 2 led 9
|
|
|
|
ucidef_add_switch_port_attr "switch0" 5 led 2
|
|
|
|
;;
|
|
|
|
netgear,wnr612-v2|\
|
|
|
|
on,n150r|\
|
|
|
|
tplink,tl-wr841-v7)
|
|
|
|
ucidef_set_interface_wan "eth0"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
|
|
|
|
;;
|
|
|
|
phicomm,k2t)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "3:lan:1" "5:lan:2" "4:wan"
|
|
|
|
;;
|
ath79: add support for ROSINSON WR818 board
This commit adds support for the ROSINSON WR818 WiFi-Router
SoC: Qualcomm Atheros QCA9563,
FLASH: Winbond W25Q128FV 16MBytes,
WiFi: QCA9563 b/g/n 3x3 450Mbit/s,
USB: 1x USB 2.0 Type A, 1x USB2.0 Type C,
IN: WPS/Reset button GPIO1,
OUT: Power LED red, Internet LED red, WLAN LED red,
LAN1 LED red, LAN2 LED red, System LED red,
UART: RX-GPIO18, TX-GPIO22,
Tested and working:
- Ethernet (LAN + WAN)
- WiFi
- OpenWRT sysupgrade
- Button
- LEDs
Installation of OpenWRT from vendor firmware:
- Connect to the Web-interface at http://192.168.1.1
- Go to "Administration" -> "Firmware Upgrade"
- Upload the OpenWrt sysupgrade image
Signed-off-by: Rosy Song <rosysong@rosinson.com>
6 years ago
|
|
|
rosinson,wr818)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "1:lan" "2:lan" "3:wan"
|
|
|
|
;;
|
|
|
|
tplink,archer-c5-v1|\
|
|
|
|
tplink,archer-c7-v1|\
|
|
|
|
tplink,archer-c7-v2|\
|
|
|
|
tplink,tl-wdr4900-v2)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "2:lan" "3:lan" "4:lan" "5:lan" "6@eth0" "1:wan"
|
|
|
|
;;
|
|
|
|
buffalo,whr-g301n|\
|
|
|
|
tplink,tl-mr3220-v1|\
|
|
|
|
tplink,tl-mr3420-v1|\
|
|
|
|
tplink,tl-wr841-v9|\
|
|
|
|
tplink,tl-wr841-v11|\
|
|
|
|
tplink,tl-wr842n-v3|\
|
|
|
|
ubnt,airrouter)
|
|
|
|
ucidef_set_interface_wan "eth0"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
|
|
|
|
;;
|
|
|
|
tplink,archer-a7-v5|\
|
|
|
|
tplink,archer-c6-v2|\
|
|
|
|
tplink,archer-c7-v4|\
|
|
|
|
tplink,archer-c7-v5|\
|
|
|
|
tplink,tl-wdr3600|\
|
|
|
|
tplink,tl-wdr4300|\
|
|
|
|
tplink,tl-wr941n-v7-cn)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
|
|
|
|
;;
|
|
|
|
tplink,tl-wr1043nd-v1)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "5@eth0"
|
|
|
|
;;
|
|
|
|
tplink,tl-wr1043nd-v2|\
|
|
|
|
tplink,tl-wr1043nd-v3)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan" "6@eth0"
|
|
|
|
;;
|
|
|
|
tplink,tl-wr2543-v1)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "9@eth0"
|
|
|
|
;;
|
|
|
|
tplink,tl-wr740n-v1|\
|
|
|
|
tplink,tl-wr740n-v3|\
|
|
|
|
tplink,tl-wr741-v1|\
|
|
|
|
tplink,tl-wr743nd-v1|\
|
|
|
|
tplink,tl-wr841-v5|\
|
|
|
|
tplink,tl-wr941-v4)
|
|
|
|
ucidef_set_interface_wan "eth0"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
|
|
|
|
;;
|
|
|
|
tplink,tl-wr710n-v1)
|
|
|
|
ucidef_set_interface_wan "eth0"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "3:lan"
|
|
|
|
;;
|
|
|
|
tplink,tl-wr740n-v4|\
|
|
|
|
tplink,tl-wr741nd-v4|\
|
ath79: add support for TP-Link TL-WR841N/ND v8
CPU: Atheros AR9341 535MHz
RAM: 32MB
FLASH: 4MiB
PORTS: 4 Port 100/10 Switch, 1 Port 100/10 Wan
WiFi: Atheros AR9341 2x2:2 bgn
LED: Power (static on), LAN (controlled by Switch), WAN, SYS, WiFi, RFKill
BTN: WPS, WiFi, Reset
Installation:
Upload the factory image via the vendor-GUI.
Signed-off-by: Antonio Silverio <menion@gmail.com>
[resolve merge conflicts, squash commits, fix commit title, remove
default default off led properties, mark sysupgrade image compatible
with the ar71xx version of the board, drop blank lines from dts]
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years ago
|
|
|
tplink,tl-wr841-v8|\
|
|
|
|
tplink,tl-wr842n-v1|\
|
|
|
|
tplink,tl-wr842n-v2)
|
|
|
|
ucidef_set_interface_wan "eth0"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3"
|
|
|
|
;;
|
|
|
|
tplink,tl-wr941-v2)
|
|
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
|
|
|
|
;;
|
|
|
|
ubnt,acb-isp)
|
|
|
|
ucidef_set_interface_wan "eth0"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "2:lan:1" "3:lan:3" "4:lan:2"
|
|
|
|
;;
|
ath79: initial support for Ubiquiti RouterStation and RouterStation Pro
This adds a shared ar7161_ubnt_routerstation.dtsi as well as two other
.dts files that utilize it, ar7161_ubnt_routerstation.dts and
ar7161_ubnt_routerstation-pro.dts.
The modifications to generic-ubnt.mk, config-default, and base-files
necessary for image generation, parsing RedBoot FIS partitions, network
configuration, and sysupgrade are also included.
This reintroduces vital bits from platform_do_upgrade_combined() and its
supporting functions to /lib/upgrade/platform.sh, which were previously
removed from ath79 in 3e9d9f62258f80298710441e0db557e59e152dcf "ath79:
sysupgrade: drop unused platform checks". The new function is called
"routerstation_do_upgrade" and will *only* work for the RouterStation
series of boards. It does however retain the ability to downgrade (e.g.
from master -> 17.01.x using sysupgrade -F).
All hardware is functional including the AR8216 switch (for the Pro),
wireless via ath5k/ath9k using the miniPCI slots, flash, USB, button,
and LED.
Switch and LAN/WAN configuration is the same as it is with the
equivalent ar71xx targets. MAC addresses are assigned based upon the
content stored in the RedBoot config partition.
Flashing via both sysupgrade and TFTP has been confirmed to work. Also,
the initramfs images are now raw .bin files instead of being wrapped in
a uImage (as they currently are in ar71xx), which makes them bootable
with RedBoot.
One notable difference to ar71xx is the inclusion of the RedBoot
"fconfig" utility (analogous to U-Boot’s fw_printenv/fw_setenv) in
DEVICE_PACKAGES. The FIS partitions are probed using the RedBoot MTD
parser’s DT binding, whose proper usage is mutually exclusive to
defining a separate fixed-partitions node for "RedBoot config". This
config partition contains the board's base MAC address. The lack of a
hard-coded flash location means that the mtd-mac-address property cannot
be used in the .dts, so instead fconfig is used to read the MAC
addresses from flash in userspace during first boot.
Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
6 years ago
|
|
|
ubnt,routerstation-pro)
|
|
|
|
ucidef_set_interface_wan "eth0"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "2:lan:3" "3:lan:2" "4:lan:1"
|
|
|
|
;;
|
|
|
|
ubnt,nanostation-m-xw)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth0" "5:lan" "1:wan"
|
|
|
|
;;
|
|
|
|
xiaomi,mi-router-4q)
|
|
|
|
ucidef_set_interface_wan "eth0"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "3:lan:1" "4:lan:2"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
ath79_setup_macs()
|
|
|
|
{
|
|
|
|
local board="$1"
|
|
|
|
|
|
|
|
case "$board" in
|
|
|
|
avm,fritz300e)
|
|
|
|
lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
|
|
|
|
;;
|
ath79: add support for Fritz!Box 4020
This commit adds support for the AVM Fritz!Box 4020 WiFi-router.
SoC: Qualcomm Atheros QCA9561 (Dragonfly) 750MHz
RAM: Winbond W971GG6KB-25
FLASH: Macronix MX25L12835F
WiFi: QCA9561 b/g/n 3x3 450Mbit/s
USB: 1x USB 2.0
IN: WPS button, WiFi button
OUT: Power LED green, Internet LED green, WLAN LED green,
LAN LED green, INFO LED green, INFO LED red
UART: Header Next to Black metal shield
Pinout is 3.3V - RX - TX - GND (Square Pad is 3.3V)
The Serial setting is 115200-8-N-1.
Tested and working:
- Ethernet (LAN + WAN)
- WiFi (correct MAC)
- Installation via EVA bootloader
- OpenWRT sysupgrade
- Buttons
- LEDs
The USB port doesn't work. Both Root Hubs are detected as having 0 Ports:
[ 3.670807] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 3.723267] usbcore: registered new interface driver usbfs
[ 3.729058] usbcore: registered new interface driver hub
[ 3.734616] usbcore: registered new device driver usb
[ 3.744181] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.758357] SCSI subsystem initialized
[ 3.766026] ehci-platform: EHCI generic platform driver
[ 3.771548] ehci-platform ehci-platform.0: EHCI Host Controller
[ 3.777708] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[ 3.788169] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[ 3.816647] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 0.00
[ 3.824001] hub 1-0:1.0: USB hub found
[ 3.828219] hub 1-0:1.0: config failed, hub doesn't have any ports! (err -19)
[ 3.835825] ehci-platform ehci-platform.1: EHCI Host Controller
[ 3.842009] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[ 3.852481] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[ 3.886631] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 0.00
[ 3.894011] hub 2-0:1.0: USB hub found
[ 3.898190] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[ 3.908928] usbcore: registered new interface driver usb-storage
[ 3.915634] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
A few words about the shift-register:
AVM used a trick to control the shift-register for the LEDs with only 2
pins, SERCLK and MOSI. Q7S, normally used for daisy-chaining multiple
shift-registers, pulls the latch, moving the shift register-state to
the storage register. It also pulls down MR (normally pulled up) to
clear the storage register, so the latch gets released and will not be
pulled by the remaining bits in the shift-register. Shift register is
all-zero after this.
For that we need to make sure output 7 is set to high on driver probe.
We accomplish this by using gpio-hogging.
Installation via EVA:
In the first seconds after Power is connected, the bootloader will
listen for FTP connections on 169.254.157.1 (Might also be 192.168.178.1).
Firmware can be uploaded like following:
ftp> quote USER adam2
ftp> quote PASS adam2
ftp> binary
ftp> debug
ftp> passive
ftp> quote MEDIA FLSH
ftp> put openwrt-sysupgrade.bin mtd1
Note that this procedure might take up to two minutes. After transfer is
complete you need to powercycle the device to boot OpenWRT.
Signed-off-by: David Bauer <mail@david-bauer.net>
6 years ago
|
|
|
avm,fritz4020)
|
|
|
|
lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
|
|
|
|
wan_mac=$(fritz_tffs -n macb -i $(find_mtd_part "tffs (1)"))
|
|
|
|
;;
|
|
|
|
dlink,dir-825-b1)
|
|
|
|
lan_mac=$(mtd_get_mac_text "caldata" 65440)
|
|
|
|
wan_mac=$(mtd_get_mac_text "caldata" 65460)
|
|
|
|
;;
|
|
|
|
dlink,dir-825-c1|\
|
|
|
|
dlink,dir-835-a1)
|
|
|
|
lan_mac=$(mtd_get_mac_text "mac" 4)
|
|
|
|
wan_mac=$(mtd_get_mac_text "mac" 24)
|
|
|
|
;;
|
|
|
|
dlink,dir-859-a1|\
|
|
|
|
nec,wg1200cr)
|
|
|
|
lan_mac=$(mtd_get_mac_ascii devdata "lanmac")
|
|
|
|
wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
|
|
|
|
;;
|
|
|
|
elecom,wrc-1750ghbk2-i|\
|
|
|
|
elecom,wrc-300ghbk2-i)
|
|
|
|
wan_mac=$(macaddr_add "$(mtd_get_mac_binary ART 4098)" -2)
|
|
|
|
;;
|
|
|
|
engenius,ecb1750)
|
|
|
|
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
|
|
|
|
;;
|
ath79: add suport for EnGenius EPG5000
EnGenius EPG5000 (v1.0.0, marketed as IoT Gateway) is a dual band
wireless router.
Specification
SoC: Qualcomm Atheros QCA9558
RAM: 256 MB DDR2
Flash: 16 MB SPI NOR
WIFI: 2.4 GHz 3T3R integrated
5 GHz 3T3R QCA9880 Mini PCIe card
Ethernet: 5x 10/100/1000 Mbps QCA8337N
USB: 1x 2.0
LEDS: 4x GPIO controlled
Buttons: 2x GPIO controlled
UART: 4 pin header, starting count from white triangle on PCB
1. VCC 3.3V, 2. GND, 3. TX, 4. RX
baud: 115200, parity: none, flow control: none
Installation
1. Connect to one of LAN (yellow) ethernet ports,
2. Open router configuration interface,
3. Go to Tools > Firmware,
4. Select OpenWrt factory image with dlf extension and hit Apply,
5. Wait few minutes, after the Power LED will stop blinking, the router
is ready for configuration.
Alternative installation
1. Prepare TFTP server with OpenWrt sysupgrade image,
2. Connect to one of LAN (yellow) ethernet ports,
3. Connect to UART port (leaving out VCC pin!),
4. Power on router,
5. When asked to enter a number 1 or 3 hit 2, this will select flashing
image from TFTP server option,
6. You'll be prompted to enter TFTP server ip (default is 192.168.99.8),
then router ip (default is 192.168.99.9) and for last, image name
downloaded from TFTP server (default is uImageESR1200_1750),
7. After providing all information U-Boot will start flashing the image,
You can observe progress on console, it'll take few minutes and when
the Power LED will stop blinking, router is ready for configuration.
Additional information
If connected to UART, when prompted for number on boot, one can enter
number 4 to open bootloader (U-Boot) command line.
OEM firmware shell password is: aigo3d0a0tdagr
useful for creating backup of original firmware.
When doing upgrade from OpenWrt ar71xx image, it is recomended to not keep
the old configuration.
Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
6 years ago
|
|
|
engenius,epg5000|\
|
|
|
|
iodata,wn-ac1167dgr|\
|
|
|
|
iodata,wn-ac1600dgr|\
|
|
|
|
iodata,wn-ac1600dgr2|\
|
|
|
|
iodata,wn-ag300dgr)
|
|
|
|
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
|
|
|
|
wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
|
|
|
|
;;
|
|
|
|
engenius,ews511ap)
|
|
|
|
lan_mac=$(mtd_get_mac_text "u-boot-env" 233)
|
|
|
|
eth1_mac=$(macaddr_add "$lan_mac" 1)
|
|
|
|
ucidef_set_interface "eth0" ifname "eth0" protocol "none" macaddr "$lan_mac"
|
|
|
|
ucidef_set_interface "eth1" ifname "eth1" protocol "none" macaddr "$eth1_mac"
|
|
|
|
;;
|
|
|
|
iodata,etg3-r)
|
|
|
|
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
|
|
|
|
wan_mac=$(macaddr_add "$lan_mac" -1)
|
|
|
|
;;
|
ath79: add support for jjPlus JA76PF2
jjPlus JA76PF2 (marketed as IntellusPro2) is a network embedded board.
Specification
SoC: Atheros AR7161
RAM: 64 MB DDR
Flash: 16 MB SPI NOR
Ethernet: 2x 10/100/1000 Mbps AR8316
LAN (CN11), WAN/PoE (CN6 - close to power barrel
connector, 48 V)
MiniPCI: 2x
LEDS: 4x, which 3 are GPIO controlled
Buttons: 2x GPIO controlled
Reset (SW1, closer to ethernet ports), WPS (SW2)
Serial: 1x (only RX and TX are wired)
baud: 115200, parity: none, flow control: none
Currently there is one caveat compared to ar71xx target images as the
MAC addresses are random on every reboot. To remedy this one needs to
store the WAN MAC address in RedBoot configuration. OpenWrt on first
boot, after flashing, will read out the address and assign proper ones
to both WAN and LAN ports. It is iportant to NOT keep the old
configuration when doing sysupgrade from ar71xx.
Upgrading from OpenWrt ar71xx image
1. Connect to serial port,
2. Download OpenWrt sysupgrade image to /tmp directory and flash it
with:
sysupgrade -n <openwrt_sysupgrade_image_name>
3. After writing new image OpenWrt will reboot, now interrupt boot
process and enter RedBoot (bootloader) command line by pressing
Ctrl+C,
4. Enter following commands (replace variable accordingly),
set_mac (to view MAC addresses)
alias ethaddr <wan_port_mac_adress>
(confirm storing the value by inputting y and pressing Enter)
reset
5. Now board should restart and boot OpenWrt with proper MAC addresses.
Installation
1. Prepare TFTP server with OpenWrt initramfs image,
2. Connect to WAN ethernet port,
3. Connect to serial port,
4. Power on the board and enter RedBoot (bootloader) command line by
pressing Ctrl+C,
5. Enter following commands (replace variables accordingly):
set_mac (to view MAC addresses)
alias ethaddr <wan_port_mac_address>
(confirm storing the value by inputting y and pressing Enter)
ip_adress -l <board_ip_adress>/24 -h <tftp_server_ip_adress>
load -r -b 0x80060000 <openwrt_initramfs_image_name>
exec -c ""
6. Now board should boot OpenWrt initramfs image,
7. Download OpenWrt sysupgrade image to /tmp directory and flash it
with:
sysupgrade <openwrt_sysupgrade_image_name>
8. Wait few minutes, after the D2 LED will stop blinking, the board
is ready for configuration.
Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
6 years ago
|
|
|
jjplus,ja76pf2)
|
|
|
|
wan_mac=$(fconfig -s -r -d $(find_mtd_part "RedBoot config") -n alias/ethaddr)
|
|
|
|
lan_mac=$(macaddr_add "$wan_mac" 1)
|
|
|
|
;;
|
|
|
|
nec,wg800hp)
|
|
|
|
lan_mac=$(mtd_get_mac_text board_data 640)
|
|
|
|
wan_mac=$(mtd_get_mac_text board_data 1152)
|
|
|
|
;;
|
|
|
|
netgear,wndr3700|\
|
|
|
|
netgear,wndr3700v2|\
|
|
|
|
netgear,wndr3800)
|
|
|
|
lan_mac=$(macaddr_setbit_la "$(mtd_get_mac_binary art 0)")
|
|
|
|
;;
|
|
|
|
phicomm,k2t)
|
|
|
|
lan_mac=$(k2t_get_mac "lan_mac")
|
|
|
|
wan_mac=$(k2t_get_mac "wan_mac")
|
|
|
|
;;
|
ath79: add support for ROSINSON WR818 board
This commit adds support for the ROSINSON WR818 WiFi-Router
SoC: Qualcomm Atheros QCA9563,
FLASH: Winbond W25Q128FV 16MBytes,
WiFi: QCA9563 b/g/n 3x3 450Mbit/s,
USB: 1x USB 2.0 Type A, 1x USB2.0 Type C,
IN: WPS/Reset button GPIO1,
OUT: Power LED red, Internet LED red, WLAN LED red,
LAN1 LED red, LAN2 LED red, System LED red,
UART: RX-GPIO18, TX-GPIO22,
Tested and working:
- Ethernet (LAN + WAN)
- WiFi
- OpenWRT sysupgrade
- Button
- LEDs
Installation of OpenWRT from vendor firmware:
- Connect to the Web-interface at http://192.168.1.1
- Go to "Administration" -> "Firmware Upgrade"
- Upload the OpenWrt sysupgrade image
Signed-off-by: Rosy Song <rosysong@rosinson.com>
6 years ago
|
|
|
rosinson,wr818)
|
|
|
|
wan_mac=$(mtd_get_mac_binary factory 0)
|
|
|
|
lan_mac=$(macaddr_setbit_la "$wan_mac")
|
|
|
|
;;
|
|
|
|
tplink,archer-a7-v5|\
|
|
|
|
tplink,archer-c7-v5)
|
|
|
|
base_mac=$(mtd_get_mac_binary info 8)
|
|
|
|
wan_mac=$(macaddr_add "$base_mac" 1)
|
|
|
|
;;
|
|
|
|
tplink,archer-c7-v4)
|
|
|
|
base_mac=$(mtd_get_mac_binary config 8)
|
|
|
|
wan_mac=$(macaddr_add "$base_mac" 1)
|
|
|
|
;;
|
|
|
|
tplink,tl-wr1043nd-v4)
|
|
|
|
base_mac=$(mtd_get_mac_binary product-info 8)
|
|
|
|
wan_mac=$(macaddr_add "$base_mac" 1)
|
|
|
|
;;
|
|
|
|
tplink,tl-wr941-v2|\
|
|
|
|
tplink,tl-wr941n-v7-cn)
|
|
|
|
base_mac=$(mtd_get_mac_binary u-boot 130048)
|
|
|
|
wan_mac=$(macaddr_add "$base_mac" 1)
|
|
|
|
;;
|
ath79: initial support for Ubiquiti RouterStation and RouterStation Pro
This adds a shared ar7161_ubnt_routerstation.dtsi as well as two other
.dts files that utilize it, ar7161_ubnt_routerstation.dts and
ar7161_ubnt_routerstation-pro.dts.
The modifications to generic-ubnt.mk, config-default, and base-files
necessary for image generation, parsing RedBoot FIS partitions, network
configuration, and sysupgrade are also included.
This reintroduces vital bits from platform_do_upgrade_combined() and its
supporting functions to /lib/upgrade/platform.sh, which were previously
removed from ath79 in 3e9d9f62258f80298710441e0db557e59e152dcf "ath79:
sysupgrade: drop unused platform checks". The new function is called
"routerstation_do_upgrade" and will *only* work for the RouterStation
series of boards. It does however retain the ability to downgrade (e.g.
from master -> 17.01.x using sysupgrade -F).
All hardware is functional including the AR8216 switch (for the Pro),
wireless via ath5k/ath9k using the miniPCI slots, flash, USB, button,
and LED.
Switch and LAN/WAN configuration is the same as it is with the
equivalent ar71xx targets. MAC addresses are assigned based upon the
content stored in the RedBoot config partition.
Flashing via both sysupgrade and TFTP has been confirmed to work. Also,
the initramfs images are now raw .bin files instead of being wrapped in
a uImage (as they currently are in ar71xx), which makes them bootable
with RedBoot.
One notable difference to ar71xx is the inclusion of the RedBoot
"fconfig" utility (analogous to U-Boot’s fw_printenv/fw_setenv) in
DEVICE_PACKAGES. The FIS partitions are probed using the RedBoot MTD
parser’s DT binding, whose proper usage is mutually exclusive to
defining a separate fixed-partitions node for "RedBoot config". This
config partition contains the board's base MAC address. The lack of a
hard-coded flash location means that the mtd-mac-address property cannot
be used in the .dts, so instead fconfig is used to read the MAC
addresses from flash in userspace during first boot.
Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
6 years ago
|
|
|
ubnt,routerstation|\
|
|
|
|
ubnt,routerstation-pro)
|
|
|
|
wan_mac=$(fconfig -s -r -d $(find_mtd_part "RedBoot config") -n ar7100_esa)
|
|
|
|
lan_mac=$(macaddr_add "$wan_mac" 1)
|
|
|
|
;;
|
|
|
|
wd,mynet-wifi-rangeextender)
|
|
|
|
lan_mac=$(nvram get et0macaddr)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
|
|
|
|
[ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" $wan_mac
|
|
|
|
}
|
|
|
|
|
|
|
|
board_config_update
|
|
|
|
board=$(board_name)
|
|
|
|
ath79_setup_interfaces $board
|
|
|
|
ath79_setup_macs $board
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|