Commit Graph

31500 Commits (69aefc771fd8a7d7450e856a5432fcc15cfc8fc9)
 

Author SHA1 Message Date
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
Imre Kaloz 9d3f24465f mvebu: add xhci phy support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 45629
9 years ago
Imre Kaloz c1a8ff39fc tools: host/include/getline.h: fix FreeBSD 8.0+ support
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 45628
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 bf84a53f9b netifd-dhcp: supply parameters to user-script
hand over parameters to user-script e.g. $1=deconfig

Signed-off-by: Leon George <leon@georgemail.de>
Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 45626
9 years ago
Felix Fietkau 9bb7046a19 trace-cmd: update to 2.4.2
fixes compile error:
(observed w. target arm64, all kernel build opts enabled)
error: call to '__open_missing_mode' declared with attribute
error: open with O_CREAT in second argument needs 3 arguments

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

SVN-Revision: 45625
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
Felix Fietkau af9672cfde ustream-ssl: correct year in PKG_VERSION string
ustream-ssl: correct the year in the PKG_VERSION string, as both r45157 and
r45441 left the old year 2014 there. For a casual user it may seem that the
current code is from April 2014, although
a4ca61527236e89eb9efb782fd9bfd04796144e3 is from April 2015.

http://nbd.name/gitweb.cgi?p=ustream-ssl.git;a=commit;h=a4ca61527236e89eb9efb782fd9bfd04796144e3
https://dev.openwrt.org/changeset/45441/
https://dev.openwrt.org/changeset/45157/

signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

SVN-Revision: 45623
9 years ago
Felix Fietkau 333579e527 kernel: backport upstream usbnet fix (fixes #19455)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45621
9 years ago
Felix Fietkau 06556a8e6b hostapd: fix remote denial of service vulnerability in WMM action frame parsing
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45619
9 years ago
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
9 years ago
Felix Fietkau 1f689613b6 iptables: disable unused xml support to save some space
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45617
9 years ago
Felix Fietkau a503023ec2 hostapd: enable 802.11w only for the full variants
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45616
9 years ago
Felix Fietkau 102522e0cd uboot-envtools: disable AES support, reduces code size
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45615
9 years ago
Felix Fietkau ec73574027 build: enable package list signing by default
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45614
9 years ago
Steven Barth d534883a52 firewall: Allow IGMP and MLD input on WAN
The WAN port should at least respond to IGMP and MLD queries as
otherwise a snooping bridge/switch might drop traffic.

RFC4890 recommends to leave IGMP and MLD unfiltered as they are always
link-scoped anyways.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>

SVN-Revision: 45613
9 years ago
Steven Barth 336fc7a702 netsupport: l2tp-ip: only depend on IPv6 if IPv6 support is enabled
Before r45593 kmod-l2tp-ip did not depend on kmod-ipv6.
With r45593 support for L2TP IPv6 encapsulation was added and
included in the kmod-l2tp-ip package. This change also
added the dependency to kmod-ipv6 to kmod-l2tp-ip, regardless
of whether the user chose to generally include IPv6 support
or not.
Change this so L2TP over IPv6 and the resulting dependency
to kmod-ipv6 is only included in kmod-l2tp-ip if IPv6 support
is enabled.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 45612
9 years ago
Jo-Philipp Wich 2a196a68cd procd: fix uid/gid changing for service instances
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 45611
9 years ago
Felix Fietkau 334ad1d49f polarssl: include PKG_RELEASE in ABI_VERSION
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45610
9 years ago
Felix Fietkau 632ba15a56 curl: replace polarssl run-time version check with a compile-time one
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45609
9 years ago
Felix Fietkau 5533a67e3a openvpn: replace polarssl run-time version check with a compile-time one
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45608
9 years ago
Felix Fietkau 34cacae2b9 polarssl: disable runtime version checks to save some space
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45607
9 years ago
Felix Fietkau 434bf8a90b polarssl: disable an unused random number generator
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45606
9 years ago
Imre Kaloz 9bcd551962 tools/pkg-config: fix compile on musl hosts
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 45605
9 years ago
Imre Kaloz a2bec91b3b tools/autoconf: fix compile on musl hosts
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 45604
9 years ago
Imre Kaloz d0e8830c31 tools/sed: fix compile on musl hosts
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 45603
9 years ago
Jo-Philipp Wich a28deda590 openvpn: disable CBC record splitting in PolarSSL/mbedTLS (#19101)
OpenVPN assumes that its control channel messages are sent and received
unfragmented, this assumption is broken when CBC record splitting is
enabled in mbedTLS.

The record splitting is intended as countermeasure against BEAST attacks
which do not apply to OpenVPN, therefore we simply disable it until
upstream OpenVPN gains the ability to process fragmented control
messages.

Disabling the splitting also works around a (not remotely triggerable)
segmentation fault in mbedTLS.

References:

 * https://dev.openwrt.org/ticket/19101
 * https://community.openvpn.net/openvpn/ticket/524
 * https://github.com/ARMmbed/mbedtls/pull/185

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 45602
9 years ago
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
9 years ago
Felix Fietkau 2659762e62 base-files: fix logic error in led default handling (patch from #19593)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45600
9 years ago
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
9 years ago
Imre Kaloz 322d798510 mpc85xx: gianfar: add mtd-mac-address support
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 45598
9 years ago
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
9 years ago
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
9 years ago
Steven Barth 4d9694981b nettle: bump to 3.1.1
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45595
9 years ago
Steven Barth a132313238 dhcp: add option specifying overriding custom-routes
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45594
9 years ago
Steven Barth 498e3a7fd4 netsupport: package L2TPv3 over IPv6 as well
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45593
9 years ago
Jo-Philipp Wich f2277a967d env: allow passing a commit message on save
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 45592
9 years ago
Jo-Philipp Wich 1170a3de76 make-ext4fs: avoid using libc internal declarations
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 45591
9 years ago
Steven Barth 58f7d9676b map: shorten autogenerated sub-interface names to account for limits
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45590
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
Steven Barth fc84123c2f dnsmasq: bump to 2.73rc7
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45587
9 years ago
Steven Barth 4fb99ec22f odhcpd: Remove prefix class config option as not supported anymore by odhcpd
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

SVN-Revision: 45586
9 years ago
Steven Barth 64aa0929b9 odhcp6c: Fix white space errors
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

SVN-Revision: 45585
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago