openwrt/staging/neocturne.git
10 years agofirmware-utils: remove dependency on error.h in tplink-safeloader
Felix Fietkau [Thu, 27 Nov 2014 15:01:56 +0000 (15:01 +0000)]
firmware-utils: remove dependency on error.h in tplink-safeloader

Fixes build on Mac OS X

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43402

10 years agoadd D-link DGL-5500 A1 support
Imre Kaloz [Thu, 27 Nov 2014 14:27:34 +0000 (14:27 +0000)]
add D-link DGL-5500 A1 support

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

10 years agonetifd: correctly handle source-parameter for IPv4 routes
Steven Barth [Thu, 27 Nov 2014 07:26:10 +0000 (07:26 +0000)]
netifd: correctly handle source-parameter for IPv4 routes

Thanks to Kristian Evensen

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

10 years agocns3xxx: add missing dma mask for ethernet device
Felix Fietkau [Wed, 26 Nov 2014 18:48:05 +0000 (18:48 +0000)]
cns3xxx: add missing dma mask for ethernet device

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43399

10 years agocns3xxx: switch to using the upstream dwc2 driver instead of dwc_otg
Felix Fietkau [Wed, 26 Nov 2014 18:01:38 +0000 (18:01 +0000)]
cns3xxx: switch to using the upstream dwc2 driver instead of dwc_otg

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43398

10 years agocns3xxx: update to linux 3.14
Felix Fietkau [Wed, 26 Nov 2014 18:01:29 +0000 (18:01 +0000)]
cns3xxx: update to linux 3.14

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43397

10 years agocns3xxx: remove bogus image added in r38703
Felix Fietkau [Wed, 26 Nov 2014 18:01:18 +0000 (18:01 +0000)]
cns3xxx: remove bogus image added in r38703

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43396

10 years agocns3xxx: set base device for ethernet port netdevs
Felix Fietkau [Wed, 26 Nov 2014 18:01:07 +0000 (18:01 +0000)]
cns3xxx: set base device for ethernet port netdevs

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43395

10 years agocns3xxx: fix passing the device to dma mapping ops
Felix Fietkau [Wed, 26 Nov 2014 18:00:52 +0000 (18:00 +0000)]
cns3xxx: fix passing the device to dma mapping ops

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43394

10 years agofix the r6100's wan led name
Imre Kaloz [Wed, 26 Nov 2014 11:38:59 +0000 (11:38 +0000)]
fix the r6100's wan led name

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

10 years agouboot-omap: add C4 revision in findfdt
John Crispin [Wed, 26 Nov 2014 09:00:56 +0000 (09:00 +0000)]
uboot-omap: add C4 revision in findfdt

fixes BeagleBoard C4 detection

error message in serial console was:
"WARNING: Could not determine device tree to use"

change is found in upstream u-boot

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
SVN-Revision: 43392

10 years agokirkwood: Add support for Iomega StorCenter ix2-200
John Crispin [Wed, 26 Nov 2014 09:00:48 +0000 (09:00 +0000)]
kirkwood: Add support for Iomega StorCenter ix2-200

Signed-off-by: Richard Kunze <richard.kunze@web.de>
SVN-Revision: 43391

10 years agouboot-envtools: add support for oxnas target
John Crispin [Wed, 26 Nov 2014 09:00:40 +0000 (09:00 +0000)]
uboot-envtools: add support for oxnas target

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

10 years agoadd uboot-oxnas
John Crispin [Wed, 26 Nov 2014 09:00:17 +0000 (09:00 +0000)]
add uboot-oxnas

This adds support for the oxnas target in U-Boot 2014.04
History can be found at https://github.com/kref/u-boot-oxnas up to 2013.10
changes from 2013.10 to 2014.04 can be followed at
https://gitorious.org/openwrt-oxnas

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

10 years agoadd new target 'oxnas'
John Crispin [Wed, 26 Nov 2014 09:00:08 +0000 (09:00 +0000)]
add new target 'oxnas'

