openwrt/svn-archive/archive.git
6 years agokernel: 3.14: update bcm47xxpart
Hauke Mehrtens [Mon, 18 Aug 2014 21:57:54 +0000 (21:57 +0000)]
kernel: 3.14: update bcm47xxpart

It it used by brcm47xx and bcm53xx targets, so put patches in generic.

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

6 years agobrcm63xx: enable fallback sprom for Speedport W500 V
Jonas Gorski [Mon, 18 Aug 2014 21:50:45 +0000 (21:50 +0000)]
brcm63xx: enable fallback sprom for Speedport W500 V

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

6 years agobrcm63xx: tag images/dtbs with profiles
Jonas Gorski [Mon, 18 Aug 2014 21:50:42 +0000 (21:50 +0000)]
brcm63xx: tag images/dtbs with profiles

This prevents generating every supported image, except for de "Default" profile.
Also fixes Neufbox 6 image generation.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42210

6 years agobrcm63xx: add profiles for DTB supported devices
Jonas Gorski [Mon, 18 Aug 2014 21:50:40 +0000 (21:50 +0000)]
brcm63xx: add profiles for DTB supported devices

Remove generic profiles and add profiles for each DTB supported device.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42209

6 years agobrcm63xx: move generic profiles to top dir and remove smp profiles
Jonas Gorski [Mon, 18 Aug 2014 21:50:37 +0000 (21:50 +0000)]
brcm63xx: move generic profiles to top dir and remove smp profiles

Use generic profiles for brcm63xx instead of having similar profiles for
each subtarget.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42208

6 years agobrcm63xx: simplify HG556a image generation
Jonas Gorski [Mon, 18 Aug 2014 21:50:34 +0000 (21:50 +0000)]
brcm63xx: simplify HG556a image generation

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42207

6 years agobrcm63xx: fix HG556a boards and remove fallback board
Jonas Gorski [Mon, 18 Aug 2014 21:50:29 +0000 (21:50 +0000)]
brcm63xx: fix HG556a boards and remove fallback board

This changes board info to match the Wiki
http://wiki.openwrt.org/toh/huawei/hg556a, removes the no longer needed
fallback board and fixes HG556 Ralink eeprom extraction.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: rename partitions instead]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42206

6 years agobrcm47xx: image: build alternative TRX using less optimized LZMA
Hauke Mehrtens [Mon, 18 Aug 2014 21:00:55 +0000 (21:00 +0000)]
brcm47xx: image: build alternative TRX using less optimized LZMA

There is a group of devices that lzma-loader doesn't work with. They
simply hang at "Starting program at 0x80001000" which is really hard to
debug and we didn't find any solution for this for years.

