openwrt.git
9 years agokernel: revert a broken chunk in the mips module reloc patch fix
nbd [Mon, 2 Mar 2015 20:33:02 +0000 (20:33 +0000)]
kernel: revert a broken chunk in the mips module reloc patch fix

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44592 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: fix the mips module relocation patch for 3.19+
nbd [Mon, 2 Mar 2015 04:42:17 +0000 (04:42 +0000)]
kernel: fix the mips module relocation patch for 3.19+

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44590 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoFix download URL of the 4.x kernel.
mb [Sun, 1 Mar 2015 20:44:33 +0000 (20:44 +0000)]
Fix download URL of the 4.x kernel.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44589 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoadm5120: switch kernel to 3.18
rmilecki [Sun, 1 Mar 2015 16:24:15 +0000 (16:24 +0000)]
adm5120: switch kernel to 3.18

Tested by Jonas on WP54g, thank you!

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44588 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoadm5120: enable low_mem
rmilecki [Sun, 1 Mar 2015 16:24:11 +0000 (16:24 +0000)]
adm5120: enable low_mem

Most devices have only 16 MiB of RAM, this will allow them to boot
without OOM.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44587 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoxburst: Remove n516, n526 and id800wt subtargets
lars [Sun, 1 Mar 2015 15:56:43 +0000 (15:56 +0000)]
xburst: Remove n516, n526 and id800wt subtargets

The driver code for supporting these subtargets was already removed a while ago,
so
the current images wont actually boot.

It is also quite unlikely that there are any users of them at this point, so
remove them.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44586 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolldpd: fix passing multiple ifnames to the daemon
jow [Sun, 1 Mar 2015 12:25:02 +0000 (12:25 +0000)]
lldpd: fix passing multiple ifnames to the daemon

Instead of multiple -I arguments, lldpd expects a comma separated list.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44585 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm47xx, brcm63xx: disable CONFIG_MIPS_O32_FP64_SUPPORT
jogo [Sun, 1 Mar 2015 11:37:18 +0000 (11:37 +0000)]
brcm47xx, brcm63xx: disable CONFIG_MIPS_O32_FP64_SUPPORT

The flag is experimental and requires toolchain support, which we don't
provide. Also neither target has an FPU so it becomes meaningless
without the FPU emulator enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44584 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: move CONFIG_MIPS_O32_FP64_SUPPORT to generic configs
jogo [Sun, 1 Mar 2015 11:37:15 +0000 (11:37 +0000)]
kernel: move CONFIG_MIPS_O32_FP64_SUPPORT to generic configs

Most MIPS targets have it disabled, so move the symbol to the generic
configs to keep target configs small.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44583 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: prefer gpio-button-hotplug over button-hotplug
jogo [Sun, 1 Mar 2015 11:37:06 +0000 (11:37 +0000)]
brcm63xx: prefer gpio-button-hotplug over button-hotplug

Saves us pulling in the input system, shaving off a few kb from image
sizes.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44582 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoadm5120: use subtarget configs for all kernels
rmilecki [Sun, 1 Mar 2015 00:01:33 +0000 (00:01 +0000)]
adm5120: use subtarget configs for all kernels

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44581 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoadm5120: add 3.18 support
rmilecki [Sat, 28 Feb 2015 23:39:14 +0000 (23:39 +0000)]
adm5120: add 3.18 support

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44580 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoep93xx: add 3.18 support
rmilecki [Sat, 28 Feb 2015 22:46:42 +0000 (22:46 +0000)]
ep93xx: add 3.18 support

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44579 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agompc52xx: add 3.18 config
rmilecki [Sat, 28 Feb 2015 20:53:55 +0000 (20:53 +0000)]
mpc52xx: add 3.18 config

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44578 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: fix DTS LEDs and buttons
jogo [Sat, 28 Feb 2015 19:59:50 +0000 (19:59 +0000)]
brcm63xx: fix DTS LEDs and buttons

- A4001N/A4001N1: fix swapped green and red LEDs
- CVG834G: add missing LED
- RTA1320: reorder LEDs by GPIO#
- V2500V: add missing LEDs and buttons
- WAP-5813n: fix WPS button (GPIO 35)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44577 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: fix ethernet breakage in 3.18
jogo [Sat, 28 Feb 2015 19:59:46 +0000 (19:59 +0000)]
brcm63xx: fix ethernet breakage in 3.18