This is the oxnas target previously developed at
http://gitorious.org/openwrt-oxnas
Basically, this consolidates the changes and addtionas from
http://github.org/kref/linux-oxnas
into a new OpenWrt hardware target 'oxnas' adding support for
 PLX Technology NAS7820/NAS7821/NAS7825/...
formally known as
 Oxford Semiconductor OXE810SE/OXE815/OX820/...

For now there are 4 supported boards:
Cloud Engines Pogoplug V3 (without PCIe)
 fully supported

Cloud Engines Pogoplug Pro (with PCIe)
 fully supported

MitraStar STG-212
 aka ZyXEL NSA-212,
 aka Medion Akoya P89625 / P89636 / P89626 / P89630,
 aka Medion MD 86407 / MD 86805 / MD 86517 / MD 86587
 fully supported, see http://wiki.openwrt.org/toh/medion/md86587

Shuttle KD-20
 partially supported (S-ATA driver lacks support for 2nd port)

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

10 years agotarget.mk: add default packages for NAS device-type
John Crispin [Wed, 26 Nov 2014 08:59:49 +0000 (08:59 +0000)]
target.mk: add default packages for NAS device-type

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

10 years agokernel: unset CONFIG_ARM_CCN
John Crispin [Wed, 26 Nov 2014 08:59:41 +0000 (08:59 +0000)]
kernel: unset CONFIG_ARM_CCN

oldconfig kept asking for that config symbol...

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

10 years agoar71xx: add support for TP-LINK CPE210/220/510/520
John Crispin [Wed, 26 Nov 2014 08:59:32 +0000 (08:59 +0000)]
ar71xx: add support for TP-LINK CPE210/220/510/520

This adds support for the TP-LINK CPE210/220/510/520 (Pharos series). These
devices are very similar to the Ubiquiti NanoStations, but with better specs:
faster CPU, more RAM, 2x2 MIMO.

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

10 years agofirmware-utils: add new tool tplink-safeloader for the new TP-LINK Pharos devices...
John Crispin [Wed, 26 Nov 2014 08:59:22 +0000 (08:59 +0000)]
firmware-utils: add new tool tplink-safeloader for the new TP-LINK Pharos devices (CPE210/220/510/520)

The new TP-LINK Pharos series uses a new bootloader, the "TP-LINK Safeloader".
It uses an advanced firmware image format, containing an image partition table
and a flash partition table (and image partitions are mapped to the
corresponding flash partitions). The exact image format is documented in the
source code.

Furthermore, the bootloader expects the kernel image as an ELF executable.

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

10 years agomtd: fix 2 compiler warnings
John Crispin [Wed, 26 Nov 2014 08:59:17 +0000 (08:59 +0000)]
mtd: fix 2 compiler warnings

mtd.c:544:7: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘ssize_t’ [-Wformat]
mtd.c:602:1: warning: label ‘done’ defined but not used [-Wunused-label]

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

10 years agoNetgear R6100 support
Imre Kaloz [Wed, 26 Nov 2014 08:28:22 +0000 (08:28 +0000)]
Netgear R6100 support

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

10 years agouqmi: update to the latest version, also set 802.3 data format via the WDA service
Felix Fietkau [Tue, 25 Nov 2014 20:34:08 +0000 (20:34 +0000)]
uqmi: update to the latest version, also set 802.3 data format via the WDA service

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43381

10 years agobrcm63xx: uci-defaults: network: move DSL-274x1 F1 to right section
Jonas Gorski [Tue, 25 Nov 2014 19:07:02 +0000 (19:07 +0000)]
brcm63xx: uci-defaults: network: move DSL-274x1 F1 to right section

The cpu port is at 8, not 5.

Fixes #18406.

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

10 years agobrcm63xx: unify dt image generation
Jonas Gorski [Tue, 25 Nov 2014 19:06:51 +0000 (19:06 +0000)]
brcm63xx: unify dt image generation

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

10 years agobrcm63xx: move rsa signature to additional options
Jonas Gorski [Tue, 25 Nov 2014 19:06:43 +0000 (19:06 +0000)]
brcm63xx: move rsa signature to additional options

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