Broadcom doesn't use lzma-loader on these devices anyway. They decided
to drop lzma-loader and use less optimal LZMA compression that can be
handled by CFE itself (it doesn't use dictionary).

So support these devices we will need kernel compressed with different
parameters and trx without a loader.

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

6 years agobrcm47xx/bcm53xx: improve description
Hauke Mehrtens [Mon, 18 Aug 2014 20:29:26 +0000 (20:29 +0000)]
brcm47xx/bcm53xx: improve description

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 42204

6 years agobcm53xx: remove kernel 3.10
Hauke Mehrtens [Mon, 18 Aug 2014 20:28:53 +0000 (20:28 +0000)]
bcm53xx: remove kernel 3.10

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 42203

6 years agobrcm47xx: update to kernel 3.14
Hauke Mehrtens [Mon, 18 Aug 2014 20:28:21 +0000 (20:28 +0000)]
brcm47xx: update to kernel 3.14

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 42202

6 years agoramips: add omni plug leds
John Crispin [Mon, 18 Aug 2014 16:09:21 +0000 (16:09 +0000)]
ramips: add omni plug leds

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

6 years agoramips: Add support for Omnima MiniPlug
John Crispin [Mon, 18 Aug 2014 16:06:48 +0000 (16:06 +0000)]
ramips: Add support for Omnima MiniPlug

This patch adds support for the Omnima MiniPlug RT5350 based board, 8MB SPI flash

Signed-off-by: Ivan Ignjatic<ivan@omnima.co.uk>
SVN-Revision: 42200

6 years agobase-files: wan6 should reference wan intead of referencing itself.
John Crispin [Mon, 18 Aug 2014 13:16:35 +0000 (13:16 +0000)]
base-files: wan6 should reference wan intead of referencing itself.

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

6 years agovalgrind: set --enable-only64bit option for x86_64
John Crispin [Mon, 18 Aug 2014 13:10:19 +0000 (13:10 +0000)]
valgrind: set --enable-only64bit option for x86_64

There does not seem to be a good reason to build both
when building for x86_64.

SVN-Revision: 42198

6 years agovalgrind: explicitly disable mpicc compiler
John Crispin [Mon, 18 Aug 2014 13:10:16 +0000 (13:10 +0000)]
valgrind: explicitly disable mpicc compiler

If there's an mpicc compile on the machine, the configure
script will take it, causing a bit of headache.

SVN-Revision: 42197

6 years agogmp: add host compile
John Crispin [Mon, 18 Aug 2014 13:10:11 +0000 (13:10 +0000)]
gmp: add host compile

Currently, any package that uses host compile and depends on
libgmp.so will fail. This is because gmp is not compile for
host machine. So, staging_dir/host has only static lib for gmp

 $ ls staging_dir/host/lib/libgmp* -1
 staging_dir/host/lib/libgmp.a
 staging_dir/host/lib/libgmp.la
 staging_dir/host/lib/libgmpxx.a
 staging_dir/host/lib/libgmpxx.la

Addind host compile in gmp, the dependent package can use:

 PKG_BUILD_DEPENDS:=gmp/host

That will compile gmp to staging_dir/host with *.so files

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

6 years agobusybox: Fix pam_start link errors when PAM support is enabled
John Crispin [Mon, 18 Aug 2014 13:10:08 +0000 (13:10 +0000)]
busybox: Fix pam_start link errors when PAM support is enabled

Patch to BusyBox Makefile to fix linker errors when PAM support is enabled by
CONFIG_BUSYBOX_CONFIG_PAM=y. Typical errors include:
login.c:(.text.login_main+0x122): undefined reference to `pam_start'

Signed-off-by: Stephen Parry <sgparry@mainscreen.com>
SVN-Revision: 42195

6 years agoramips: fix switch config for Edimax 3G-6200n
John Crispin [Mon, 18 Aug 2014 13:10:04 +0000 (13:10 +0000)]
ramips: fix switch config for Edimax 3G-6200n

Switch in Edimax 3G-6200n also require full switch reset, not only vlan definitions. Tested on Edimax 3G-6200n.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
SVN-Revision: 42194

6 years agoar71xx: TL-WR1043N/ND v2: Fix MAC address of WMAC
John Crispin [Mon, 18 Aug 2014 13:10:00 +0000 (13:10 +0000)]
ar71xx: TL-WR1043N/ND v2: Fix MAC address of WMAC

This sets the MAC address of the WLAN interface to the "official" primary MAC
address (the one on the label under the devices, and the one used with the stock
firmware). The MAC address used so far (primary-1) isn't even used at all with
the stock firmware, which sets (primary) on LAN and WLAN and (primary+1) on the
WAN interface (like OpenWrt does with this patch).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
SVN-Revision: 42193

6 years agoralink: clean up HAME profiles, remove unnecessary packages.
John Crispin [Mon, 18 Aug 2014 13:09:46 +0000 (13:09 +0000)]
ralink: clean up HAME profiles, remove unnecessary packages.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
SVN-Revision: 42192

6 years agoramips: add mpr-a1 to default profile
John Crispin [Mon, 18 Aug 2014 13:09:43 +0000 (13:09 +0000)]
ramips: add mpr-a1 to default profile

Add hame mpr-a1 to default ramips profile.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
SVN-Revision: 42191

6 years agoramips: Hame: change LED name mpr-x -> hame
John Crispin [Mon, 18 Aug 2014 13:09:39 +0000 (13:09 +0000)]
ramips: Hame: change LED name mpr-x -> hame

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
SVN-Revision: 42190

6 years agoar71xx: build factory image for EnGenius ESR900 and ESR1750
John Crispin [Mon, 18 Aug 2014 13:09:34 +0000 (13:09 +0000)]
ar71xx: build factory image for EnGenius ESR900 and ESR1750

Signed-off-by: Forest Crossman <cyrozap@gmail.com>
SVN-Revision: 42189

6 years agolantiq: update to 3.14
John Crispin [Mon, 18 Aug 2014 13:09:30 +0000 (13:09 +0000)]
lantiq: update to 3.14

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

6 years agoocteon: update to 3.14
John Crispin [Mon, 18 Aug 2014 13:09:24 +0000 (13:09 +0000)]
octeon: update to 3.14

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

6 years agoramips: make use of the new board detection layer
John Crispin [Mon, 18 Aug 2014 13:09:20 +0000 (13:09 +0000)]
ramips: make use of the new board detection layer

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

6 years agobase-files: add a hardware detection layer
John Crispin [Mon, 18 Aug 2014 13:09:17 +0000 (13:09 +0000)]
base-files: add a hardware detection layer

this allows targets to use the new uci-default helper which will generate
a file called /etc/board.json. a tool called /bin/config_generate can then
be used to generate the default uci settings.

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

6 years agoar71xx: Fix 2.4G WiFi LED of the OpenMesh MR600 board
John Crispin [Mon, 18 Aug 2014 13:09:14 +0000 (13:09 +0000)]
ar71xx: Fix 2.4G WiFi LED of the OpenMesh MR600 board

The OpenMesh MR600(v1) can only enable the 2.4G WiFi PHY LED through the
mini-PCIe device. Not configuring the LED pin inside the platform data
makes it impossible to configure it through any standard OpenWrt tool.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
SVN-Revision: 42184

6 years agolantiq: generate unique ARV7519RW22 firmware
John Crispin [Mon, 18 Aug 2014 13:09:11 +0000 (13:09 +0000)]
lantiq: generate unique ARV7519RW22 firmware

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

6 years agolantiq: add support for xrx200 firmware depending on soc type
John Crispin [Mon, 18 Aug 2014 13:09:08 +0000 (13:09 +0000)]
lantiq: add support for xrx200 firmware depending on soc type

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

6 years agolantiq: export soc type
John Crispin [Mon, 18 Aug 2014 13:08:59 +0000 (13:08 +0000)]
lantiq: export soc type

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

6 years agolantiq: improve ARV7519RW22 support
John Crispin [Mon, 18 Aug 2014 13:08:56 +0000 (13:08 +0000)]
lantiq: improve ARV7519RW22 support

- use full board name
- rename uboot-env partition
- add dsl_fw partition
- remove unneeded pinmux groups
- move gigabit ethernet to LAN
- load mac address from mtd

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

6 years agoramips: add a workaround to fix failsafe on RT5350
John Crispin [Mon, 18 Aug 2014 13:08:52 +0000 (13:08 +0000)]
ramips: add a workaround to fix failsafe on RT5350

Due to TCP connections not working when VLAN is disabled, this is
needed to get failsafe functional.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
SVN-Revision: 42179

6 years agoramips: enable additional GPIOs on HAME MPR-A1
John Crispin [Mon, 18 Aug 2014 13:08:48 +0000 (13:08 +0000)]
ramips: enable additional GPIOs on HAME MPR-A1

According to the pcb tracing results[1] by anton.rad[2] MPR-A1s expose
6 unused GPIOs, only one of them working as configured in the current
DTS. This patch enables GPIO22-26.

Tested on hardware.

[1] http://i.imgur.com/kHVW2Ox.jpg
[2] https://forum.openwrt.org/viewtopic.php?pid=222698#p222698

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
SVN-Revision: 42178

6 years agoar71xx: changed the EnGenius ESR900 mtdparts to match that of the ESR1750 since they...
John Crispin [Mon, 18 Aug 2014 13:08:45 +0000 (13:08 +0000)]
ar71xx: changed the EnGenius ESR900 mtdparts to match that of the ESR1750 since they have the same flash layout

Signed-off-by: Forest Crossman <cyrozap@gmail.com>
SVN-Revision: 42177

6 years agoralink: add back the gpio_export_named() patch for 3.14
John Crispin [Mon, 18 Aug 2014 13:08:33 +0000 (13:08 +0000)]
ralink: add back the gpio_export_named() patch for 3.14

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

6 years agoadm8668: revert changeset 34554
Florian Fainelli [Sat, 16 Aug 2014 18:09:31 +0000 (18:09 +0000)]
adm8668: revert changeset 34554

The conversion was not 100% correct and leads to u-boot failing to
verify the CRC, revert that change for now.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 42170

6 years agoar7: remove 972-cpmac_fixup patch
Florian Fainelli [Sat, 16 Aug 2014 17:32:46 +0000 (17:32 +0000)]
ar7: remove 972-cpmac_fixup patch

This patch is causing more harm than good on most AR7 routers out there,
better have no manageable switch rather than no ethernet connection, at
least for now.

Fixes #16523, #5927

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 42168

6 years agobrcm47xx: image: update list of Netgear WNR* firmwares
Hauke Mehrtens [Thu, 14 Aug 2014 21:22:17 +0000 (21:22 +0000)]
brcm47xx: image: update list of Netgear WNR* firmwares

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

6 years agobrcm47xx: fix brcm47xx.legacy build
Hauke Mehrtens [Thu, 14 Aug 2014 21:21:27 +0000 (21:21 +0000)]
brcm47xx: fix brcm47xx.legacy build

we should check for ssb here.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 42164

6 years agodropbear: fix keepalive with putty
Jonas Gorski [Wed, 13 Aug 2014 20:49:56 +0000 (20:49 +0000)]
dropbear: fix keepalive with putty

Don't send SSH_MSG_UNIMPLEMENTED for keepalive responses, which broke
at least putty.

Fixes #17522 / #17523.

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

6 years agonetifd: assign ipv6-prefixes with length <64 with /64 on-link routes
Steven Barth [Wed, 13 Aug 2014 14:57:11 +0000 (14:57 +0000)]
netifd: assign ipv6-prefixes with length <64 with /64 on-link routes

SVN-Revision: 42161

6 years agoodhcpd: improve DHCPv6-PD detection
Steven Barth [Wed, 13 Aug 2014 14:57:07 +0000 (14:57 +0000)]
odhcpd: improve DHCPv6-PD detection

SVN-Revision: 42160

6 years agoppp: enable IPv6CP by default
Steven Barth [Wed, 13 Aug 2014 10:18:20 +0000 (10:18 +0000)]
ppp: enable IPv6CP by default

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

6 years agoodhcpd: multiple DHCPv4 improvements (thx Christian Mehlis)
Steven Barth [Tue, 12 Aug 2014 13:30:04 +0000 (13:30 +0000)]
odhcpd: multiple DHCPv4 improvements (thx Christian Mehlis)

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

6 years agopackage: fix segfault of iwinfo.scanlist("radio0").
Jo-Philipp Wich [Tue, 12 Aug 2014 11:14:11 +0000 (11:14 +0000)]
package: fix segfault of iwinfo.scanlist("radio0").

This is a bug revealed in r41830.

First, the static variable `char nif[IFNAMSIZ]` of nl80211_phy2ifname()
would be zeroed out if the argument is "wlan0" or the like.  This will
happen in the following call stack.

 nl80211_get_scanlist("radio0", buf, len);
   nl80211_phy2ifname("radio0") // return static var nif with content "wlan0"
   nl80211_get_scanlist(nif, buf, len); // tail call
     nl80211_get_mode(nif);
        nl80211_phy2ifname(nif); // zero out nif

Later we try nl80211_ifadd("") which was supposed to create interface
"tmp.", but that won't happen because nl80211_msg() will put an invalid
ifidx 0 to the nlmsg.

Then iwinfo_ifup() and iwinfo_ifdown() would fail and happily
nl80211_get_scanlist() returned 0 and left *len undefined.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 42151

6 years agoimx6: update kernel config
Luka Perkov [Mon, 11 Aug 2014 20:35:15 +0000 (20:35 +0000)]
imx6: update kernel config

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

6 years agoimx6: kernel: add GW5520 support
Luka Perkov [Mon, 11 Aug 2014 20:35:13 +0000 (20:35 +0000)]
imx6: kernel: add GW5520 support

The GW5520 is a small form-factor single-board computer with the following
features:
 * 70x100mm form-factor
 * IMX6DL 800MHz SoC (IMX6Q optional)
 * 512MB 32bit DDR3 SDRAM (up to 2GB optional)
 * 256MB NAND FLASH (up to 2GB optional)
 * Gateworks System Controller
 * 2x front-panel Intel i210 GbE adapters with passive PoE support
 * 2x MiniPCIe sockets with USB support
 * 2x front-panel USB
 * 1x rear-panel full-size HDMI connector
 * 1x front-panel bi-color user LED
 * 1x front-panel user pushbutton
 * 1x rear-panel barrel jack for power
 * 1x Application connector with:
  * 2x TTL level UARTs
  * 10x TTL level Digital IO

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
SVN-Revision: 42148

6 years agoimx6: kernel: add GW16083 Ethernet Expansion Mezzanine support
Luka Perkov [Mon, 11 Aug 2014 20:35:10 +0000 (20:35 +0000)]
imx6: kernel: add GW16083 Ethernet Expansion Mezzanine support

The GW16083 Ethernet Expansion Mezzanine adds the following to supported
Gateworks baseboards:
 * 7-port Ethernet Switch
  * 4x RJ45 ports (ENET1-4) supporing 802.11af/at PoE (with optional PoE module)
  * 2x RJ45 ports or SFP module (ENET5-6) (auto-selected)

This series adds support for a phy driver that adds support for ENET5/ENET6
PHY adding initialization for those PHY's and a polling mechanism that detects
SFP insertion and configuration.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
SVN-Revision: 42147

6 years agoimx6: kernel: add GW16082 miniPCI Expansion Mezzanine support
Luka Perkov [Mon, 11 Aug 2014 20:35:06 +0000 (20:35 +0000)]
imx6: kernel: add GW16082 miniPCI Expansion Mezzanine support

The GW16082 miniPCI Expansion Mezzanine has the INTA/B/C/D IRQ's reversed
from the PCI standard. This will soon be resolved in the bootloader via
devicetree, but in the meantime this will work around the issue.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
SVN-Revision: 42146

6 years agoimx6: kernel: fix occasional link failure
Luka Perkov [Mon, 11 Aug 2014 20:35:04 +0000 (20:35 +0000)]
imx6: kernel: fix occasional link failure

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
SVN-Revision: 42145

6 years agoimx6: kernel: backport an upstream pci hang fix
Luka Perkov [Mon, 11 Aug 2014 20:35:02 +0000 (20:35 +0000)]
imx6: kernel: backport an upstream pci hang fix

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
SVN-Revision: 42144

6 years agobcm53xx: add b43 wifi support
Hauke Mehrtens [Mon, 11 Aug 2014 20:25:26 +0000 (20:25 +0000)]
bcm53xx: add b43 wifi support

Now it is possible to use b43 wifi.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 42143

6 years agobcm53xx: remove BCM4360 from PCI ids
Hauke Mehrtens [Mon, 11 Aug 2014 20:24:45 +0000 (20:24 +0000)]
bcm53xx: remove BCM4360 from PCI ids

bcma does not support this card and b43 hangs when probing this card.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 42142

6 years agomac80211: fix warning with kernel 3.14
Hauke Mehrtens [Mon, 11 Aug 2014 20:23:20 +0000 (20:23 +0000)]
mac80211: fix warning with kernel 3.14

This fixes a redefinition of net_get_random_once() warning.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 42141

6 years agobase-files: /lib/functions/network.sh: fix network_get_ipaddr6
Jo-Philipp Wich [Mon, 11 Aug 2014 18:15:18 +0000 (18:15 +0000)]
base-files: /lib/functions/network.sh: fix network_get_ipaddr6

When looking for the first ipaddr also consider the current prefix just
like network_get_ipaddrs6 does. If ipv6-address was empty the function
did not return the first ipaddr even if the list was non-empty.

fixes commit 83e9122f88a002871d5cdf421cf6aa6052b7e006

Signed-off-by: Henning Schild <henning@hennsch.de>
SVN-Revision: 42139

6 years agofirewall: fix potential NULL pointer access
Jo-Philipp Wich [Mon, 11 Aug 2014 17:45:18 +0000 (17:45 +0000)]
firewall: fix potential NULL pointer access

Properly skip struct ifaddr entries with NULL ifa_addr, thanks Kostas Papadopoulos for reporting.

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

6 years agodropbear: update to 2014.65
Steven Barth [Mon, 11 Aug 2014 13:02:43 +0000 (13:02 +0000)]
dropbear: update to 2014.65

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

6 years ago[ar71xx]: add support for the NC-LINK SMART-300
Imre Kaloz [Mon, 11 Aug 2014 11:44:51 +0000 (11:44 +0000)]
[ar71xx]: add support for the NC-LINK SMART-300

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 42130

6 years agobrcm63xx: remove now obsolete board fixup code
Jonas Gorski [Mon, 11 Aug 2014 11:37:26 +0000 (11:37 +0000)]
brcm63xx: remove now obsolete board fixup code

Now that we migrated all users to dtb based detection, we can drop the
board fixup code.

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

6 years agobrcm63xx: use dtb board detection for neufbox 4
Jonas Gorski [Mon, 11 Aug 2014 11:37:21 +0000 (11:37 +0000)]
brcm63xx: use dtb board detection for neufbox 4

This splits up neufbox 4 for now into two images, one for each OEM.

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

6 years agobrcm63xx: use dtb board detection for NB6
Jonas Gorski [Mon, 11 Aug 2014 11:37:17 +0000 (11:37 +0000)]
brcm63xx: use dtb board detection for NB6

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

6 years agobrcm63xx: use dtb board detection for HW556
Jonas Gorski [Mon, 11 Aug 2014 11:37:14 +0000 (11:37 +0000)]
brcm63xx: use dtb board detection for HW556

This requires individual images for each board version for now.
Linux partition was shrunk to ensure writing thewrong image won't
erase wifi calibration data.

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

6 years agobrcm63xx: replace CFEFIXUP usage with dtb based detection
Jonas Gorski [Mon, 11 Aug 2014 11:37:09 +0000 (11:37 +0000)]
brcm63xx: replace CFEFIXUP usage with dtb based detection

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

6 years agobrcm63xx: move bcm96328avng to dtb detection
Jonas Gorski [Mon, 11 Aug 2014 11:37:04 +0000 (11:37 +0000)]
brcm63xx: move bcm96328avng to dtb detection

Use appended dtb for board detection for bcm96328avng.

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

6 years agobrcm63xx: add support for registering parallel flash through dtb
Jonas Gorski [Mon, 11 Aug 2014 11:37:01 +0000 (11:37 +0000)]
brcm63xx: add support for registering parallel flash through dtb

Add the required nodes to the dtsi files and code to prevent double
registration from the board support code.

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

6 years agobrcm63xx: add helpers for building cfe images with dtb
Jonas Gorski [Mon, 11 Aug 2014 11:36:59 +0000 (11:36 +0000)]
brcm63xx: add helpers for building cfe images with dtb

Add a helper for building images with dtb appended kernels.

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

6 years agobrcm63xx: add support for attaching dtbs to lzma kernels
Jonas Gorski [Mon, 11 Aug 2014 11:36:55 +0000 (11:36 +0000)]
brcm63xx: add support for attaching dtbs to lzma kernels

In preparation for switching to dtb based board identification, add
support for building lzma-loader and lzma cfe kernels with dtb
appended.

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

6 years agobrcm63xx: add empty dtsi files for each of the supported SoCs
Jonas Gorski [Mon, 11 Aug 2014 11:36:53 +0000 (11:36 +0000)]
brcm63xx: add empty dtsi files for each of the supported SoCs

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

6 years agobrcm63xx: add and enable support for loading an appended dtb
Jonas Gorski [Mon, 11 Aug 2014 11:36:48 +0000 (11:36 +0000)]
brcm63xx: add and enable support for loading an appended dtb

Allow appending a dtb blob to the binary and use it for identifying the
board. Fall back to nvram based identification in case of no dtb passed.

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

6 years agobrcm63xx: correctly export fallback sprom for brcm-wl
Jonas Gorski [Mon, 11 Aug 2014 11:36:41 +0000 (11:36 +0000)]
brcm63xx: correctly export fallback sprom for brcm-wl

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

6 years agobrcm63xx: make board patch context less ambiguous
Jonas Gorski [Mon, 11 Aug 2014 11:36:38 +0000 (11:36 +0000)]
brcm63xx: make board patch context less ambiguous

Make it less likely for quilt/patch to put boards into the "wrong"
section.

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

6 years agobrcm63xx: fix board patches offsets
Jonas Gorski [Mon, 11 Aug 2014 11:36:30 +0000 (11:36 +0000)]
brcm63xx: fix board patches offsets

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo fix 553-boards_probe_switch.patch]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42116

6 years agofirewall: implement selective conntrack flushing (#10225)
Jo-Philipp Wich [Mon, 11 Aug 2014 09:41:20 +0000 (09:41 +0000)]
firewall: implement selective conntrack flushing (#10225)

Utilize the new selective conntrack flushing facility to clear
out active conntrack entries referring to old IP addresses after
a firewall reload.

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

6 years agokernel: 3.14: refresh patches
Luka Perkov [Mon, 11 Aug 2014 09:21:05 +0000 (09:21 +0000)]
kernel: 3.14: refresh patches

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

6 years agobuild: enable PER_FEED_REPO by default
Jo-Philipp Wich [Mon, 11 Aug 2014 09:15:17 +0000 (09:15 +0000)]
build: enable PER_FEED_REPO by default

Enable the separate feed repositories by default to align custom builds with the repositories
available on the snapshot download server.

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

6 years agohostapd: fix some whitespaces
Luka Perkov [Mon, 11 Aug 2014 08:44:48 +0000 (08:44 +0000)]
hostapd: fix some whitespaces

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

6 years agobrcm63xx: Add fallback sprom for A4001N
Jonas Gorski [Sun, 10 Aug 2014 12:22:15 +0000 (12:22 +0000)]
brcm63xx: Add fallback sprom for A4001N

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42110

6 years agobrcm63xx: Add fallback sprom for HG520v
Jonas Gorski [Sun, 10 Aug 2014 12:22:12 +0000 (12:22 +0000)]
brcm63xx: Add fallback sprom for HG520v

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42109

6 years agobrcm63xx: Add fallback sprom for P870HW-51a
Jonas Gorski [Sun, 10 Aug 2014 12:22:10 +0000 (12:22 +0000)]
brcm63xx: Add fallback sprom for P870HW-51a

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42108

6 years agobrcm63xx: Add fallback sprom for VR-3025un
Jonas Gorski [Sun, 10 Aug 2014 12:22:08 +0000 (12:22 +0000)]
brcm63xx: Add fallback sprom for VR-3025un

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42107

6 years agobrcm63xx: Add fallback sprom for VR-3025u
Jonas Gorski [Sun, 10 Aug 2014 12:22:05 +0000 (12:22 +0000)]
brcm63xx: Add fallback sprom for VR-3025u

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42106

6 years agobrcm63xx: Add fallback sprom for WAP-5813n
Jonas Gorski [Sun, 10 Aug 2014 12:22:02 +0000 (12:22 +0000)]
brcm63xx: Add fallback sprom for WAP-5813n

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42105

6 years agobrcm63xx: Add fallback sprom for AR-5381u
Jonas Gorski [Sun, 10 Aug 2014 12:21:59 +0000 (12:21 +0000)]
brcm63xx: Add fallback sprom for AR-5381u

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42104

6 years agobrcm63xx: Add fallback sprom for AR-5387un
Jonas Gorski [Sun, 10 Aug 2014 12:21:55 +0000 (12:21 +0000)]
brcm63xx: Add fallback sprom for AR-5387un

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42103

6 years agobrcm63xx: Add fallback sprom for A4001N1
Jonas Gorski [Sun, 10 Aug 2014 12:21:52 +0000 (12:21 +0000)]
brcm63xx: Add fallback sprom for A4001N1

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42102

6 years agobrcm63xx: Add fallback sprom for CT6373
Jonas Gorski [Sun, 10 Aug 2014 12:21:48 +0000 (12:21 +0000)]
brcm63xx: Add fallback sprom for CT6373

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42101

6 years agobrcm63xx: Add fallback sprom for CT5365
Jonas Gorski [Sun, 10 Aug 2014 12:21:44 +0000 (12:21 +0000)]
brcm63xx: Add fallback sprom for CT5365

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42100

6 years agobrcm63xx: Add fallback sprom for CT5361_CT5621
Jonas Gorski [Sun, 10 Aug 2014 12:21:39 +0000 (12:21 +0000)]
brcm63xx: Add fallback sprom for CT5361_CT5621

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42099

6 years agobrcm63xx: Add fallback sprom for Huawei HG553
Jonas Gorski [Sun, 10 Aug 2014 12:21:34 +0000 (12:21 +0000)]
brcm63xx: Add fallback sprom for Huawei HG553

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42098

6 years agobrcm63xx: Fix fallback sprom il0mac
Jonas Gorski [Sun, 10 Aug 2014 12:21:30 +0000 (12:21 +0000)]
brcm63xx: Fix fallback sprom il0mac

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42097

6 years agonetfilter: consider reply direction on selective flushing
Jo-Philipp Wich [Sun, 10 Aug 2014 10:15:22 +0000 (10:15 +0000)]
netfilter: consider reply direction on selective flushing

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

6 years agonetfilter: fix calls to nf_ct_iterate_cleanup() with Linux >= 3.13
Jo-Philipp Wich [Sun, 10 Aug 2014 09:21:14 +0000 (09:21 +0000)]
netfilter: fix calls to nf_ct_iterate_cleanup() with Linux >= 3.13

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

6 years agonetfilter: support /proc conntrack flushing of specific ip addresses
Jo-Philipp Wich [Sat, 9 Aug 2014 14:36:10 +0000 (14:36 +0000)]
netfilter: support /proc conntrack flushing of specific ip addresses

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

6 years agobuild: fix removal of old .ipk files with CONFIG_PER_FEED_REPO
Jo-Philipp Wich [Sat, 9 Aug 2014 13:04:17 +0000 (13:04 +0000)]
build: fix removal of old .ipk files with CONFIG_PER_FEED_REPO

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

6 years agobrcm47xx: fix reboot problem on BCM4705/BCM4785
Hauke Mehrtens [Fri, 8 Aug 2014 23:10:16 +0000 (23:10 +0000)]
brcm47xx: fix reboot problem on BCM4705/BCM4785

This adds some code based on code from the Broadcom GPL tar to fix the
reboot problems on BCM4705/BCM4785. I tried rebooting my device for ~10
times and have never seen a problem. This reverts the changes in the
previous commit and adds the real fix as suggested by Rafał.

Setting bit 22 in Reg 22, sel 4 puts the BIU (Bus Interface Unit) into
async mode.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 42088

6 years agobroadcom-wl: add default tx and rx antennas
Hauke Mehrtens [Fri, 8 Aug 2014 22:59:45 +0000 (22:59 +0000)]
broadcom-wl: add default tx and rx antennas

This adds default tx and rx antennas, so that LuCI shows automatic as the default radio option for the antennas.

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

6 years agobroadcom-wl: add support for a8xx broadcom devices
Hauke Mehrtens [Fri, 8 Aug 2014 22:58:54 +0000 (22:58 +0000)]
broadcom-wl: add support for a8xx broadcom devices

Tested on Comtrend VR-3025u (brcm6368 + a8d6-43222).

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

6 years agobrcm47xx: fix reboot problem on BCM4705/BCM4785
Hauke Mehrtens [Fri, 8 Aug 2014 22:52:28 +0000 (22:52 +0000)]
brcm47xx: fix reboot problem on BCM4705/BCM4785

This adds some code based on code from the Broadcom GPL tar to fix the
reboot problems on BCM4705/BCM4785. I tried rebooting my device for ~10
times and have never seen a problem. This reverts the changes in the
previous commit and adds the real fix as suggested by Rafał.

Setting bit 22 in Reg 22, sel 4 puts the BIU (Bus Interface Unit) into
async mode.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 42083