Commit Graph

378 Commits

Author SHA1 Message Date
nbd 6ff5f0a977 ath9k: fix hardware tx queue allocation order
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r43438

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43439 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-30 19:45:37 +00:00
cyrus cb902a80c8 odhcp6c: backport from trunk to fix busyloop
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43416 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-28 00:42:24 +00:00
jogo 11aaa9e76e BB: brcm63xx: uci-defaults: network: move DSL-274x1 F1 to right section
The cpu port is at 8, not 5.

Fixes #18406.

Backport of r43379.

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43380 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-25 19:09:55 +00:00
blogic a0f836e7f3 ralink: disable the ICPlus phy driver
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43321 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-19 14:36:43 +00:00
blogic cd98636485 ralink: backport the pcie reset fix for mt7620a
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43313 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-19 10:59:12 +00:00
blogic d6d3e93c3a ralink: backport the ethernet driver from trunk
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43312 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-19 10:59:10 +00:00
blogic f5a22ddf41 lantiq: vgv7519: set some defaults for leds
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43286 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-17 08:31:14 +00:00
blogic 57724ec441 lantiq: set default led configuration from /sys entry later, after per board settings
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43285 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-17 08:31:06 +00:00
blogic b3fb1ee5a5 lantiq: Concatenate multiple flash chips for lantiq-flash (fixed regression)
Signed-off-by: Maikel Bloemendal <openwrt@maikelenyvonne.nl>
Tested-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43284 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-17 08:31:03 +00:00
nbd 3818debcd0 Revert "ath9k: fix crashes when using shared IRQs"
This backport seems to be incomplete and causing some IRQ related
issues.

This reverts commit r43240

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43276 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-15 21:17:21 +00:00
nbd fa74ff9964 ath9k: fix crashes when using shared IRQs
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r43239

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43240 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-13 18:26:27 +00:00
rmilecki 58e9eadd67 kernel: ssb: add PCI ID 0x4351
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

Backport of r43221


