oweals/openwrt.git
9 years agoebtables: revert "disable rpath" (closes: #19088)
Nicolas Thill [Mon, 9 Mar 2015 22:07:05 +0000 (22:07 +0000)]
ebtables: revert "disable rpath" (closes: #19088)

This reverts commit 9340723d70bce9d905c3f53b2bf415963153b34d.

Signed-off-by: Nicolas Thill <nico@openwrt.org>
SVN-Revision: 44634

9 years agokmod-usb-dwc2: depends on udc-core (kmod-usb-gadget)
John Crispin [Mon, 9 Mar 2015 14:07:30 +0000 (14:07 +0000)]
kmod-usb-dwc2: depends on udc-core (kmod-usb-gadget)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 44633

9 years agolantiq: ltq-ptm-{ar9, ase, xway}: fix alloc_netdev for 3.18
John Crispin [Mon, 9 Mar 2015 14:07:14 +0000 (14:07 +0000)]
lantiq: ltq-ptm-{ar9, ase, xway}: fix alloc_netdev for 3.18

buildbot complained about
ifxmips_ptm_adsl.c:1445:70: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
         g_net_dev[i] = alloc_netdev(0, g_net_dev_name[i], ether_setup);
                                                                      ^
fix that similar to the change made to ltq_ptm_vdsl.c
compile tested only.

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

9 years agoncm, qmi, mbim: Add dependency on wwan package
John Crispin [Mon, 9 Mar 2015 14:07:06 +0000 (14:07 +0000)]
ncm, qmi, mbim: Add dependency on wwan package

The wwan package holds the hotplug script to set mobile broadband
interfaces (un)available. Add it as a dependency to comgt-ncm,
uqmi and umbim.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
SVN-Revision: 44631

9 years agoncm: Remove unnecessary proto_set_available commands
John Crispin [Mon, 9 Mar 2015 14:06:50 +0000 (14:06 +0000)]
ncm: Remove unnecessary proto_set_available commands

Interface should not be set unavailable in all error cases,
returning 1 is enough.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
SVN-Revision: 44630

9 years agowwan: Improve USB modem hotplug script
John Crispin [Mon, 9 Mar 2015 14:06:30 +0000 (14:06 +0000)]
wwan: Improve USB modem hotplug script

Adds ncm proto to the list of checked protocols, sets interfaces
unavailable on device removal and removes the unnecessary ifup
command.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
SVN-Revision: 44629

9 years agocomgt, wwan: Move USB data files to wwan package
John Crispin [Mon, 9 Mar 2015 14:06:20 +0000 (14:06 +0000)]
comgt, wwan: Move USB data files to wwan package

USB modem data files should be a part of the wwan package, which
actually uses them unlike comgt.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
SVN-Revision: 44628

9 years agoutil-linux: fix pkgconfig files
Nicolas Thill [Mon, 9 Mar 2015 02:02:50 +0000 (02:02 +0000)]
util-linux: fix pkgconfig files

Upstream choose to not rely on configure.ac and recursively expand paths in pkgconfig files at make time,
leading to absolute /usr/include & /usr/lib in there... And we don't want that when cross-compiling...

Signed-off-by: Nicolas Thill <nico@openwrt.org>
SVN-Revision: 44627

9 years agobcm53xx: fix printing NAND controller revision
Rafał Miłecki [Sat, 7 Mar 2015 12:31:42 +0000 (12:31 +0000)]
bcm53xx: fix printing NAND controller revision

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

9 years agomvebu: add backported patch to reenable hw i/o coherency
Imre Kaloz [Fri, 6 Mar 2015 18:57:49 +0000 (18:57 +0000)]
mvebu: add backported patch to reenable hw i/o coherency

Reported-by: Claudio Leite <leitec@staticky.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 44621

9 years agoar71xx: add support for compex wpj558
Luka Perkov [Fri, 6 Mar 2015 14:41:57 +0000 (14:41 +0000)]
ar71xx: add support for compex wpj558

OpenWrt can be flashed with following uboot commands:

tftpboot 0x80500000 openwrt-ar71xx-generic-wpj558-16M-squashfs-sysupgrade.bin
erase 0x9f030000 +$filesize
cp.b $fileaddr 0x9f030000 $filesize

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 44620

9 years agoodhcpd: improvements for DHCPv4 and compile fixes
Steven Barth [Fri, 6 Mar 2015 14:41:07 +0000 (14:41 +0000)]
odhcpd: improvements for DHCPv4 and compile fixes

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 44619

9 years agoopenssl: enable ARM assembly acceleration
John Crispin [Fri, 6 Mar 2015 07:57:10 +0000 (07:57 +0000)]
openssl: enable ARM assembly acceleration

Tested myself on ixp4xx and mvebu, and (originally)
by Daniel on i.MX6. Also tested on a MIPS target,
to make sure the change to ASFLAGS does not break things.

Based on a patch submitted by Daniel Drown:

https://lists.openwrt.org/pipermail/openwrt-devel/2014-July/026639.html

Signed-off-by: Claudio Leite <leitec@staticky.com>
Signed-off-by: Daniel Drown <dan-openwrt@drown.org>
SVN-Revision: 44618

9 years agoswconfig: fix build with linux 4.0
John Crispin [Fri, 6 Mar 2015 07:57:03 +0000 (07:57 +0000)]
swconfig: fix build with linux 4.0

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 44617

9 years agoipq806x: rename patches in patches-3.18
John Crispin [Fri, 6 Mar 2015 07:56:58 +0000 (07:56 +0000)]
ipq806x: rename patches in patches-3.18

This will allow ipq806x to support multiple kernel version more easily.

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

9 years agokernel: move KERNFS to generic config
John Crispin [Fri, 6 Mar 2015 07:56:47 +0000 (07:56 +0000)]
kernel: move KERNFS to generic config

KERNFS symbol is selected by SYSFS, so place it in generic config.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44615

9 years agokernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED
John Crispin [Fri, 6 Mar 2015 07:56:34 +0000 (07:56 +0000)]
kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED

Disable ARCH_NEEDS_CPU_IDLE_COUPLED by-default in generic config, since
only one platfrom (omap) needs them.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44614

9 years agokernel: disbale HAMRADIO in generic config
John Crispin [Fri, 6 Mar 2015 07:56:21 +0000 (07:56 +0000)]
kernel: disbale HAMRADIO in generic config

HAMRADIO enabled in all generic configs, but no one platform directly
use related drivers/protocols. This symbol is only used for kmod-ax25
package modules. Furthermore, half of platforms explicitly disables
this symbol, what silently disables build of modules for kmod-ax25
package.

So disable HAMRADIO by-default in generic config, add it to kmod-ax25
package and remove it from platform specific configs.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44613

9 years agokernel: move MTD_SPLIT_SUPPORT to generic config
John Crispin [Fri, 6 Mar 2015 07:56:08 +0000 (07:56 +0000)]
kernel: move MTD_SPLIT_SUPPORT to generic config

CONFIG_MTD_SPLIT_SUPPORT symbol default value is 'y' and many platform
specific configs explicitly enables it, while no one platform disables
this symbol. So place it in generic config and remove from platform
specific configs.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44612

9 years agokernel: remove GENERIC_NET_UTILS from platform configs
John Crispin [Fri, 6 Mar 2015 07:55:57 +0000 (07:55 +0000)]
kernel: remove GENERIC_NET_UTILS from platform configs

CONFIG_GENERIC_NET_UTILS is selected by CONFIG_NET and already enabled
in generic config, so we don't need this symbol in platform specific
configurations.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44611

9 years agokirkwood: drop support for 3.14
Luka Perkov [Thu, 5 Mar 2015 23:43:27 +0000 (23:43 +0000)]
kirkwood: drop support for 3.14

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 44610

9 years agokirkwood: switch to 3.18
Luka Perkov [Thu, 5 Mar 2015 23:43:24 +0000 (23:43 +0000)]
kirkwood: switch to 3.18

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 44609

9 years agogeneric: add CONFIG_FW_LOADER_USER_HELPER symbol
Luka Perkov [Thu, 5 Mar 2015 23:43:21 +0000 (23:43 +0000)]
generic: add CONFIG_FW_LOADER_USER_HELPER symbol

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 44608

9 years agolantiq: fix netdev setup in ltq-ptm-vdsl
John Crispin [Thu, 5 Mar 2015 20:25:18 +0000 (20:25 +0000)]
lantiq: fix netdev setup in ltq-ptm-vdsl

The initial fix for 3.18 in r44346 wrongly treated the newly added
parameter of alloc_netdev to be another function pointer, causing
ether_config to be skipped during ptm netdev init.
Fix this by partially reverting r44346 and properly setting the newly
added macro parameter.
(Tested on VRX200 board)

A similar change might be needed for ltq-ptm-adsl as well.

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

9 years agokernel: add ip_vti tunnel module
John Crispin [Thu, 5 Mar 2015 20:25:11 +0000 (20:25 +0000)]
kernel: add ip_vti tunnel module

IP VTI (Virtual Tunnel Interface) is used to create a virtual device
for IPsec VPN (similar to OpenVPN).

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
SVN-Revision: 44606

9 years agomtd: fix md5sum error checking
John Crispin [Thu, 5 Mar 2015 20:25:02 +0000 (20:25 +0000)]
mtd: fix md5sum error checking

In mtd_verify(), the return value of md5sum() has been
interpreted as error if nonzero, while the function
returns number of processed bytes, which caused
mtd_verify() to always fail.

This patch fixes error checking to interpret only
negative values as errors.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
SVN-Revision: 44605

9 years agoat91: add SAMA5D3-Xplained board UBI parameters to makefile.
John Crispin [Thu, 5 Mar 2015 20:24:57 +0000 (20:24 +0000)]
at91: add SAMA5D3-Xplained board UBI parameters to makefile.

Signed-off-by: Songjun Wu <songjun.wu@atmel.com>
SVN-Revision: 44604

9 years agoath5k: fix reset race
John Crispin [Thu, 5 Mar 2015 20:24:50 +0000 (20:24 +0000)]
ath5k: fix reset race

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44603

9 years agoath5k: channel change fix
John Crispin [Thu, 5 Mar 2015 20:24:45 +0000 (20:24 +0000)]
ath5k: channel change fix

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44602

9 years agobrcm2708: add another missing symbol
John Crispin [Thu, 5 Mar 2015 20:24:39 +0000 (20:24 +0000)]
brcm2708: add another missing symbol

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 44601

9 years agogeneric: add USB_DWC2 missing symbols
John Crispin [Thu, 5 Mar 2015 20:24:33 +0000 (20:24 +0000)]
generic: add USB_DWC2 missing symbols

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 44600

9 years agogeneric: add missing symbols for 4.0
John Crispin [Thu, 5 Mar 2015 20:24:28 +0000 (20:24 +0000)]
generic: add missing symbols for 4.0

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 44599

9 years agonetfilter: fix nf_nat_redirect dependencies for 3.19 and 4.0
John Crispin [Thu, 5 Mar 2015 20:24:22 +0000 (20:24 +0000)]
netfilter: fix nf_nat_redirect dependencies for 3.19 and 4.0

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 44598

9 years agokernel: backport bcma changes to 3.19 and 4.0
Rafał Miłecki [Wed, 4 Mar 2015 07:08:39 +0000 (07:08 +0000)]
kernel: backport bcma changes to 3.19 and 4.0

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

9 years agobcm53xx: switch to IRQ buttons (keys)
Rafał Miłecki [Tue, 3 Mar 2015 23:15:55 +0000 (23:15 +0000)]
bcm53xx: switch to IRQ buttons (keys)

Now bcma provides IRQ domain we don't have to poll anymore.

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

9 years agokernel/mac80211: backport bcma changes from 4.1
Rafał Miłecki [Tue, 3 Mar 2015 23:15:49 +0000 (23:15 +0000)]
kernel/mac80211: backport bcma changes from 4.1

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

9 years agogeneric: upgrade to 3.14.34
Jonas Gorski [Tue, 3 Mar 2015 14:39:52 +0000 (14:39 +0000)]
generic: upgrade to 3.14.34

Fixes several issues in the network stack.

Full changelog:
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.33
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.34

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

9 years agogeneric: upgrade to 3.18.8
Jonas Gorski [Tue, 3 Mar 2015 14:39:49 +0000 (14:39 +0000)]
generic: upgrade to 3.18.8

Fixes several issues in the network stack.

Full changelog:
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.8

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

9 years agokernel: revert a broken chunk in the mips module reloc patch fix
Felix Fietkau [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>
SVN-Revision: 44592

9 years agokernel: fix the mips module relocation patch for 3.19+
Felix Fietkau [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>
SVN-Revision: 44590

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

SVN-Revision: 44589

9 years agoadm5120: switch kernel to 3.18
Rafał Miłecki [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>
SVN-Revision: 44588

9 years agoadm5120: enable low_mem
Rafał Miłecki [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>
SVN-Revision: 44587

9 years agoxburst: Remove n516, n526 and id800wt subtargets
Lars-Peter Clausen [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>
SVN-Revision: 44586

9 years agolldpd: fix passing multiple ifnames to the daemon
Jo-Philipp Wich [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>
SVN-Revision: 44585

9 years agobrcm47xx, brcm63xx: disable CONFIG_MIPS_O32_FP64_SUPPORT
Jonas Gorski [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>
SVN-Revision: 44584

9 years agokernel: move CONFIG_MIPS_O32_FP64_SUPPORT to generic configs
Jonas Gorski [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>
SVN-Revision: 44583

9 years agobrcm63xx: prefer gpio-button-hotplug over button-hotplug
Jonas Gorski [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>
SVN-Revision: 44582

9 years agoadm5120: use subtarget configs for all kernels
Rafał Miłecki [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>
SVN-Revision: 44581

9 years agoadm5120: add 3.18 support
Rafał Miłecki [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>
SVN-Revision: 44580

9 years agoep93xx: add 3.18 support
Rafał Miłecki [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>
SVN-Revision: 44579

9 years agompc52xx: add 3.18 config
Rafał Miłecki [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>
SVN-Revision: 44578

9 years agobrcm63xx: fix DTS LEDs and buttons
Jonas Gorski [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>
SVN-Revision: 44577

9 years agobrcm63xx: fix ethernet breakage in 3.18
Jonas Gorski [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>
SVN-Revision: 44576

9 years agobrcm63xx: fix BCM63268 interrupt register locations for legacy probe
Jonas Gorski [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>
SVN-Revision: 44575

9 years agobrcm63xx: fix gpio register usage
Jonas Gorski [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>
SVN-Revision: 44574

9 years agompc83xx: start work on 3.18 support
Rafał Miłecki [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>
SVN-Revision: 44573

9 years agoomap: complete 3.18 support
Rafał Miłecki [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>
SVN-Revision: 44572

9 years agoomap: start working on 3.18 support
Rafał Miłecki [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>
SVN-Revision: 44571

9 years agobrcm63xx: backport and enable DT spi-gpio no CS support
Jonas Gorski [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>
SVN-Revision: 44570

9 years agobrcm63xx: fix image generation and broken patch
Jonas Gorski [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>
SVN-Revision: 44569

9 years agob53: fix mmap register read/writes > 32 bit
Jonas Gorski [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>
SVN-Revision: 44568

9 years agobrcm63xx: remove gpio base workaround
Jonas Gorski [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>
SVN-Revision: 44567

9 years agobrcm63xx: move buttons and leds to dts files
Jonas Gorski [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>
SVN-Revision: 44566

9 years agobrcm63xx: probe gpio controllers through DT
Jonas Gorski [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>
SVN-Revision: 44565

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

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

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

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

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

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

9 years agobrcm63xx: use dtb for cvg834g
Jonas Gorski [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>
SVN-Revision: 44561

9 years agobrcm63xx: image: move image argument to front in *DTB calls
Jonas Gorski [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>
SVN-Revision: 44560

9 years agobrcm63xx: add dts and profile for Livebox
Jonas Gorski [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>
SVN-Revision: 44559

9 years agobrcm63xx: allow lzma to use 32MB RAM
Jonas Gorski [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>
SVN-Revision: 44558

9 years agopackage: mtd: move bcm963xx_tag definition into source code
Jonas Gorski [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>
SVN-Revision: 44557

9 years agobrcm63xx: do not align squashfs rootfs start
Jonas Gorski [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>
SVN-Revision: 44556

9 years agobrcm63xx: drop call to prepare_generic_squashfs
Jonas Gorski [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>
SVN-Revision: 44555

9 years agofirmware-utils: imagetag: use cyg_crc32 instead of duplicating code
Jonas Gorski [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>
SVN-Revision: 44554

9 years agokernel: fix 3.18+ if_bridge.h header conflict with musl
Felix Fietkau [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>
SVN-Revision: 44553

9 years agoprocd: update to the latest version, fixes musl compile error
Felix Fietkau [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>
SVN-Revision: 44552

9 years agobuild: move tmp/.prereq-build to staging_dir/host to gracefully handle staging_dir...
Felix Fietkau [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>
SVN-Revision: 44551

9 years agoubox: fix segmentation fault in insmod
Jo-Philipp Wich [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>
SVN-Revision: 44549

9 years agouhttpd: relay stderr to syslog
Jo-Philipp Wich [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>
SVN-Revision: 44548

9 years agoprocd: add support for relaying daemon stdio to syslog
Jo-Philipp Wich [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>
SVN-Revision: 44547

9 years agolibubox: implement ulog_close() and call it on ulog_open()
Jo-Philipp Wich [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>
SVN-Revision: 44546

9 years agofstools: switch to ulog api
Jo-Philipp Wich [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>
SVN-Revision: 44545

9 years agoubox: switch to ulog api
Jo-Philipp Wich [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>
SVN-Revision: 44544

9 years agoprocd: switch to ulog api
Jo-Philipp Wich [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>
SVN-Revision: 44543

9 years agolibubox: introduce generic logging api
Jo-Philipp Wich [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>
SVN-Revision: 44542

9 years ago6rd: honor tunlink in host dependency
Steven Barth [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>
SVN-Revision: 44541

9 years agofirewall: fix some more null-pointer accesses
Steven Barth [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>
SVN-Revision: 44540

9 years agofstools: fix build with enabled ubifs extroot support
Jo-Philipp Wich [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>
SVN-Revision: 44538

9 years agofstools: fix multiple extroot problems
Jo-Philipp Wich [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>
SVN-Revision: 44535

9 years agomodules: make ahci-platform depend on TARGET_ipq806x
John Crispin [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>
SVN-Revision: 44534

9 years agoubox: kmodloader: support loading kmods from multiple directories
Jo-Philipp Wich [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>
SVN-Revision: 44533

9 years agogeneric/4.0: refresh patches
Imre 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>
SVN-Revision: 44532

9 years agogeneric/4.0: drop patches applied upstream
Imre 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>
SVN-Revision: 44531

9 years agogeneric/4.0: drop 3.18 specifix dwc2 backport
Imre 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>
SVN-Revision: 44530

9 years agogeneric/4.0: the ubi patches has been fixed in the 3.19 patchset already
Imre 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>
SVN-Revision: 44529

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

Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 44528

9 years agoar71xx: Add QCA953X version2 SoC support
John Crispin [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>
SVN-Revision: 44527

9 years agoar71xx: TL-WA7210n v2 support
John Crispin [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>
SVN-Revision: 44526