You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Adrian Schmutzler b3514e3569 ar71xx: improve support for TP-Link CPE510 v2
This fixes commit bae927c551 ("ar71xx: add support for TP-LINK CPE510
V2.0") where the support for this device wasn't optimal.

Device support for the CPE510v2 so far has been a hack to enable
flashing with CPE510v1 images. Those even have different hardware (e.g.
additional ethernet port).

With this patch, we provide proper support for this device in ar71xx.

Installation:
- Flash factory image through stock firmware WEB UI or through TFTP
- To get to TFTP recovery just hold reset button while powering on
  for around 4-5 seconds and release.
- Rename factory image to recovery.bin
- Stock TFTP server IP: 192.168.0.100
- Stock device TFTP address: 192.168.0.254

Fixes: bae927c551 ("ar71xx: add support for TP-LINK CPE510 V2.0")
Signed-off-by: Andrew Cameron <apcameron@softhome.net>
[Rebased onto revert commit, changed comments in mach-cpe510.c,
changed commit title and description, fixed eth0 MAC address,
removed eth1 initialization]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
[squashed revert, added fixes tag]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit c79b796280)
[added CPE510V2 entry to tplink-safeloader.c]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years ago
..
Kconfig.openwrt ar71xx: Add support for Mikrotik RB SXT 2nD r3 5 years ago
Makefile ar71xx: add support for Gainstrong MiniBox V3.2 6 years ago
dev-ap9x-pci.c ar71xx: add correct named default wireless led by using platform leds 7 years ago
dev-ap9x-pci.h ar71xx: add correct named default wireless led by using platform leds 7 years ago
dev-dsa.c ar71xx: remove obsolete '< KERNEL_VERSION(3, 15, 0)' checks 6 years ago
dev-dsa.h ar71xx: merge files-3.2 to files 12 years ago
dev-eth.c ar71xx: fix incorrect speed setting on QCA9556 6 years ago
dev-eth.h ar71xx: add support for Fritz!Box 4020 6 years ago
dev-m25p80.c ar71xx: clean up spi controller related patches 8 years ago
dev-m25p80.h ar71xx: clean up spi controller related patches 8 years ago
dev-nfc.c ar71xx: ar934x_nfc: fix memory initialization bug 10 years ago
dev-nfc.h ar71xx: add ath79_nfc_set_ecc_mode helper 11 years ago
mach-a60.c ar71xx: add v4.14 support 6 years ago
mach-alfa-ap96.c ar71xx: clean up spi controller related patches 8 years ago
mach-alfa-ap120c.c ar71xx: add v4.14 support 6 years ago
mach-alfa-nx.c ar71xx: remove the built-in MTD maps of several boards 12 years ago
mach-all0258n.c ar71xx: remove the built-in MTD map of the ALL0258N 12 years ago
mach-all0315n.c ar71xx: all0315n: fix ethernet according to vendor info 12 years ago
mach-antminer-s1.c ar71xx: Bitmain Antminer S1/S3 set GPIO for USB Power 9 years ago
mach-antminer-s3.c ar71xx: Bitmain Antminer S1/S3 set GPIO for USB Power 9 years ago
mach-antrouter-r1.c V2 ar71xx : Add Support for the Bitmain Antrouter R1 8 years ago
mach-ap90q.c ar71xx: YunCore AP90Q image supports also AP80Q 6 years ago
mach-ap91-5g.c ar71xx: add support for ALFA Network AP91-5G 6 years ago
mach-ap96.c ar71xx: remove the built-in MTD map of the AP96 board 12 years ago
mach-ap121f.c ar71xx: add support for ALFA Network AP121F 7 years ago
mach-ap132.c ar71xx: add v4.14 support 6 years ago
mach-ap143.c ar71xx: add support for ap143 9 years ago
mach-ap147.c ar71xx: Add support for AP147-010 reference board 9 years ago
mach-ap152.c ar71xx: add v4.14 support 6 years ago
mach-ap531b0.c ar71xx: add support for Rockeetech AP531B0 7 years ago
mach-archer-c7-v4.c ar71xx: add v4.14 support 6 years ago
mach-archer-c7-v5.c ar71xx: add v4.14 support 6 years ago
mach-archer-c7.c ar71xx: Archer C7 v1 LED names and RFKILL fixes 5 years ago
mach-archer-c25-v1.c ar71xx: fix secondary gpio controller base values 7 years ago
mach-archer-c59-v1.c ar71xx: add support for TP-Link Archer C59 v2 6 years ago
mach-archer-c60-v1.c ar71xx: add support for TP-Link Archer C60 v2 6 years ago
mach-arduino-yun.c ar71xx: fix Arduino Yun enabling of level shifters outputs 5 years ago
mach-aw-nr580.c ar71xx: merge files-3.2 to files 12 years ago
mach-bhr-4grv2.c ar71xx: add v4.14 support 6 years ago
mach-bhu-bxu2000n2-a.c ar71xx: add kernel support for BHU Networks BXU2000n-2 A1 board 11 years ago
mach-bsb.c ar71xx: Add support for Black Swift 9 years ago
mach-c55.c ar71xx: clean up spi controller related patches 8 years ago
mach-c60.c ar71xx: add missing include for checking kernel version 6 years ago
mach-cap324.c ar71xx: cap324: Use correct company name 6 years ago
mach-cap4200ag.c ar71xx: add support for the Senao CAP4200AG board 12 years ago
mach-carambola2.c ar71xx: update Carambola2 platform data 10 years ago
mach-cf-e316n-v2.c ar71xx: add v4.14 support 6 years ago
mach-cpe510.c ar71xx: improve support for TP-Link CPE510 v2 5 years ago
mach-cpe870.c ar71xx: add support for YunCore CPE870 8 years ago
mach-cr3000.c ar71xx: cr3000: cleanup board definition 6 years ago
mach-cr5000.c ar71xx: Fix PowerCloud CR5000 5GHz wifi mac 5 years ago
mach-dap-1330-a1.c ar71xx: Add support for D-Link DAP-1330 a1 6 years ago
mach-dap-2695-a1.c ar71xx: add v4.14 support 6 years ago
mach-dgl-5500-a1.c ar71xx: add v4.14 support 6 years ago
mach-dhp-1565-a1.c ar71xx: add v4.14 support 6 years ago
mach-dir-505-a1.c ar71xx: dir-505: fix reset button gpio active_low value 9 years ago
mach-dir-600-a1.c ar71xx: Add support for D-Link EBR-2310 Rev. C 7 years ago
mach-dir-615-c1.c ar71xx: fix D-Link DIR-615 rev. C1 WLAN MAC address 9 years ago
mach-dir-615-i1.c ar71xx: add support for D-Link DIR-615 rev. Ix board 9 years ago
mach-dir-825-b1.c ar71xx: dir-825-b1: use ath79_parse_ascii_mac helper 11 years ago
mach-dir-825-c1.c ar71xx: add v4.14 support 6 years ago
mach-dir-869-a1.c ar71xx: add v4.14 support 6 years ago
mach-dlan-hotspot.c ar71xx: add support for the devolo dLAN Hotspot 9 years ago
mach-dlan-pro-500-wp.c ar71xx: add v4.14 support 6 years ago
mach-dlan-pro-1200-ac.c ar71xx: add v4.14 support 6 years ago
mach-domywifi-dw33d.c ar71xx: add missing include for checking kernel version 6 years ago
mach-dr344.c ar71xx: add v4.14 support 6 years ago
mach-dr531.c ar71xx: add support for Wallys DR531 8 years ago
mach-dragino2.c ar71xx: Fix LED definitions for the DRAGINO2 board 10 years ago
mach-e558-v2.c ar71xx: add v4.14 support 6 years ago
mach-e600g-v2.c ar71xx: change brand name WHQX to Qxwlan 6 years ago
mach-e750a-v4.c ar71xx:add support for E750A v4 6 years ago
mach-e750g-v8.c ar71xx: add v4.14 support 6 years ago
mach-e1700ac-v2.c ar71xx: add v4.14 support 6 years ago
mach-e2100l.c ar71xx: Added missing support for Linksys E2100L 8 years ago
mach-eap120.c ar71xx: Add support to TP-Link EAP120 8 years ago
mach-eap300v2.c ar71xx: add kernel support for the EnGenius EAP300 v2 board 10 years ago
mach-eap7660d.c ar71xx: add ALL0305 board alias 12 years ago
mach-el-m150.c ar71xx: Fix the sys LEDs on the EasyLink M150 and mini 10 years ago
mach-el-mini.c ar71xx: Fix the sys LEDs on the EasyLink M150 and mini 10 years ago
mach-ens202ext.c ar71xx: add support for EnGenius ENS202EXT 7 years ago
mach-epg5000.c ar71xx: add v4.14 support 6 years ago
mach-esr900.c ar71xx: add v4.14 support 6 years ago
mach-esr1750.c ar71xx: add v4.14 support 6 years ago
mach-ew-balin.c ar71xx: add ew-balin platform from Embedded Wireless 6 years ago
mach-ew-dorin.c ar71xx: update LED definitions for embedded wireless dorin 7 years ago
mach-f9k1115v2.c ar71xx: add v4.14 support 6 years ago
mach-fritz300e.c ar71xx: add AVM FRITZ!WLAN Repeater 300E support 7 years ago
mach-fritz450e.c ar71xx: add v4.14 support 6 years ago
mach-fritz4020.c ar71xx: flag FritzBox 4020 buttons as active low 6 years ago
mach-gl-ar150.c ar71xx: include vendor name for GL iNet products 6 years ago
mach-gl-ar300.c ar71xx: include vendor name for GL iNet products 6 years ago
mach-gl-ar300m.c ar71xx: GL.iNet AR300M family: correct LED definitions 5 years ago
mach-gl-ar750.c ar71xx: add support for GL.iNet GL-AR750 6 years ago
mach-gl-ar750s.c ar71xx: add v4.14 support 6 years ago
mach-gl-domino.c ar71xx: fix LED names for GL Innovations boards 8 years ago
mach-gl-inet.c ar71xx: fix LED names for GL Innovations boards 8 years ago
mach-gl-mifi.c ar71xx: Fix typo in wan LED color of gl-mifi 6 years ago
mach-gl-usb150.c ar71xx: add support for GL.iNet GL-USB150 7 years ago
mach-gs-minibox-v32.c ar71xx: add support for Gainstrong MiniBox V3.2 6 years ago
mach-gs-oolite-v1.c ar71xx: rework GainStrong devices support 6 years ago
mach-gs-oolite-v5-2.c ar71xx: add support for GainStrong Oolite V5.2 6 years ago
mach-hiveap-121.c ar71xx: fix HiveAP 121 PLL for 1000M 5 years ago
mach-hiwifi-hc6361.c ar71xx: add kernel support for HiWiFi HC6361. 10 years ago
mach-hornet-ub.c Fix (invert/revert) Hornet-UB WPS LED state 9 years ago
mach-ja76pf.c ar71xx: add support for the jjPlus JA76PF2 board 12 years ago
mach-jwap003.c ar71xx: merge files-3.2 to files 12 years ago
mach-jwap230.c ar71xx: add v4.14 support 6 years ago
mach-koala.c ar71xx: add v4.14 support 6 years ago
mach-lan-turtle.c ar71xx: add support for AR9331 based Hak5 devices 6 years ago
mach-lima.c ar71xx: Fix offset to WMAC address for 8devices Lima 6 years ago
mach-mc-mac1200r.c ar71xx: Add support for MERCURY MAC1200R 9 years ago
mach-mr12.c ar71xx: add mac partition to the MR12/MR16 8 years ago
mach-mr16.c ar71xx: add mac partition to the MR12/MR16 8 years ago
mach-mr18.c ar71xx: add more registers to ar71x_regs.h 6 years ago
mach-mr600.c ar71xx: Fix 2.4G WiFi LED of the OpenMesh MR600 board 10 years ago
mach-mr900.c ar71xx: add v4.14 support 6 years ago
mach-mr1750.c ar71xx: add v4.14 support 6 years ago
mach-mynet-n600.c ar71xx: my net n600: simplify LNA GPIO setup 10 years ago
mach-mynet-n750.c ar71xx: add v4.14 support 6 years ago
mach-mynet-rext.c ar71xx: add v4.14 support 6 years ago
mach-mzk-w04nu.c ar71xx: merge files-3.2 to files 12 years ago
mach-mzk-w300nh.c ar71xx: merge files-3.2 to files 12 years ago
mach-n5q.c ar71xx: add support for ALFA Network N5Q 6 years ago
mach-nbg460n.c ar71xx: remove __dev{init,exit} annotations from kernel files 11 years ago
mach-nbg6716.c ar71xx: add missing include for checking kernel version 6 years ago
mach-om2p.c ar71xx: add kernel support for the OpenMesh OM2Pv4/-HSv4 7 years ago
mach-om5p.c ar71xx: add v4.14 support 6 years ago
mach-om5pac.c ar71xx: add v4.14 support 6 years ago
mach-om5pacv2.c ar71xx: add v4.14 support 6 years ago
mach-omy-g1.c ar71xx: Add support for the OMYlink OMY-G1 8 years ago
mach-omy-x1.c ar71xx: Add support for the OMYlink OMY-X1 8 years ago
mach-onion-omega.c ar71xx: add support for Onion Omega 9 years ago
mach-pb42.c ar71xx: merge files-3.2 to files 12 years ago
mach-pqi-air-pen.c ar71xx: add support for PQI Air Pen 7 years ago
mach-qihoo-c301.c ar71xx: qihoo: define flash variable as static 9 years ago
mach-r36a.c ar71xx: add support for ALFA Network R36A 6 years ago
mach-r602n.c ar71xx: add support for P&W R602N and CPE505N 7 years ago
mach-r6100.c Netgear R6100 support 10 years ago
mach-rambutan.c ar71xx: enable QCA955x SGMII fixup on Rambutan 5 years ago
mach-rb4xx.c ar71xx: fix ath79/rb4xx IRQ initialization on kernel 4.14 5 years ago
mach-rb91x.c ar71xx: fix RouterBOARD Power LED default state 6 years ago
mach-rb95x.c ar71xx: add missing include for checking kernel version 6 years ago
mach-rb750.c ar71xx: add v4.14 support 6 years ago
mach-rb922.c ar71xx: add support for MikroTik RouterBOARD 922UAGS-5HPacD 5 years ago
mach-rb2011.c ar71xx: fix nand init issues on some rb2011 devices 5 years ago
mach-rbspi.c ar71xx: enable SGMII fixup on Mikrotik wAP AC 5 years ago
mach-rbsxtlite.c ar71xx: fix RouterBOARD Power LED default state 6 years ago
mach-re450.c ar71xx: add support for TP-Link RE355 6 years ago
mach-rme-eg200.c ar71xx: Add eTactica EG-200 support 6 years ago
mach-rut9xx.c ar71xx: add support for Teltonika RUT900 6 years ago
mach-rw2458n.c ar71xx: rw2458n - Use eeprom (art) from wifi card 11 years ago
mach-sc300m.c ar71xx: add v4.14 support 6 years ago
mach-sc450.c ar71xx: add v4.14 support 6 years ago
mach-sc1750.c ar71xx: add v4.14 support 6 years ago
mach-smart-300.c add support for the NC-LINK SMART-300 10 years ago
mach-som9331.c ar71xx: add support for OpenEmbed SOM9331 8 years ago
mach-sr3200.c ar71xx: add v4.14 support 6 years ago
mach-t830.c ar71xx: add support for YunCore T830 6 years ago
mach-tellstick-znet-lite.c ar71xx: add support for the Telldus TellStick ZNet Lite 8 years ago
mach-tew-632brp.c ar71xx: TEW632BRP has buttons 'active low', fix board config 11 years ago
mach-tew-673gru.c ar71xx: tew-673gru: use ath79_parse_ascii_mac helper 11 years ago
mach-tew-712br.c ar71xx: tew-712br: use ath79_parse_ascii_mac helper 11 years ago
mach-tew-732br.c ar71xx: add kernel support for the TEW-732BR board 11 years ago
mach-tew-823dru.c ar71xx: add v4.14 support 6 years ago
mach-tl-mr3x20.c ar71xx: use gpio_request_one instead of ath79_set_usb_power_gpio 12 years ago
mach-tl-mr11u.c ar71xx: improve kernel support for the TL-MR3040 v2 11 years ago
mach-tl-mr13u.c ar71xx: Fix LED polarity for the TP-LINK TL-MR13U. 9 years ago
mach-tl-mr3020.c ar71xx: disable PHY_SWAP and PHY_ADDR_SWAP bits on TL-WR703N/MR3020/MR3040/MR11U boards 12 years ago
mach-tl-mr6400.c ar71xx: Add support for TP-Link MR6400 7 years ago
mach-tl-wa701nd-v2.c ar71xx: add support for TL-WA701ND v2 9 years ago
mach-tl-wa801nd-v3.c Add support for TL-WA801ND v4 6 years ago
mach-tl-wa830re-v2.c ar71xx: added support for TL-WA830RE V2 10 years ago
mach-tl-wa901nd-v2.c ar71xx: merge files-3.2 to files 12 years ago
mach-tl-wa901nd-v4.c ar71xx: add support for TP-Link TL-WA901ND v5 7 years ago
mach-tl-wa901nd.c ar71xx: fix tl-wa901nd buttons code 11 years ago
mach-tl-wa7210n-v2.c ar71xx: TL-WA7210n v2 support 9 years ago
mach-tl-wax50re.c ar71xx: add support for TP-Link TL-WA855RE v1 7 years ago
mach-tl-wdr3320-v2.c ar71xx: add TP-LINK TL-WDR3320 v2 support 9 years ago
mach-tl-wdr3500.c ar71xx: fix ethernet LEDs on the TL-WDR3500 11 years ago
mach-tl-wdr4300.c ar71xx: add v4.14 support 6 years ago
mach-tl-wdr6500-v2.c ar71xx: register only the built-in switch MDIO bus, hook up eth0 to it, should hopefully fix regression reported in #21520 8 years ago
mach-tl-wpa8630.c ar71xx: add v4.14 support 6 years ago
mach-tl-wr703n.c ar71xx: fix typo in tl-wr710n mac setup (fixes #16469) 10 years ago
mach-tl-wr720n-v3.c ar71xx: add support for TL-WR720N-v4. 9 years ago
mach-tl-wr741nd-v4.c ar71xx: add support for WIFI button on tp-link tl-mr3220v2 11 years ago
mach-tl-wr741nd.c ar71xx: merge files-3.2 to files 12 years ago
mach-tl-wr802n.c ar71xx: merge mach-files for TP-Link TL-WR802N v1 and v2 7 years ago
mach-tl-wr810n.c ar71xx: add support for TP-Link TL-WR810N v2 7 years ago
mach-tl-wr841n-v8.c ar71xx: add support for the TP-LINK TL-WR941ND v5 9 years ago
mach-tl-wr841n-v9.c ar71xx: fix LED defines for TP-Link TL-WR740N v6 7 years ago
mach-tl-wr841n.c ar71xx: merge files-3.2 to files 12 years ago
mach-tl-wr902ac-v1.c ar71xx: support LED in TP-Link TL-WR902AC RJ45 socket 7 years ago
mach-tl-wr940n-v4.c ar71xx: wr940 v4/v6: correct lan interface mac address 5 years ago
mach-tl-wr941nd-v6.c ar71xx: add support for TP-LINK TL-WR941ND v6 (international version) 9 years ago
mach-tl-wr941nd.c ar71xx: merge files-3.2 to files 12 years ago
mach-tl-wr942n-v1.c ar71xx: fix secondary gpio controller base values 7 years ago
mach-tl-wr1041n-v2.c ar71xx: add v4.14 support 6 years ago
mach-tl-wr1043nd-v2.c ar71xx: add v4.14 support 6 years ago
mach-tl-wr1043nd-v4.c ar71xx: add v4.14 support 6 years ago
mach-tl-wr1043nd.c kernel: add reset control support to rtl8366 driver 6 years ago
mach-tl-wr2543n.c ar71xx: fix ath9k default LED changes fallout 7 years ago
mach-ts-d084.c ar71xx: Add support for PISEN TS-D084 6 years ago
mach-tube2h.c ar71xx: fix and improve ALFA Network Tube2H support 6 years ago
mach-ubnt-unifiac.c ar71xx: add support for UniFi-AC-Mesh-Pro 6 years ago
mach-ubnt-xm.c ar71xx: Add support for Ubiquity Bullet M (XW) 5 years ago
mach-ubnt.c ar71xx: merge files-3.2 to files 12 years ago
mach-wam250.c ar71xx: add support for Samsung WAM250 6 years ago
mach-weio.c ar71xx: Add WeIO Board Support 9 years ago
mach-whr-hp-g300n.c ar71xx: remove the built-in MTD maps of several boards 12 years ago
mach-wi2a-ac200i.c ar71xx: add support for Nokia WI2A-AC200i 7 years ago
mach-wifi-pineapple-nano.c ar71xx: add support for AR9331 based Hak5 devices 6 years ago
mach-wlae-ag300n.c ar71xx: Buffalo WLAE-AG300N initial support 12 years ago
mach-wlr8100.c ar71xx: add v4.14 support 6 years ago
mach-wndap360.c ar71xx: fix machine name for several devices 7 years ago
mach-wndr3700.c ar71xx: WNDR3700: enable RFKILL function for Wifi button 6 years ago
mach-wndr4300.c ar71xx: add missing include for checking kernel version 6 years ago
mach-wnr2000-v3.c ar71xx: WNR612v2: fix kernel panic due to wrong Wifi LED init 6 years ago
mach-wnr2000-v4.c ar71xx: do general formatting on wnr2000-v4 9 years ago
mach-wnr2000.c ar71xx: Add support for Netgear WNR2000v1 8 years ago
mach-wnr2200.c ar71xx: WNR2200: remove redundant GPIO for WLAN LED 5 years ago
mach-wp543.c ar71xx: wp543: set active_low flag for the buttons 10 years ago
mach-wpe72.c ar71xx: compex wpe72 add space to include statement 9 years ago
mach-wpj342.c ar71xx: add v4.14 support 6 years ago
mach-wpj344.c ar71xx: add v4.14 support 6 years ago
mach-wpj531.c ar71xx: wpj531: fix GPIOs for LED 7 years ago
mach-wpj558.c ar71xx: add v4.14 support 6 years ago
mach-wpj563.c ar71xx: add v4.14 support 6 years ago
mach-wrt160nl.c ar71xx: rename wrt160nl's trx partition parser 9 years ago
mach-wrt400n.c Revert "ar71xx: wrt400n: lift size limit on kernel and rootfs part" 7 years ago
mach-wrtnode2q.c ar71xx: add WRTnode2Q support 8 years ago
mach-wzr-450hp2.c ar71xx: add v4.14 support 6 years ago
mach-wzr-hp-ag300h.c ar71xx: wzr-hp-ag300h: drop unused wmac led_pin settings 7 years ago
mach-wzr-hp-g300nh.c ar71xx: use uimage split for WZR-HP-G300NH 11 years ago
mach-wzr-hp-g300nh2.c ar71xx: fix ath9k default LED changes fallout 7 years ago
mach-wzr-hp-g450h.c ar71xx: fix ath9k default LED changes fallout 7 years ago
mach-z1.c ar71xx: add v4.14 support 6 years ago
mach-zbt-we1526.c ar71xx: add support for Zbtlink ZBT-WE1526 8 years ago
mach-zcn-1523h.c ar71xx: don't use the unknown LED on the ZCN-1523-5 board 12 years ago
machtypes.h ar71xx: improve support for TP-Link CPE510 v2 5 years ago
nvram.c ar71xx: add support for TP-Link TL-WR942N v1 7 years ago
nvram.h ar71xx: merge files-3.2 to files 12 years ago
pci-ath9k-fixup.c ar71xx: allow pci calibration fixup to work with ar9344 9 years ago
pci-ath9k-fixup.h ar71xx: merge files-3.2 to files 12 years ago
routerboot.c ar71xx: routerboot: export extended wlan data via sysfs 9 years ago
routerboot.h ar71xx: add definitions for RouterBOARD hardware option bits 6 years ago