Commit Graph

2599 Commits (b1aea59f082fc30216e545160274534cd1545c73)

Author SHA1 Message Date
Felix Fietkau b1aea59f08 ar71xx: add support for Green WAN LED on wnr2000-v4
Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45638
9 years ago
Felix Fietkau aa970f13a3 ar71xx: add support for green LAN LEDS for wnr2000-v4
Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45637
9 years ago
Felix Fietkau 17c78d12bd ar71xx: fix amber WAN LED setting for wnr2000-v4
Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45636
9 years ago
Felix Fietkau 5e1e04e505 ar71xx: make WLAN button RFKILL on wnr2000-v4
Users will now be provided with the inherent wifi toggle functionality
of /etc/rc.button/rfkill

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45635
9 years ago
Felix Fietkau b1380ebae3 ar71xx: set all buttons to be active_low on wnr2000-v4
Originally pressing a button would trigger a release state and vice-versa,
as observed from hotplug.d.

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45634
9 years ago
Felix Fietkau 6413f40e96 ar71xx: fix ethernet on wnr2000-v4
Most people report broken ethernet with upstream. Last year, user "franz.flasch"
authored a working mach-file. His patch is outdated so I modernized it. Original
patch and user commentary on page 1:
https://forum.openwrt.org/viewtopic.php?pid=260861#p260861

I have figured out what the critical differences are between the two that caused
upstream ethernet to break.
  1) Both ath79_init_mac() functions calls must be invocated before any GMAC init
  2) must init GMAC0 before GMAC1

That was enough to get upstream to function, but I wanted to enjoy my confidence
having tested franz's patch for a week sucessfully, so I put his whole
function in, which only features more differences in order of function calls.

An expert should consider these changes, which could pose potential bugs/issues:
1) No longer using the flag AR934X_ETH_CFG_SW_PHY_SWAP in the
ath79_setup_ar934x_eth_cfg() call.

2) Possible consequence of no longer explicitly setting ethernet duplex/speed.

Review: With this patch, my ethernet and wireless works.

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45633
9 years ago
Felix Fietkau 5c5648f4b7 ar71xx: track the correct WAN interface on wnr2000-v4
Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45632
9 years ago
Felix Fietkau 6b6cc03cff ar71xx: fix LAN portmasks on wnr2000-v4
Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45631
9 years ago
Felix Fietkau a51f5cace4 ar71xx: use a common naming scheme for LEDS on wnr2000-v4
It is common that the router provider be used rather than product name.
One can see this in target/linux/ar71xx/base-files/etc/uci-defaults/01_leds

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45630
9 years ago
Luka Perkov 4a3850b397 ar71xx: make art partition read only on 16MB ew-dorin board
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 45627
9 years ago
Felix Fietkau 4babe9dc6d ar71xx: fix 82_patch_ath10k
It has been broken since the new ath10k firmware introduced in r44656.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

SVN-Revision: 45624
9 years ago
Luka Perkov 8084b056e2 ar71xx: fix leds and gpio on wpj344
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 45589
9 years ago
Luka Perkov cd419afd2c ar71xx: fix sysupgrade for compex-wpj344
Moved board to the right magic case.

Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 45588
9 years ago
John Crispin a34db67857 Add support for Ubiquiti Rocket M XW devices
This patch adds support for the XW version of the Rocket M series devices
manufactured by Ubiquiti, based on the Atheros AR9342 SoC.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>

SVN-Revision: 45553
9 years ago
John Crispin 8a777768a8 ar71xx: spi cleanup for ap121, db120, ubnt-xm and ap136
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 45552
9 years ago
John Crispin 1200296d38 ar71xx: merge ap81 patches into one
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 45551
9 years ago
John Crispin 34a82b7ef9 ar71xx: add TP-LINK TL-WR710N v2
TP-Link TL-WR710n v2 looks like v1, but has less memory (4MB).

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 45538
9 years ago
Luka Perkov 48d81861a6 ar71xx: refresh patches
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 45528
9 years ago
Luka Perkov 9d76de9771 ar71xx: add support for compex wpj344
Signed-off-by: Christian Mehlis <christian@m3hlis.de>
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 45527
9 years ago
Felix Fietkau 0a4b20166d ar71xx: Increase RXD/RDV to 2 on OM5P-AN
It was reported that OM5P-AN needs not only a delay setting of 1 for RXD/RDV
but 2. These was found when testing with a NetGear GS752TP POE switch with a
cable length of 50ft and 250ft.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 45524
9 years ago
Felix Fietkau f4e6418a32 ar71xx: add a helper function to set RXDV/RXD of ETH_CFG on AR934x
The ETH_RXDV_DELAY (17:16) and ETH_RXD_DELAY (15:14) are currently not cleared
by the function ath79_setup_ar934x_eth_cfg. Clearing these in the
ath79_setup_ar934x_eth_cfg may cause problems on some hardware because they
rely on the preset value by the bootloader.