Linux commit d75b1ade567ffab ("net: less interrupt masking in NAPI")
chose the samantics of the napi poll return value, which caused napi to
not resume interrups/polling anymore.

Fix the return value to restore expected behaviour.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44576 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: fix BCM63268 interrupt register locations for legacy probe
jogo [Sat, 28 Feb 2015 19:59:34 +0000 (19:59 +0000)]
brcm63xx: fix BCM63268 interrupt register locations for legacy probe

Legacy probe passed the IRQSTAT registers instead of the IRQMASK
registers causing all register accesses to be offset by 16 bytes.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44575 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: fix gpio register usage
jogo [Sat, 28 Feb 2015 19:59:26 +0000 (19:59 +0000)]
brcm63xx: fix gpio register usage

The driver expected data then dir, but both dts and legacy code passed
dir then data. Fix this by making the driver expect the registers in
ascending order, i.e. dir then data.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44574 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agompc83xx: start work on 3.18 support
rmilecki [Sat, 28 Feb 2015 18:15:59 +0000 (18:15 +0000)]
mpc83xx: start work on 3.18 support

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44573 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoomap: complete 3.18 support
rmilecki [Sat, 28 Feb 2015 14:56:53 +0000 (14:56 +0000)]
omap: complete 3.18 support

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44572 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoomap: start working on 3.18 support
rmilecki [Sat, 28 Feb 2015 13:54:51 +0000 (13:54 +0000)]
omap: start working on 3.18 support

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44571 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: backport and enable DT spi-gpio no CS support
jogo [Fri, 27 Feb 2015 23:48:48 +0000 (23:48 +0000)]
brcm63xx: backport and enable DT spi-gpio no CS support

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44570 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: fix image generation and broken patch
jogo [Fri, 27 Feb 2015 23:48:32 +0000 (23:48 +0000)]
brcm63xx: fix image generation and broken patch

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44569 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agob53: fix mmap register read/writes > 32 bit
jogo [Fri, 27 Feb 2015 17:40:17 +0000 (17:40 +0000)]
b53: fix mmap register read/writes > 32 bit

For bcm63xx integrated switches, broadcom changed the data endianess
to match the system endianess. But this only applies to within one word,
which causes 48/64 bit values to be still split into their "litte endian"
groups.

E.g. 48 bit values (with 5 being the most significant byte) aligned

0x00 ..01  or   0123
0x04 2345       45..

will become

0x00 ..10 resp. 3210
0x04 5432       54..

Likewise for 64 bit values.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44568 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: remove gpio base workaround
jogo [Fri, 27 Feb 2015 17:40:09 +0000 (17:40 +0000)]
brcm63xx: remove gpio base workaround

Now that all gpio users without named gpios use DT, we do not need
to fix the gpio controller bases anymore.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44567 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: move buttons and leds to dts files
jogo [Fri, 27 Feb 2015 17:40:04 +0000 (17:40 +0000)]
brcm63xx: move buttons and leds to dts files

Register buttons and leds through DT for all available dts,
and remove them from the board files.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: remove leds/buttons from board files
       fix wrong led polarities for dsl-274xb-c2, cpva642, p870hw
       comment out spi-gpio and associated leds]

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44566 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: probe gpio controllers through DT
jogo [Fri, 27 Feb 2015 17:39:49 +0000 (17:39 +0000)]
brcm63xx: probe gpio controllers through DT

Add a generic mmio gpio controller based driver and probe it
through device tree.

Use aliases for base calculation until we converted all users to
device tree or named gpios.

Convert bcm63xx_enet's ephy-reset gpio to use a named gpio.

While at it, remove the duplicate reset gpio defintion for livebox.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44565 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: convert BTV2500V to dts
jogo [Fri, 27 Feb 2015 17:39:29 +0000 (17:39 +0000)]
brcm63xx: convert BTV2500V to dts

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44564 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: convert RTA1320 to dts
jogo [Fri, 27 Feb 2015 17:39:21 +0000 (17:39 +0000)]
brcm63xx: convert RTA1320 to dts

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44563 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: convert RTA1025 to dts
jogo [Fri, 27 Feb 2015 17:39:13 +0000 (17:39 +0000)]
brcm63xx: convert RTA1025 to dts

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44562 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: use dtb for cvg834g
jogo [Fri, 27 Feb 2015 17:39:07 +0000 (17:39 +0000)]
brcm63xx: use dtb for cvg834g