10 years agobrcm63xx: fix image generation
Jonas Gorski [Tue, 25 Nov 2014 19:06:38 +0000 (19:06 +0000)]
brcm63xx: fix image generation

This fixes build issues introduced on r43361.

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

10 years agorename overlayfs' symbol
Imre Kaloz [Mon, 24 Nov 2014 22:09:47 +0000 (22:09 +0000)]
rename overlayfs' symbol

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

10 years agoralink: fix pci reset patch
John Crispin [Mon, 24 Nov 2014 20:39:48 +0000 (20:39 +0000)]
ralink: fix pci reset patch

sorry, forgot to make target/update before commiting the last patch

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

10 years agoprocd: fix/clean some conditions in nand.sh
John Crispin [Mon, 24 Nov 2014 19:14:29 +0000 (19:14 +0000)]
procd: fix/clean some conditions in nand.sh

1) nand_upgrade_tar: use a simpler condition that matches if () { }
   logic and fix check of $kernel_length variable
2) nand_do_upgrade_stage2: use case, otherwise one could believe we
   always call nand_upgrade_tar

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

10 years agoprocd: document nand.sh a bit
John Crispin [Mon, 24 Nov 2014 19:14:17 +0000 (19:14 +0000)]
procd: document nand.sh a bit

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

10 years agompc85xx: fix missing dts target for kernel 3.14
John Crispin [Mon, 24 Nov 2014 19:12:46 +0000 (19:12 +0000)]
mpc85xx: fix missing dts target for kernel 3.14

With kernel 3.14 dts target p1010rdb was renamed to p1010rdb-pa.
To maintain compatibility define p1010rdb-pa as new standard and
copy p1010rdb.dts to p1010rdb-pa.dts under 3.10.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 43371

10 years agoralink: add proper reset of pci core
John Crispin [Mon, 24 Nov 2014 19:12:35 +0000 (19:12 +0000)]
ralink: add proper reset of pci core

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

10 years agoimx6: make the default config bootable on ventana
John Crispin [Mon, 24 Nov 2014 19:12:19 +0000 (19:12 +0000)]
imx6: make the default config bootable on ventana

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

10 years agofstools: update to the latest version, fixes overlayfs mount on 3.18
Felix Fietkau [Mon, 24 Nov 2014 17:18:32 +0000 (17:18 +0000)]
fstools: update to the latest version, fixes overlayfs mount on 3.18

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43368

