2010-04-11 17:47:23 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2013-03-03 12:47:02 +00:00
|
|
|
# Copyright (C) 2010-2013 OpenWrt.org
|
2010-04-11 17:47:23 +00:00
|
|
|
#
|
|
|
|
|
2013-03-03 12:47:02 +00:00
|
|
|
RAMIPS_BOARD_NAME=
|
|
|
|
RAMIPS_MODEL=
|
|
|
|
|
|
|
|
ramips_board_detect() {
|
2010-04-11 17:47:23 +00:00
|
|
|
local machine
|
|
|
|
local name
|
|
|
|
|
|
|
|
machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
|
|
|
|
|
|
|
|
case "$machine" in
|
2016-11-18 11:46:27 +00:00
|
|
|
*"11AC NAS Router")
|
2016-12-23 07:21:31 +00:00
|
|
|
name="11acnas"
|
2016-11-18 11:46:27 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"3G150B")
|
|
|
|
name="3g150b"
|
2014-04-22 08:08:51 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"3G300M")
|
|
|
|
name="3g300m"
|
2012-08-29 10:37:43 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"3g-6200n")
|
2012-07-12 13:29:46 +00:00
|
|
|
name="3g-6200n"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"3g-6200nl")
|
2013-04-03 10:00:03 +00:00
|
|
|
name="3g-6200nl"
|
|
|
|
;;
|
2014-10-29 11:01:17 +00:00
|
|
|
*"A5-V11")
|
|
|
|
name="a5-v11"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"Ai-BR100")
|
2014-12-13 08:07:03 +00:00
|
|
|
name="ai-br100"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"Air3GII")
|
2012-12-29 17:50:32 +00:00
|
|
|
name="air3gii"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"ALL0239-3G")
|
2012-08-17 17:56:07 +00:00
|
|
|
name="all0239-3g"
|
|
|
|
;;
|
2016-11-21 07:46:48 +00:00
|
|
|
*"ALL0256N (4M)")
|
|
|
|
name="all0256n-4M"
|
|
|
|
;;
|
|
|
|
*"ALL0256N (8M)")
|
|
|
|
name="all0256n-8M"
|
2012-01-24 11:48:47 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"ALL5002")
|
2012-07-24 20:38:14 +00:00
|
|
|
name="all5002"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"ALL5003")
|
2013-04-25 19:03:01 +00:00
|
|
|
name="all5003"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"AR670W")
|
|
|
|
name="ar670w"
|
2012-03-29 16:03:04 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"AR725W")
|
|
|
|
name="ar725w"
|
|
|
|
;;
|
2016-12-23 08:46:48 +00:00
|
|
|
*"ASL26555 (8M)")
|
|
|
|
name="asl26555-8M"
|
|
|
|
;;
|
|
|
|
*"ASL26555 (16M)")
|
|
|
|
name="asl26555-16M"
|
2015-01-09 15:40:51 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"ATP-52B")
|
2015-08-17 05:58:57 +00:00
|
|
|
name="atp-52b"
|
2011-08-15 14:11:45 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"AWAPN2403")
|
|
|
|
name="awapn2403"
|
|
|
|
;;
|
2016-11-21 07:46:48 +00:00
|
|
|
*"AWM002 EVB (4M)")
|
|
|
|
name="awm002-evb-4M"
|
|
|
|
;;
|
|
|
|
*"AWM002 EVB (8M)")
|
|
|
|
name="awm002-evb-8M"
|
2013-07-24 08:54:41 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"BC2")
|
|
|
|
name="bc2"
|
2012-04-23 16:56:05 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"BR-6475nD")
|
|
|
|
name="br-6475nd"
|
2011-07-03 15:01:56 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"Broadway")
|
|
|
|
name="broadway"
|
2015-05-23 15:27:05 +00:00
|
|
|
;;
|
2017-09-06 09:14:16 +00:00
|
|
|
*"C108")
|
|
|
|
name="c108"
|
|
|
|
;;
|
ramips: add support for TP-Link Archer C20 v1
TP-Link Archer C20 v1 is a router with 5-port FE switch and
non-detachable antennas. It's very similiar to TP-Link Archer C50.
Also it's based on MediaTek MT7620A+MT7610EN.
Specification:
- MediaTek MT7620A (580 Mhz)
- 64 MB of RAM
- 8 MB of FLASH
- 2T2R 2.4 GHz and 1T1R 5 GHz
- 5x 10/100 Mbps Ethernet
- 2x external, non-detachable antennas
- UART (J1) header on PCB (115200 8n1)
- 8x LED (GPIO-controlled*), 2x button, power input switch
- 1 x USB 2.0 port
* WAN LED in this devices is a dual-color, dual-leads type which isn't
(fully) supported by gpio-leds driver. This type of LED requires both
GPIOs state change at the same time to select color or turn it off.
For now, we support/use only the blue part of the LED.
* MT7610EN ac chip isn't not supported by LEDE. Therefore 5Ghz won't
work.
Factory image notes:
These devices use version 3 of TP-Link header, fortunately without RSA
signature (at least in case of devices sold in Europe). The difference
lays in the requirement for a non-zero value in "Additional Hardware
Version" field. Ideally, it should match the value stored in vendor
firmware header on device.
We are able to prepare factory firwmare file which is accepted and
(almost) correctly flashed from the vendor GUI. As it turned out, it
accepts files without U-Boot image with second header at the beginning
but due to some kind of bug in upgrade routine, flashed image gets
corrupted before it's written to flash. So, to flash this device we must
to prepare image using original firmware from tp-link site with uboot.
Flash instruction:
Until (if at all) TP-Link fixes described problem, the only way to flash
LEDE image in these devices is to use tftp recovery mode in U-Boot.
There are two ways to flash the device to LEDE:
1) Using tftp mode with UART connection and original LEDE image
- Place lede-ramips-mt7620-ArcherC20-squashfs-factory.bin in tftp
server directory
- Configure PC with static IP 192.168.0.66/24 and tftp server.
- Connect PC with one of LAN ports, power up the router and press
key "4" to access U-Boot CLI.
- Use the following commands to update the device to LEDE:
setenv serverip 192.168.0.66
tftp 0x80060000 lede-ramips-mt7620-ArcherC20-squashfs-factory.bin
erase tplink 0x20000 0x7a0000
cp.b 0x80060000 0x20000 0x7a0000
reset
- After that the device will reboot and boot to LEDE
2) Using tftp mode without UART connection but require some
manipulations with target image
- Download and unpack TP-Link Archer C20 v1 firmware from original web
site
- Split uboot.bin from original firmware by this command (example):
dd if=Archer_C20v1_0.9.1_4.0_up_boot(160427)_2016-04-27_13.53.59.bin of=uboot.bin bs=512 count=256 skip=1
- Create ArcherC20V1_tp_recovery.bin using this command:
cat uboot.bin lede-ramips-mt7620-ArcherC20-squashfs-factory.bin > ArcherC20V1_tp_recovery.bin
- Place ArcherC20V1_tp_recovery.bin in tftp server directory.
- Configure PC with static IP 192.168.0.66/24 and tftp server.
- Connect PC with one of LAN ports, press the reset button, power up
the router and keep button pressed for around 6-7 seconds, until
device starts downloading the file.
- Router will download file from server, write it to flash and reboot.
Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
2017-09-08 09:39:17 +00:00
|
|
|
*"C20")
|
|
|
|
name="c20"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"C20i")
|
|
|
|
name="c20i"
|
2014-11-14 16:52:36 +00:00
|
|
|
;;
|
2016-06-12 21:43:51 +00:00
|
|
|
*"C50")
|
|
|
|
name="c50"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"Carambola")
|
|
|
|
name="carambola"
|
2014-11-14 16:52:36 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"CF-WR800N")
|
2015-05-23 15:26:39 +00:00
|
|
|
name="cf-wr800n"
|
|
|
|
;;
|
2016-04-26 11:43:01 +00:00
|
|
|
*"CS-QR10")
|
|
|
|
name="cs-qr10"
|
|
|
|
;;
|
2014-06-02 12:42:52 +00:00
|
|
|
*"CY-SWR1100")
|
|
|
|
name="cy-swr1100"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"D105")
|
|
|
|
name="d105"
|
|
|
|
;;
|
2017-02-04 20:28:52 +00:00
|
|
|
*"D240")
|
|
|
|
name="d240"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"DAP-1350")
|
|
|
|
name="dap-1350"
|
|
|
|
;;
|
2015-09-14 20:08:55 +00:00
|
|
|
*"DB-WRT01")
|
|
|
|
name="db-wrt01"
|
|
|
|
;;
|
2016-05-02 03:57:40 +00:00
|
|
|
*"DCH-M225")
|
|
|
|
name="dch-m225"
|
|
|
|
;;
|
2013-09-19 05:56:46 +00:00
|
|
|
*"DCS-930")
|
|
|
|
name="dcs-930"
|
|
|
|
;;
|
2015-06-18 18:20:46 +00:00
|
|
|
*"DCS-930L B1")
|
|
|
|
name="dcs-930l-b1"
|
|
|
|
;;
|
2011-07-28 10:56:22 +00:00
|
|
|
*"DIR-300 B1")
|
2010-04-11 17:47:23 +00:00
|
|
|
name="dir-300-b1"
|
|
|
|
;;
|
2013-09-18 16:31:37 +00:00
|
|
|
*"DIR-300 B7")
|
|
|
|
name="dir-300-b7"
|
|
|
|
;;
|
2013-09-30 20:48:34 +00:00
|
|
|
*"DIR-320 B1")
|
2013-09-18 16:31:37 +00:00
|
|
|
name="dir-320-b1"
|
|
|
|
;;
|
2011-07-28 10:56:24 +00:00
|
|
|
*"DIR-600 B1")
|
|
|
|
name="dir-600-b1"
|
|
|
|
;;
|
2013-08-14 19:35:27 +00:00
|
|
|
*"DIR-610 A1")
|
|
|
|
name="dir-610-a1"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"DIR-615 D")
|
|
|
|
name="dir-615-d"
|
|
|
|
;;
|
|
|
|
*"DIR-615 H1")
|
|
|
|
name="dir-615-h1"
|
|
|
|
;;
|
2012-08-12 12:48:24 +00:00
|
|
|
*"DIR-620 A1")
|
|
|
|
name="dir-620-a1"
|
|
|
|
;;
|
2013-04-25 19:02:48 +00:00
|
|
|
*"DIR-620 D1")
|
|
|
|
name="dir-620-d1"
|
|
|
|
;;
|
2012-10-18 07:23:03 +00:00
|
|
|
*"DIR-645")
|
|
|
|
name="dir-645"
|
|
|
|
;;
|
2013-08-14 18:15:35 +00:00
|
|
|
*"DIR-810L")
|
|
|
|
name="dir-810l"
|
|
|
|
;;
|
2015-01-17 21:20:05 +00:00
|
|
|
*"DIR-860L B1")
|
|
|
|
name="dir-860l-b1"
|
|
|
|
;;
|
2015-11-02 10:17:51 +00:00
|
|
|
*"Dovado Tiny AC")
|
|
|
|
name="tiny-ac"
|
|
|
|
;;
|
2016-05-28 14:22:10 +00:00
|
|
|
*"DuZun DM06")
|
|
|
|
name="duzun-dm06"
|
|
|
|
;;
|
2016-11-13 22:36:00 +00:00
|
|
|
*"DWR-512 B")
|
|
|
|
name="dwr-512-b"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"E1700")
|
|
|
|
name="e1700"
|
2013-03-03 12:46:08 +00:00
|
|
|
;;
|
2011-12-23 14:27:10 +00:00
|
|
|
*"ESR-9753")
|
|
|
|
name="esr-9753"
|
|
|
|
;;
|
2017-02-27 20:59:50 +00:00
|
|
|
*"EW1200")
|
|
|
|
name="ew1200"
|
|
|
|
;;
|
2016-02-12 08:29:33 +00:00
|
|
|
*"EX2700")
|
|
|
|
name="ex2700";
|
|
|
|
;;
|
2017-07-30 10:17:44 +00:00
|
|
|
*"EX3700/EX3800")
|
2017-03-03 14:36:51 +00:00
|
|
|
name="ex3700"
|
|
|
|
;;
|
2011-12-28 08:43:43 +00:00
|
|
|
*"F5D8235 v1")
|
|
|
|
name="f5d8235-v1"
|
|
|
|
;;
|
2011-07-03 15:01:56 +00:00
|
|
|
*"F5D8235 v2")
|
|
|
|
name="f5d8235-v2"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"F7C027")
|
|
|
|
name="f7c027"
|
2012-12-10 14:13:01 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"FireWRT")
|
|
|
|
name="firewrt"
|
2013-04-03 10:00:08 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"Fonera 2.0N")
|
2010-04-11 17:47:23 +00:00
|
|
|
name="fonera20n"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"FreeStation5")
|
|
|
|
name="freestation5"
|
2012-11-29 17:37:13 +00:00
|
|
|
;;
|
2017-07-22 01:15:56 +00:00
|
|
|
*"GB-PC1")
|
|
|
|
name="gb-pc1"
|
|
|
|
;;
|
2016-03-10 19:11:57 +00:00
|
|
|
*"GL-MT300A")
|
|
|
|
name="gl-mt300a"
|
|
|
|
;;
|
2016-03-10 19:12:04 +00:00
|
|
|
*"GL-MT300N")
|
|
|
|
name="gl-mt300n"
|
|
|
|
;;
|
2016-03-10 19:12:10 +00:00
|
|
|
*"GL-MT750")
|
|
|
|
name="gl-mt750"
|
|
|
|
;;
|
2017-05-17 10:18:45 +00:00
|
|
|
*"GL-MT300N-V2")
|
|
|
|
name="gl-mt300n-v2"
|
|
|
|
;;
|
2015-10-05 10:25:47 +00:00
|
|
|
*"HC5661")
|
|
|
|
name="hc5661"
|
|
|
|
;;
|
2017-02-24 23:19:15 +00:00
|
|
|
*"HC5661A")
|
|
|
|
name="hc5661a"
|
|
|
|
;;
|
2015-10-05 10:25:47 +00:00
|
|
|
*"HC5761")
|
|
|
|
name="hc5761"
|
|
|
|
;;
|
|
|
|
*"HC5861")
|
|
|
|
name="hc5861"
|
|
|
|
;;
|
2017-02-22 12:47:22 +00:00
|
|
|
*"HC5962")
|
|
|
|
name="hc5962"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"HG255D")
|
|
|
|
name="hg255d"
|
2011-07-03 15:01:56 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"HLK-RM04")
|
2014-01-12 12:07:40 +00:00
|
|
|
name="hlk-rm04"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"HPM")
|
|
|
|
name="hpm"
|
|
|
|
;;
|
|
|
|
*"HT-TM02")
|
2014-10-06 04:52:07 +00:00
|
|
|
name="ht-tm02"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"HW550-3G")
|
|
|
|
name="hw550-3g"
|
2014-07-26 20:36:22 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"IP2202")
|
|
|
|
name="ip2202"
|
2015-01-17 07:07:36 +00:00
|
|
|
;;
|
2016-03-04 08:33:09 +00:00
|
|
|
*"JHR-N805R")
|
|
|
|
name="jhr-n805r"
|
|
|
|
;;
|
|
|
|
*"JHR-N825R")
|
|
|
|
name="jhr-n825r"
|
|
|
|
;;
|
|
|
|
*"JHR-N926R")
|
|
|
|
name="jhr-n926r"
|
|
|
|
;;
|
2017-07-18 05:02:51 +00:00
|
|
|
*"K2P")
|
|
|
|
name="k2p"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"M3")
|
|
|
|
name="m3"
|
2014-11-05 14:37:13 +00:00
|
|
|
;;
|
2016-11-21 07:46:48 +00:00
|
|
|
*"M4 (4M)")
|
|
|
|
name="m4-4M"
|
|
|
|
;;
|
|
|
|
*"M4 (8M)")
|
|
|
|
name="m4-8M"
|
2015-06-18 18:20:56 +00:00
|
|
|
;;
|
2015-11-05 10:01:23 +00:00
|
|
|
*"MediaTek LinkIt Smart 7688")
|
2015-10-19 10:07:38 +00:00
|
|
|
linkit="$(dd bs=1 skip=1024 count=12 if=/dev/mtd2 2> /dev/null)"
|
|
|
|
if [ "${linkit}" = "LINKITS7688D" ]; then
|
|
|
|
name="linkits7688d"
|
|
|
|
RAMIPS_MODEL="${machine} DUO"
|
|
|
|
else
|
|
|
|
name="linkits7688"
|
|
|
|
fi
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"Memory 2 Move")
|
|
|
|
name="m2m"
|
2014-07-14 17:10:39 +00:00
|
|
|
;;
|
2016-09-08 22:57:31 +00:00
|
|
|
*"Mercury MAC1200R v2")
|
2017-07-28 17:22:55 +00:00
|
|
|
name="mac1200rv2"
|
2016-09-08 22:57:31 +00:00
|
|
|
;;
|
2017-08-12 14:56:11 +00:00
|
|
|
*"Mi Router 3G")
|
|
|
|
name="mir3g"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MicroWRT")
|
2015-04-09 10:32:37 +00:00
|
|
|
name="microwrt"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MiniEMBPlug")
|
|
|
|
name="miniembplug"
|
2011-08-22 20:41:49 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MiniEMBWiFi")
|
|
|
|
name="miniembwifi"
|
2013-04-09 14:19:33 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MiWiFi Mini")
|
|
|
|
name="miwifi-mini"
|
2011-10-24 21:49:36 +00:00
|
|
|
;;
|
2016-03-16 09:26:48 +00:00
|
|
|
*"MiWiFi Nano")
|
|
|
|
name="miwifi-nano"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MLW221")
|
|
|
|
name="mlw221"
|
2014-10-10 08:56:43 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MLWG2")
|
|
|
|
name="mlwg2"
|
2014-10-20 06:28:48 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MOFI3500-3GN")
|
|
|
|
name="mofi3500-3gn"
|
2011-07-28 10:56:32 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MPR-A1")
|
|
|
|
name="mpr-a1"
|
2015-01-17 14:06:13 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MPR-A2")
|
|
|
|
name="mpr-a2"
|
2013-02-02 17:21:05 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MR-102N")
|
|
|
|
name="mr-102n"
|
2011-12-14 20:51:26 +00:00
|
|
|
;;
|
2016-09-24 19:41:43 +00:00
|
|
|
*"MR200")
|
|
|
|
name="mr200"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MT7620a + MT7530 evaluation"*)
|
|
|
|
name="mt7620a_mt7530"
|
2014-08-18 16:06:48 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MT7620a V22SG"*)
|
|
|
|
name="mt7620a_v22sg"
|
2015-06-05 14:12:25 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MT7621 evaluation"*)
|
|
|
|
name="mt7621"
|
2015-06-05 14:12:25 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MT7628AN evaluation"*)
|
|
|
|
name="mt7628"
|
2015-06-18 18:20:40 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MT7688 evaluation"*)
|
|
|
|
name="mt7688"
|
|
|
|
;;
|
|
|
|
*"MZK-750DHP")
|
|
|
|
name="mzk-750dhp"
|
2012-06-19 09:52:15 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MZK-DP150N")
|
|
|
|
name="mzk-dp150n"
|
|
|
|
;;
|
2016-04-26 11:43:06 +00:00
|
|
|
*"MZK-EX300NP")
|
|
|
|
name="mzk-ex300np"
|
|
|
|
;;
|
2016-04-29 11:34:56 +00:00
|
|
|
*"MZK-EX750NP")
|
|
|
|
name="mzk-ex750np"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"MZK-W300NH2"*)
|
2012-12-29 17:50:38 +00:00
|
|
|
name="mzk-w300nh2"
|
|
|
|
;;
|
2016-03-08 18:11:59 +00:00
|
|
|
*"MZK-WDPR"*)
|
|
|
|
name="mzk-wdpr"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"NA930")
|
|
|
|
name="na930"
|
2013-08-01 14:31:15 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"NBG-419N")
|
|
|
|
name="nbg-419n"
|
2013-08-01 14:30:53 +00:00
|
|
|
;;
|
2016-07-24 15:37:52 +00:00
|
|
|
*"NBG-419N v2")
|
|
|
|
name="nbg-419n2"
|
|
|
|
;;
|
2016-09-27 06:25:04 +00:00
|
|
|
*"Newifi-D1")
|
|
|
|
name="newifi-d1"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"NCS601W")
|
|
|
|
name="ncs601w"
|
2013-08-01 14:30:58 +00:00
|
|
|
;;
|
2016-12-23 08:46:48 +00:00
|
|
|
*"NixcoreX1 (8M)")
|
|
|
|
name="nixcore-x1-8M"
|
|
|
|
;;
|
|
|
|
*"NixcoreX1 (16M)")
|
|
|
|
name="nixcore-x1-16M"
|
2016-07-07 00:24:52 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"NW718")
|
|
|
|
name="nw718"
|
2013-08-01 14:31:04 +00:00
|
|
|
;;
|
2017-01-09 19:59:56 +00:00
|
|
|
*"Onion Omega2")
|
|
|
|
name="omega2"
|
|
|
|
;;
|
|
|
|
*"Onion Omega2+")
|
|
|
|
name="omega2p"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"OY-0001")
|
|
|
|
name="oy-0001"
|
|
|
|
;;
|
2016-09-27 06:23:27 +00:00
|
|
|
*"PBR-D1")
|
|
|
|
name="pbr-d1"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"PBR-M1")
|
|
|
|
name="pbr-m1"
|
|
|
|
;;
|
2016-02-15 18:45:22 +00:00
|
|
|
*"PSG1208")
|
|
|
|
name="psg1208"
|
|
|
|
;;
|
2017-04-21 00:47:44 +00:00
|
|
|
*"PSG1218 rev.A")
|
|
|
|
name="psg1218a"
|
2016-09-30 11:41:12 +00:00
|
|
|
;;
|
2017-04-21 00:47:44 +00:00
|
|
|
*"PSG1218 rev.B")
|
|
|
|
name="psg1218b"
|
2017-04-20 22:53:03 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"PSR-680W"*)
|
|
|
|
name="psr-680w"
|
2013-08-01 14:31:09 +00:00
|
|
|
;;
|
2011-07-03 15:01:56 +00:00
|
|
|
*"PWH2004")
|
|
|
|
name="pwh2004"
|
|
|
|
;;
|
2016-11-21 07:46:48 +00:00
|
|
|
*"PX-4885 (4M)")
|
|
|
|
name="px-4885-4M"
|
|
|
|
;;
|
|
|
|
*"PX-4885 (8M)")
|
|
|
|
name="px-4885-8M"
|
2015-08-17 06:01:44 +00:00
|
|
|
;;
|
|
|
|
*"Q7")
|
|
|
|
name="zte-q7"
|
|
|
|
;;
|
2017-03-11 07:44:33 +00:00
|
|
|
*"R6220")
|
|
|
|
name="r6220"
|
|
|
|
;;
|
ramips: add support for MikroTik hEX v3 (RB750Gr3)
The MikroTik hEX v3 (RB750Gr3) is a MT7621AT board which is similar to most MT7621 reference designs, it can be easily supported by this patch; however, the stock RouterBOOT bootloader has to be replaced by a MT7621 SDK U-Boot such as https://github.com/ndoo/RB750Gr3-U-Boot - U-Boot configured for the RB750Gr3 (16MiB SPI flash, 256MiB DDR3 RAM at 1200MHz).
RouterBOOT, the stock bootloader, does not initialize the UART and boots silently, making it preferable to replace it with a MT7621 SDK U-Boot with UART (57600 8N1) that supports HTTP, TFTP or serial upload of sysupgrade firmware and U-Boot.
Furthermore, RouterOS, the stock firmware, is contained in a proprietary modification of SquashFS without GPL sources; UART is also disabled in stock firmware.
The combination of LEDE firmware generated by this PR and MT7621 SDK U-Boot expects the printed MAC address to reside at offset `0xe000` of the factory partition (absolute offset is `0x4e000`); this is similar to the factory MAC address offset for several other MT7621 devices.
A 16MiB flash dump suitable for use with flashrom will be provided if/once this patch is accepted and binaries are built by LEDE buildbot. Alternatively, writing the U-Boot to the SPI flash starting at 0x0 offset and booting the board with serial console attached will allow TFTP, HTTP or serial upload of sysupgrade firmware.
Signed-off-by: Andrew Yong <me@ndoo.sg>
2016-10-18 20:05:32 +00:00
|
|
|
*"RB750Gr3")
|
|
|
|
name="rb750gr3"
|
|
|
|
;;
|
2017-07-23 19:06:44 +00:00
|
|
|
*"RE350 v1")
|
|
|
|
name="re350-v1"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"RE6500")
|
|
|
|
name="re6500"
|
|
|
|
;;
|
|
|
|
*"RN502J")
|
|
|
|
name="xdxrn502j"
|
|
|
|
;;
|
|
|
|
*"RP-N53")
|
2013-08-14 18:15:35 +00:00
|
|
|
name="rp-n53"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"RT5350F-OLinuXino")
|
|
|
|
name="rt5350f-olinuxino"
|
|
|
|
;;
|
|
|
|
*"RT5350F-OLinuXino-EVB")
|
|
|
|
name="rt5350f-olinuxino-evb"
|
2014-10-29 18:51:02 +00:00
|
|
|
;;
|
2017-05-05 15:54:26 +00:00
|
|
|
*"RT-AC51U")
|
|
|
|
name="rt-ac51u"
|
|
|
|
;;
|
2011-07-28 10:56:30 +00:00
|
|
|
*"RT-G32 B1")
|
|
|
|
name="rt-g32-b1"
|
|
|
|
;;
|
2012-03-04 16:09:11 +00:00
|
|
|
*"RT-N10+")
|
|
|
|
name="rt-n10-plus"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"RT-N13U")
|
|
|
|
name="rt-n13u"
|
|
|
|
;;
|
|
|
|
*"RT-N14U")
|
|
|
|
name="rt-n14u"
|
|
|
|
;;
|
2011-07-03 15:01:56 +00:00
|
|
|
*"RT-N15")
|
|
|
|
name="rt-n15"
|
|
|
|
;;
|
2012-02-13 15:18:04 +00:00
|
|
|
*"RT-N56U")
|
|
|
|
name="rt-n56u"
|
|
|
|
;;
|
2014-06-02 12:42:48 +00:00
|
|
|
*"RUT5XX")
|
|
|
|
name="rut5xx"
|
|
|
|
;;
|
2016-05-10 16:17:54 +00:00
|
|
|
*"SamKnows Whitebox 8")
|
|
|
|
name="sk-wb8"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"SAP-G3200U3")
|
|
|
|
name="sap-g3200u3"
|
|
|
|
;;
|
|
|
|
*"SL-R7205"*)
|
2012-02-19 16:44:49 +00:00
|
|
|
name="sl-r7205"
|
|
|
|
;;
|
2017-06-09 11:02:56 +00:00
|
|
|
*"TEW-638APB v2")
|
|
|
|
name="tew-638apb-v2"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"TEW-691GR")
|
|
|
|
name="tew-691gr"
|
2011-07-03 15:01:56 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"TEW-692GR")
|
|
|
|
name="tew-692gr"
|
|
|
|
;;
|
2016-08-03 17:58:01 +00:00
|
|
|
*"TEW-714TRU")
|
|
|
|
name="tew-714tru"
|
|
|
|
;;
|
2016-08-10 00:18:32 +00:00
|
|
|
*"Timecloud")
|
|
|
|
name="timecloud"
|
|
|
|
;;
|
ramips: add support for TP-Link TL-WR840N v4 and TL-WR841N v13
TP-Link TL-WR840N v4 and TL-WR841N v13 are simple N300 routers with
5-port FE switch and non-detachable antennas. Both are very similar
and are based on MediaTek MT7628NN (aka MT7628N) WiSoC.
The difference between these two models is in number of available
LEDs, buttons and power input switch.
This work is partially based on GitHub PR#974.
Specification:
- MT7628N/N (580 MHz)
- 64 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz
- 5x 10/100 Mbps Ethernet
- 2x external, non-detachable antennas
- UART (J1) header on PCB (115200 8n1)
- TL-WR840N v4: 5x LED (GPIO-controlled), 1x button
- TL-WR841N v13: 8x LED (GPIO-controlled*), 2x button, power input
switch
* WAN LED in TL-WR841N v13 is a dual-color, dual-leads type which isn't
(fully) supported by gpio-leds driver. This type of LED requires both
GPIOs state change at the same time to select color or turn it off.
For now, we support/use only the green part of the LED.
Factory image notes:
These devices use version 3 of TP-Link header, fortunately without RSA
signature (at least in case of devices sold in Europe). The difference
lays in the requirement for a non-zero value in "Additional Hardware
Version" field. Ideally, it should match the value stored in vendor
firmware header on device ("0x4"/"0x13" for these devices) but it seems
that anything other than "0" is correct.
We are able to prepare factory firwmare file which is accepted and
(almost) correctly flashed from the vendor GUI. As it turned out, it
accepts files without U-Boot image with second header at the beginning
but due to some kind of bug in upgrade routine, flashed image gets
corrupted before it's written to flash.
Tests showed that the GUI upgrade routine copies value of "Additional
Hardware Version" from existing firmware into offset "0x2023c" in
provided file, _before_ storing it in flash. In case of vendor firmware
upgrade files (which all include U-Boot image and two headers), this
offset points to the matching field in kernel+rootfs firmware part
header. Unfortunately, in case of LEDE factory image file which contains
only one header, it points to the offset "0x2023c" in kernel image. This
leads to a corrupted kernel and ends up with a "soft-bricked" device.
The good news is that U-Boot in these devices contains well known tftp
recovery mode, which can be triggered with "reset" button. What's more,
in comparison to some of older MediaTek based TP-Link devices, this
recovery mode doesn't write whole file at offset "0x0" in flash, without
verifying provided file in advance. In case of recovery mode in these
devices, first "0x20000" bytes are always skipped and "0x7a0000" bytes
from rest of the file are stored in flash at offset "0x20000".
Flash instruction:
Until (if at all) TP-Link fixes described problem, the only way to flash
LEDE image in these devices is to use tftp recovery mode in U-Boot:
1. Configure PC with static IP 192.168.0.66/24 and tftp server.
2. Rename "lede-ramips-mt7628-tl-wr84...-squashfs-tftp-recovery.bin"
to "tp_recovery.bin" and place it in tftp server directory.
3. Connect PC with one of LAN ports, press the reset button, power up
the router and keep button pressed for around 6-7 seconds, until
device starts downloading the file.
4. Router will download file from server, write it to flash and reboot.
To access U-Boot CLI, keep pressed "4" key during boot.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2017-06-21 12:16:15 +00:00
|
|
|
*"TL-WR840N v4")
|
|
|
|
name="tl-wr840n-v4"
|
|
|
|
;;
|
|
|
|
*"TL-WR841N v13")
|
|
|
|
name="tl-wr841n-v13"
|
|
|
|
;;
|
2017-02-19 08:46:44 +00:00
|
|
|
*"U25AWF-H1")
|
|
|
|
name="u25awf-h1"
|
|
|
|
;;
|
ramips: add support for Ubiquiti EdgeRouter X (UBNT-ERX)
This router is based on MT7621 SoC, no wifi, no usb, nand.
Works:
* Boots.
* Ethernet.
* Switch.
* Button (reset).
* Flashing OpenWrt from stock firmware.
* Upgrading OpenWrt.
Doesn't work:
* No GPIO leds. All leds are controlled by switch,
but stock firmware was able to control them.
* SoC has crypto engine but no open driver.
* SoC has nat acceleration, but no open driver.
* This router has 2MB spi flash soldered in but MT
nand/spi drivers do not support pin sharing,
so it is not accessable and disabled. Stock
firmware could read it and it was empty.
* PoE out.
Router has serial pins populated. If looking at the top
of the router, then counting from Eth sockets pins go as:
'GND, RX, TX, GND'. 3.3v, 57600.
U-boot bootloader supports tftpboot, controlled from serial.
This router has two kernel partitions: 'live' and 'backup'.
They are swapped during flashing (on both stock and OpenWrt).
Active partition is controlled by a flag in a factory partition.
U-boot has custom command to switch active kernel partition.
Kernel partitions are 'bare flash' 3MB. Stock bootloader has
no UBI support. Stock rootfs is UBIFS.
Flashing procedure.
Stock firmware uses custom kernel patch to mount squashfs
from a file that is located on UBIFS volume. This makes wiping
out this volume from within stock firmware difficult.
Instead this patch builds image that is flashable by stock firmware
and contains initrams image (with minimal set of packages
to fit into kernel partition). Once this is flashed one can reboot
into initramfs OpenWrt and use sysupgrade to flash OpenWrt including
rootfs into nand.
Note: factory image is only built if initramfs image is enabled.
Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
SVN-Revision: 47881
2015-12-12 07:38:06 +00:00
|
|
|
*"UBNT-ERX")
|
|
|
|
name="ubnt-erx"
|
|
|
|
;;
|
2017-05-29 09:24:49 +00:00
|
|
|
*"UBNT-ERX-SFP")
|
|
|
|
name="ubnt-erx-sfp"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"UR-326N4G")
|
|
|
|
name="ur-326n4g"
|
|
|
|
;;
|
|
|
|
*"UR-336UN")
|
|
|
|
name="ur-336un"
|
|
|
|
;;
|
|
|
|
*"V11ST-FE")
|
|
|
|
name="v11st-fe"
|
2015-07-24 09:09:22 +00:00
|
|
|
;;
|
2010-04-11 17:47:23 +00:00
|
|
|
*"V22RW-2X2")
|
|
|
|
name="v22rw-2x2"
|
|
|
|
;;
|
2016-12-23 08:46:48 +00:00
|
|
|
*"VoCore (8M)")
|
|
|
|
name="vocore-8M"
|
|
|
|
;;
|
|
|
|
*"VoCore (16M)")
|
|
|
|
name="vocore-16M"
|
2014-08-01 20:51:24 +00:00
|
|
|
;;
|
2017-01-08 06:30:10 +00:00
|
|
|
*"VoCore2")
|
|
|
|
name="vocore2"
|
|
|
|
;;
|
2017-08-03 20:09:06 +00:00
|
|
|
*"VoCore2-Lite")
|
|
|
|
name="vocore2lite"
|
|
|
|
;;
|
2016-10-10 01:24:42 +00:00
|
|
|
*"VR500")
|
|
|
|
name="vr500"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"W150M")
|
|
|
|
name="w150m"
|
|
|
|
;;
|
2016-11-18 11:46:27 +00:00
|
|
|
*"W2914NS v2")
|
|
|
|
name="w2914nsv2"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"W306R V2.0")
|
|
|
|
name="w306r-v20"
|
|
|
|
;;
|
2011-12-28 08:43:32 +00:00
|
|
|
*"W502U")
|
|
|
|
name="w502u"
|
|
|
|
;;
|
2017-01-28 16:05:56 +00:00
|
|
|
*"WCR-1166DS")
|
|
|
|
name="wcr-1166ds"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WCR-150GN")
|
|
|
|
name="wcr-150gn"
|
|
|
|
;;
|
ramips: Add support for ZBT WE1026-5G
The ZBT WE1026-5G
(http://www.zbtlink.com/products/router/WE1026-5G.html) is the follow-up
to the ZBT WE1026 and is based on MT7620. For the previous WE1026, the
ZBT WE826 image could be used. However, as the name implies, the -5G
comes equipped with a 5GHz wifi radio. As the WE826 only has a 2.4GHz
radio, the addition of 5GHz means that a separate image is needed for
the WE1026-5G. I suspect that this image will also work on the previous
WE1026, but I don't have a device to test with.
The WE1026-5G has following specifications:
* CPU: MT7620A
* 1x 10/100Mbps Ethernet.
* 16 MB Flash.
* 64 MB RAM.
* 1x USB 2.0 port.
* 1x mini-PCIe slots.
* 1x SIM slots.
* 1x 2.4Ghz WIFI.
* 1x 5GHz wifi (MT7612)
* 1x button.
* 3x controllable LEDs.
Works:
* Wifi.
* Switch.
* mini-PCIe slot. Only tested with a USB device (a modem).
* SIM slot.
* Sysupgrade.
* Button (reset).
Not working:
* The 5GHz WIFI LED is completely dead. I suspect the issue is the same
as on other devices with Mediatek 5Ghz wifi-cards/chips. The LED is
controlled by the driver, and mt76 (currently) does not support this.
Not tested:
* SD card reader.
Notes:
* The modem (labeled 3G/4G) and power LEDs are controlled by the
hardware.
* There is a 32MB version of this device available, but I do not have
access to it. I have therefor only added support for the 16MB version,
but added all the required infrastructure to make adding support for the
32MB version easy.
Installation:
The router comes pre-installed with OpenWRT, including a variant of
Luci. The initial firmware install can be done through this UI,
following normal procedure. I.e., access the UI and update the firmware
using the sysupgrade-image. Remember to select that you do not want to
keep existing settings.
Recovery:
If you brick the device, the WE1026-5G supports recovery using HTTP. Keep the
reset button pressed for ~5sec when booting to start the web server. Set the
address of the network interface on your machine to 192.168.1.2/24, and
point your browser to 192.168.1.1 to access the recovery UI. From the
recovery UI you can upload a firmware image.
Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
2017-09-10 12:44:47 +00:00
|
|
|
*"WE1026-5G (16M)")
|
|
|
|
name="we1026-5g-16m"
|
|
|
|
;;
|
2015-11-24 18:29:26 +00:00
|
|
|
*"WF-2881")
|
|
|
|
name="wf-2881"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WHR-1166D")
|
|
|
|
name="whr-1166d"
|
2013-11-16 20:28:52 +00:00
|
|
|
;;
|
2013-10-28 06:47:31 +00:00
|
|
|
*"WHR-300HP2")
|
|
|
|
name="whr-300hp2"
|
|
|
|
;;
|
|
|
|
*"WHR-600D")
|
|
|
|
name="whr-600d"
|
|
|
|
;;
|
2010-04-11 17:47:23 +00:00
|
|
|
*"WHR-G300N")
|
|
|
|
name="whr-g300n"
|
|
|
|
;;
|
2016-05-28 10:04:17 +00:00
|
|
|
*"Widora-NEO")
|
|
|
|
name="widora-neo"
|
|
|
|
;;
|
2015-12-11 15:04:13 +00:00
|
|
|
*"WiTi")
|
|
|
|
name="witi"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WIZARD 8800")
|
|
|
|
name="wizard8800"
|
2012-04-21 12:30:40 +00:00
|
|
|
;;
|
2015-09-14 20:09:31 +00:00
|
|
|
*"WizFi630A")
|
|
|
|
name="wizfi630a"
|
ramips: add support for Ubiquiti EdgeRouter X (UBNT-ERX)
This router is based on MT7621 SoC, no wifi, no usb, nand.
Works:
* Boots.
* Ethernet.
* Switch.
* Button (reset).
* Flashing OpenWrt from stock firmware.
* Upgrading OpenWrt.
Doesn't work:
* No GPIO leds. All leds are controlled by switch,
but stock firmware was able to control them.
* SoC has crypto engine but no open driver.
* SoC has nat acceleration, but no open driver.
* This router has 2MB spi flash soldered in but MT
nand/spi drivers do not support pin sharing,
so it is not accessable and disabled. Stock
firmware could read it and it was empty.
* PoE out.
Router has serial pins populated. If looking at the top
of the router, then counting from Eth sockets pins go as:
'GND, RX, TX, GND'. 3.3v, 57600.
U-boot bootloader supports tftpboot, controlled from serial.
This router has two kernel partitions: 'live' and 'backup'.
They are swapped during flashing (on both stock and OpenWrt).
Active partition is controlled by a flag in a factory partition.
U-boot has custom command to switch active kernel partition.
Kernel partitions are 'bare flash' 3MB. Stock bootloader has
no UBI support. Stock rootfs is UBIFS.
Flashing procedure.
Stock firmware uses custom kernel patch to mount squashfs
from a file that is located on UBIFS volume. This makes wiping
out this volume from within stock firmware difficult.
Instead this patch builds image that is flashable by stock firmware
and contains initrams image (with minimal set of packages
to fit into kernel partition). Once this is flashed one can reboot
into initramfs OpenWrt and use sysupgrade to flash OpenWrt including
rootfs into nand.
Note: factory image is only built if initramfs image is enabled.
Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
SVN-Revision: 47881
2015-12-12 07:38:06 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WL-330N")
|
|
|
|
name="wl-330n"
|
2013-04-03 10:00:21 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WL-330N3G")
|
|
|
|
name="wl-330n3g"
|
2012-10-18 07:23:12 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WL-341 v3")
|
|
|
|
name="wl-341v3"
|
2012-10-18 07:23:07 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WL-351 v1 002")
|
|
|
|
name="wl-351"
|
2012-02-15 21:13:11 +00:00
|
|
|
;;
|
2016-11-06 12:00:38 +00:00
|
|
|
*"WL-WN575A3")
|
|
|
|
name="wl-wn575a3"
|
|
|
|
;;
|
2011-12-27 16:56:30 +00:00
|
|
|
*"WLI-TX4-AG300N")
|
|
|
|
name="wli-tx4-ag300n"
|
|
|
|
;;
|
2016-08-14 21:30:44 +00:00
|
|
|
*"WLR-6000")
|
|
|
|
name="wlr-6000"
|
|
|
|
;;
|
ramips: add support for Loewe WMDR-143N
The WMDR-143N is a small module originally used as a Wifi client
in some Loewe smart TV sets. It is sold cheaply at german surplus
shops. The module contains a RT3662 SOC.
Specifications:
- 500 MHz CPU Clock
- 1x 10/100Mbps Ethernet (pin header)
- 32 MB of RAM
- 8 MB of FLASH
- 2T3R 2.4/5 GHz (SOC internal)
- 3 Antennas on PCB
- UART pads on PCB (J3: 1 = +3.3V, 2 = RX, 3 = TX, 4 = GND), TX
and RX are 3,3V only! The square hole is pin 1
- Power supply pads on PCB (J6: 1 and 2 = +5V, 3 and 4 = GND)
The square hole is pin 1
The original firmware has two identical kernel/rootfs images and
two "Factory" calibration data blocks in flash. The LEDE image
leaves only the first "Factory" block in place and uses both
"Kernel" blocks and the redundant "Factory" block together to gain
enough space for the jffs2 partition.
Flash instructions:
You need UART and Ethernet connections to flash the board. Use
the LEDE "sysupgrade.bin" image with tftp.
Apply power to the board and in the first 5 seconds, hit 2 to
select TFTP upload. The bootloader asks for board- and server IP
addresses and filename.
Alternate method: With the vendor firmware running, assign an IP
address to the ethernet port, tftp the firmware image to
/tmp and write to mtd4 ("KernelA").
Signed-off-by: Oliver Fleischmann <ogf@bnv-bamberg.de>
[remove pinctrl node from dts, no pin is used as GPIO]
Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-07-20 19:02:33 +00:00
|
|
|
*"WMDR-143N")
|
|
|
|
name="wmdr-143n"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WMR-300")
|
|
|
|
name="wmr-300"
|
2011-08-19 15:55:10 +00:00
|
|
|
;;
|
2017-01-18 10:34:56 +00:00
|
|
|
*"WN3000RPv3")
|
|
|
|
name="wn3000rpv3"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WNCE2001")
|
|
|
|
name="wnce2001"
|
2013-04-25 19:03:01 +00:00
|
|
|
;;
|
2016-04-26 11:43:53 +00:00
|
|
|
*"WNDR3700v5")
|
|
|
|
name="wndr3700v5"
|
|
|
|
;;
|
2016-11-21 07:46:48 +00:00
|
|
|
*"WR512-3GN (4M)")
|
|
|
|
name="wr512-3gn-4M"
|
|
|
|
;;
|
|
|
|
*"WR512-3GN (8M)")
|
|
|
|
name="wr512-3gn-8M"
|
2012-04-23 16:56:06 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WR6202")
|
2012-02-11 15:11:36 +00:00
|
|
|
name="wr6202"
|
|
|
|
;;
|
2016-04-21 19:46:59 +00:00
|
|
|
*"WRH-300CR")
|
|
|
|
name="wrh-300cr"
|
|
|
|
;;
|
2014-03-07 09:54:59 +00:00
|
|
|
*"WRTNODE")
|
|
|
|
name="wrtnode"
|
|
|
|
;;
|
2016-01-01 21:19:50 +00:00
|
|
|
*"WRTnode2R")
|
|
|
|
name="wrtnode2r"
|
|
|
|
;;
|
|
|
|
*"WRTnode2P")
|
|
|
|
name="wrtnode2p"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WSR-1166DHP")
|
|
|
|
name="wsr-1166"
|
2014-07-02 07:42:44 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WSR-600DHP")
|
|
|
|
name="wsr-600"
|
2015-02-02 09:01:07 +00:00
|
|
|
;;
|
2016-11-21 07:46:48 +00:00
|
|
|
*"WT1520 (4M)")
|
|
|
|
name="wt1520-4M"
|
|
|
|
;;
|
|
|
|
*"WT1520 (8M)")
|
|
|
|
name="wt1520-8M"
|
2014-02-18 13:33:25 +00:00
|
|
|
;;
|
2016-12-23 08:46:48 +00:00
|
|
|
*"WT3020 (4M)")
|
|
|
|
name="wt3020-4M"
|
|
|
|
;;
|
|
|
|
*"WT3020 (8M)")
|
|
|
|
name="wt3020-8M"
|
2014-07-10 22:02:28 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"WZR-AGL300NH")
|
|
|
|
name="wzr-agl300nh"
|
2015-07-14 07:40:22 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"X5")
|
|
|
|
name="x5"
|
2014-07-12 06:54:03 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"X8")
|
|
|
|
name="x8"
|
2015-04-01 08:31:46 +00:00
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"Y1")
|
2014-08-03 11:13:52 +00:00
|
|
|
name="y1"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"Y1S")
|
2014-08-03 11:13:52 +00:00
|
|
|
name="y1s"
|
|
|
|
;;
|
2016-06-23 08:58:08 +00:00
|
|
|
*"ZBT-APE522II")
|
|
|
|
name="zbt-ape522ii"
|
|
|
|
;;
|
2016-09-25 19:09:31 +00:00
|
|
|
*"ZBT-CPE102")
|
|
|
|
name="zbt-cpe102"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"ZBT-WA05")
|
|
|
|
name="zbt-wa05"
|
2015-07-24 09:11:56 +00:00
|
|
|
;;
|
2017-04-20 03:07:26 +00:00
|
|
|
*"ZBT-WE1326")
|
|
|
|
name="zbt-we1326"
|
|
|
|
;;
|
2017-03-15 08:37:05 +00:00
|
|
|
*"ZBT-WE2026")
|
|
|
|
name="zbt-we2026"
|
|
|
|
;;
|
2017-04-12 05:53:56 +00:00
|
|
|
*"ZBT-WE826 (16M)")
|
|
|
|
name="zbt-we826-16M"
|
|
|
|
;;
|
|
|
|
*"ZBT-WE826 (32M)")
|
|
|
|
name="zbt-we826-32M"
|
2016-03-01 09:17:06 +00:00
|
|
|
;;
|
2015-11-02 10:18:19 +00:00
|
|
|
*"ZBT-WG2626")
|
|
|
|
name="zbt-wg2626"
|
|
|
|
;;
|
2017-04-07 21:52:27 +00:00
|
|
|
*"ZBT-WG3526 (16M)")
|
|
|
|
name="zbt-wg3526-16M"
|
2016-04-21 19:47:08 +00:00
|
|
|
;;
|
2017-04-01 08:46:44 +00:00
|
|
|
*"ZBT-WG3526 (32M)")
|
|
|
|
name="zbt-wg3526-32M"
|
|
|
|
;;
|
2015-08-17 06:01:44 +00:00
|
|
|
*"ZBT-WR8305RT")
|
|
|
|
name="zbt-wr8305rt"
|
2015-07-17 12:51:08 +00:00
|
|
|
;;
|
2017-04-27 18:02:05 +00:00
|
|
|
*"ZyXEL Keenetic")
|
|
|
|
name="kn"
|
|
|
|
;;
|
2016-11-28 18:41:51 +00:00
|
|
|
*"ZyXEL Keenetic Omni")
|
|
|
|
name="kn_rc"
|
|
|
|
;;
|
|
|
|
*"ZyXEL Keenetic Omni II")
|
|
|
|
name="kn_rf"
|
|
|
|
;;
|
2016-10-29 12:26:58 +00:00
|
|
|
*"ZyXEL Keenetic Viva")
|
|
|
|
name="kng_rc"
|
|
|
|
;;
|
2015-11-24 18:29:02 +00:00
|
|
|
*"YK1")
|
|
|
|
name="youku-yk1"
|
|
|
|
;;
|
2010-04-11 17:47:23 +00:00
|
|
|
*)
|
|
|
|
name="generic"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2013-03-03 12:47:02 +00:00
|
|
|
[ -z "$RAMIPS_BOARD_NAME" ] && RAMIPS_BOARD_NAME="$name"
|
|
|
|
[ -z "$RAMIPS_MODEL" ] && RAMIPS_MODEL="$machine"
|
|
|
|
|
|
|
|
[ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
|
|
|
|
|
|
|
|
echo "$RAMIPS_BOARD_NAME" > /tmp/sysinfo/board_name
|
|
|
|
echo "$RAMIPS_MODEL" > /tmp/sysinfo/model
|
|
|
|
}
|