Add a dtsi for bcm3368, add a dts and profile for cvg834g, and convert
it to use ImageDTB. Since HCS requires more arguments, enhance the max
arguments of the call.
The image name is intentionally left blank to prevent non-initramfs
images to be built, as they currently contain no rootfs and consequently
won't work.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44561 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: image: move image argument to front in *DTB calls
jogo [Fri, 27 Feb 2015 17:38:51 +0000 (17:38 +0000)]
brcm63xx: image: move image argument to front in *DTB calls

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44560 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: add dts and profile for Livebox
jogo [Fri, 27 Feb 2015 17:38:46 +0000 (17:38 +0000)]
brcm63xx: add dts and profile for Livebox

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44559 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: allow lzma to use 32MB RAM
jogo [Fri, 27 Feb 2015 17:38:28 +0000 (17:38 +0000)]
brcm63xx: allow lzma to use 32MB RAM

Most 16 MiB RAM devices don't even load elf kernels, so it's safe to
assume we have at least 32 MB RAM. This fixes tftp booting with the
default package set as this already produces an uncompressed
kernel > 8 MiB.

New limit is 8 MiB compressed / 24 MiB compressed.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44558 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agopackage: mtd: move bcm963xx_tag definition into source code
jogo [Fri, 27 Feb 2015 17:38:25 +0000 (17:38 +0000)]
package: mtd: move bcm963xx_tag definition into source code

Remove the need for the header file to be exported - we don't need most
of it anyway; all we care about are the offset of the rootfs length and
header crc fields.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44557 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: do not align squashfs rootfs start
jogo [Fri, 27 Feb 2015 17:38:14 +0000 (17:38 +0000)]
brcm63xx: do not align squashfs rootfs start

We do not need to align the start of read only rootfs's to erase blocks.
This allows us to write the squashfs rootfs directly behind the kernel,
potentially freeing up one erase block.

We still need to align for jffs2, so add a flag for imagetag to
optionally align the rootfs start.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44556 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: drop call to prepare_generic_squashfs
jogo [Fri, 27 Feb 2015 17:38:09 +0000 (17:38 +0000)]
brcm63xx: drop call to prepare_generic_squashfs

We do not use the result, so no need to call it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44555 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agofirmware-utils: imagetag: use cyg_crc32 instead of duplicating code
jogo [Fri, 27 Feb 2015 17:38:05 +0000 (17:38 +0000)]
firmware-utils: imagetag: use cyg_crc32 instead of duplicating code

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44554 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: fix 3.18+ if_bridge.h header conflict with musl
nbd [Fri, 27 Feb 2015 07:35:26 +0000 (07:35 +0000)]
kernel: fix 3.18+ if_bridge.h header conflict with musl

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44553 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoprocd: update to the latest version, fixes musl compile error
nbd [Fri, 27 Feb 2015 07:34:47 +0000 (07:34 +0000)]
procd: update to the latest version, fixes musl compile error

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44552 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobuild: move tmp/.prereq-build to staging_dir/host to gracefully handle staging_dir...
nbd [Fri, 27 Feb 2015 07:34:24 +0000 (07:34 +0000)]
build: move tmp/.prereq-build to staging_dir/host to gracefully handle staging_dir deletion

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44551 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoubox: fix segmentation fault in insmod
jow [Thu, 26 Feb 2015 21:23:55 +0000 (21:23 +0000)]
ubox: fix segmentation fault in insmod

Fix segfault in kmodloader insmod mode due to uninitialized module
directory list.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44549 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agouhttpd: relay stderr to syslog
jow [Thu, 26 Feb 2015 13:44:05 +0000 (13:44 +0000)]
uhttpd: relay stderr to syslog

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44548 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoprocd: add support for relaying daemon stdio to syslog
jow [Thu, 26 Feb 2015 13:42:47 +0000 (13:42 +0000)]
procd: add support for relaying daemon stdio to syslog