Instead another function is introduced which also works on ETH_CFG on AR934x.
It can be used to safely clear and set ETH_RXDV_DELAY and ETH_RXD_DELAY on
machines which require special settings.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 45523
9 years ago
Felix Fietkau c75a0e86b1 ar71xx: add mask and shift for RXD/RDV bits in AR934X register file
The commit r38948 ("ag71xx: add F1E specific feature bit definitions to AR934X
register file") introduced definitions for some bits in the RDV/RXD part of the
ETH_CFG register of AR934x. These are incomplete because ETH_RXDV_DELAY is
specified as 17:16 and ETH_RXD_DELAY is specified 15:14. The original commit
only specified the lower bits. The upper bits also have to be unset when the
lower bits should only be set.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 45522
9 years ago
Felix Fietkau 5c6925a23b ar71xx: Remove TX/RX delay from pll_1000 for OM5P-AN
The tx/rx delay bits in the ETH_XMII_CONTROL register have to be unset when the
enable_rgmii_rx_delay/enable_rgmii_tx_delay will be set in the AT803x PHY.
Othwise the throughput in gigabit mode is heavily reduced.

Signed-off-by: Sven Eckelmann <sven@open-mesh.org>

SVN-Revision: 45521
9 years ago
Felix Fietkau 610ce30c3a Revert "ar71xx/image: move TPLINK-LZMA image to new build code" (r45490)
Profile definitions need to be checked and fixed before this patch can
be applied again.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45511
9 years ago
John Crispin d9ebcce56c ar71xx/image: remove duplicated rootfs in new tplink initramfs images
The new building code included the rootfs twice when building tplink initramfs images.
To make it more readable move initramfs into an own build step
Build/mktplinkfw-initramfs.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45491
9 years ago
John Crispin 09c4b0e8f3 ar71xx/image: move TPLINK-LZMA image to new build code
There are 2 images missing: TLWR2543 TLWR1043V2 which have special properties

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45490
9 years ago
John Crispin 13204f6a35 ar71xx/image: add template tplink-16mlzma
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45489
9 years ago
John Crispin 1efdccc055 ar71xx/image: fix imagesize of template tplink-8mlzma
The new image size is verified by a running tplink device and checked
against mktplinkfw source code.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45488
9 years ago
John Crispin 911cf6da60 ar71xx: Enable AT803X_PHY to set special flags
Open-Mesh OM5P-AN use a AT8035 (F1E) behind one of the ethernet ports. This PHY
requires special flags to work correctly. Otherwise massive packet loss happens
with active POE or when switching the link speed from gigabit ethernet to fast
ethernet. The generic PHY doesn't have support to change these settings.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 45439
9 years ago
John Crispin efbdc168ff ar71xx: fix ethernet packet loss issues on OM5P-AN
The OM5P-AN boards are suffering from ethernet packet loss when booting with
some active POE setups or when switching to Fast Ethernet when previously
booted with Gigabit ethernet attached.

The cause of the problem is that the AR8035 PHYs requires special register
settings to work reliably on these boards. Enable the RGMII TX, RX delays and
disable SmartEE functionality of the AR8035 PHYs. Also enable the RXD and RDV
delay in the ETH_CFG register to fix the issue.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 45438
9 years ago
John Crispin 8f92e94a74 ar71xx: enable LEDs on Hornet-UB X2
None of the LEDs are enabled by default on the Hornet-UB X2 board
(the 16/64MB version of the Hornet-UB), because it uses a different
board-name ("hornet-ub-x2"); but hornet-ub and hornet-ub-x2 boards
are equivalent WRT their LEDs.

SIgned-off-by: Joshua Judson Rosen <jrosen@harvestai.com>

SVN-Revision: 45328
9 years ago
Gabor Juhos 1630498e4c kernel: remove ATHEROS_AR{231X,71XX} config symbols from the patches
Those don't exist anymore.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45314
9 years ago
Gabor Juhos 0bd06aca20 ar71xx: add user-space support for RB911G-5HPacD
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45300
9 years ago
Gabor Juhos d0a6b278db ar71xx: add initial support for RB911G-5HPacD
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45299
9 years ago
Gabor Juhos 96b006eb32 ar71xx: routerboot: export extended wlan data via sysfs
Export the data to make it accessible from user-space.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45298
9 years ago
Gabor Juhos 76b5a9aa7d ar71xx: routerboot: add support for extended radio data
On newer Mikrotik boards, the radio calibration data
is stored differently and uses LZO compression instead
of RLE.

Update the RouterBOOT helper code to support the new
format.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45297
9 years ago
Gabor Juhos f0cbd004ee ar71xx: select RLE_DECOMPRESS directly by the RouterBOOT helper code
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45296
9 years ago
Felix Fietkau df7bb89edd ar71xx: fix new mktplinkfw image code - flags for sysupgrade vs factory were swapped (fixes #19400)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45281
9 years ago
Gabor Juhos 36e10677df ar71xx: fix platform device support in the gpio-74x164 driver
Platform device support has been removed from the gpio-74x164
driver in 3.14. Restore that.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45203
9 years ago
Gabor Juhos cc9600a1eb ar71xx/mikrotik: disable atnoher two non MikroTik boards
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45177
9 years ago
Gabor Juhos 04ba95f6d3 ar71xx/mikrotik: disable non MikroTik boards
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45176
9 years ago
Gabor Juhos 26800ef074 ar71xx/mikrotik: use correct symbol to disable overlayfs
The Kconfig symbol has been changed in 3.18.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45175
9 years ago
Gabor Juhos 3129f0c6f2 ar71xx/mikrotik: re-enable 4KiB flash sector erase
The setting has been lost during the transition to 3.18.
The CONFIG_M25PXX_PREFER_SMALL_SECTOR_ERASE option is not
available anymore, so use CONFIG_MTD_SPI_NOR_USE_4K_SECTORS
instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45161
9 years ago
Gabor Juhos 62a8665fea ar71xx: re-enable AR8216_PHY_LEDS
The setting has been lost during the transition to 3.18.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45160
9 years ago
Gabor Juhos 18f6a34113 ar71xx: sync kernel config
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45159
9 years ago
John Crispin 23d37c1208 ar71xx: fix model string detection on NETGEAR WNDR3700/3800/WNDRMAC
There were a few issues with the existing code to detect the model string:
* Always using the string starting with byte 56 would cut off the W of WNDR when
  the ID starts with 29763654+16+64 instead of 29763654+16+128
* The string contained garbage after the zero byte instead of cutting it off
  after the zero (which wasn't always visible using busybox tools, but could
  confuse other scripts)

Tested on a WNDR3700v1 and a WNDR3700v2 using the new 29763654+16+64 ID in the
ART. Furthermore, tested against ART dumps of a WNDR3700v2 using the old
$'\xff...' value and a WNDR3800.

The [ -z "$model" ] check was dropped as there is no way to actually hit this
unless no ART partition is found at all.

The awk command was carefully crafted to work both with gawk and the (horribly
broken) busybox awk.

Fixes #18992.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 45140
9 years ago
Felix Fietkau f76a85515a ar71xx: add missing id for WNR2000v3 image (fixes #18959)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45054
9 years ago
Felix Fietkau c25bf32f8d ar71xx: fix image size checks for WNDR3700
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45030
9 years ago
Felix Fietkau 34b51b6f6f ar71xx/image: move wdr3500/wdr3600/wdr4300 to new building code
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45000
9 years ago
Felix Fietkau 8d2d62ca95 ar71xx/image: add tplink device template for new building code
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 44999
9 years ago