openwrt.git
9 years agotools: add missing ldconfig make dependency on the staging area
nbd [Tue, 16 Sep 2014 16:46:20 +0000 (16:46 +0000)]
tools: add missing ldconfig make dependency on the staging area

Signed-off-by: John Szakmeister <john@szakmeister.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42576 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoLantiq: fix build warning from dsl_fs script
blogic [Tue, 16 Sep 2014 14:53:06 +0000 (14:53 +0000)]
Lantiq: fix build warning from dsl_fs script

fix inclusion of functions.sh in dsl_fs init script

without this, the following error is seen during build:
./etc/init.d/dsl_fs: line 4: /lib/functions.sh: No such file or directory

Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42575 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolantiq: move the lantiq,switch property into the interface node
blogic [Tue, 16 Sep 2014 14:53:01 +0000 (14:53 +0000)]
lantiq: move the lantiq,switch property into the interface node

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

9 years agolibmnl: add some upstream fixes
cyrus [Tue, 16 Sep 2014 13:31:20 +0000 (13:31 +0000)]
libmnl: add some upstream fixes

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

9 years agoubox: update to latest git
blogic [Tue, 16 Sep 2014 12:26:35 +0000 (12:26 +0000)]
ubox: update to latest git

make the remote logging feature RFC3164 compliant

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

9 years agopostinst trigger: the new postinst trigger broke IB
blogic [Tue, 16 Sep 2014 11:56:19 +0000 (11:56 +0000)]
postinst trigger: the new postinst trigger broke IB

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

9 years agofs-tools: dont use mips16
blogic [Tue, 16 Sep 2014 11:55:57 +0000 (11:55 +0000)]
fs-tools: dont use mips16

this causes problems on 47xx/74k

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

9 years agosunxi: add new watchdog compats to reboot code in 3.14
wigyori [Mon, 15 Sep 2014 21:05:00 +0000 (21:05 +0000)]
sunxi: add new watchdog compats to reboot code in 3.14

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42558 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agosunxi: update profile of A13-OLinuXino to match uboot boardname, required for sdcard...
wigyori [Mon, 15 Sep 2014 19:37:23 +0000 (19:37 +0000)]
sunxi: update profile of A13-OLinuXino to match uboot boardname, required for sdcard image

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42557 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolantiq: revert vr9 driver update as it causes problems
blogic [Mon, 15 Sep 2014 16:19:33 +0000 (16:19 +0000)]
lantiq: revert vr9 driver update as it causes problems

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

9 years agokernel-build: fix STRIP_KERNEL_EXPORTS for recent kernels
blogic [Mon, 15 Sep 2014 16:18:48 +0000 (16:18 +0000)]
kernel-build: fix STRIP_KERNEL_EXPORTS for recent kernels