git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43222 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-08 21:00:20 +00:00
cyrus 83a67bc701 netifd: fix default ORO for 6rd
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43215 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-08 12:27:41 +00:00
nbd 2a003f0bbb mac80211: merge a few pending upstream fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r43208

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43209 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-07 11:17:41 +00:00
blogic d82bd85656 BB: lantiq: vr9: vgv7519: load vmmc and tapi module into firmware image
(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43166 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:33:07 +00:00
blogic 064f467264 BB: lantiq: vr9: add vpe/watchdog modules to kernel
(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43165 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:33:04 +00:00
blogic 7958ecf053 BB: lantiq: vr9: vgv7519: modify dts to pass cmdline to support vmmc/fxs/vpe
(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43164 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:33:00 +00:00
blogic 8d924d43c0 BB: lantiq: vr9: - modify dts to support vmmc
(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43163 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:32:58 +00:00
blogic 273b8aa778 BB: lantiq: exportt ltq_soc_type
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43162 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:32:55 +00:00
blogic 47b1ff965b BB: lantiq: vr9: - fix vmmc build
(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43161 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:32:50 +00:00
blogic 73c3df0afe BB: lantiq: vr9: - fix tapi build
(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43160 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:32:46 +00:00
blogic 4815f3976d BB: lantiq:
MIPS: Fix rtlx build error.

      CC      arch/mips/kernel/rtlx.o
    /home/ralf/src/linux/upstream-sfr/arch/mips/kernel/rtlx.c: In function ‘file_write’:
    /home/ralf/src/linux/upstream-sfr/arch/mips/kernel/rtlx.c:439:23: error: unused variable ‘rt’ [-Werror=unused-variable]
    /home/ralf/src/linux/upstream-sfr/arch/mips/kernel/rtlx.c: In function ‘rtlx_module_init’:
    /home/ralf/src/linux/upstream-sfr/arch/mips/kernel/rtlx.c:523:3: error: implicit declaration of function ‘set_vi_handler’ [-Werror=implicit-function-declaration]
    cc1: all warnings being treated as errors

    Caused by 496ad9aa8ef448058e36ca7a787c61f2e63f0f54 [new helper:
    file_inode(file)].

    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43159 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:32:38 +00:00
blogic 79472c0254 BB: lantiq: falcon/vr9 - add support for vpe1
(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43158 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:32:34 +00:00
blogic eb0ce57270 BB: lantiq: falcon/vr9 - vpe softdog
(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43157 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:32:32 +00:00
blogic ea9e61b8eb BB: lantiq: ltq-vmmc add support for ar9-vr9
(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43156 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:32:30 +00:00
jow b234dcfeab BB: feeds: use https for LuCI github feed, like all others
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43142 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-01 10:09:51 +00:00
jow d4b9f23eec BB: feeds: switch to LuCI github repo
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43141 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-01 09:44:56 +00:00
nbd 088996022d target/imagebuilder: remove obsolete !TARGET_ROOTFS_INITRAMFS dependency
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r43128

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43129 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-31 12:59:42 +00:00
blogic 8ba6ce1638 lantiq: vgv7519: fix profile, this board have a rt2800-pci board
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43116 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-30 08:13:05 +00:00
blogic a3b7b99dc8 lantiq: vgv7519: fix board_config on dts, read mac address and set it
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43110 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-29 20:51:43 +00:00
jow f27e8004a0 BB: busybox: make high ASCII chars printable (#7993)
Currently busybox utils like "ls" fail to display filenames containing UTF-8
characters, replacing any special characters with "?".

Change libbb's printable_string() function to allow high ASCII characters so
that unicode filenames are displayed correctls.

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

Backport of r43084

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43085 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-27 11:22:41 +00:00
jow c7ae6947ca BB: px5g-standalone: use /dev/urandom to initialize serial (#18232)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

Backport of r43080

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43083 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-27 11:09:37 +00:00
jow 071e09e698 BB: uhttpd: fix HTTP incompatibilities in file handler
* Fixes sending an extraneous message body for 204 and 304 resoponses which
   breaks Chrome in keep-alive mode.

 * Adds mimetypes for JSON and JSONP.

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

Backport of r43078

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43082 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-27 11:09:09 +00:00
nbd 5c953af45e mac80211: fix key flush handling in AP+STA
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r43079

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43081 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-27 11:07:45 +00:00
blogic 93d05b5364 mpc85xx: fix WAN/LAN-MAC for TP-LINK TL-WDR4900 v1
This works around a bootloader issue where every device
has the same lan/wan-mac 00:04:9f:ef:01:01 - with this patch
we read the macs from config-partition during initial network
setup. We have 9 valid macs stored in the partition, the
1st two are used for the radios, 3 and 4 are now used for WAN/LAN.

on an already setup / running device we can get the real macs with
. /lib/functions.sh
. /lib/functions/system.sh
echo "LAN = $(mtd_get_mac_binary config 338)"
echo "WAN = $(mtd_get_mac_binary config 344)"

see:
https://dev.openwrt.org/ticket/14714

from the ticket / user klondike:
U-Boot passed this commit ecd1a09b81
http://u-boot.10912.n7.nabble.com/U-Boot-PATCH-mpc83xx-remove-hardcoded-network-addresses-from-config-files-td44372.html
I suppose to prevent this particular issue, but the WDR4900 may be using an old bootloader still affected.
                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I have been checking the contents of the dtb on the flash, this particular bit is quite revealing:

ethernet@b0000 {
                        #address-cells = <0x1>;
                        #size-cells = <0x1>;
                        device_type = "network";
                        model = "eTSEC";
                        compatible = "fsl,etsec2";
                        fsl,num_rx_queues = <0x8>;
                        fsl,num_tx_queues = <0x8>;
                        local-mac-address = [00 00 00 00 00 00];
                                             ^^^^^^^^^^^^^^^^^

                        interrupt-parent = <0x2>;
                        phy-handle = <0x3>;
                        phy-connection-type = "rgmii-id";
                        ptimer-handle = <0x4>;

                        queue-group@0 {
                                #address-cells = <0x1>;
                                #size-cells = <0x1>;
                                reg = <0xb0000 0x1000>;
                                rx-bit-map = <0xff>;
                                tx-bit-map = <0xff>;
                                interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>;
                        };
                };

I also have been checking the live device map to find this:

root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b0000/local-mac-address
00000000  00 04 9f ef 01 01                                 |......|
00000006
root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b1000/local-mac-address
*
root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b2000/local-mac-address
*

My conclussion is that U-Boot most likely finds the device and (as no valid MAC-address is provided)
falls back to the default MAC provided by the old code, the kernel then receives thee modified
device map from U-Boot and assumes this is the correct MAC for the device despite it obviously isn't.

This can be seen at
target/linux/mpc85xx/patches-3.10/140-powerpc-85xx-tl-wdr4900-v1-support.patch

The enetaddr is filled up by using the device tree data by the process_boot_dtb
function and used by the platform_fixups function to set the eth0 address
(by calling dt_fixup_mac_address_by_alias("ethernet0", enetaddr); ).
But instead we should be used the device address which to my understanding is
provided in the mtd.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

Backport of r43074

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43077 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-26 20:33:34 +00:00
blogic 2ed9535bc9 BB: vgv7519: support more recent board release with vrx288 v1.2
The existance of this new board has been confirmed and tested by the guy on this commit

76fdd8e638

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43075 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-26 17:59:55 +00:00
rmilecki 12f3e4d121 kernel: makefiles: make use of new var KERNEL_PATCHVER
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

Inspired by r43047


git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43067 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-26 13:27:27 +00:00
rmilecki 0fae43d0bb kernel: allow targets to specify KERNEL_PATCHVER instead of LINUX_VERSION
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

Backport of r43043


git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43066 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-26 13:26:59 +00:00
nbd afab6bd3ff findutils: add dependency on bison
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r43064

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43065 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-26 11:27:15 +00:00
nbd 42cd4e3de9 base-files: add /etc/shadow to list of essential files to keep in sysupgrade (bug 18206)
Based on bug #18206 sysupgrade can lead to loss of password information in
certain situations. Most likely all users who will upgrade from versions
r43017-43040, will lose their current passwords. :-(
https://dev.openwrt.org/ticket/18206

Currently /etc/shadow is defined as a conffile in base-files:
https://dev.openwrt.org/browser/trunk/package/base-files/Makefile#L37

But it is not defined in the default list of essential files to keep in
sysupgrade:
https://dev.openwrt.org/browser/trunk/package/base-files/files/lib/upgrade/keep.d/base-files-essential

If exporting conffiles info fails, /etc/shadow can get lost.

Shadow passwords are now the default, so saying that preserving /etc/passwd
is essential while /etc/shadow is not, makes no sense.

The attached patch adds /etc/shadow to the list of essential files.

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

Backport of r43061

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43062 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-25 17:23:14 +00:00
cyrus f34834fe36 odhcp6c: avoid some unnecessary big mallocs
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43057 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-25 10:39:31 +00:00
nbd e3da990876 ath9k: fix regulatory notifier calls with CONFIG_ATH_USER_REGD=y (#18211)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43055 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-25 09:31:04 +00:00
nbd fdbd75e036 mac80211: refresh patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43054 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-25 09:31:01 +00:00
nbd 66a76be5c1 ath9k: backport tx power reporting fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43053 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-25 09:30:59 +00:00
blogic 782944e7f4 kernel/adc: backport essential fixes for ad799x
This patch ports back some fixes of the ad799x driver, which were
committed between 3.10 and 3.15.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42993 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-20 06:32:40 +00:00
nbd 22808d019d openssl: add ABI_VERSION to fix package rebuild issues (fixes #18169)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r42963

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42964 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-19 16:54:33 +00:00
nbd 31e8fdda0e polarssl: do not build the unused programs
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r42960

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42961 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-19 09:43:49 +00:00
nbd 7f95aef182 ar71xx: disable irq on reboot to fix hang issues (fixes #17839)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r42955

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42956 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-18 19:26:22 +00:00
nbd 9a5b2585d3 polarssl: add missing version bump
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r42949

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42950 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-18 09:20:57 +00:00
nbd e44e52157d polarssl: disable SSLv3 support, fixes CVE-2014-3566 (POODLE)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r42947

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42948 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-18 09:19:51 +00:00