Procd enabled init scripts can now specify:

  procd_set_param stdout 1
  procd_set_param stderr 1

... to relay their respective standard IO streams to the system log.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44547 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolibubox: implement ulog_close() and call it on ulog_open()
jow [Thu, 26 Feb 2015 13:42:44 +0000 (13:42 +0000)]
libubox: implement ulog_close() and call it on ulog_open()

This is required to properly update syslog idents when switching between
log modes.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44546 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agofstools: switch to ulog api
jow [Thu, 26 Feb 2015 10:25:29 +0000 (10:25 +0000)]
fstools: switch to ulog api

Update to git head in order to switch the block, mount_root etc. logging to
the common ulog() api for putting early boot messages into dmesg.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44545 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoubox: switch to ulog api
jow [Thu, 26 Feb 2015 10:25:24 +0000 (10:25 +0000)]
ubox: switch to ulog api

Update to git head in order to switch the kmodloader logging to the common
ulog() api for putting early boot messages into dmesg.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44544 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoprocd: switch to ulog api
jow [Thu, 26 Feb 2015 10:25:21 +0000 (10:25 +0000)]
procd: switch to ulog api

Update to git head in order to switch the procd logging to the common ulog()
api for putting early boot messages into dmesg.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44543 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolibubox: introduce generic logging api
jow [Thu, 26 Feb 2015 10:25:18 +0000 (10:25 +0000)]
libubox: introduce generic logging api

Update to git head in order to introduce the new ulog() logging api which
supports early boot logging to dmesg.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44542 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years ago6rd: honor tunlink in host dependency
cyrus [Thu, 26 Feb 2015 07:42:12 +0000 (07:42 +0000)]
6rd: honor tunlink in host dependency

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44541 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agofirewall: fix some more null-pointer accesses
cyrus [Thu, 26 Feb 2015 07:14:41 +0000 (07:14 +0000)]
firewall: fix some more null-pointer accesses

thanks to Hans Dedecker

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44540 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agofstools: fix build with enabled ubifs extroot support
jow [Wed, 25 Feb 2015 18:54:13 +0000 (18:54 +0000)]
fstools: fix build with enabled ubifs extroot support

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44538 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agofstools: fix multiple extroot problems
jow [Wed, 25 Feb 2015 13:03:16 +0000 (13:03 +0000)]
fstools: fix multiple extroot problems

- Support external overlays on non-MTD systems again
- Account for new directory structure of overlayfs partitions (additional upper/ component)
- Support executing block from either overlay or rom
- Support loading fstab from either overlay or rom
- Log extroot failures to dmesg

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44535 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomodules: make ahci-platform depend on TARGET_ipq806x
blogic [Wed, 25 Feb 2015 12:01:19 +0000 (12:01 +0000)]
modules: make ahci-platform depend on TARGET_ipq806x

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44534 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoubox: kmodloader: support loading kmods from multiple directories
jow [Wed, 25 Feb 2015 11:48:27 +0000 (11:48 +0000)]
ubox: kmodloader: support loading kmods from multiple directories

This is required during early boot in the extroot setup phase to support
loading kmods from the overlay that depend on kmods on the rom partition.

The subsequent mount_root updates will use the LD_LIBRARY_PATH env
variable to pass kmod directories to kmodloader.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44533 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agogeneric/4.0: refresh patches
kaloz [Tue, 24 Feb 2015 18:53:14 +0000 (18:53 +0000)]
generic/4.0: refresh patches

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44532 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agogeneric/4.0: drop patches applied upstream
kaloz [Tue, 24 Feb 2015 18:35:17 +0000 (18:35 +0000)]
generic/4.0: drop patches applied upstream

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44531 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agogeneric/4.0: drop 3.18 specifix dwc2 backport
kaloz [Tue, 24 Feb 2015 18:30:16 +0000 (18:30 +0000)]
generic/4.0: drop 3.18 specifix dwc2 backport

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44530 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agogeneric/4.0: the ubi patches has been fixed in the 3.19 patchset already
kaloz [Tue, 24 Feb 2015 18:27:49 +0000 (18:27 +0000)]
generic/4.0: the ubi patches has been fixed in the 3.19 patchset already

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44529 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: refresh patches
blogic [Tue, 24 Feb 2015 12:01:08 +0000 (12:01 +0000)]
ar71xx: refresh patches

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44528 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: Add QCA953X version2 SoC support
blogic [Tue, 24 Feb 2015 12:01:00 +0000 (12:01 +0000)]
ar71xx: Add QCA953X version2 SoC support

