2011-10-24 21:49:31 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-07-02 13:54:00 +00:00
|
|
|
. /lib/functions/leds.sh
|
2015-12-11 15:26:06 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2011-10-24 21:49:31 +00:00
|
|
|
|
2011-12-23 14:27:10 +00:00
|
|
|
set_wifi_led() {
|
2016-07-26 17:18:53 +00:00
|
|
|
ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}"
|
2012-05-29 16:39:03 +00:00
|
|
|
}
|
|
|
|
|
2014-08-18 13:09:20 +00:00
|
|
|
|
2017-05-12 20:36:07 +00:00
|
|
|
board=$(board_name)
|
2017-11-16 21:17:42 +00:00
|
|
|
boardname="${board##*,}"
|
2011-10-24 21:49:31 +00:00
|
|
|
|
2014-08-18 13:09:20 +00:00
|
|
|
board_config_update
|
|
|
|
|
2019-07-02 13:54:00 +00:00
|
|
|
led_wlan="$(get_dt_led wlan)"
|
|
|
|
[ -n "$led_wlan" ] && ucidef_set_led_wlan "wifi_led" "wifi" "$led_wlan" "phy0tpt"
|
|
|
|
|
2011-10-24 21:49:31 +00:00
|
|
|
case $board in
|
2019-07-03 21:22:47 +00:00
|
|
|
7links,px-4885-4m|\
|
|
|
|
7links,px-4885-8m)
|
|
|
|
set_wifi_led "px-4885:orange:wifi"
|
|
|
|
;;
|
|
|
|
aigale,ai-br100)
|
|
|
|
ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" "eth0.2"
|
|
|
|
set_wifi_led "$boardname:blue:wlan"
|
|
|
|
;;
|
|
|
|
airlink101,ar670w|\
|
|
|
|
airlink101,ar725w|\
|
|
|
|
asiarf,awapn2403)
|
|
|
|
set_wifi_led "rt2800soc-phy0::radio"
|
2015-08-17 06:24:34 +00:00
|
|
|
;;
|
2019-07-03 21:22:19 +00:00
|
|
|
airlive,air3gii|\
|
|
|
|
aximcom,mr-102n|\
|
2019-07-03 21:22:47 +00:00
|
|
|
edimax,3g-6200nl|\
|
|
|
|
hilink,hlk-7628n|\
|
2019-07-03 21:22:19 +00:00
|
|
|
netgear,wnce2001|\
|
2019-07-03 21:22:47 +00:00
|
|
|
skylab,skw92a|\
|
2019-07-03 21:22:02 +00:00
|
|
|
zbtlink,zbt-we2026)
|
2017-11-16 21:17:42 +00:00
|
|
|
set_wifi_led "$boardname:green:wlan"
|
2016-09-27 05:16:16 +00:00
|
|
|
;;
|
2017-10-14 08:44:39 +00:00
|
|
|
alfa-network,ac1200rm)
|
|
|
|
set_wifi_led "$boardname:green:wlan2g" "wlan1"
|
|
|
|
;;
|
2019-06-06 16:27:39 +00:00
|
|
|
alfa-network,awusfree1|\
|
2019-06-18 16:49:41 +00:00
|
|
|
edimax,br-6478ac-v2|\
|
|
|
|
edimax,ew-7478apc)
|
2018-01-26 15:21:34 +00:00
|
|
|
set_wifi_led "$boardname:blue:wlan"
|
|
|
|
;;
|
ramips: add support for ALFA Network Tube-E4G
ALFA Network Tube-E4G is an outdoor, dual-SIM LTE Cat. 4 CPE, based on
MediaTek MT7620A, equipped with Quectel EC25 miniPCIe modem.
Specification:
- MT7620A (580 MHz)
- 64/128/256 MB of RAM (DDR2)
- 16/32 MB of flash (SPI NOR)
- 1x 10/100 Mbps Ethernet, with passive PoE support (24 V)
- 1x miniPCIe slot (with PCIe and USB 2.0 buses)
- 2x SIM slot (mini, micro) with detect and switch driven by GPIO
- 1x detachable antenna (modem main)
- 1x internal antenna (modem div)
- 1x GPS passive antenna (optional)
- 5x LED (all driven by GPIO)
- 1x button (reset)
- UART (4-pin, 2.54 mm pitch) header on PCB
Other:
Default SIM slot is selected at an early stage by U-Boot, based on
'default_sim' environment value: 1 or unset = SIM1 (mini), 2 = SIM2
(micro). U-Boot also resets the modem, using #PERST signal, before
starting kernel.
Flash instruction:
You can use the 'sysupgrade' image directly in vendor firmware which is
based on OpenWrt (make sure to not preserve settings - use 'sysupgrade
-n -F ...' command). Alternatively, use web recovery mode in U-Boot:
1. Power the device with reset button pressed, the LAN LED will start
blinking slowly and after ~3 seconds, when it starts blinking faster,
you can release the button.
2. Setup static IP 192.168.1.2/24 on your PC.
3. Go to 192.168.1.1 in browser and upload 'sysupgrade' image.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2019-03-10 00:28:28 +00:00
|
|
|
alfa-network,tube-e4g)
|
|
|
|
ucidef_set_led_netdev "4g" "4g" "$boardname:green:4g" "wwan0"
|
|
|
|
ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" "eth0"
|
|
|
|
;;
|
2019-07-03 21:22:19 +00:00
|
|
|
allnet,all0256n-4m|\
|
|
|
|
allnet,all0256n-8m)
|
2016-11-02 15:10:44 +00:00
|
|
|
ucidef_set_rssimon "wlan0" "200000" "1"
|
2017-04-07 22:34:48 +00:00
|
|
|
ucidef_set_led_rssi "rssilow" "RSSILOW" "all0256n:green:rssilow" "wlan0" "1" "40" "0" "6"
|
|
|
|
ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0256n:green:rssimed" "wlan0" "30" "80" "-29" "5"
|
|
|
|
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0256n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
|
2015-08-17 06:24:34 +00:00
|
|
|
set_wifi_led "rt2800pci-phy0::radio"
|
|
|
|
;;
|
2019-07-03 21:22:19 +00:00
|
|
|
alphanetworks,asl26555-8m|\
|
|
|
|
alphanetworks,asl26555-16m)
|
2017-04-07 22:34:48 +00:00
|
|
|
ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0"
|
|
|
|
set_wifi_led "asl26555:green:wlan"
|
2015-08-17 06:24:34 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
asus,rp-n53)
|
|
|
|
ucidef_set_led_netdev "eth" "Network" "$boardname:white:back" "eth0"
|
|
|
|
set_wifi_led "$boardname:blue:wifi"
|
|
|
|
;;
|
|
|
|
asus,rt-n12p)
|
|
|
|
ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0.1
|
|
|
|
ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
|
|
|
|
set_wifi_led "$boardname:green:air"
|
|
|
|
;;
|
|
|
|
asus,rt-n14u)
|
|
|
|
ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" eth0.1
|
|
|
|
ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" eth0.2
|
|
|
|
set_wifi_led "$boardname:blue:air"
|
|
|
|
;;
|
2019-07-23 12:12:37 +00:00
|
|
|
bdcom,wap2100-sk)
|
2018-11-26 12:26:06 +00:00
|
|
|
set_wifi_led "$boardname:green:wlan2g"
|
|
|
|
;;
|
ramips: add support for Belkin F9K1109v1
Device specification:
- SoC: Ralink RT3883 (MIPS 74Kc) 500Mhz
- RAM: 64Mb
- Flash: 8MB (SPI-NOR)
- Ethernet: 10/100/1000 Mbps
- WLAN
Wireless 1: SoC-integrated : 2.4/5 GHz
Wireless 2: 2.4 GHz RT3092L
- LED: 2x USB, WAN, LAN
- Key: WPS, reset
- Serial: 4-pin header, (57600,8,N,1), 3.3V TTL,
GND, RX, TX, V - J12 marking on board
- USB ports: 2 x USB 2.0
Flashing instructions:
Option 1 (from bootloader web)
- Hold reset button on the back of router when plugging
in power (for at-least 10 seconds after plugged in)
- Connect to a Lan port
- Set computer IP to 10.10.10.3
- Go to http://10.10.10.123 in a web browser
- Click the Browse... Button and select the
*squashfs.sysupgrade.bin file then click APPLY
Option 2 (from the stock admin web)
- Go to firmware upgrade
- Upload the **factory** image *initramfs.bin first
- Boot into openwrt
- From Luci web in openwrt upload the *squashfs.sysupgrade.bin
Signed-off-by: Kip Porterfield <kip.porterfield@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[added v1 to the compatible identifier, added pciid for
the RT3092L, fixed pci unit-address, split out the F9K110X.dtsi
to prepare for a possible F9K1103 patch]
2019-02-03 18:54:18 +00:00
|
|
|
belkin,f9k1109v1)
|
|
|
|
set_usb_led "$boardname:green:usb1"
|
|
|
|
ucidef_set_led_netdev "lan" "lan" "$boardname:blue:wps" "eth0"
|
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
alfa-network,w502u|\
|
|
|
|
dlink,dir-300-b1|\
|
|
|
|
dlink,dir-300-b7|\
|
|
|
|
dlink,dir-320-b1|\
|
|
|
|
dlink,dir-600-b1|\
|
|
|
|
dlink,dir-610-a1|\
|
|
|
|
dlink,dir-615-d|\
|
|
|
|
dlink,dir-615-h1|\
|
|
|
|
dlink,dir-620-a1|\
|
|
|
|
engenius,esr-9753|\
|
|
|
|
hilink,hlk-rm04|\
|
|
|
|
nexx,wt1520-4m|\
|
|
|
|
nexx,wt1520-8m|\
|
|
|
|
ralink,v11st-fe|\
|
|
|
|
skyline,sl-r7205|\
|
|
|
|
tenda,w306r-v2|\
|
|
|
|
zyxel,keenetic-start|\
|
|
|
|
zyxel,keenetic|\
|
|
|
|
zyxel,nbg-419n-v2)
|
|
|
|
set_wifi_led "rt2800pci-phy0::radio"
|
2017-09-06 09:14:16 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
asus,rt-ac51u|\
|
|
|
|
kingston,mlw221|\
|
|
|
|
kingston,mlwg2|\
|
|
|
|
rakwireless,rak633|\
|
|
|
|
sanlinking,d240)
|
|
|
|
set_wifi_led "$boardname:blue:wifi"
|
2016-07-26 04:44:19 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
belkin,f5d8235-v1)
|
|
|
|
set_wifi_led "$boardname:blue:wireless"
|
2016-06-12 21:43:51 +00:00
|
|
|
;;
|
2019-07-03 21:22:02 +00:00
|
|
|
comfast,cf-wr800n)
|
2017-11-16 21:17:42 +00:00
|
|
|
ucidef_set_led_netdev "lan" "lan" "$boardname:white:ethernet" eth0.1
|
|
|
|
set_wifi_led "$boardname:white:wifi"
|
2015-08-17 06:24:34 +00:00
|
|
|
;;
|
ramips: add CUDY WR1000 support
Cudy WR1200 is an AC1200 AP with 3-port FE and 2 non-detachable antennas
Specifications:
MT7628 (580 MHz)
64 MB of RAM (DDR2)
8 MB of FLASH
2T2R 2.4 GHz (MT7628)
2T2R 5 GHz (MT7612E)
3x 10/100 Mbps Ethernet (2 LAN + 1 WAN)
2x external, non-detachable antennas (5dbi)
UART header on PCB (57600 8n1)
7x LED, 2x button
Known issues:
The Power LED is always ON, probably because it is connected
directly to power.
Flash instructions
------------------
Load the ...-factory.bin image via the stock web interface.
Openwrt upgrade instructions
----------------------------
Use the ...-sysupgrade.bin image for future upgrades.
Revert to stock FW
------------------
Warning! This tutorial will work only with the following OEM FW:
WR1000_EU_92.122.2.4987.201806261618.bin
WR1000_US_92.122.2.4987.201806261609.bin
If in the future these firmwares will not be available anymore,
you have to find the new XOR key.
1) Download the original FW from the Cudy website.
(For example WR1000_EU_92.122.2.4987.201806261618.bin)
2) Remove the header.
dd if="WR1000_EU_92.122.2.4987.201806261618.bin" of="WR1000_EU_92.122.2.4987.201806261618.bin.mod" skip=8 bs=64
3) XOR the new file with the region key.
FOR EU: 7B76741E67594351555042461D625F4545514B1B03050208000603020803000D
FOR US: 7B76741E675943555D5442461D625F454555431F03050208000603060007010C
You can use OpenWrt's tools/firmware-utils/src/xorimage.c tool for this:
xorimage -i WR1000..bin.mod -o stock-firmware.bin -x -p 7B767..
Or, you can use this tool (CHANGE THE XOR KEY ACCORDINGLY!):
https://gchq.github.io/CyberChef/#recipe=XOR(%7B'option':'Hex','string':''%7D,'',false)
4) Check the resulting decrypted image.
Check if bytes from 0x20 to 0x3f are:
4C 69 6E 75 78 20 4B 65 72 6E 65 6C 20 49 6D 61 67 65 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Alternatively, you can use u-boot's tool dumpimage tool to check
if the decryption was successful. It should look like:
# dumpimage -l stock-firmware.bin
Image Name: Linux Kernel Image
Created: Tue Jun 26 10:24:54 2018
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 4406635 Bytes = 4303.35 KiB = 4.20 MiB
Load Address: 80000000
Entry Point: 8000c150
5) Flash it via forced firmware upgrade and don't "Keep Settings"
CLI: sysupgrade -F -n stock-firmware.bin
LuCI: make sure to click on the "Keep settings" checkbox
to disable it. You'll need to do this !TWICE! because
on the first try, LuCI will refuse the image and reset
the "Keep settings" to enable. However a new
"Force upgrade" checkbox will appear as well.
Make sure to do this very carefully!
Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[added wifi compatible, spiffed-up the returned to stock instructions]
2019-05-20 03:20:37 +00:00
|
|
|
cudy,wr1000)
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10"
|
|
|
|
ucidef_set_led_switch "lan1" "lan1" "$boardname:blue:lan1" "switch0" "0x08"
|
|
|
|
ucidef_set_led_switch "lan2" "lan2" "$boardname:blue:lan2" "switch0" "0x04"
|
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
d-team,newifi-d2)
|
|
|
|
ucidef_set_led_switch "internet" "internet" "$boardname:amber:internet" "switch0" "0x10"
|
|
|
|
ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:blue:wlan2g" "wlan0"
|
|
|
|
ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:blue:wlan5g" "wlan1"
|
|
|
|
;;
|
|
|
|
d-team,pbr-m1|\
|
|
|
|
gehua,ghl-r-001)
|
|
|
|
ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
|
2017-02-04 20:28:52 +00:00
|
|
|
;;
|
2019-07-03 21:22:19 +00:00
|
|
|
dlink,dcs-930l-b1)
|
2017-11-16 21:17:42 +00:00
|
|
|
ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps"
|
2015-08-17 06:24:34 +00:00
|
|
|
;;
|
2019-07-03 21:22:19 +00:00
|
|
|
dlink,dir-620-d1|\
|
2018-01-20 08:27:03 +00:00
|
|
|
dlink,dwr-116-a1|\
|
ramips: Add support for Head Weblink HDRM200
Head Weblink HDRM200 is a dual-sim router based on MT7620A. The detailed
specifications are:
- MT7620A (580MHz)
- 64MB RAM
- 16MB of flash (SPI NOR)
- 6x 10/100Mbps Ethernet (MT7620A built-in switch)
- 1x microSD slot
- 1x miniPCIe slot (only USB2.0 bus). Device is shipped with a SIMCOM
SIM7100E LTE modem.
- 2x SIM slots (standard size)
- 1x USB2.0 port
- 1x 2.4GHz wifi (rt2800)
- 1x 5GHz wifi (mt7612)
- 1x reset button
- 1x WPS button
- 3x GPIO-controllable LEDs
- 1x 10 pin terminal block (RS232, RS485, 4 x GPIO)
Tested:
- Ethernet switch
- Wifi
- USB slot
- SD card slot
- miniPCIe-slot
- sysupgrade
- reset button
Installation instructions:
Installing OpenWRT for the first time requires a bit of work, as the
board does not ship with OpenWRT. In addition, the bootloader
automatically reboots when installing an image over tftp. In order to
install OpenWRT on the HDRM200, you need to do the following:
* Copy the initramfs-image to your tftp-root (default filename is
test.bin) and configure networking accordingly (default server IP is
10.10.10.3, client 10.10.10.123). Start your tftp server.
* Open the board and connect to UART. The pins are exposed and clearly
marked.
* Boot the board and press 1.
* Either use the default filename and client/server IP-addresses, or
specify your own.
The image should now be loaded to memory and board boot. If the router
reboots while the image is loading, you need to try again. Once the
board has booted, copy the sysupgrade-image to the router and run
sysupgrade in order to install OpenWRT to the flash.
Notes:
- You control which SIM slot to use by writing 0/1 to
/sys/class/gpio/gpio0/value. In order for the change to take
effect, you can either use AT-commands (AT+CFUN) or power-cycle the
modem (write 0/1 to /sys/class/gpio/gpio21/value).
- RS485 is available on /dev/ttyS0.
- RS232 is available on /dev/ttyS1.
- The name of the ioX-gpios map to the labels on the casing.
Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
[fixed whitespace issue and merge conflict in target.mk]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-05-15 18:50:45 +00:00
|
|
|
head-weblink,hdrm200|\
|
2019-07-03 21:22:02 +00:00
|
|
|
ohyeah,oy-0001|\
|
2019-07-03 21:22:47 +00:00
|
|
|
planex,mzk-ex300np|\
|
2019-07-03 21:22:19 +00:00
|
|
|
trendnet,tew-714tru|\
|
2019-07-03 21:22:47 +00:00
|
|
|
zbtlink,zbt-wr8305rt|\
|
|
|
|
zyxel,keenetic-omni|\
|
|
|
|
zyxel,keenetic-omni-ii|\
|
|
|
|
zyxel,keenetic-viva)
|
2017-11-16 21:17:42 +00:00
|
|
|
set_wifi_led "$boardname:green:wifi"
|
2015-08-17 06:24:34 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
dlink,dir-860l-b1)
|
|
|
|
ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "eth0.2"
|
|
|
|
;;
|
2018-10-24 12:06:35 +00:00
|
|
|
dlink,dwr-118-a1)
|
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1f"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x20"
|
|
|
|
set_wifi_led "$boardname:green:wlan2g" "wlan1"
|
|
|
|
;;
|
2018-04-19 17:34:22 +00:00
|
|
|
dlink,dwr-118-a2)
|
2018-10-29 20:50:13 +00:00
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
|
2018-04-19 17:34:22 +00:00
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
|
|
|
set_wifi_led "$boardname:green:wlan2g" "wlan1"
|
|
|
|
;;
|
ramips: add support for DLINK DWR-922-E2
Very similar to the DWR-921-C1, except has a telephony/RJ11 port (not
sure if supported, I didn't try), wireless router with QMI LTE embedded
modem is based on the MT7620N SoC.
Specification:
* MediaTek MT7620N (580 Mhz)
* 64 MB of RAM
* 16 MB of FLASH
* 802.11bgn radio
* 5x 10/100 Mbps Ethernet (1 WAN and 4 LAN)
* 2x external, detachable (LTE) antennas
* UART header on PCB (57600 8n1)
* 6x LED (GPIO-controlled)
* 1x bi-color Signal Strength LED (GPIO-controlled)
* 2x button
* JBOOT bootloader
The status led has been assigned to the dwr-922-e2:green:signalstrength
(lte signal strength) led. At the end of the boot it is switched off and
is available for lte operation. Works correctly also during sysupgrade
operation.
Installation:
Apply factory image via d-link http web-gui, or via recovery interface:
How to recover/revert to OEM firmware:
1.) Push and hold the reset button and turn on the power. Wait until all
LEDs start rapidly blinking (~10sec.)
2.) DHCP should give you an IP in the 192.168.123.0/24 subnet, or set
one manually
3.) Upload original factory image via JBOOT http interface at IP
192.168.123.254
4.) If http doesn't work, it can be done with curl command:
curl -F FN=@XXXXX.bin http://192.168.123.254/upg
where XXXXX.bin is name of firmware file.
5.) You can optionally telnet to 192.168.123.254 before or during the
upload and it will report the flashing status, memory address etc.
6.) Once web UI and/or telnet says "Success", power cycle the router, or
type "reboot" into the telnet session.
Signed-off-by: Simon Quigley <squigley@squigley.net>
[squashed commits, word wrap commit message, rename signal strenght led
name to match what is used for the DWR-921-C1 since they share the led
configuration, add label referenced in the aliases node]
Signed-off-by: Mathias Kresin <dev@kresin.me>
2018-12-20 16:47:52 +00:00
|
|
|
dlink,dwr-921-c1|\
|
|
|
|
dlink,dwr-922-e2)
|
2018-03-10 09:34:38 +00:00
|
|
|
set_wifi_led "$boardname:green:wifi"
|
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
|
ramips: add support for DLINK DWR-922-E2
Very similar to the DWR-921-C1, except has a telephony/RJ11 port (not
sure if supported, I didn't try), wireless router with QMI LTE embedded
modem is based on the MT7620N SoC.
Specification:
* MediaTek MT7620N (580 Mhz)
* 64 MB of RAM
* 16 MB of FLASH
* 802.11bgn radio
* 5x 10/100 Mbps Ethernet (1 WAN and 4 LAN)
* 2x external, detachable (LTE) antennas
* UART header on PCB (57600 8n1)
* 6x LED (GPIO-controlled)
* 1x bi-color Signal Strength LED (GPIO-controlled)
* 2x button
* JBOOT bootloader
The status led has been assigned to the dwr-922-e2:green:signalstrength
(lte signal strength) led. At the end of the boot it is switched off and
is available for lte operation. Works correctly also during sysupgrade
operation.
Installation:
Apply factory image via d-link http web-gui, or via recovery interface:
How to recover/revert to OEM firmware:
1.) Push and hold the reset button and turn on the power. Wait until all
LEDs start rapidly blinking (~10sec.)
2.) DHCP should give you an IP in the 192.168.123.0/24 subnet, or set
one manually
3.) Upload original factory image via JBOOT http interface at IP
192.168.123.254
4.) If http doesn't work, it can be done with curl command:
curl -F FN=@XXXXX.bin http://192.168.123.254/upg
where XXXXX.bin is name of firmware file.
5.) You can optionally telnet to 192.168.123.254 before or during the
upload and it will report the flashing status, memory address etc.
6.) Once web UI and/or telnet says "Success", power cycle the router, or
type "reboot" into the telnet session.
Signed-off-by: Simon Quigley <squigley@squigley.net>
[squashed commits, word wrap commit message, rename signal strenght led
name to match what is used for the DWR-921-C1 since they share the led
configuration, add label referenced in the aliases node]
Signed-off-by: Mathias Kresin <dev@kresin.me>
2018-12-20 16:47:52 +00:00
|
|
|
ucidef_set_led_netdev "signalstrength" "signalstrength" "$boardname:green:sigstrength" "wwan0" "link"
|
|
|
|
ucidef_set_led_netdev "4g" "4g" "$boardname:green:4g" "wwan0" "tx rx"
|
2018-03-10 09:34:38 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
dovado,tiny-ac|\
|
|
|
|
fon,fonera-20n)
|
|
|
|
set_wifi_led "$boardname:orange:wifi"
|
2017-03-03 14:36:51 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
edimax,3g-6200n|\
|
|
|
|
edimax,br-6475nd|\
|
|
|
|
planex,mzk-w300nh2)
|
|
|
|
set_wifi_led "$boardname:amber:wlan"
|
2016-12-01 14:08:22 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
edimax,ew-7476rpc|\
|
|
|
|
edimax,ew-7478ac)
|
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x20"
|
2015-08-17 06:24:34 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
elecom,wrh-300cr)
|
|
|
|
set_wifi_led "$boardname:green:wlan"
|
|
|
|
ucidef_set_led_netdev "lan" "lan" "$boardname:green:ethernet" "eth0"
|
2017-07-22 01:15:56 +00:00
|
|
|
;;
|
2019-07-03 21:22:02 +00:00
|
|
|
glinet,gl-mt300a|\
|
|
|
|
glinet,gl-mt300n|\
|
|
|
|
glinet,gl-mt750)
|
2017-11-16 21:17:42 +00:00
|
|
|
set_wifi_led "$boardname:wlan"
|
2016-03-10 19:11:57 +00:00
|
|
|
;;
|
2019-07-03 21:22:13 +00:00
|
|
|
glinet,gl-mt300n-v2)
|
2017-11-16 21:17:42 +00:00
|
|
|
set_wifi_led "$boardname:red:wlan"
|
2018-11-02 19:52:01 +00:00
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x1"
|
2017-05-17 10:18:45 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
gnubee,gb-pc1|\
|
|
|
|
gnubee,gb-pc2)
|
|
|
|
ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x01"
|
|
|
|
ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x10"
|
|
|
|
;;
|
|
|
|
hauppauge,broadway)
|
|
|
|
set_wifi_led "$boardname:red:wps_active"
|
|
|
|
;;
|
2019-07-23 12:12:37 +00:00
|
|
|
hiwifi,hc5661)
|
2019-03-06 11:04:26 +00:00
|
|
|
ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x01"
|
2017-11-16 21:17:42 +00:00
|
|
|
set_wifi_led "$boardname:blue:wlan2g"
|
2016-07-23 14:25:38 +00:00
|
|
|
;;
|
2019-07-23 12:12:37 +00:00
|
|
|
hiwifi,hc5661a|\
|
2019-07-23 12:12:48 +00:00
|
|
|
hiwifi,hc5761a|\
|
2019-07-23 12:12:37 +00:00
|
|
|
xzwifi,creativebox-v1)
|
|
|
|
ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x10"
|
|
|
|
;;
|
2019-03-06 11:04:26 +00:00
|
|
|
hiwifi,hc5761)
|
|
|
|
ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x01"
|
|
|
|
ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0"
|
|
|
|
ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1"
|
|
|
|
;;
|
2019-07-03 21:22:02 +00:00
|
|
|
hiwifi,hc5861)
|
2019-03-06 11:04:26 +00:00
|
|
|
ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x20"
|
2018-12-14 10:15:52 +00:00
|
|
|
ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0"
|
|
|
|
ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1"
|
2015-10-05 10:25:47 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
hnet,c108)
|
|
|
|
ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
|
|
|
|
ucidef_set_led_netdev "modem" "modem" "$boardname:green:modem" "wwan0"
|
2015-08-17 06:24:34 +00:00
|
|
|
;;
|
2019-07-03 21:22:19 +00:00
|
|
|
hootoo,ht-tm02)
|
2017-11-16 21:17:42 +00:00
|
|
|
ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:lan" "eth0"
|
|
|
|
set_wifi_led "$boardname:blue:wlan"
|
2015-08-17 06:24:34 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
huawei,hg255d)
|
|
|
|
set_wifi_led "$boardname:green:wlan"
|
|
|
|
ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2"
|
|
|
|
;;
|
|
|
|
intenso,memory2move)
|
|
|
|
set_wifi_led "$boardname:blue:wifi"
|
|
|
|
ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0"
|
|
|
|
;;
|
2019-03-14 14:46:43 +00:00
|
|
|
iodata,wn-ac1167gr|\
|
|
|
|
iodata,wn-ac733gr3)
|
2019-01-08 15:20:18 +00:00
|
|
|
ucidef_set_led_wlan "wlan5g" "WLAN5G" "$boardname:green:wlan5g" "phy0radio"
|
|
|
|
ucidef_set_led_wlan "wlan2g" "WLAN2G" "$boardname:green:wlan2g" "phy1radio"
|
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
kimax,u25awf-h1)
|
|
|
|
set_wifi_led "u25awf:red:wifi"
|
|
|
|
ucidef_set_led_netdev "eth" "eth" "u25awf:green:lan" "eth0"
|
|
|
|
;;
|
2018-07-04 01:29:36 +00:00
|
|
|
kimax,u35wf)
|
|
|
|
set_wifi_led "$boardname:blue:wifi"
|
|
|
|
ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
|
|
|
|
;;
|
2018-11-17 08:47:40 +00:00
|
|
|
lava,lr-25g001)
|
|
|
|
ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "wlan1"
|
|
|
|
ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "wlan0"
|
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
lenovo,newifi-y1)
|
|
|
|
ucidef_set_led_netdev "wifi" "WIFI" "$boardname:blue:wifi" "wlan1"
|
|
|
|
ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi5g" "wlan0"
|
|
|
|
ucidef_set_led_switch "lan" "LAN" "$boardname:blue:lan" "switch0" "0x03"
|
|
|
|
;;
|
|
|
|
lenovo,newifi-y1s)
|
|
|
|
ucidef_set_led_netdev "wifi" "WIFI" "$boardname:yellow:wifi" "wlan1"
|
|
|
|
ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi" "wlan0"
|
|
|
|
ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:internet" "eth0.2" "tx rx"
|
|
|
|
;;
|
2019-07-03 21:22:13 +00:00
|
|
|
mediatek,linkit-smart-7688)
|
2017-12-21 18:55:25 +00:00
|
|
|
ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt"
|
|
|
|
;;
|
2018-06-25 20:51:43 +00:00
|
|
|
mikrotik,rbm11g)
|
|
|
|
ucidef_set_rssimon "wlan0" "200000" "1"
|
|
|
|
ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:green:rssi0" "wlan0" "1" "100"
|
|
|
|
ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssi1" "wlan0" "20" "100"
|
|
|
|
ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssi2" "wlan0" "40" "100"
|
|
|
|
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssi3" "wlan0" "60" "100"
|
|
|
|
ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "$boardname:green:rssi4" "wlan0" "80" "100"
|
|
|
|
;;
|
2018-11-29 23:13:53 +00:00
|
|
|
mtc,wr1201)
|
|
|
|
ucidef_set_led_switch "eth_link" "LAN link" "$boardname:green:eth_link" "switch0" "0x0f"
|
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
netgear,ex2700|\
|
|
|
|
netgear,wn3000rp-v3)
|
|
|
|
set_wifi_led "$boardname:green:router"
|
|
|
|
;;
|
|
|
|
netgear,ex3700)
|
|
|
|
ucidef_set_led_netdev "wlan5g" "ROUTER (green)" "$boardname:green:router" "wlan0"
|
|
|
|
ucidef_set_led_netdev "wlan2g" "DEVICE (green)" "$boardname:green:device" "wlan1"
|
2016-04-29 11:34:56 +00:00
|
|
|
;;
|
2018-06-12 19:17:23 +00:00
|
|
|
netgear,r6120)
|
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
|
2019-02-01 23:34:43 +00:00
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
|
2018-06-12 19:17:23 +00:00
|
|
|
ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt"
|
|
|
|
;;
|
2019-07-03 21:22:08 +00:00
|
|
|
netgear,r6220|\
|
2019-05-26 13:01:09 +00:00
|
|
|
netgear,r6350|\
|
2019-07-03 21:22:08 +00:00
|
|
|
netgear,wndr3700-v5)
|
2019-05-26 13:01:09 +00:00
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
|
2017-03-11 07:44:33 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
omnima,hpm)
|
|
|
|
ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
|
|
|
|
set_wifi_led "$boardname:green:wifi"
|
2017-07-23 19:06:44 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
omnima,miniembplug)
|
|
|
|
set_wifi_led "$boardname:red:wlan"
|
2015-08-17 06:24:34 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
phicomm,psg1208)
|
|
|
|
set_wifi_led "$boardname:white:wlan2g"
|
2017-12-06 14:43:55 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
planex,mzk-ex750np|\
|
|
|
|
zbtlink,zbt-we826-e)
|
|
|
|
set_wifi_led "$boardname:red:wifi"
|
2015-08-17 06:24:34 +00:00
|
|
|
;;
|
2018-02-19 05:35:42 +00:00
|
|
|
tama,w06)
|
|
|
|
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
|
|
|
|
ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
|
|
|
|
;;
|
2019-07-03 21:21:54 +00:00
|
|
|
tplink,archer-c2-v1)
|
2018-05-17 09:57:00 +00:00
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch1" "0x1e"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch1" "0x01"
|
|
|
|
set_wifi_led "$boardname:green:wlan"
|
|
|
|
;;
|
2019-07-03 21:21:54 +00:00
|
|
|
tplink,archer-c20-v1)
|
2018-01-13 07:16:20 +00:00
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
|
|
|
|
ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:blue:wlan2g" "wlan0"
|
|
|
|
;;
|
2019-07-03 21:21:54 +00:00
|
|
|
tplink,archer-c20-v4)
|
2018-01-09 11:25:53 +00:00
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
|
|
|
ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" "wlan0"
|
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
tplink,archer-c20i)
|
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
|
|
|
|
ucidef_set_led_wlan "wlan" "wlan" "$boardname:blue:wlan" "phy0radio"
|
|
|
|
;;
|
|
|
|
tplink,archer-c50-v1)
|
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
|
|
|
ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" wlan1
|
|
|
|
set_wifi_led "$boardname:green:wlan5g"
|
|
|
|
;;
|
2019-07-03 21:21:54 +00:00
|
|
|
tplink,archer-c50-v3|\
|
|
|
|
tplink,archer-c50-v4)
|
2018-01-28 18:49:38 +00:00
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
2018-05-18 21:37:49 +00:00
|
|
|
ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt"
|
|
|
|
ucidef_set_led_wlan "wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt"
|
2018-01-28 18:49:38 +00:00
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
tplink,archer-mr200)
|
|
|
|
ucidef_set_led_netdev "lan" "lan" "$boardname:white:lan" "eth0.1"
|
|
|
|
ucidef_set_led_netdev "wan" "wan" "$boardname:white:wan" "usb0"
|
|
|
|
set_wifi_led "$boardname:white:wlan"
|
|
|
|
;;
|
ramips: add support for TP-Link RE650 v1
TP-Link RE650 v1 is a dual-band AC2600 range extender,
based on MediaTek MT7621A and MT7615E. According to the
wikidevi entry for RE650 this device is identical with
TP-Link RE500 as hardware. This patch supports only RE650.
Hardware specification:
- SoC 880 MHz - MediaTek MT7621AT
- 128 MB of DDR3 RAM
- 16 MB - Winbond 25Q128FVSG
- 4T4R 2.4 GHz - MediaTek MT7615E
- 4T4R 5 GHz - MediaTek MT7615E
- 1x 1 Gbps Ethernet - MT7621AT integrated
- 7x LEDs (Power, 2G, 5G, WPS(x2), Lan(x2))
- 4x buttons (Reset, Power, WPS, LED)
- UART header (J1) - 2:GND, 3:RX, 4:TX
Serial console @ 57600,8n1
Flash instructions:
Upload
openwrt-ramips-mt7621-tplink_re650-v1-squashfs-factory.bin
from the RE650 web interface.
TFTP recovery to stock firmware:
Unfortunately, I can't find an easy way to recover the RE
without opening the device and using modified binaries. The
TFTP upload will only work if selected from u-boot, which
means you have to open the device and attach to the serial
console. The TFTP update procedure does *not* accept the
published vendor firmware binaries. However, it allows to
flash kernel + rootfs binaries, and this works if you have
a backup of the original contents of the flash. It's probably
possible to create special image out of the vendor binaries
and use that as recovery image.
Signed-off-by: Georgi Vlaev <georgi.vlaev@gmail.com>
[re-added variables for kernel header]
Signed-off-by: David Bauer <mail@david-bauer.net>
2019-04-17 18:17:45 +00:00
|
|
|
tplink,re350-v1|\
|
|
|
|
tplink,re650-v1)
|
2019-07-03 21:22:47 +00:00
|
|
|
ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
|
|
|
|
ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$boardname:blue:wifi5G" "wlan1"
|
|
|
|
ucidef_set_led_netdev "eth_act" "LAN act" "$boardname:green:eth_act" "eth0" "tx rx"
|
|
|
|
ucidef_set_led_switch "eth_link" "LAN link" "$boardname:green:eth_link" "switch0" "0x01"
|
2018-06-26 23:24:39 +00:00
|
|
|
;;
|
2018-08-26 19:11:59 +00:00
|
|
|
tplink,tl-mr3020-v3)
|
|
|
|
set_wifi_led "$boardname:green:wlan"
|
|
|
|
ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
|
|
|
|
;;
|
2018-05-30 15:41:53 +00:00
|
|
|
tplink,tl-mr3420-v5|\
|
|
|
|
tplink,tl-wr842n-v5)
|
2018-06-10 22:37:38 +00:00
|
|
|
ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
|
2017-12-15 14:57:49 +00:00
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
tplink,tl-wa801nd-v5)
|
|
|
|
ucidef_set_led_wlan "wlan" "wlan" "$boardname:green:wlan" "phy0tpt"
|
|
|
|
ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
|
|
|
|
;;
|
|
|
|
tplink,tl-wr840n-v4)
|
|
|
|
ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
|
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
|
|
|
;;
|
|
|
|
tplink,tl-wr841n-v13)
|
|
|
|
ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
|
|
|
|
ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x2"
|
|
|
|
ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x4"
|
|
|
|
ucidef_set_led_switch "lan3" "lan3" "$boardname:green:lan3" "switch0" "0x8"
|
|
|
|
ucidef_set_led_switch "lan4" "lan4" "$boardname:green:lan4" "switch0" "0x10"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
|
|
|
;;
|
|
|
|
tplink,tl-wr841n-v14)
|
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
|
|
|
;;
|
2018-03-17 17:47:51 +00:00
|
|
|
tplink,tl-wr902ac-v3)
|
2018-06-10 22:37:38 +00:00
|
|
|
ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
|
2018-03-17 17:47:51 +00:00
|
|
|
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x10"
|
|
|
|
;;
|
2019-07-03 21:22:13 +00:00
|
|
|
unielec,u7628-01-128m-16m)
|
ramips: add support for UniElec U7628-01
UniElec U7628-01 is a router platform board based on MediaTek MT7628AN.
The device has the following specifications:
- MT7628AN (580MHz)
- 64/128/256 MB of RAM (DDR2)
- 8/16 MB of flash (SPI NOR)
- 5x 10/100 Mbps Ethernet (MT7628 built-in switch)
- 1x 2T2R 2.4 GHz Wi-Fi (MT7628)
- 1x miniPCIe slot (with PCIe and USB 2.0 buses)
- 1x miniSIM slot
- 1x microSD slot
- 1x USB 2.0 port
- 7x single-color LEDs (GPIO-controlled)
- 1x bi-color LED (green GPIO-controlled, red -> LED_WLAN# in miniPCIe)
- 1x reset button
- 1x UART header (4-pins)
- 1x SDXC/GPIO header (10-pins, connected with microSD slot)
- 1x DC jack for main power (12 V)
The following has been tested and is working:
- Ethernet switch
- miniPCIe slot (tested with modem and Wi-Fi card)
- miniSIM slot
- sysupgrade
- reset button
- USB 2.0 port*
Due to a missing driver (MMC over GPIO) this is not supported:
- microSD card reader
* Warning:
USB buses in miniPCIe and regular A-type socket are connected together,
without any proper analog switch or USB HUB.
Installation:
This board might come with a different firmware versions (MediaTek SDK,
PandoraBox, Padavan, etc.). If your board comes with PandoraBox, you can
install LEDE using sysupgrade. Just SSH to the router and perform forced
sysupgrade (due to a board name mismatch). The default IP of this board
should be: 192.168.1.1 and username/password: root/admin. In case of a
different firmware, you can use web based recovery described below.
Use the following command to perform the sysupgrade (for the 128MB
RAM/16MB flash version):
sysupgrade -n -F lede-ramips-mt76x8-u7628-01-128M-16M-squashfs-sysupgrade.bin
Recovery:
This board contains a Chinese, closed-source bootloader called Breed
(Boot and Recovery Environment for Embedded Devices). Breed supports web
recovery and to enter it, you keep the reset button pressed for around
5 seconds during boot. Your machine will be assigned an IP through DHCP
and the router will use IP address 192.168.1.1. The recovery website is
in Chinese, but is easy to use. Click on the second item in the list to
access the recovery page, then the second item on the next page is where
you select the firmware. In order to start the recovery, you click the
button at the bottom.
SDXC/GPIO header (J3):
1. SDXC_D3 / I2C_SCLK
2. SDXC_D2 / I2C_SD
3. SDXC_D1 / I2S_DI
4. SDXC_D0 / I2S_WS
5. SDXC_CMD / I2S_CLK
6. SDXC_CLK / GPIO0
7. SDXC_CD / UART_RXD1
8. UART_TXD1
9. 3V3
10. GND
Other notes:
1. The board is available with different amounts of RAM and flash. We
have only added support for the 128/16 MB configuration, as that seems
to be the default. However, all the required infrastructure is in place
for making support for the other configurations easy.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
2017-11-03 20:12:49 +00:00
|
|
|
ucidef_set_led_switch "lan1" "lan1" "u7628-01:green:lan1" "switch0" "0x2"
|
|
|
|
ucidef_set_led_switch "lan2" "lan2" "u7628-01:green:lan2" "switch0" "0x4"
|
|
|
|
ucidef_set_led_switch "lan3" "lan3" "u7628-01:green:lan3" "switch0" "0x8"
|
|
|
|
ucidef_set_led_switch "lan4" "lan4" "u7628-01:green:lan4" "switch0" "0x10"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "u7628-01:green:wan" "switch0" "0x01"
|
|
|
|
set_wifi_led "u7628-01:green:wlan"
|
|
|
|
;;
|
2019-07-03 21:22:19 +00:00
|
|
|
vocore,vocore-8m|\
|
|
|
|
vocore,vocore-16m)
|
2017-04-07 22:34:48 +00:00
|
|
|
ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0"
|
2017-08-03 20:09:06 +00:00
|
|
|
;;
|
2018-10-22 15:21:16 +00:00
|
|
|
wavlink,wl-wn570ha1)
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
|
|
|
ucidef_set_rssimon "wlan0" "200000" "1"
|
|
|
|
ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan0" "1" "49"
|
|
|
|
ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan0" "50" "84"
|
|
|
|
ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan0" "85" "100"
|
|
|
|
set_wifi_led "$boardname:green:wifi"
|
|
|
|
;;
|
2019-02-17 12:21:42 +00:00
|
|
|
wavlink,wl-wn575a3)
|
2016-11-02 15:10:44 +00:00
|
|
|
ucidef_set_rssimon "wlan1" "200000" "1"
|
2017-11-16 21:17:42 +00:00
|
|
|
ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan1" "1" "49"
|
|
|
|
ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan1" "50" "84"
|
|
|
|
ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan1" "85" "100"
|
2016-11-06 12:00:38 +00:00
|
|
|
;;
|
2019-03-19 07:04:27 +00:00
|
|
|
xiaomi,mir3g)
|
|
|
|
ucidef_set_led_switch "wan-amber" "WAN (amber)" "$boardname:amber:wan" "switch0" "0x02" "0x08"
|
|
|
|
ucidef_set_led_switch "lan1-amber" "LAN1 (amber)" "$boardname:amber:lan1" "switch0" "0x08" "0x08"
|
|
|
|
ucidef_set_led_switch "lan2-amber" "LAN2 (amber)" "$boardname:amber:lan2" "switch0" "0x04" "0x08"
|
|
|
|
;;
|
|
|
|
xiaomi,mir3p)
|
|
|
|
ucidef_set_led_switch "wan-amber" "WAN (amber)" "$boardname:amber:wan" "switch0" "0x10" "0x08"
|
|
|
|
ucidef_set_led_switch "lan1-amber" "LAN1 (amber)" "$boardname:amber:lan1" "switch0" "0x02" "0x08"
|
|
|
|
ucidef_set_led_switch "lan2-amber" "LAN2 (amber)" "$boardname:amber:lan2" "switch0" "0x04" "0x08"
|
|
|
|
ucidef_set_led_switch "lan3-amber" "LAN3 (amber)" "$boardname:amber:lan3" "switch0" "0x08" "0x08"
|
|
|
|
;;
|
2018-03-29 10:33:02 +00:00
|
|
|
youhua,wr1200js)
|
|
|
|
ucidef_set_led_switch "internet" "INTERNET" "$boardname:green:wan" "switch0" "0x01"
|
|
|
|
;;
|
2019-07-03 21:22:47 +00:00
|
|
|
youku,yk1)
|
|
|
|
set_wifi_led "$boardname:blue:air"
|
|
|
|
ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10"
|
|
|
|
;;
|
|
|
|
zbtlink,we1026-5g-16m)
|
|
|
|
ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
|
|
|
|
set_wifi_led "we1026-5g:green:wifi"
|
|
|
|
;;
|
2019-07-03 21:22:02 +00:00
|
|
|
zbtlink,zbt-ape522ii)
|
2017-11-16 21:17:42 +00:00
|
|
|
ucidef_set_led_netdev "wlan2g4" "wlan1-link" "$boardname:green:wlan2g4" "wlan1"
|
|
|
|
ucidef_set_led_netdev "sys1" "wlan1" "$boardname:green:sys1" "wlan1" "tx rx"
|
|
|
|
ucidef_set_led_netdev "sys2" "wlan0" "$boardname:green:sys2" "wlan0" "tx rx"
|
2016-06-23 08:58:08 +00:00
|
|
|
;;
|
2019-07-03 21:22:02 +00:00
|
|
|
zbtlink,zbt-wa05)
|
2017-11-16 21:17:42 +00:00
|
|
|
set_wifi_led "$boardname:blue:air"
|
2015-08-17 06:24:34 +00:00
|
|
|
;;
|
2019-07-03 21:22:02 +00:00
|
|
|
zbtlink,zbt-we826-16m|\
|
|
|
|
zbtlink,zbt-we826-32m)
|
2017-04-12 05:53:56 +00:00
|
|
|
set_wifi_led "zbt-we826:green:wifi"
|
2016-03-01 09:17:06 +00:00
|
|
|
;;
|
2018-01-24 00:27:51 +00:00
|
|
|
zbtlink,zbt-we1226)
|
2018-01-23 01:46:36 +00:00
|
|
|
set_wifi_led "$boardname:green:wlan"
|
|
|
|
ucidef_set_led_switch "lan1" "LAN1" "$boardname:green:lan1" "switch0" "0x01"
|
|
|
|
ucidef_set_led_switch "lan2" "LAN2" "$boardname:green:lan2" "switch0" "0x02"
|
|
|
|
ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x10"
|
|
|
|
;;
|
2018-04-03 23:19:22 +00:00
|
|
|
zorlik,zl5900v2)
|
|
|
|
ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0
|
|
|
|
;;
|
2018-04-08 14:04:11 +00:00
|
|
|
zyxel,keenetic-extra-ii)
|
|
|
|
set_wifi_led "$boardname:green:wifi"
|
|
|
|
ucidef_set_led_switch "internet" "internet" "$boardname:green:internet" "switch0" "0x01"
|
|
|
|
;;
|
2011-10-24 21:49:31 +00:00
|
|
|
esac
|
2012-05-29 16:39:18 +00:00
|
|
|
|
2014-08-18 13:09:20 +00:00
|
|
|
board_config_flush
|
2012-05-29 16:39:18 +00:00
|
|
|
|
|
|
|
exit 0
|