summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ipq806x: fix uninitialized variable usage in cpufreq-kraitJonas Gorski2015-09-102-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In krait_cpufreq_probe, both freq and max_cpu_freq are never initialized, so the max_cpu_freq will have a random value at the end. Fix this by properly initializing max_cpu_freq to 0 and storing the clk frequency in freq as well, to make it similar to how it's calculated in krait_set_target. Fixes the following warnings: In file included from include/linux/clk.h:16:0, from drivers/cpufreq/cpufreq-krait.c:13: drivers/cpufreq/cpufreq-krait.c: In function 'krait_cpufreq_probe': include/linux/kernel.h:714:24: warning: 'freq' may be used uninitialized in this function [-Wmaybe-uninitialized] _max1 > _max2 ? _max1 : _max2; }) ^ drivers/cpufreq/cpufreq-krait.c:217:25: note: 'freq' was declared here unsigned long freq_Hz, freq, max_cpu_freq; ^ In file included from include/linux/clk.h:16:0, from drivers/cpufreq/cpufreq-krait.c:13: include/linux/kernel.h:714:24: warning: 'max_cpu_freq' may be used uninitialized in this function [-Wmaybe-uninitialized] _max1 > _max2 ? _max1 : _max2; }) ^ drivers/cpufreq/cpufreq-krait.c:217:31: note: 'max_cpu_freq' was declared here unsigned long freq_Hz, freq, max_cpu_freq; Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46839
* ipq806x: modules: fix typo in usb-dwc3-qcom dependenciesJonas Gorski2015-09-101-1/+1
| | | | | | | | | | The phy driver has its qcom-dwc3 order switched in contrast to the usb controller driver. Signed-off-by: Kaspar Schleiser <kaspar@schleiser.de> Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46838
* ipq806x: fix R7500 kernel generationJonas Gorski2015-09-101-1/+1
| | | | | | | | | Obviously the dummy rootfs must be after the kernel (uImage), not included in it. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46837
* busybox: lock: implement -n "Fail rather than wait"Felix Fietkau2015-09-091-2/+11
| | | | | | | | | | | | | | | | | | lock -n is similiar to flock -n. If the lock was already taken, fail with exit code = 1 and write error message to stderr. example: if ! lock -n /tmp/foo ; then echo lock exits. else echo lock was free. But is locked now. fi > lock was free. But is locked now. > lock exists. Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 46836
* generic: Fix per interface nf_call_iptables settingFelix Fietkau2015-09-093-537/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit r30917 ("kernel: bypass all netfilter hooks if the sysctls for that functionality have been disabled - eliminates the overhead of enabling CONFIG_BRIDGE_NETFILTER in the kernel config") introduced an optimization which should reduce/eliminate the overhead for traffic send over bridges on kernels compiled with CONFIG_BRIDGE_NETFILTER=y. But this optimization breaks the nf_call_iptables per bridge setting which is more fine grained than the global sysctl net.bridge.bridge-nf-call-iptables setting. A test reflecting a real world setup was created to identify if this really eliminates the overhead and if per-bridge nf_call_iptables could be used in some setups to increase the throughput. A Qualcomm Atheros QCA9558 based system with one ethernet and an ath9k wifi 3x3 in HT40 mode was used. Cables from the AP to the wifi station were used to reduce interference problems during the tests. The wlan interface was put in one bridge interface called br-wlan. This bridge usually contains some more wlan interfaces. The eth0 was put in a second bridge called br-lan. This usually contains some other privileged wlan or mesh interfaces. Routing was added between br-lan and br-wlan. Three kernels were tested: * (default) OpenWrt kernel for this device * (brfilter-global) OpenWrt kernel with CONFIG_BRIDGE_NETFILTER=y * (brfilter-local) OpenWrt kernel with CONFIG_BRIDGE_NETFILTER=y and without 644-bridge_optimize_netfilter_hooks.patch The changes to the the netfilter settings of the bridge were done via: * (brfilter-global) /sbin/sysctl -w net.bridge.bridge-nf-call-iptables=1 * (brfilter-lobal) echo 1 > /sys/class/net/br-lan/bridge/nf_call_iptables and/or echo 1 > /sys/class/net/br-wan/bridge/nf_call_iptables A station connected to the wlan0 (AP) interface was used to send traffic to a PC connected via ethernet. iperf with 3 concurrent transmissions was used to generate the traffic. | kernel | br-nf-* global | nf-call* iface | download | upload | |-----------------|----------------|----------------|----------|----------| | default | 0 | - | 209 | 268 | | brfilter-global | 0 | - | 185 | 243 | | brfilter-local | 0 | - | 187 | 243 | | brfilter-local | 0 | br-lan | 157 | 226 | | brfilter-local | 0 | br-lan br-wlan | 139 | 161 | | brfilter-global | 1 | - | 136 | 162 | Download/upload results in Mibit/s It can be seen that the patch doesn't eliminate the overhead. It can also be seen that the throughput of brfilter-global and brfilter-local with disabled filtering is the roughly the same. Also the throughput for brfilter-global and brfilter-local for enabled filtering on all bridges is roughly the same. But also the brfilter-local throughput is higher when only br-lan requires the filtering. This setting would not be possible with 644-bridge_optimize_netfilter_hooks.patch applied and thus can only be compared with brfilter-global and filtering enabled for all interfaces. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> SVN-Revision: 46835
* linux: make IPv6 builtin if selected (saves >30KB)Steven Barth2015-09-093-13/+12
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46834
* busybox: fix ip applet and netlink behaviorSteven Barth2015-09-094-2/+86
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46833
* package: replace ifconfig-usage with ipSteven Barth2015-09-087-15/+15
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46832
* iproute2: improve ip-full coexistence, remove rt_tableSteven Barth2015-09-081-9/+4
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46831
* base-files: add /etc/iproute2/rt_tables, replace ifconfig-usageSteven Barth2015-09-083-3/+17
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46830
* busybox: improve applets & deprecate ifconfig, routeSteven Barth2015-09-082-10/+10
| | | | | | | | | | added: ip addr, ip route, ip link, traceroute6 removed: hostid, devmem, vconfig, arping deprecated (to be removed): ifconfig, route Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46829
* kernel: describe bridge patch "multicast to unicast"Rafał Miłecki2015-09-083-0/+15
| | | | | | It was initially added in r41367 by nbd. SVN-Revision: 46828
* kernel: describe bridge patch "optimize netfilter hooks"Rafał Miłecki2015-09-083-0/+21
| | | | | | It was initially added in r30917 by nbd. SVN-Revision: 46827
* kernel: describe bridge patch "remove IPv6 depependency of bridge in 2.6.38+"Rafał Miłecki2015-09-083-0/+39
| | | | | | It was initially added in r27237 by jow as patch from Jonas. SVN-Revision: 46826
* kernel: describe bridge patch "port isolate"Rafał Miłecki2015-09-083-0/+15
| | | | | | It was initially added in r25762 by nbd. SVN-Revision: 46825
* kernel: describe bridge patch "always accept EAP"Rafał Miłecki2015-09-083-0/+18
| | | | | | It was initially added in r26015 by nbd. SVN-Revision: 46824
* kernel: describe bridge patch "no EAP forward"Rafał Miłecki2015-09-083-0/+24
| | | | | | It was initially added in r25095 by nbd. SVN-Revision: 46823
* kernel: restore 640-bridge_no_eap_forward.patch to its original formFelix Fietkau2015-09-083-3/+3
| | | | | | | | | | It was corrupted in r38528. The most obvious symptom is repeated messages like this: Tue Sep 8 08:25:18 2015 kern.warn kernel: [77141.972226] br-lan: received packet on wlan0 with own address as source address Signed-off-by: Dmitry Ivanov <dima@ubnt.com> SVN-Revision: 46821
* kernel: remove packaging of kmod-crypto-core and kmod-crypto-arc4Felix Fietkau2015-09-0811-48/+14
| | | | | | | | | Everything except for blkcipher was already built-in, so make blkcipher built-in as well. Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46820
* map: be less restrictive when matching lw4over6 prefixesSteven Barth2015-09-082-6/+11
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46819
* iw: reduce size even more (~12k after gzip)Felix Fietkau2015-09-081-2/+133
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46818
* musl: add a hack to remove unused crypt() algorithms, saves ~14k after lzmaFelix Fietkau2015-09-081-0/+110
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46816
* dropbear: remove generation and configuration of DSS keysSteven Barth2015-09-082-9/+4
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46815
* dropbear: disable 3des, cbc mode, dss support, saves about 5k gzippedFelix Fietkau2015-09-081-1/+20
| | | | | | | | | While technically required by the RFC, they are usually completely unused (DSA), or have security issues (3DES, CBC) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46814
* argp-standalone: fix build error with gcc 5.2 (#20460)Felix Fietkau2015-09-081-0/+11
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46813
* brcm47xx: apply serial flash size trick to Netgear WNR1000 V3Rafał Miłecki2015-09-082-4/+6
| | | | | | | | It also uses different block size just like WGR614 V10. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 46810
* Disable telnet in favor of passwordless SSHSteven Barth2015-09-079-48/+49
| | | | | | | | | | This enables passworldless login for root via SSH whenever no root password is set (e.g. after reset, flashing without keeping config or in failsafe) and removes telnet support alltogether. Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46809
* uhttpd: update to the latest version, fixes deferred cgi script processing ↵Felix Fietkau2015-09-071-2/+2
| | | | | | | | (#20458) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46807
* brcm47xx: fix reading WGT634U CFE variables with 4.1Rafał Miłecki2015-09-071-6/+6
| | | | | | | | This ports fix from r46584 to the 4.1. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 46806
* brcm47xx: add Netgear WNR1000 V3 support in the Linux arch codeRafał Miłecki2015-09-072-4/+80
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 46805
* map: ignore insignificant PSID bitsSteven Barth2015-09-072-2/+4
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46804
* odhcpd: fix parsing of host entries without duidSteven Barth2015-09-071-2/+2
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46803
* odhcpd: various bugfixesSteven Barth2015-09-071-2/+2
| | | | | | | | | | * ra: don't announce as default router if we aren't (regression) * ra: reduce maximum announced dns lifetimes due to buggy clients * dhcpv6: fix mac-based lease-matching Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46802
* nls.mk: add -rpath-link when needed for NLS supportSteven Barth2015-09-071-2/+2
| | | | | | | | | | When a package links to a shared library that depends on libiconv or libintl shared libraries, specifying directory pathes to them via -L switches is not enough, see "man 1 ld" -rpath-link description. Signed-off-by: Paul Fertser <fercerpav@gmail.com> SVN-Revision: 46801
* gcc: add missing powerpc patch for 5.2.0Felix Fietkau2015-09-071-0/+65
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46800
* gcc: remove 4.6.3 leftoversFelix Fietkau2015-09-062-4/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46799
* gcc: remove version 4.9-linaroFelix Fietkau2015-09-0637-1306/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46798
* uboot-ar71xx: fix gcc 5.2 compile errorsFelix Fietkau2015-09-063-0/+137
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46797
* ipq806x: add support for Netgear Nighthawk X4 R7500Jonas Gorski2015-09-048-3/+866
| | | | | | | | | | | | | Add support for the Netgear Nighthawk X4 R7500 and build appropariate sysupgrade and factory images. Known issues: * 5 GHz wifi not working - there is no quantenna driver * One of the USB ports is not working Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46796
* ipq806x: enable ide led triggerJonas Gorski2015-09-042-0/+2
| | | | | | | | | To use gpio leds as ide leds, we need to enable the trigger to be included in the kernel. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46795
* base-files: allow setting ide-disk led triggerJonas Gorski2015-09-041-0/+16
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46794
* ipq806x: add support for retrieving macs from mtdJonas Gorski2015-09-042-0/+70
| | | | | | | | Add support for mtd-mac-address for stmac. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46793
* image: allow exactly KERNEL_SIZE sized kernelsJonas Gorski2015-09-041-2/+2
| | | | | | | | | The KERNEL_SIZE should be the maximum size, inclusive, so we need to check for greater equal, not just greater. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46792
* image: move netgear-image to top and rename to -dniJonas Gorski2015-09-042-11/+11
| | | | | | | | Use the same naming as netgear-chk. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46791
* ar71xx: rename NETGEAR_ variables to their netgear namesJonas Gorski2015-09-041-11/+11
| | | | | | | | Netgear names them BOARD_ID and HW_ID, so we should do the same. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46790
* ipq806x: build images and add sysupgrade support for AP148Jonas Gorski2015-09-042-3/+35
| | | | | | | | | Add full ubi and sysupgrade images for AP148 and add sysupgrade support for ipq806x to allow updating the current installation. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46789
* ipq806x: clear IMAGES for devicesJonas Gorski2015-09-041-0/+1
| | | | | | | | | Ensure that IMAGE-less devices won't keep the IMAGES of any previous devices. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46788
* ipq806x: wrap legacy image in uImageJonas Gorski2015-09-041-2/+2
| | | | | | | | | Wrap the zImage in a uImage header so we can easily boot it from legacy u-boots. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46787
* ipq806x: rename "rootfs" to "ubi" on nandJonas Gorski2015-09-042-0/+26
| | | | | | | | OpenWrt expects the ubi paritition to be named "ubi", not "rootfs". Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46786
* ipq806x: enable smem-parser for nand on AP148Jonas Gorski2015-09-046-8/+30
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46785