http://patchwork.ozlabs.org/patch/435234/

Signed-off-by: 郭传鈜 <gch981213@gmail.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44527 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: TL-WA7210n v2 support
blogic [Tue, 24 Feb 2015 12:00:50 +0000 (12:00 +0000)]
ar71xx: TL-WA7210n v2 support

This patch adds support for TP-Link TL-WA7210n[0]

[0] http://www.tplink.com/en/products/details/?model=TL-WA7210N

Signed-off-by: Hendrik Frenzel <hfrenzel@scunc.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44526 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: add ahci to default packages
blogic [Tue, 24 Feb 2015 12:00:22 +0000 (12:00 +0000)]
ipq806x: add ahci to default packages

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44525 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomodules: add ahci-platform
blogic [Tue, 24 Feb 2015 12:00:16 +0000 (12:00 +0000)]
modules: add ahci-platform

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44524 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: add default package selection
blogic [Tue, 24 Feb 2015 12:00:09 +0000 (12:00 +0000)]
ipq806x: add default package selection

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44523 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: initialize the network on AP148
blogic [Tue, 24 Feb 2015 12:00:04 +0000 (12:00 +0000)]
ipq806x: initialize the network on AP148

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44522 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: add qca-nss-gmac as a new module
blogic [Tue, 24 Feb 2015 11:59:56 +0000 (11:59 +0000)]
kernel: add qca-nss-gmac as a new module

This driver is used on IPQ806x to instanciate & drive the ethernet
interfaces.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44521 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: enable GMAC support in DTS
blogic [Tue, 24 Feb 2015 11:59:51 +0000 (11:59 +0000)]
ipq806x: enable GMAC support in DTS

This adds the GMAC entries in the ipq806x dtsi file as well as in the
ap148 specific dts file.

This also adds the MDIO change as well.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44520 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: enable ar8xxx switch family support
blogic [Tue, 24 Feb 2015 11:59:47 +0000 (11:59 +0000)]
ipq806x: enable ar8xxx switch family support

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44519 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: fix spi read issues observed with SMP enabled
blogic [Tue, 24 Feb 2015 11:59:41 +0000 (11:59 +0000)]
ipq806x: fix spi read issues observed with SMP enabled

This change is fixing the issues observed when booting from NOR flash
with SMP enabled.

Error logs below:
building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of
xref (0 dead, 0 orphan) found.
m25p80 spi32766.0: SPI transfer failed: -110
spi_master spi32766: failed to transfer one message from queue
jffs2: Write of 873 bytes at 0x019001e8 failed. returned 0, retlen 792

Patch is cherry-picked from here:
https://www.codeaurora.org/cgit/quic/qsdk/oss/kernel/linux-msm/commit/drivers/spi/spi-qup.c?h=coconut_20140924&id=4faba89e3ffbb1c5f6232651375b9b3212b50f02

More details in the patch file.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44518 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agompc85xx: add 3.19 support
blogic [Tue, 24 Feb 2015 11:59:35 +0000 (11:59 +0000)]
mpc85xx: add 3.19 support

It took very little to make the TL-WDR4900 work under 3.19:
- config is the same as for 3.18
- only patch 210 had to be refreshed, the other patches are
  the same as for 3.18