Recent kernels started to mark exported symbols as global.
Adapt expressions in kernel-build.mk to also match global symbols
when grep'ing through nm output.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42555 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agohostapd: remove bogus default setting for wps_pin (#17873)
nbd [Mon, 15 Sep 2014 16:09:23 +0000 (16:09 +0000)]
hostapd: remove bogus default setting for wps_pin (#17873)

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

9 years agoar71xx: add qihoo 360 c301 router support
blogic [Mon, 15 Sep 2014 10:19:38 +0000 (10:19 +0000)]
ar71xx: add qihoo 360 c301 router support

Qihoo 360 C301 is a dual band wireless router supports 802.11n and 802.11ac.
Its chipset is AR9344 + AR9882 with two 16MB flashes.

This patch adds its initial support.

v2:
* use mtd_get_mac_ascii to fetch MAC address for ath10k.
* use ath79_register_pci to initialize AR9882.

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42552 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolantiq: fix switch init on vr9 SoC (3.10)
blogic [Mon, 15 Sep 2014 10:19:27 +0000 (10:19 +0000)]
lantiq: fix switch init on vr9 SoC (3.10)

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

9 years agolantiq: fix switch init on vr9 SoC
blogic [Mon, 15 Sep 2014 10:19:20 +0000 (10:19 +0000)]
lantiq: fix switch init on vr9 SoC

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

9 years agoar71xx: add board support for ubnt loco m xw
blogic [Mon, 15 Sep 2014 10:19:14 +0000 (10:19 +0000)]
ar71xx: add board support for ubnt loco m xw

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42549 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: refactor ubnt xw board setup
blogic [Mon, 15 Sep 2014 10:19:01 +0000 (10:19 +0000)]
ar71xx: refactor ubnt xw board setup

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42548 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoinclude: remove file before overwritting it with replace_script
blogic [Mon, 15 Sep 2014 10:18:56 +0000 (10:18 +0000)]
include: remove file before overwritting it with replace_script

config.{sub,guess} could be symlinks to a shared common version of
this file (e.g. in staging). So we remove the destination file via
--remove-destination option of cp. This prevents replaceing the
common file that other packages could be build with if running at
the same time.

This fixes a class of errors where config.sub is missing, or
only partially present when running configure because a cp is
currently in progress

This is commonly seen building with a lot of parallel jobs and
on packages that use 'PKG_FIXUP:=autoreconf'

Signed-off-by: Matthew McClintock <mmcclint@qca.qualcomm.com>
Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42547 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoiproute2: update from v3.15.0 to v3.16.0
blogic [Mon, 15 Sep 2014 10:18:50 +0000 (10:18 +0000)]
iproute2: update from v3.15.0 to v3.16.0

Signed-off-by: Russell Senior <russell@personaltelco.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42546 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoprocd: update to latest git HEAD
blogic [Mon, 15 Sep 2014 10:18:45 +0000 (10:18 +0000)]
procd: update to latest git HEAD

fixed timeout on shutdown and cmdline param parsing

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

9 years agolantiq: add default switch setup to td8970
blogic [Mon, 15 Sep 2014 10:18:37 +0000 (10:18 +0000)]
lantiq: add default switch setup to td8970

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

9 years agolibreadline: bump to 6.3
cyrus [Mon, 15 Sep 2014 10:15:23 +0000 (10:15 +0000)]
libreadline: bump to 6.3

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

9 years agobase-files: whitespace fixes
luka [Sun, 14 Sep 2014 23:15:00 +0000 (23:15 +0000)]
base-files: whitespace fixes

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42542 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobcm53xx: fix early serial console
hauke [Sun, 14 Sep 2014 19:22:49 +0000 (19:22 +0000)]
bcm53xx: fix early serial console

This device actually has a 8250 serial with a shift of 0.
Tested this on a BCM4708.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42538 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: update bcma to the tag master-2014-09-11 (wireless-next)
rmilecki [Sun, 14 Sep 2014 17:31:13 +0000 (17:31 +0000)]
kernel: update bcma to the tag master-2014-09-11 (wireless-next)

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

9 years agokernel: add missing config option
hauke [Sun, 14 Sep 2014 15:00:33 +0000 (15:00 +0000)]
kernel: add missing config option

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42536 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: move bcma patches pushed to wireless-next
rmilecki [Sun, 14 Sep 2014 14:58:13 +0000 (14:58 +0000)]
kernel: move bcma patches pushed to wireless-next

We used separated patch for patches that were sent but not accepted yet.
It has changed now, so let's use the standard patch file for them.

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

9 years agosunxi: add sdcard image generation support when board profile is selected
wigyori [Sun, 14 Sep 2014 13:47:42 +0000 (13:47 +0000)]
sunxi: add sdcard image generation support when board profile is selected

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42534 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agosunxi: rename pcduino profile to match uboot boardname in prep for the sdcard generator
wigyori [Sun, 14 Sep 2014 13:09:22 +0000 (13:09 +0000)]
sunxi: rename pcduino profile to match uboot boardname in prep for the sdcard generator

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42533 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: add missing config option
hauke [Sun, 14 Sep 2014 12:06:59 +0000 (12:06 +0000)]
kernel: add missing config option

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42532 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: make hwmon-lm75 only depend on kmod-thermal if needed
hauke [Sun, 14 Sep 2014 12:06:38 +0000 (12:06 +0000)]
kernel: make hwmon-lm75 only depend on kmod-thermal if needed

This fixes commit r42529 and closes #17855.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42531 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoath9k_htc: fix decryption errors
nbd [Sun, 14 Sep 2014 11:40:51 +0000 (11:40 +0000)]
ath9k_htc: fix decryption errors

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

9 years agokernel: make kmod-hwmon-lm75 depend on kmod-thermal
hauke [Sat, 13 Sep 2014 23:03:36 +0000 (23:03 +0000)]
kernel: make kmod-hwmon-lm75 depend on kmod-thermal

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42529 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: do not deactivate CONFIG_BLK_DEV
hauke [Sat, 13 Sep 2014 22:10:00 +0000 (22:10 +0000)]
kernel: do not deactivate CONFIG_BLK_DEV

CONFIG_BLK_DEV does not activate any functionality, but many code, but
makes it possible to activate other options. Deactivating this breaks
the build of kmod-zram.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42528 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: add missing config options
hauke [Sat, 13 Sep 2014 21:25:21 +0000 (21:25 +0000)]
kernel: add missing config options

These missing option were found by the build bots.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42527 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agocyassl: update to version 3.2.0
hauke [Sat, 13 Sep 2014 20:56:55 +0000 (20:56 +0000)]
cyassl: update to version 3.2.0

This fixes a security problem:
Security fix for RSA Padding check vulnerability

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42526 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoppp: update to version 2.4.7
hauke [Sat, 13 Sep 2014 20:56:13 +0000 (20:56 +0000)]
ppp: update to version 2.4.7

This fixes: CVE-2014-3158 and some other bugs.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42525 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agopackage: other.mk: update configuration for ad799x
hauke [Sat, 13 Sep 2014 20:35:10 +0000 (20:35 +0000)]
package: other.mk: update configuration for ad799x

The ad799x driver moved out of staging since kernel 3.16, so update filepath,
config elements and description.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42524 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: Backport essential fixes for ad799x
hauke [Sat, 13 Sep 2014 20:34:44 +0000 (20:34 +0000)]
kernel: Backport essential fixes for ad799x

This series of patches ports back some fixes of the ad799x driver, which were
commited between 3.10 and 3.15.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42523 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobcm53xx: select nvram package by default
hauke [Sat, 13 Sep 2014 20:28:44 +0000 (20:28 +0000)]
bcm53xx: select nvram package by default

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

9 years agopackage: nvram: enable on bcm53xx target
hauke [Sat, 13 Sep 2014 20:28:18 +0000 (20:28 +0000)]
package: nvram: enable on bcm53xx target

It uses mtd, so doesn't require any special adjustments for new target.
It has been succesfully tested (reading, writing and commiting).

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

9 years agoKconfig: Fix missing help text in DEVEL config menu
hauke [Sat, 13 Sep 2014 20:27:52 +0000 (20:27 +0000)]
Kconfig: Fix missing help text in DEVEL config menu

This patch completes missing help text for some options under CONFIG_DEVEL.

Provides help for BINARY_FOLDER and DOWNLOAD_FOLDER, and reduces ambiguity in
the help for BUILD_SUFFIX with an example.

Signed-off-by: Andrew McDonnell <bugs@andrewmcdonnell.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42520 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoKconfig: Various typo/grammar/line-length fixes in Config*.in files
hauke [Sat, 13 Sep 2014 20:27:25 +0000 (20:27 +0000)]
Kconfig: Various typo/grammar/line-length fixes in Config*.in files

Non-functional changes to config/Config-*.in files, including:

* spelling mistakes
* inconsistent terminology
* grammar
* overly long lines in "help" components

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42519 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoKconfig: Aesthetic/formatting fixes to toolchain/Config.in.
hauke [Sat, 13 Sep 2014 20:26:51 +0000 (20:26 +0000)]
Kconfig: Aesthetic/formatting fixes to toolchain/Config.in.

Non-functional edits to toolchain/Config.in:

* fix spelling mistake ("us" -> "is")
* Overly long help lines shortened to avoid line wrap
* Standardize help info to use tab(s), then two spaces

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42518 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agocurl: 7.36.0 -> 7.38.0
hauke [Sat, 13 Sep 2014 20:26:08 +0000 (20:26 +0000)]
curl: 7.36.0 -> 7.38.0

Main changes:
- URL parser: IPv6 zone identifiers are now supported
- cyassl: Use error-ssl.h when available (drop local patch)
- polarssl: support CURLOPT_CAPATH / --capath
- mkhelp: generate code for --disable-manual as well (drop local patch)

Full release notes: http://curl.haxx.se/changes.html

MIPS 34kc binary size:
- 7.36.0 before: 82,539 bytes
- 7.38.0 after: 83,321 bytes

Signed-off-by: Catalin Patulea <cat@vv.carleton.ca>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42517 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agotoolchain: packetize libatomic
cyrus [Fri, 12 Sep 2014 12:25:55 +0000 (12:25 +0000)]
toolchain: packetize libatomic

Based on a patch by Tobias Steinicke <tobias.steinicke@inet.tu-berlin.de>.

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

9 years agoatheros: refresh config
blogic [Fri, 12 Sep 2014 06:54:16 +0000 (06:54 +0000)]
atheros: refresh config

Remove symbols that are now placed in the generic config.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42513 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: convert AR2315 GPIO code to platform driver
blogic [Fri, 12 Sep 2014 06:54:10 +0000 (06:54 +0000)]
atheros: convert AR2315 GPIO code to platform driver

Convert gpiolib realization to platform driver and move to the
appropriate subdirectory. Misc GPIO interrupt acknowledgement placed
to the MISC IRQ handler since in fact we can detect only one GPIO state
change.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42512 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: convert AR5312 GPIO code to platform driver
blogic [Fri, 12 Sep 2014 06:54:05 +0000 (06:54 +0000)]
atheros: convert AR5312 GPIO code to platform driver

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42511 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: rework chained interrupts handling
blogic [Fri, 12 Sep 2014 06:53:58 +0000 (06:53 +0000)]
atheros: rework chained interrupts handling

Call generic_handle_irq() instead of do_IRQ() for chained interrupts,
remove XXX_NONE interrupts and call spurious_interrupt() when an interrupt
is unexpected.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42510 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: convert gpio.h to stub
blogic [Fri, 12 Sep 2014 06:53:53 +0000 (06:53 +0000)]
atheros: convert gpio.h to stub

Implement to_irq() handler for AR2315 GPIO chip and convert custom
gpio.h header to stub.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42509 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: rename SoCs config symbols
blogic [Fri, 12 Sep 2014 06:53:48 +0000 (06:53 +0000)]
atheros: rename SoCs config symbols

Rename config symbols to be consistent with other SoCs config symbols
supported by MIPS arch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42508 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: add AR2316 and AR2318 SoCs detection
blogic [Fri, 12 Sep 2014 06:53:43 +0000 (06:53 +0000)]
atheros: add AR2316 and AR2318 SoCs detection

Tested with AR2315, AR2316 and AR2317 SoCs, not tested with AR2318 but
changes seems correct: revision is one more than AR2317.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42507 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-pci: convert to platform driver
blogic [Fri, 12 Sep 2014 06:53:33 +0000 (06:53 +0000)]
atheros: ar2315-pci: convert to platform driver

Convert the PCI controller support code to platform driver and move it to
appropriate subdirectory.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42506 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-pci: rename configuration symbol
blogic [Fri, 12 Sep 2014 06:53:27 +0000 (06:53 +0000)]
atheros: ar2315-pci: rename configuration symbol

Rename configuration symbol to be consistent with other MIPS machines.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42505 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-pci: update DMA offset macroses
blogic [Fri, 12 Sep 2014 06:53:21 +0000 (06:53 +0000)]
atheros: ar2315-pci: update DMA offset macroses

Remove duplicated macroses, which define DMA offset (SDRAM baseaddress).

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42504 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-pci: update host bridge resources
blogic [Fri, 12 Sep 2014 06:53:15 +0000 (06:53 +0000)]
atheros: ar2315-pci: update host bridge resources

It seems that the PCI controller does not support I/O ports, so remove
the ports range. Also correct the beginning of the memory range and its
size.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42503 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-pci: rework the configuration access code
blogic [Fri, 12 Sep 2014 06:53:09 +0000 (06:53 +0000)]
atheros: ar2315-pci: rework the configuration access code

Use __raw_{read,write}l accessors and use Abort interrupt to detect a
configuration space read/write errors. The second change improves errors
detection, what improves the device presence detection and helps us to
avoid following (and similar) errors:

pci 0000:00:00.2: ignoring class 0x7e0200 (doesn't match header type 02)
pci 0000:00:00.2: bridge configuration invalid ([bus 03-90]), reconfiguring
pci 0000:00:00.2: not setting up bridge for bus 0000:01

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42502 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-pci: rework interrupt handling
blogic [Fri, 12 Sep 2014 06:53:00 +0000 (06:53 +0000)]
atheros: ar2315-pci: rework interrupt handling

Add PCI IRQ controller to facilitate interrupt handling, move interrupts
initialization to the IRQ controller initialization from
pcibios_plat_dev_init() callback.

Also remove odd PCI dev configuration manipulation from pcibios_plat_dev_init()
callback.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42501 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-pci: rework host controller initialization
blogic [Fri, 12 Sep 2014 06:52:55 +0000 (06:52 +0000)]
atheros: ar2315-pci: rework host controller initialization

Explicitly configure PCI host controller, and do not expose it to PCI
subsystem. The PCI host controller acts as a usual PCI device connected
to the bus, but its configuration as a usual PCI device is senseless,
since the host controller provide access to _internal_ memory space for
_external_ device.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42500 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-pci: cosmetic changes
blogic [Fri, 12 Sep 2014 06:52:51 +0000 (06:52 +0000)]
atheros: ar2315-pci: cosmetic changes

- add comment, which briefly describes PCI controller features and
   Fonera 2.0g schematics.
 - rename several functions and structures, to make it clear that this
   code only for AR2315 chips.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42499 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-pci: remove odd locking in PCI config space access function
blogic [Fri, 12 Sep 2014 06:52:46 +0000 (06:52 +0000)]
atheros: ar2315-pci: remove odd locking in PCI config space access function

Caller (generic PCI code) already do proper locking so no need to add
another one here.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42498 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: remove odd ATHEROS_AR2315 config symbol dependencies
blogic [Fri, 12 Sep 2014 06:52:42 +0000 (06:52 +0000)]
atheros: remove odd ATHEROS_AR2315 config symbol dependencies

Remove options which already selected by ATHEROS_AR231X on which
ATHEROS_AR2315 depends.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42497 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: various space related changes
blogic [Fri, 12 Sep 2014 06:52:36 +0000 (06:52 +0000)]
atheros: various space related changes

- remove odd blank lines
 - remove odd spaces after casts
 - fix alignment

 No functional changes.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42496 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: rework and cleanup board initialization
blogic [Fri, 12 Sep 2014 06:52:26 +0000 (06:52 +0000)]
atheros: rework and cleanup board initialization

- remove odd flags and branching
  - add __init mark
  - make shorter variables names
  - returns true or false from boolean functions
  - unwrap short function declarations
  - unwrap quoted string
  - rename macroses with names in CamelCase

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42495 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: update ether addresses handling
blogic [Fri, 12 Sep 2014 06:52:21 +0000 (06:52 +0000)]
atheros: update ether addresses handling

- use ether_foo() routines to work with addresses
 - use ETH_ALEN inplace of magic '6'

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42494 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: remove useless includes
blogic [Fri, 12 Sep 2014 06:52:14 +0000 (06:52 +0000)]
atheros: remove useless includes

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42493 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar231x-eth: remove useless IOCTL handlers
blogic [Fri, 12 Sep 2014 06:52:07 +0000 (06:52 +0000)]
atheros: ar231x-eth: remove useless IOCTL handlers

These IOCTLs handled in the core now.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42492 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-spiflash: use mutex inplace of spinlock
blogic [Fri, 12 Sep 2014 06:52:00 +0000 (06:52 +0000)]
atheros: ar2315-spiflash: use mutex inplace of spinlock

Use mutex inplace of spinlock to make code simple, also call
mutex_{lock,unlock} explicitly to avoid sparse warning about context
imbalance.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42491 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-spiflash: update initialization
blogic [Fri, 12 Sep 2014 06:51:51 +0000 (06:51 +0000)]
atheros: ar2315-spiflash: update initialization

- fill module metadata
  - remove odd module_{init,exit}

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42490 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-spiflash: use devm_* API to simplify the code
blogic [Fri, 12 Sep 2014 06:51:46 +0000 (06:51 +0000)]
atheros: ar2315-spiflash: use devm_* API to simplify the code

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42489 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: remove useless return
blogic [Fri, 12 Sep 2014 06:51:39 +0000 (06:51 +0000)]
atheros: remove useless return

Remove useless void function return.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42488 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: remove FSF mailing address
blogic [Fri, 12 Sep 2014 06:51:33 +0000 (06:51 +0000)]
atheros: remove FSF mailing address

Remove FSF mailing address as suggested by checkpach and place license
URL.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42487 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: add blank line after declarations
blogic [Fri, 12 Sep 2014 06:51:26 +0000 (06:51 +0000)]
atheros: add blank line after declarations

as suggested by checkpach.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42486 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: use static keywork for local code
blogic [Fri, 12 Sep 2014 06:51:10 +0000 (06:51 +0000)]
atheros: use static keywork for local code

Make PCI IRQ handler and several structures static as suggested by
sparse.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42485 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: use NULL instead of plain integer
blogic [Fri, 12 Sep 2014 06:51:05 +0000 (06:51 +0000)]
atheros: use NULL instead of plain integer

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42484 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: add missing include
blogic [Fri, 12 Sep 2014 06:50:58 +0000 (06:50 +0000)]
atheros: add missing include

Missing this headers cause several sparse "symbol 'foo' was not
declared. Should it be static?" warnings.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42483 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: avoid extern prototypes
blogic [Fri, 12 Sep 2014 06:50:53 +0000 (06:50 +0000)]
atheros: avoid extern prototypes

Avoid using of extern prototypes as suggested by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42482 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoralink: drop 3.10 support
blogic [Fri, 12 Sep 2014 06:50:46 +0000 (06:50 +0000)]
ralink: drop 3.10 support

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

9 years agotools: install a fake empty ldconfig script to prevent the system ldconfig from messi...
nbd [Thu, 11 Sep 2014 23:13:29 +0000 (23:13 +0000)]
tools: install a fake empty ldconfig script to prevent the system ldconfig from messing around with the toolchain (fixes disappearing musl symlink issue)

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

9 years agoqos-scripts: disable fq_codel ecn by default to improve compatibility
nbd [Thu, 11 Sep 2014 23:13:24 +0000 (23:13 +0000)]
qos-scripts: disable fq_codel ecn by default to improve compatibility

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

9 years agolantiq: update to a newer versions of the vr9 drivers
blogic [Thu, 11 Sep 2014 18:22:31 +0000 (18:22 +0000)]
lantiq: update to a newer versions of the vr9 drivers

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

9 years agoltq-deu: fix compile for 3.14
blogic [Thu, 11 Sep 2014 17:50:03 +0000 (17:50 +0000)]
ltq-deu: fix compile for 3.14

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

9 years agolantiq: update 3.14 patches
blogic [Thu, 11 Sep 2014 17:49:57 +0000 (17:49 +0000)]
lantiq: update 3.14 patches

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

9 years agolldp: remove calls to user/group_add/exists
blogic [Thu, 11 Sep 2014 12:28:22 +0000 (12:28 +0000)]
lldp: remove calls to user/group_add/exists

use the new ipkg based mechanism

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

9 years agoprocd: update to latest git
blogic [Thu, 11 Sep 2014 12:28:00 +0000 (12:28 +0000)]
procd: update to latest git

add support for starting services as !root

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

9 years agoipkg: add a default postinst/prerm script
blogic [Thu, 11 Sep 2014 12:27:49 +0000 (12:27 +0000)]
ipkg: add a default postinst/prerm script

the postinst script enables/starts the init.d scripts upon package installation
and installs the users required by the package.

the prerm script stops and disables the init.d scripts.

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

9 years agoinclude: add a meta data field for required system user:group
blogic [Thu, 11 Sep 2014 12:27:26 +0000 (12:27 +0000)]
include: add a meta data field for required system user:group

this is in preparation of having services run as !root with
ACL'ed access to ubus.

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

9 years agoopkg: indicate upgrade vs install
blogic [Thu, 11 Sep 2014 12:27:09 +0000 (12:27 +0000)]
opkg: indicate upgrade vs install

when running the postinst trigger we set PKG_UPGRADE=1 if this is an upgrade
and not an install.

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

9 years agoumbim: remove superflous jshn call
blogic [Thu, 11 Sep 2014 12:26:52 +0000 (12:26 +0000)]
umbim: remove superflous jshn call

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

9 years agoumbim: update to latest git
blogic [Thu, 11 Sep 2014 12:26:41 +0000 (12:26 +0000)]
umbim: update to latest git

adds handling for username/password

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

9 years agocomgt: add directip proto
blogic [Thu, 11 Sep 2014 12:26:31 +0000 (12:26 +0000)]
comgt: add directip proto

add a proto handler for sierra wireless directip modems

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

9 years agoconfig: enable cgroup freezer
luka [Wed, 10 Sep 2014 23:15:22 +0000 (23:15 +0000)]
config: enable cgroup freezer

This option will be enabled by default only when cgroups support is enabled.

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42464 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: update 3.14 to 3.14.18
luka [Wed, 10 Sep 2014 21:40:19 +0000 (21:40 +0000)]
kernel: update 3.14 to 3.14.18

Targets were build tested and patches are refreshed.

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42463 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: remove unused versions
luka [Wed, 10 Sep 2014 13:57:48 +0000 (13:57 +0000)]
kernel: remove unused versions

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42462 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: enable the low_mem flag to better deal with 16M RAM devices
nbd [Wed, 10 Sep 2014 13:50:10 +0000 (13:50 +0000)]
atheros: enable the low_mem flag to better deal with 16M RAM devices

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

9 years agohostapd: add ubus bindings for wps
nbd [Wed, 10 Sep 2014 13:01:53 +0000 (13:01 +0000)]
hostapd: add ubus bindings for wps

With this patch WPS discovery can be started or canceled over ubus if
WPS is enabled in wireless configuration. This is equivalent of
'hostapd_cli wps_pbc' and 'hostapd_cli wps_cancel' commands.

Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42459 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: ack completed tx descriptors only after the full frame has been completed
nbd [Wed, 10 Sep 2014 12:56:24 +0000 (12:56 +0000)]
ar71xx: ack completed tx descriptors only after the full frame has been completed

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

9 years agoprocd: allow adding empty strings to arrays
nbd [Wed, 10 Sep 2014 12:56:19 +0000 (12:56 +0000)]
procd: allow adding empty strings to arrays

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

9 years agoimx6: fix image build for Generic profile.
luka [Tue, 9 Sep 2014 21:15:49 +0000 (21:15 +0000)]
imx6: fix image build for Generic profile.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42455 3c298f89-4303-0410-b956-a3cf2f4a3e73