10 years agomac80211: fix a crash on getting the channel in WDS AP mode (#18400)
Felix Fietkau [Mon, 24 Nov 2014 17:13:54 +0000 (17:13 +0000)]
mac80211: fix a crash on getting the channel in WDS AP mode (#18400)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43367

10 years agoadd initial 3.18 support
Imre Kaloz [Mon, 24 Nov 2014 16:00:41 +0000 (16:00 +0000)]
add initial 3.18 support

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

10 years agofix sysupgrade on overlayfs v23+
Imre Kaloz [Mon, 24 Nov 2014 15:55:52 +0000 (15:55 +0000)]
fix sysupgrade on overlayfs v23+

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

10 years agobrcm63xx: do not build images for unsupported routers
Jonas Gorski [Mon, 24 Nov 2014 14:44:46 +0000 (14:44 +0000)]
brcm63xx: do not build images for unsupported routers

If there is no board support in the kernel, it does not make sense to
build images for devices. So drop any images for board ids for which
there are nc corresponding board_info structs in the kernel.

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

10 years agobrcm63xx: refresh patches
Jonas Gorski [Mon, 24 Nov 2014 14:44:40 +0000 (14:44 +0000)]
brcm63xx: refresh patches

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

10 years agobrcm63xx: Add DT support for SPW303V
Jonas Gorski [Mon, 24 Nov 2014 14:44:33 +0000 (14:44 +0000)]
brcm63xx: Add DT support for SPW303V

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

10 years agobrcm63xx: Add DT support for DV-201AMR
Jonas Gorski [Mon, 24 Nov 2014 14:44:28 +0000 (14:44 +0000)]
brcm63xx: Add DT support for DV-201AMR

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

10 years agobrcm63xx: Add DT support for RG100A
Jonas Gorski [Mon, 24 Nov 2014 14:44:23 +0000 (14:44 +0000)]
brcm63xx: Add DT support for RG100A

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

10 years agobrcm63xx: Add DT support for A226G/M
Jonas Gorski [Mon, 24 Nov 2014 14:44:19 +0000 (14:44 +0000)]
brcm63xx: Add DT support for A226G/M

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

10 years agobrcm63xx: Add DT support for AGPF-S0
Jonas Gorski [Mon, 24 Nov 2014 14:44:12 +0000 (14:44 +0000)]
brcm63xx: Add DT support for AGPF-S0

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

10 years agoupdate .18 support for -rc6
Imre Kaloz [Mon, 24 Nov 2014 10:17:33 +0000 (10:17 +0000)]
update .18 support for -rc6

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

10 years agoar8216: Fix issue with autoneg being disabled under 3.14, revert 43332
Felix Fietkau [Mon, 24 Nov 2014 09:33:48 +0000 (09:33 +0000)]
ar8216: Fix issue with autoneg being disabled under 3.14, revert 43332

Patch reverts 43332 which seems to cause issues with VLAN functionality.
Add a specific check to check whether ANEG is still enabled and re-enable
it if necessary. Disable generic phy soft reset for kernel >=3.16.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 43356

10 years agoarm64: add ARM 64-bits target
Florian Fainelli [Mon, 24 Nov 2014 06:34:07 +0000 (06:34 +0000)]
arm64: add ARM 64-bits target

This target can be emulated using ARM's Foundation_V8 simulator
software or qemu-system-aarch64 using the command-line described in the
README file.

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

10 years agolibbsd: add support for aarch64
Florian Fainelli [Mon, 24 Nov 2014 06:33:34 +0000 (06:33 +0000)]
libbsd: add support for aarch64

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

10 years agoaarch64: add initial support
Florian Fainelli [Mon, 24 Nov 2014 06:33:13 +0000 (06:33 +0000)]
aarch64: add initial support

Add initial support for the AArch64 architecture

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

10 years agoeglibc: enforce use of autoconf-2.69
Florian Fainelli [Mon, 24 Nov 2014 02:06:20 +0000 (02:06 +0000)]
eglibc: enforce use of autoconf-2.69

Since we updated autoconf in r42855 we also need to enforce its use
while building eglibc to allow it to build successfully.

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

10 years agolibubox: fix a variable handling regression in jshn
Felix Fietkau [Sun, 23 Nov 2014 22:53:14 +0000 (22:53 +0000)]
libubox: fix a variable handling regression in jshn

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43351

10 years agolibubox: update to the latest version, adds some jshn optimizations
Felix Fietkau [Sun, 23 Nov 2014 20:10:07 +0000 (20:10 +0000)]
libubox: update to the latest version, adds some jshn optimizations

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43350

10 years agolzo: disable unaligned access for everything except x86
Felix Fietkau [Sun, 23 Nov 2014 20:10:02 +0000 (20:10 +0000)]
lzo: disable unaligned access for everything except x86

Fixes issues on ARM

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43349

10 years agobusybox: turn on BUSYBOX_DEFAULT_FEATURE_SH_NOFORK to slightly improve performance
Felix Fietkau [Sun, 23 Nov 2014 20:09:56 +0000 (20:09 +0000)]
busybox: turn on BUSYBOX_DEFAULT_FEATURE_SH_NOFORK to slightly improve performance

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43348

10 years agoar71xx: merge changes from 3.10 that were forgotten for 3.14
Felix Fietkau [Sun, 23 Nov 2014 16:27:19 +0000 (16:27 +0000)]
ar71xx: merge changes from 3.10 that were forgotten for 3.14

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43347

10 years agonetifd: update to the latest version, fixes issues when changing a bridge member...
Felix Fietkau [Sun, 23 Nov 2014 16:07:00 +0000 (16:07 +0000)]
netifd: update to the latest version, fixes issues when changing a bridge member from a vlan to its base device (#18351)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43346

10 years agohostapd: fix build error on some variants with CONFIG_WPA_RFKILL_SUPPORT=y (#17765)
Felix Fietkau [Sun, 23 Nov 2014 14:16:47 +0000 (14:16 +0000)]
hostapd: fix build error on some variants with CONFIG_WPA_RFKILL_SUPPORT=y (#17765)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43345

10 years agoar71xx: remove linux 3.10 support
Felix Fietkau [Sun, 23 Nov 2014 13:54:28 +0000 (13:54 +0000)]
ar71xx: remove linux 3.10 support

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43344

10 years agoar71xx: switch to linux 3.14
Felix Fietkau [Sun, 23 Nov 2014 13:54:22 +0000 (13:54 +0000)]
ar71xx: switch to linux 3.14

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43343

10 years agoath9k: fix some ar913x irq handling issues
Felix Fietkau [Sun, 23 Nov 2014 12:53:35 +0000 (12:53 +0000)]
ath9k: fix some ar913x irq handling issues

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43342

10 years agobrcm63xx: move board compatible strings into a table
Jonas Gorski [Sat, 22 Nov 2014 12:25:52 +0000 (12:25 +0000)]
brcm63xx: move board compatible strings into a table

Move compatible strings from board structs into separate table. This
allows for several board compatibles to match to the same board in case
e.g. only the flash size / partitions differ.

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

10 years agomac80211: fix a crash on using VHT rates
Felix Fietkau [Fri, 21 Nov 2014 22:29:48 +0000 (22:29 +0000)]
mac80211: fix a crash on using VHT rates

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43340

10 years agohostapd: switch dependency from mac80211 to cfg80211
Felix Fietkau [Fri, 21 Nov 2014 20:38:14 +0000 (20:38 +0000)]
hostapd: switch dependency from mac80211 to cfg80211

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

10 years agosunxi: add config for 3.18
Zoltan Herpai [Fri, 21 Nov 2014 18:49:56 +0000 (18:49 +0000)]
sunxi: add config for 3.18

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
SVN-Revision: 43338

10 years agosunxi: add initial 3.18 support
Zoltan Herpai [Fri, 21 Nov 2014 18:42:43 +0000 (18:42 +0000)]
sunxi: add initial 3.18 support

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
SVN-Revision: 43337

10 years agobrcm47xx: add support for Netgear WGR614 V10
Rafał Miłecki [Thu, 20 Nov 2014 22:15:21 +0000 (22:15 +0000)]
brcm47xx: add support for Netgear WGR614 V10

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

10 years agomt76: add new mediatek 802.11ac driver
Felix Fietkau [Thu, 20 Nov 2014 20:27:36 +0000 (20:27 +0000)]
mt76: add new mediatek 802.11ac driver

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43335

10 years agoar8216: Use generic hw_init from ar8236 for ar8216 too
Felix Fietkau [Thu, 20 Nov 2014 15:19:15 +0000 (15:19 +0000)]
ar8216: Use generic hw_init from ar8236 for ar8216 too

We should make sure that also for ar8216 hw gets initialized.
For ar8216 hw_init is a dummy currently. The hw_init used for ar8236
should be generic enough to be usable with ar8216 too.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 43334

10 years agoar8216: simplify PHY fixup/init
Felix Fietkau [Thu, 20 Nov 2014 15:19:04 +0000 (15:19 +0000)]
ar8216: simplify PHY fixup/init

Move the PHY fixup call to the PHY init loop.
Use ar8xxx_has_gige in the PHY init instead of passing the gigE
capability via function parameter.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 43333

10 years agoar8216: use genphy_config_aneg also for PHY 0
Felix Fietkau [Wed, 19 Nov 2014 20:18:01 +0000 (20:18 +0000)]
ar8216: use genphy_config_aneg also for PHY 0

Kernel 3.14 introduced a switch reset in phy_init_hw in drivers/net/phy
causing BMCR_ANENABLE to get cleared.

Due to the fact that ar8xxx_phy_config_aneg does nothing for
PHY 0 autonegatiation support remains disabled.
This can cause ports to operate at 10MBit/half-duplex only.

Fix this by calling genphy_config_aneg for PHY 0 too as
genphy_config_aneg sets BMCR_ANENABLE if it's not yet set.
Fixes: ticket 17800
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 43332

10 years agoar8216: factor out PHY init code into a generic function
Felix Fietkau [Wed, 19 Nov 2014 20:17:52 +0000 (20:17 +0000)]
ar8216: factor out PHY init code into a generic function

PHY init code in the switch-specific hw_init functions is mainly
identical. Factor it out into a generic ar8xxx_phy_init function.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43331

10 years agoar8216: introduce fixup_phys callback in ar8xxx_chip
Felix Fietkau [Wed, 19 Nov 2014 20:17:43 +0000 (20:17 +0000)]
ar8216: introduce fixup_phys callback in ar8xxx_chip

Move phy fixup code from the chip-specific hw_init functions into a
fixup_phys callback.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 43330

10 years agoar8216: after a switch reset poll until BCMR_RESET is cleared
Felix Fietkau [Wed, 19 Nov 2014 20:17:37 +0000 (20:17 +0000)]
ar8216: after a switch reset poll until BCMR_RESET is cleared

Currently there is a fixed 1000ms wait time after the switch was reset.
Most if not all switches need much less time to perform a reset.
Therefore replace the fixed wait time with polling for BMCR_RESET to
be cleared.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43329

10 years agoar8216: introduce global constant for number of PHYs
Felix Fietkau [Wed, 19 Nov 2014 20:17:30 +0000 (20:17 +0000)]
ar8216: introduce global constant for number of PHYs

All supported switches have 5 PHYs. Currently partially 5 is hardcoded
and partially switch-specific constants exist.
Replace them with a global constant.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 43328

10 years agoprocd: update to the latest version, fixes ubus service list
Felix Fietkau [Wed, 19 Nov 2014 20:17:24 +0000 (20:17 +0000)]
procd: update to the latest version, fixes ubus service list

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43327

10 years agomac80211: try to get interface addresses from wiphy sysfs 'addresses' if no mask...
Felix Fietkau [Wed, 19 Nov 2014 20:17:08 +0000 (20:17 +0000)]
mac80211: try to get interface addresses from wiphy sysfs 'addresses' if no mask is set

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43326

10 years agomac80211: add an intermediate software queueing implementation
Felix Fietkau [Wed, 19 Nov 2014 20:17:01 +0000 (20:17 +0000)]
mac80211: add an intermediate software queueing implementation

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43325

10 years agomac80211: add support for passing sta rate table updates to the driver
Felix Fietkau [Wed, 19 Nov 2014 20:16:55 +0000 (20:16 +0000)]
mac80211: add support for passing sta rate table updates to the driver

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43324

10 years agobuild: allow AutoLoad and AutoProbe to specify modules not included in the package
Felix Fietkau [Wed, 19 Nov 2014 20:16:50 +0000 (20:16 +0000)]
build: allow AutoLoad and AutoProbe to specify modules not included in the package

On out-of-tree modules depending on other out-of-tree modules from a
different tree, module dependencies are not filled properly.
This change helps with adding those dependencies in the AutoLoad call

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43323

10 years agobrcm47xx: mtd: bcm47xxpart: lower minimal blocksize to 4Ki (from 64Ki)
Rafał Miłecki [Wed, 19 Nov 2014 17:35:24 +0000 (17:35 +0000)]
brcm47xx: mtd: bcm47xxpart: lower minimal blocksize to 4Ki (from 64Ki)

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

10 years agoixp4xx: Don't overwrite memory in wg302v1_fixup()
John Crispin [Wed, 19 Nov 2014 14:09:19 +0000 (14:09 +0000)]
ixp4xx: Don't overwrite memory in wg302v1_fixup()

wg302v1_fixup() looks for the ATAG_CMDLINE atag, it doesn't find it and
so it takes the last atag in the list and overwrites non allocated
memory.

The side effects are corrupted vital data and a kernel that doesn't
boot. More details here https://dev.openwrt.org/ticket/18356

The fix appends the fixup to the command line and updates the atag only
when it finds it.

Signed-off-by: Gianluca Anzolin <gianluca@sottospazio.it>
SVN-Revision: 43320

10 years agogemini: add basic nas4220 board support
John Crispin [Wed, 19 Nov 2014 14:09:10 +0000 (14:09 +0000)]
gemini: add basic nas4220 board support

Few notes:
- redboot partitions are unusable
- redboot declares only 16M of RAM, hence the mem arg in cmdline and separate kernel config
- boots fine but only ethernet works for now
- split wiliboard and raidsonic boards into different subtargets

Signed-off-by: Roman Yeryomin <roman@advem.lv>
SVN-Revision: 43319

10 years agokeernel: Fixed dependencies in netfilter modules introduced with 3.18 kernel
John Crispin [Wed, 19 Nov 2014 14:09:01 +0000 (14:09 +0000)]
keernel: Fixed dependencies in netfilter modules introduced with 3.18 kernel

Building current trunk with 3.18 kernel fired some errors like 'missed
dependancy of module XXX from library kmod_YYY.ko'. These patch fixes 3
of such issues which are critical to have a successful build.

Signed-off-by: Alexey N Vinogradov <a.n.vinogradov@gmail.com>
SVN-Revision: 43318

10 years agouboot-envtools: add carambola2 support
John Crispin [Wed, 19 Nov 2014 13:49:54 +0000 (13:49 +0000)]
uboot-envtools: add carambola2 support

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
SVN-Revision: 43317

10 years agokernel: remove gpio-pwm kmod definition
Jonas Gorski [Wed, 19 Nov 2014 12:42:00 +0000 (12:42 +0000)]
kernel: remove gpio-pwm kmod definition

r37490 removed the actual driver but left the kmod definition intact,
causing the build system hapily creating an empty package for it.
Remove it also to not make it seem as if it still exists.

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

10 years agobase-files: supress errors from ldd
Jonas Gorski [Wed, 19 Nov 2014 12:17:37 +0000 (12:17 +0000)]
base-files: supress errors from ldd

ldd might be called for shell scrips during sysupgrade, causing it to
complain that they are not a dynamic executables.

This is a harmless error, so supress it to avoid confusing about them
being serious ones.

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

10 years agotoolchain: musl: fix symlink for ldd
Jonas Gorski [Wed, 19 Nov 2014 12:17:34 +0000 (12:17 +0000)]
toolchain: musl: fix symlink for ldd

ld-musl-*.so* is a symlink "broken" for the hostsystem, so wildcard
will skip it, causing LD_MUSL_NAME to empty and the ldd symlink pointing
to ../../lib directly.
This causes sysupgrade failing to copy any linked libaries and
consequently failing to run anything after switching to ram disk.

Fix this by creating a symlink directly pointing to where ld-musl-*.so*
points to.

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

10 years agonf_conntrack_rtsp: update to latest version
John Crispin [Wed, 19 Nov 2014 09:21:12 +0000 (09:21 +0000)]
nf_conntrack_rtsp: update to latest version

Update nf_conntrack_rtsp to latest version based on http://mike.it-loops.com/rtsp/ (rtsp-module-3.7-v2.tar.gz).

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

10 years agouqmi: update to latest git HEAD
John Crispin [Wed, 19 Nov 2014 09:21:07 +0000 (09:21 +0000)]
uqmi: update to latest git HEAD

* fixes a bug in multipart sms
* adds a new call to read the sim phone number (partially functioanl)

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

10 years agomusl: add getopt support for non-option arguments
John Crispin [Wed, 19 Nov 2014 09:21:02 +0000 (09:21 +0000)]
musl: add getopt support for non-option arguments

musl libc doesn't support the GNU getopt extension to parse non-option
arguments when the optstring starts with '-'.

This extension is used by some utilities, notably iptables, that
currently return with errors even with perfectly valid invocations.

The patch adds the code needed by getopt.c and getopt_long.c to
implement that extension.

Signed-off-by: Gianluca Anzolin <gianluca@sottospazio.it>
SVN-Revision: 43309

10 years agompc85xx: add 3.14 kernel support for mpc85xx platform
John Crispin [Wed, 19 Nov 2014 09:20:55 +0000 (09:20 +0000)]
mpc85xx: add 3.14 kernel support for mpc85xx platform

This patch adds 3.14 kernel support for the mpc85xx platform.
Works fine here with a TL-WDR4900 which seems to be the only
supported device using this platform.
There might be differences depending on HW version, therefore
I'd ask others to test too.

Changes to 3.10
  missing config options added to 3.14 config file
  patch 001: rebased
  patch 100: rebased
  patch 110: rebased
  patch 120: rebased
  patch 130: rebased
  patch 140: minor adjustment
  patch 200: removed, change went upstream
  patch 210: rebased
  patch 220: removed, change went upstream
  patch 750: new, fixes an issue with ethernet port autoneg being
             disabled due to changes in kernel phy handling

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 43308

10 years agoar71xx: Added support for D-link DHP-1565 rev. A1
John Crispin [Wed, 19 Nov 2014 09:20:47 +0000 (09:20 +0000)]
ar71xx: Added support for D-link DHP-1565 rev. A1

Signed-off-by: Jacek Kikiewicz <jaceq@aol.pl>
SVN-Revision: 43307

10 years agoar71xx: fix switch configuration in Ubiquiti UAP Pro
John Crispin [Wed, 19 Nov 2014 09:20:18 +0000 (09:20 +0000)]
ar71xx: fix switch configuration in Ubiquiti UAP Pro

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
SVN-Revision: 43306

10 years agoralink: various fixes to the wm8960 setup code
John Crispin [Wed, 19 Nov 2014 09:20:12 +0000 (09:20 +0000)]
ralink: various fixes to the wm8960 setup code

still no sound but the codec is properly detected now, powers up and i can hear
noise on the speakers.

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

10 years agoralink: make the dmaengine driver compile under 3.14
John Crispin [Wed, 19 Nov 2014 09:20:02 +0000 (09:20 +0000)]
ralink: make the dmaengine driver compile under 3.14

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

10 years agoralink: fix tx vlan offload and hardware status
John Crispin [Wed, 19 Nov 2014 09:19:57 +0000 (09:19 +0000)]
ralink: fix tx vlan offload and hardware status

hardware status and tx vlan offload support on all targets
except rt5350. so i modify the IS_ENABLE condition only for
mt7621.
support mt7621 hardware status reference by SDK. but i don't
have mt7621. if not work just set mt7621 FE_REG_FE_COUNTER_BASE
to 0 to let software count.

Signed-off-by: michael lee <igvtee@gmail.com>
SVN-Revision: 43303

10 years agoralink: support netconsole
John Crispin [Wed, 19 Nov 2014 09:19:49 +0000 (09:19 +0000)]
ralink: support netconsole

Signed-off-by: michael lee <igvtee@gmail.com>
SVN-Revision: 43302

10 years agoralink: improve tx vlan offload
John Crispin [Wed, 19 Nov 2014 09:19:43 +0000 (09:19 +0000)]
ralink: improve tx vlan offload

hardware tx vlan offload only support max 16 vids
now use add/delete vlan interface to update vlan id table
when duplicate vlan id index detect.
disable hardware tx vlan offload support.

Signed-off-by: michael lee <igvtee@gmail.com>
SVN-Revision: 43301

10 years agoralink: merge the mt7620a/n subtargets
John Crispin [Wed, 19 Nov 2014 09:19:38 +0000 (09:19 +0000)]
ralink: merge the mt7620a/n subtargets

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

10 years agonetifd: fix race, expose config options
Steven Barth [Wed, 19 Nov 2014 08:31:13 +0000 (08:31 +0000)]
netifd: fix race, expose config options

Thanks to Hans Dedecker

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