- in /etc/config/wireless the path options need to be prefixed
  with "platform/" ('platform/ffe09000.pci/...')

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44517 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agosamba36: update to 3.6.25, fixes remote code execution bug (CVE-2015-0240)
nbd [Tue, 24 Feb 2015 07:21:25 +0000 (07:21 +0000)]
samba36: update to 3.6.25, fixes remote code execution bug (CVE-2015-0240)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44515 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agogeneric: fix 050-backport_netfilter_rtcache.patch
rmilecki [Tue, 24 Feb 2015 06:40:37 +0000 (06:40 +0000)]
generic: fix 050-backport_netfilter_rtcache.patch

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44514 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agox86: remove spurious delete of /etc/config/network
nbd [Tue, 24 Feb 2015 06:07:40 +0000 (06:07 +0000)]
x86: remove spurious delete of /etc/config/network

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44513 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomtools: fix build errors on mac os x (#19064)
nbd [Tue, 24 Feb 2015 06:06:12 +0000 (06:06 +0000)]
mtools: fix build errors on mac os x (#19064)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44512 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agogeneric: early (incomplete!) 4.0 support
rmilecki [Mon, 23 Feb 2015 22:59:53 +0000 (22:59 +0000)]
generic: early (incomplete!) 4.0 support

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44511 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoleds: package the NXP PCA963x driver
kaloz [Mon, 23 Feb 2015 11:09:03 +0000 (11:09 +0000)]
leds: package the NXP PCA963x driver

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44510 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomvebu: set default WRT1900AC switch config
kaloz [Mon, 23 Feb 2015 10:35:29 +0000 (10:35 +0000)]
mvebu: set default WRT1900AC switch config

This sets 'enable_vlan' and thus uses 802.1q
VLANs, but without tagging on either interface.

Signed-off-by: Claudio Leite <leitec@staticky.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44509 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomvebu: set WRT1900AC WAN interface MAC address
kaloz [Mon, 23 Feb 2015 10:33:19 +0000 (10:33 +0000)]
mvebu: set WRT1900AC WAN interface MAC address

Toggles the LA bit on the WAN interface.

Signed-off-by: Claudio Leite <leitec@staticky.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44508 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoppp: Allow PPTP over a specified interface
blogic [Sun, 22 Feb 2015 08:29:34 +0000 (08:29 +0000)]
ppp: Allow PPTP over a specified interface

In a dual-WAN setup, it's useful to specify an interface over which to
have PPTP.

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44507 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agocomgt: Use TCGETS and TCSETS ioctls for struct termios
blogic [Sun, 22 Feb 2015 08:29:26 +0000 (08:29 +0000)]
comgt: Use TCGETS and TCSETS ioctls for struct termios

When passing struct termios to ioctl TCGETS and TCSETS should be
used instead of TCGETA and TCSETA, which are meant for the older
struct termio. Should fix https://dev.openwrt.org/ticket/19012

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44506 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: delete config-3.14 file
blogic [Sun, 22 Feb 2015 08:29:18 +0000 (08:29 +0000)]
ipq806x: delete config-3.14 file

ipq806x target has been upgraded to 3.14. There is no need to maintain
this file anymore.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44505 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: fix "reboot" command
blogic [Sun, 22 Feb 2015 08:29:14 +0000 (08:29 +0000)]
ipq806x: fix "reboot" command

The watchdog driver already registers a restart notifier, we just have
to enable it in the config and in the DT to fix the "reboot" command.

This is done by integratin the following patch-set:
https://lkml.org/lkml/2015/2/20/610

I'm copy-pasting the description below:
qcom-wdt is currently assuming the presence of a dedicated node in DT
to gets its configuration. However, on msm architecture, the watchdog is
usually part of the timer block. So this patch-set is changing the driver
and slightly enhancing the timer DT bindings to provide the relevant clocks
and interrupts.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44504 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: enable watchdog kernel option
blogic [Sun, 22 Feb 2015 08:29:07 +0000 (08:29 +0000)]
ipq806x: enable watchdog kernel option

Some bootloaders seem to trigger the watchdog during the boot process,
therefore the lack of watchdog driver trigger a reboot a few seconds
after boot. So we'll enable it here to avoid it.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44503 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: Fix USB gadget modules for v3.18
blogic [Sun, 22 Feb 2015 08:29:01 +0000 (08:29 +0000)]
kernel: Fix USB gadget modules for v3.18

Updated patch that fixes whitespace and supports kernel v3.3 too.

Signed-off-by: Owen Kirby <osk@exegin.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44502 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agompc85xx: add mpic timer clock frequency to avoid boot log warning
blogic [Sun, 22 Feb 2015 08:28:48 +0000 (08:28 +0000)]
mpc85xx: add mpic timer clock frequency to avoid boot log warning

MPIC timers are enabled in the config, however a devicetree clock setting
is missing causing the following error:
/soc@ffe00000/timer@41100: cannot get timer frequency.
/soc@ffe00000/timer@42100: cannot get timer frequency.

This patch adds the missing clock and avoids the error.
It's a functional copy of this code
do_fixup_by_compat_u32(blob, "fsl,mpic",
        "clock-frequency", get_bus_freq(0), 1);
in arch/powerpc/cpu/mpc85xx/fdt.c in the u-boot code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44501 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoramips: rt288x: add missing symbol
blogic [Sun, 22 Feb 2015 08:28:42 +0000 (08:28 +0000)]
ramips: rt288x: add missing symbol

Defaulting to disabled, based on the value of
the (old?) CONFIG_RALINK_USBPHY

Signed-off-by: Claudio Leite <leitec@staticky.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44500 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoramips: nexx wt3020: fix status led
blogic [Sun, 22 Feb 2015 08:28:35 +0000 (08:28 +0000)]
ramips: nexx wt3020: fix status led

For Nexx WT3020 board_name is wt3020, not nexx-wt3020

root@OpenWrt:~# . /lib/ramips.sh; echo $(ramips_board_name)
wt3020

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44499 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agopackages: remove uneeded PKG_BUILD_DIR overrides
nico [Sun, 22 Feb 2015 01:31:21 +0000 (01:31 +0000)]
packages: remove uneeded PKG_BUILD_DIR overrides

Signed-off-by: Nicolas Thill <nico@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44498 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobcm53xx: add one more NVRAM possible size (0x180000)
rmilecki [Fri, 20 Feb 2015 07:07:53 +0000 (07:07 +0000)]
bcm53xx: add one more NVRAM possible size (0x180000)

Size 0x160000 was added to support Buffalo WZR-600DHP2, however Netgear
devices (R6250, R8000) require 0x180000.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44497 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agompc85xx: set v3.18 as default
blogic [Thu, 19 Feb 2015 14:30:03 +0000 (14:30 +0000)]
mpc85xx: set v3.18 as default

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44496 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoralink: bump to v3.18
blogic [Thu, 19 Feb 2015 14:04:47 +0000 (14:04 +0000)]
ralink: bump to v3.18

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44495 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoramips: fix the mt7628 dts file
blogic [Thu, 19 Feb 2015 14:04:41 +0000 (14:04 +0000)]
ramips: fix the mt7628 dts file

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44494 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agotools/patchelf: fix portability issue breaking mac os x builds (#18998)
nbd [Thu, 19 Feb 2015 10:30:39 +0000 (10:30 +0000)]
tools/patchelf: fix portability issue breaking mac os x builds (#18998)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44493 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: Add dts for Exegin Q5x boards.
blogic [Thu, 19 Feb 2015 09:07:06 +0000 (09:07 +0000)]
at91: Add dts for Exegin Q5x boards.

Signed-off-by: Owen Kirby <osk@exegin.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44492 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: USB gadget subsystem cleanup and driver fix.
blogic [Thu, 19 Feb 2015 09:06:56 +0000 (09:06 +0000)]
at91: USB gadget subsystem cleanup and driver fix.

Signed-off-by: Owen Kirby <osk@exegin.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44491 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: Enable power and reset controller drivers.
blogic [Thu, 19 Feb 2015 09:06:49 +0000 (09:06 +0000)]
at91: Enable power and reset controller drivers.

Signed-off-by: Owen Kirby <osk@exegin.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44490 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: bump to v3.18
blogic [Wed, 18 Feb 2015 13:35:46 +0000 (13:35 +0000)]
at91: bump to v3.18

Signed-off-by: Your Name <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44489 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoinclude: netfilter: fix packaging of LOG target for Linux >= 3.16 (#19031)
jow [Wed, 18 Feb 2015 13:28:28 +0000 (13:28 +0000)]
include: netfilter: fix packaging of LOG target for Linux >= 3.16 (#19031)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44488 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoau1000: fix 3.18 and set it as default
blogic [Wed, 18 Feb 2015 09:49:38 +0000 (09:49 +0000)]
au1000: fix 3.18 and set it as default

Thanks to Bruno Randolf for testing and Manuel Lauss for providing a fix.

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44487 3c298f89-4303-0410-b956-a3cf2f4a3e73