Commit Graph

14121 Commits

Author SHA1 Message Date
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
2015-05-08 12:23:58 +00:00
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
2015-05-08 12:23:53 +00:00
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
2015-05-08 12:23:45 +00:00
Felix Fietkau
5c5648f4b7 ar71xx: track the correct WAN interface on wnr2000-v4
Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45632
2015-05-08 12:23:40 +00:00
Felix Fietkau
6b6cc03cff ar71xx: fix LAN portmasks on wnr2000-v4
Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45631
2015-05-08 12:23:35 +00:00
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
2015-05-08 12:23:27 +00:00
Imre Kaloz
9d3f24465f mvebu: add xhci phy support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 45629
2015-05-08 12:12:20 +00:00
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
2015-05-08 10:45:26 +00:00
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
2015-05-08 10:43:55 +00:00
Felix Fietkau
333579e527 kernel: backport upstream usbnet fix (fixes #19455)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45621
2015-05-06 10:19:22 +00:00
Rafał Miłecki
501da07c5d brcm47xx: fix regression in NVRAM support for WGT634U
We were calculating wrong offset, NVRAM wasn't found and OpenWrt didn't
boot.

Fixes: 9019803 ("brcm47xx: backport BCM47XX arch patches (clean NVRAM code, later init)")
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45618
2015-05-06 05:54:19 +00:00
Imre Kaloz
aea93173d1 generic/4.0: update to 4.0.1
Also refresh one patch.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 45601
2015-05-03 18:04:46 +00:00
Imre Kaloz
3ee45e61fe mpc85xx: replace WDR4900 uci-defaults ethernet MAC address hack with DTS entry
This also changes the MAC address to one of the adresses actually used by the
stock firmware on one of the ethernet interfaces.

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

SVN-Revision: 45599
2015-05-03 18:00:47 +00:00
Imre Kaloz
322d798510 mpc85xx: gianfar: add mtd-mac-address support
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 45598
2015-05-03 17:59:46 +00:00
Imre Kaloz
b9fbf31fe7 mpc85xx: move newly created files from patch files to files directory
This will make these files much more maintainable.

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

SVN-Revision: 45597
2015-05-03 17:58:45 +00:00
Imre Kaloz
f86c07d8d4 The ability to read MAC addresses from MTD is useful for other targets besides ramips and lantiq as well.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 45596
2015-05-03 17:56:32 +00:00
Luka Perkov
8084b056e2 ar71xx: fix leds and gpio on wpj344
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 45589
2015-04-29 20:04:46 +00:00
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
2015-04-29 13:52:34 +00:00
Jonas Gorski
954004eccc kernel: disable INET_LRO by default
INET_LRO deprecated and there are exactly two drivers using it, neither
being included in any of the targets enabling INET_LRO. At the same time
both drivers needing it select it.

So just disable it for everyone.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45584
2015-04-28 13:31:08 +00:00
Jonas Gorski
9feb1361c4 brcm63xx: fix bcm6348 ext irqc compatible name
This was a remnant of an old version.

Reported-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45583
2015-04-27 11:06:05 +00:00
Jonas Gorski
5e7f4ab632 brcm63xx: fix bcm3368.dtsi typo.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45582
2015-04-27 11:06:00 +00:00
Felix Fietkau
d2e02d6377 sdk: filter out CONFIG_SIGNED_PACKAGES for generated config
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45581
2015-04-25 12:39:02 +00:00
Felix Fietkau
51d0476ab0 kernel: implement RENAME_EXCHANGE support for jffs2 - overlayfs requires it
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45580
2015-04-25 10:47:18 +00:00
Rafał Miłecki
33e597b241 bcm53xx: sort ports from NVRAM entries before matching them
Some devices have unsorted ports which may lead to broken config.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45575
2015-04-24 07:47:25 +00:00
Florian Fainelli
00fb1bc098 netlogic: copy initramfs image to $(BIN_DIR)
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 45574
2015-04-23 22:31:36 +00:00
Rafał Miłecki
e175b199f8 kernel: backport rest of bgmac patches to 4.0
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45573
2015-04-23 19:11:11 +00:00
Rafał Miłecki
6bfb1a4b11 kernel: backport few bgmac patches to 4.0
I still need to test following patch before backporting:
bgmac: leave interrupts disabled as long as there is work to do

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45571
2015-04-23 12:30:51 +00:00
Rafał Miłecki
8d1580c4bb brcm47xx: add patches for kernel 4.0
SVN-Revision: 45570
2015-04-23 11:31:54 +00:00
Imre Kaloz
c7d5fee204 generic/4.0: bump to final version
Linux 4.0 was released on 2014-04-12

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 45559
2015-04-22 09:35:36 +00:00
Jonas Gorski
16127b3429 brcm63xx: fix leds bcm963269bhr
Fix the led naming and gpios.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45558
2015-04-21 17:00:39 +00:00
Jonas Gorski
5e8eedb897 brcm63xx: add missing bcm96329bhr profile and dts
Hopefully the last missing board.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45557
2015-04-21 16:43:46 +00:00
John Crispin
03dd7b6bdb ralink: the systick clocksource was calculating a bad bogo mips value
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45554
2015-04-21 12:42:42 +00:00
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
2015-04-21 12:42:13 +00:00
John Crispin
8a777768a8 ar71xx: spi cleanup for ap121, db120, ubnt-xm and ap136
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 45552
2015-04-21 12:42:05 +00:00
John Crispin
1200296d38 ar71xx: merge ap81 patches into one
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 45551
2015-04-21 12:41:55 +00:00
Felix Fietkau
23f9c83594 kernel: backport an upstream PPPoE shutdown fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45548
2015-04-21 11:24:46 +00:00
Rafał Miłecki
866fe3895d bcm53xx: sysupgrade: check if new kernel fits partition size
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45547
2015-04-21 11:21:34 +00:00
Rafał Miłecki
457d9caf4d bcm53xx: sysupgrade: improve NAND warnings
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45546
2015-04-21 11:04:38 +00:00
Rafał Miłecki
5b9d70c888 bcm53xx: image: prepare for generating serial flash images
There are some rare devices without NAND, like Netgear EX6200 or
TP-LINK Archer C8.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45545
2015-04-21 08:42:41 +00:00
Rafał Miłecki
a86e7330dc bcm53xx: sysupgrade: drop some debugging message
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45544
2015-04-21 08:34:25 +00:00
Rafał Miłecki
688c1d74b9 bcm53xx: sysupgrade: allow flashing NAND devices without --force
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45543
2015-04-21 08:32:59 +00:00
Rafał Miłecki
d263c8e1a9 bcm53xx: sysupgrade: support flashing TRX with UBI image
Signed-off-by: Dan Haab <dhaab@luxul.com>

SVN-Revision: 45542
2015-04-21 08:20:06 +00:00
Rafał Miłecki
92875dbd3d bcm53xx: append only 1 block (with erasing mark) to UBI
This is needed as prepare_generic_squashfs generates more data (in our
case 0x40004 B) and it's complex for sysupgrade to extract UBI image out
of TRX.

Signed-off-by: Dan Haab <dhaab@luxul.com>

SVN-Revision: 45541
2015-04-21 08:20:00 +00:00
Rafał Miłecki
ac6879caaa bcm53xx: always use 4 MiB for TRX kernel partition to simplify upgrades
Signed-off-by: Dan Haab <dhaab@luxul.com>

SVN-Revision: 45540
2015-04-21 08:19:53 +00:00
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
2015-04-21 07:15:55 +00:00
John Crispin
0ddebefc74 ipq806x: add db149 support to OpenWrt init scripts
DB149 is a IPQ8064 based platform. This patch adds the init scripts to
detect it, configure the network accordingly, and generate a flashable
image for it.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 45537
2015-04-21 07:15:47 +00:00
John Crispin
0fd202f3e5 ipq806x: add db149 dts files
DB149 is an IPQ806x based development platform. This patch adds the dts
files to support it.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 45536
2015-04-21 07:15:37 +00:00
John Crispin
be5f3b9016 ipq806x: enable AT803x driver
Certain IPQ806x based platforms are making use of this PHY. So we'll
enable it so it gets detected as such.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 45535
2015-04-21 07:15:30 +00:00
John Crispin
ca7fe0d4c6 kernel: fix generic/3.18 wpan symbols
-removed symbol because it should be handled by wpan.mk
-add missing FAKEHARD symbol (this symbol is removed in Kernel 4.0)

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 45530
2015-04-21 06:59:18 +00:00
Luka Perkov
48d81861a6 ar71xx: refresh patches
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 45528
2015-04-20 20:47:53 +00:00