openwrt/staging/yousong.git
7 years agoixp4xx: Add support for 4.4 kernel, refresh patches
Ted Hess [Fri, 3 Jun 2016 21:06:06 +0000 (17:06 -0400)]
ixp4xx: Add support for 4.4 kernel, refresh patches

Signed-off-by: Ted Hess <thess@kitschensync.net>
7 years agobrcm63xx: fix typo image/Makefile
Álvaro Fernández Rojas [Sun, 5 Jun 2016 13:42:27 +0000 (15:42 +0200)]
brcm63xx: fix typo image/Makefile

This typo was introduced in c6990347

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agomac80211: respect user-set regulatory domain by default
Daniel Golle [Wed, 25 May 2016 17:32:01 +0000 (19:32 +0200)]
mac80211: respect user-set regulatory domain by default

It turns out most device vendors don't set the correct country code
in their devices' on-flash-EEPROM sections as they apparently rather
provide a complete per-target-market firmware with patched drivers
instead of just setting the country code.
This results in the driver to incorrectly assume the value stored in
the on-flash-EERPOM (usually US or China) being the regulatory domain
inside which the device is being used.
To work around this issue, OpenWrt introduced the ATH_USER_REGD config
variable to decide during build whether or not to allow the user to
override the regulatory domain setting. This option, however, is not
enabled by default and thus ends up being disabled for snapshots builds
and released binaries.
As we know for a long time that most devices got borked regulatory
domain values set in their EEPROMs we should allow our users to respect
their local law (instead of just assume US or China laws).
Note that also the current default has great potential of users not
ever setting their regulatory domain and thus using inapproriate and
potentially illegal frequencies and/or tx-power settings

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agoath10k: support CT firmware choices.
Ben Greear [Sun, 29 May 2016 18:14:59 +0000 (11:14 -0700)]
ath10k: support CT firmware choices.

This allows one to select CT firmware for ath10k
if one prefers to try this firmware instead of stock
ath10k firmware.

The 10.1 (988X) firmware can actually be installed beside the
default firmware, but it will not be used as long as the firmware-5.bin
file exists.  Users could rename the files and reboot to use different
images.

The 99X0 (wave-2) firmware  uses the same firmware-5.bin name as default
firmware, so it cannot be installed at the same time as default firmware.

Signed-off-by: Ben Greear <greearb@candelatech.com>
7 years agobrcm63xx: add initial support for Netgear EVG2000
Graham Fairweather [Sun, 22 May 2016 22:56:23 +0000 (00:56 +0200)]
brcm63xx: add initial support for Netgear EVG2000

This patch adds support for the Netgear EVG2000 VoIP Gateway to the
bcm63xx targets.

This device was not sold to the general public, but rather is/was
provided by telcos to customers in Sweden, Australia, Singapore and
other parts of asia.

Known issues:
 - Unable to detect 53115 switch. This appear to be a problem with
probing for the PHY using MDIO and results in error 5. Doesn't seem to
be a problem with the configuration, and could use someone with
experience to have a look at it.
 - Uses the b43 driver as using the OpenWRT/LEDE broadcom-wl driver
fails to load the firmware for the 4322, so 802.11n is not supported.

More info on the device and the research can be found at:
https://wiki.openwrt.org/toh/netgear/evg2000
https://wikidevi.com/wiki/Netgear_EVG2000
https://github.com/Xotic750/mirror-lede/tree/evg2000
https://forum.openwrt.org/viewtopic.php?id=63950

Signed-off-by: Graham Fairweather <xotic750@gmail.com>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm63xx: set DSL-274XB-F1 ath9k LED as active high
Álvaro Fernández Rojas [Fri, 3 Jun 2016 14:40:51 +0000 (16:40 +0200)]
brcm63xx: set DSL-274XB-F1 ath9k LED as active high

D-Link DSL-274XB rev F1 has an active high ath9k LED.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm63xx: set HG556a A/B ath9k LED as active high
Álvaro Fernández Rojas [Thu, 2 Jun 2016 18:41:17 +0000 (20:41 +0200)]
brcm63xx: set HG556a A/B ath9k LED as active high

Huawei HG556a has an active high ath9k LED.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm63xx: add support for inverting ath9k LED polarity
Álvaro Fernández Rojas [Thu, 2 Jun 2016 18:41:17 +0000 (20:41 +0200)]
brcm63xx: add support for inverting ath9k LED polarity

Some devices with ath9k WiFi require changing the default active low
polarity to high in order to correctly operate the WiFi status LEDs.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm63xx: remove obsolote preinit scripts and fix preinit iface script
Álvaro Fernández Rojas [Thu, 2 Jun 2016 14:12:09 +0000 (16:12 +0200)]
brcm63xx: remove obsolote preinit scripts and fix preinit iface script

These scripts were causing ip issues in the latest version of LEDE:
https://gist.github.com/Noltari/6d20d8bcbe236caf516c0a73f5477d00

Fixes preinit iface script by making eth0 the default ifname and only changing
it to eth1 for the devices that specifically need it.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm63xx: move profiles definitions to image/Makefile
Álvaro Fernández Rojas [Tue, 24 May 2016 19:09:19 +0000 (21:09 +0200)]
brcm63xx: move profiles definitions to image/Makefile

This switches brcm63xx to the new profile definition system in image/Makefile

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm63xx: refresh kernel patches and config
Álvaro Fernández Rojas [Tue, 24 May 2016 18:59:54 +0000 (20:59 +0200)]
brcm63xx: refresh kernel patches and config

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm63xx: drop linux 4.1 support
Álvaro Fernández Rojas [Tue, 24 May 2016 18:59:54 +0000 (20:59 +0200)]
brcm63xx: drop linux 4.1 support

Switch to linux 4.4 now that it has been enough tested.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm63xx: switch to linux 4.4
Álvaro Fernández Rojas [Tue, 24 May 2016 18:59:54 +0000 (20:59 +0200)]
brcm63xx: switch to linux 4.4

Boot tested on AR-5381u, AR-5387un and WAP-5813n

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agoramips: add kmod-pwm-mediatek for mt7628/mt7688
Álvaro Fernández Rojas [Fri, 3 Jun 2016 10:41:33 +0000 (12:41 +0200)]
ramips: add kmod-pwm-mediatek for mt7628/mt7688

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agoramips: fix the number of uarts for each SoC
Álvaro Fernández Rojas [Sun, 29 May 2016 10:55:12 +0000 (12:55 +0200)]
ramips: fix the number of uarts for each SoC

- Use default number of uarts (2) for rt288x/rt305x/rt3883/mt7620.
- Allow up to 3 uarts on MT7621 and MT7628.
- Remove unneeded SERIAL_8250_RT288X for MT7628.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agoramips: fix Mi Wi-Fi Nano Wireless LED pinmux
Álvaro Fernández Rojas [Sun, 29 May 2016 09:42:21 +0000 (11:42 +0200)]
ramips: fix Mi Wi-Fi Nano Wireless LED pinmux

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agokernel/spi: add kernel package for spi-omap-24xx
Alexander Couzens [Tue, 26 Apr 2016 01:17:24 +0000 (03:17 +0200)]
kernel/spi: add kernel package for spi-omap-24xx

spi-omap-24xx can be found in TI based SoC like the beaglebone black

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agokernel: add random-omap rng for omap
Alexander Couzens [Sat, 28 May 2016 22:41:30 +0000 (00:41 +0200)]
kernel: add random-omap rng for omap

Kernel module for the OMAP Random Number Generator
found on OMAP16xx, OMAP2/3/4/5 and AM33xx/AM43xx
multimedia processors.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agoomap: switch to 4.4
Alexander Couzens [Sat, 28 May 2016 20:19:13 +0000 (22:19 +0200)]
omap: switch to 4.4

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agolinux/generic: add missing config symbols
Alexander Couzens [Sat, 28 May 2016 22:33:20 +0000 (00:33 +0200)]
linux/generic: add missing config symbols

unset following config symbols
- INPUT_PALMAS_PWRBUTTON
- INPUT_TPS65218_PWRBUTTON
- INPUT_TWL4030_PWRBUTTON
- INPUT_TWL4030_VIBRA
- INPUT_TWL6040_VIBRA
- KEYBOARD_TWL4030
- TWL4030_MADC

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agoomap: take over maintainership
Alexander Couzens [Sat, 28 May 2016 15:42:12 +0000 (17:42 +0200)]
omap: take over maintainership

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agokernel: update kernel 4.4 to version 4.4.12
Álvaro Fernández Rojas [Thu, 2 Jun 2016 13:34:34 +0000 (15:34 +0200)]
kernel: update kernel 4.4 to version 4.4.12

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm63xx: fix F@ST2704V2 image generation
Álvaro Fernández Rojas [Wed, 1 Jun 2016 19:47:42 +0000 (21:47 +0200)]
brcm63xx: fix F@ST2704V2 image generation

This device needs the firmware padded to 4MB.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agoadd usb gadget ehci debug driver
Alexander Couzens [Tue, 26 Apr 2016 01:17:25 +0000 (03:17 +0200)]
add usb gadget ehci debug driver

This gadget driver allow to debug other devices via EHCI Debug Port
capability.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agoIB/SDK/toolchain: use lower cases filenames
Alexander Couzens [Thu, 26 May 2016 14:22:09 +0000 (16:22 +0200)]
IB/SDK/toolchain: use lower cases filenames

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agoIB/SDK/toolchain: use VERSION_DIST_SANITIZED instead of VERSION_DIST
Alexander Couzens [Thu, 26 May 2016 13:24:27 +0000 (15:24 +0200)]
IB/SDK/toolchain: use VERSION_DIST_SANITIZED instead of VERSION_DIST

VERSION_DIST can contains spaces which produces problems when used as file name

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agoinclude: move VERSION_DIST_SANITIZED to version.mk
Alexander Couzens [Thu, 26 May 2016 13:23:41 +0000 (15:23 +0200)]
include: move VERSION_DIST_SANITIZED to version.mk

Also move sanitize function to version.mk
Prepare use of VERSION_DIST_SANITIZED by IB/SDK/toolchain

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agoinclude: rename DIST_SANITIZED to VERSION_DIST_SANITZED
Alexander Couzens [Thu, 26 May 2016 13:21:54 +0000 (15:21 +0200)]
include: rename DIST_SANITIZED to VERSION_DIST_SANITZED

All version variables contain VERSION prefix.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agoar71xx/image/edimax shorten the revision to 13 character
Alexander Couzens [Thu, 26 May 2016 01:04:47 +0000 (03:04 +0200)]
ar71xx/image/edimax shorten the revision to 13 character

edimax fails if the revision is longer than 13 characters.
Also change the name from OpenWrt to LEDE

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agobrcm2708: fix build error introduced in 2b4e5d47
Álvaro Fernández Rojas [Wed, 1 Jun 2016 15:08:08 +0000 (17:08 +0200)]
brcm2708: fix build error introduced in 2b4e5d47

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agojsonfilter: fix printing 64bit values
Jo-Philipp Wich [Wed, 1 Jun 2016 14:51:17 +0000 (16:51 +0200)]
jsonfilter: fix printing 64bit values

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoelfutils: remove unrecognized config option
Dirk Neukirchen [Tue, 31 May 2016 07:23:59 +0000 (09:23 +0200)]
elfutils: remove unrecognized config option

fixes:
configure: WARNING: unrecognized options: --disable-werror

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
7 years agolibpcap: remove unrecognized configure options
Dirk Neukirchen [Tue, 31 May 2016 07:24:07 +0000 (09:24 +0200)]
libpcap: remove unrecognized configure options

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
7 years agoopenvpn: remove unrecognized option
Dirk Neukirchen [Tue, 31 May 2016 07:23:53 +0000 (09:23 +0200)]
openvpn: remove unrecognized option

removed upstream in
https://github.com/OpenVPN/openvpn/commit/9ffd00e7541d83571b9eec087c6b3545ff68441f
now its always on

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
7 years agodownload.mk: use HTTPS for git.lede-project.org
Jo-Philipp Wich [Sun, 29 May 2016 13:40:51 +0000 (15:40 +0200)]
download.mk: use HTTPS for git.lede-project.org

Some Git versions have issues following the HTTP->HTTPS redirect and since
the keyring package is fetched from this host, switching to HTTPS is a
sensible choice anyway.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoramips: add Widora-NEO board support
Yuan Chenmang [Sat, 28 May 2016 10:04:17 +0000 (18:04 +0800)]
ramips: add Widora-NEO board support

The Widora board is similar to the Linkit 7688 but features a larger flash
capacity.

Signed-off-by: Yuan Chenmang <771992497@qq.com>
[Jo-Philipp Wich: Reword commit message, cleanup initial PR]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agomt76: disable build for linux 3.18
Felix Fietkau [Tue, 31 May 2016 23:15:20 +0000 (01:15 +0200)]
mt76: disable build for linux 3.18

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: disable iwlwifi build for linux 3.18
Felix Fietkau [Tue, 31 May 2016 23:14:31 +0000 (01:14 +0200)]
mac80211: disable iwlwifi build for linux 3.18

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolibiconv-full: add license tag
Florian Eckert [Tue, 31 May 2016 10:58:57 +0000 (12:58 +0200)]
libiconv-full: add license tag

show the license for this package in opkg

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
7 years agopx5g: add license tag
Florian Eckert [Tue, 31 May 2016 10:57:22 +0000 (12:57 +0200)]
px5g: add license tag

show the license for this package in opkg

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
7 years agousbutils: add license tag
Florian Eckert [Tue, 31 May 2016 10:55:04 +0000 (12:55 +0200)]
usbutils: add license tag

show the license for this package in opkg

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
7 years agoar71xx: Fix TL-WR841N v11 LEDs, use separate machine
Stijn Segers [Mon, 30 May 2016 17:08:33 +0000 (19:08 +0200)]
ar71xx: Fix TL-WR841N v11 LEDs, use separate machine

Signed-off-by: Stijn Segers <francesco.borromini@inventati.org>
7 years agogettext-full: prevent using emacs
Jo-Philipp Wich [Mon, 30 May 2016 13:05:03 +0000 (15:05 +0200)]
gettext-full: prevent using emacs

When the gettext-full host build phase finds an `emacs` exectuble during the
build it will launch an `emacs --batch` command to run some Lisp code.

On certain Debian systems the `/usr/bin/emacs` path might point, via
alternatives, to the `/usr/bin/jove` editor which will then launch an
interactive session when invoked by the gettext build.

In order to avoid this problem, explicitely disable emacs handling during
the build through a configure environment variable.

Also remove my now unreachable maintainer address.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agomediatek: more nand fixes
John Crispin [Mon, 30 May 2016 23:38:52 +0000 (01:38 +0200)]
mediatek: more nand fixes

jffs2 failed to laod off nand

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoipq806x: add a default profile
John Crispin [Mon, 30 May 2016 21:56:43 +0000 (23:56 +0200)]
ipq806x: add a default profile

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoipq806x: enable PM support
John Crispin [Mon, 30 May 2016 21:55:43 +0000 (23:55 +0200)]
ipq806x: enable PM support

this fixes build errors with latest mac80211

Signed-off-by: John Crispin <john@phrozen.org>
7 years agobusybox: run sysntpd at higher priority
Maxim Storchak [Sun, 29 May 2016 07:26:37 +0000 (10:26 +0300)]
busybox: run sysntpd at higher priority

When a router is under load ntpd would have better chance to accurately
maintain system time.

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
7 years agoramips: fix Netgear EX2700 images
Joseph C. Lehner [Mon, 30 May 2016 10:59:33 +0000 (12:59 +0200)]
ramips: fix Netgear EX2700 images

The previous image creation code would have failed if the
unpadded kernel uImage size was less than 64 bytes from the
next erase block boundary. Fix that.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
7 years agoipq806x: remove accidentially comitted file
John Crispin [Mon, 30 May 2016 20:51:14 +0000 (22:51 +0200)]
ipq806x: remove accidentially comitted file

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoipq806x: fix 3.18 support
John Crispin [Fri, 27 May 2016 20:27:28 +0000 (22:27 +0200)]
ipq806x: fix 3.18 support

accidentially removed the files in the v4.4 commit

Signed-off-by: John Crispin <john@phrozen.org>
7 years agokernel: remove a hack that was obsoleted upstream
Daniel Gimpelevich [Sun, 29 May 2016 23:54:54 +0000 (16:54 -0700)]
kernel: remove a hack that was obsoleted upstream

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
7 years agolantiq: Use correct macaddr generating logic for the DGN3500
Daniel Gimpelevich [Sun, 29 May 2016 22:29:08 +0000 (15:29 -0700)]
lantiq: Use correct macaddr generating logic for the DGN3500

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
7 years agolantiq: Fix macaddr-setting code on DGN3500 and possibly other devices
Daniel Gimpelevich [Fri, 27 May 2016 22:30:47 +0000 (15:30 -0700)]
lantiq: Fix macaddr-setting code on DGN3500 and possibly other devices

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
7 years agolantiq: fix segfault inside ltq-adsl-app
Daniel Gimpelevich [Fri, 27 May 2016 22:27:41 +0000 (15:27 -0700)]
lantiq: fix segfault inside ltq-adsl-app

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
7 years agolantiq: Reduce ugliness of ugly hack
Daniel Gimpelevich [Fri, 27 May 2016 22:26:09 +0000 (15:26 -0700)]
lantiq: Reduce ugliness of ugly hack

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
7 years agolantiq: Use the correct SPI flash speed for the Netgear DGN3500
Daniel Gimpelevich [Fri, 27 May 2016 22:00:16 +0000 (15:00 -0700)]
lantiq: Use the correct SPI flash speed for the Netgear DGN3500

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
7 years agotools/tplink-safeloader: split CPE210 from CPE510 profile
Alexander Couzens [Sun, 29 May 2016 00:02:20 +0000 (02:02 +0200)]
tools/tplink-safeloader: split CPE210 from CPE510 profile

The CPE210 was still described for the OEM upgrade as compatible,
even the wireless configuration isn't compatible anymore between
both series (2ghz and 5ghz).
Update the CPE210 image profile to use the new profile.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agoar71xx: switch ordering and template to improve readability
Alexander Couzens [Sun, 29 May 2016 00:02:19 +0000 (02:02 +0200)]
ar71xx: switch ordering and template to improve readability

The CPE210's ancestor is the CPE510 not the other way around. The device
profile is also named after the CPE510.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agoramips: fix Netgear EX2700 images
Joseph C. Lehner [Sun, 29 May 2016 17:39:46 +0000 (19:39 +0200)]
ramips: fix Netgear EX2700 images

The bootloader on this device expects the kernel partition to end
on a 64k boundary. The last 64 byte of the kernel partition must
contain a valid uImage header (the fakeroot partition).

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
7 years agokernel/mtd: Add support for Macronix mx25u25635f, used in C2600 v1.1
Ash Benz [Fri, 27 May 2016 14:26:47 +0000 (22:26 +0800)]
kernel/mtd: Add support for Macronix mx25u25635f, used in C2600 v1.1

Signed-off-by: Ash Benz <ash.benz@bk.ru>
7 years agokernel/mac80211: skip ath10k OTP check if caldata found
Ash Benz [Fri, 27 May 2016 14:26:46 +0000 (22:26 +0800)]
kernel/mac80211: skip ath10k OTP check if caldata found

Signed-off-by: Ash Benz <ash.benz@bk.ru>
7 years agoipq806x/dts: Add Archer C2600 DTS
Ash Benz [Fri, 27 May 2016 14:26:45 +0000 (22:26 +0800)]
ipq806x/dts: Add Archer C2600 DTS

Signed-off-by: Ash Benz <ash.benz@bk.ru>
7 years agoipq806x/base-files: extract ath10k caldata
Ash Benz [Fri, 27 May 2016 14:26:43 +0000 (22:26 +0800)]
ipq806x/base-files: extract ath10k caldata

Signed-off-by: Ash Benz <ash.benz@bk.ru>
7 years agoipq806x/base-files: Add support for Archer C2600
Ash Benz [Fri, 27 May 2016 14:26:42 +0000 (22:26 +0800)]
ipq806x/base-files: Add support for Archer C2600

Signed-off-by: Ash Benz <ash.benz@bk.ru>
7 years agoipq806x/base-files: Add Archer C2600 LEDs and board
Ash Benz [Fri, 27 May 2016 14:26:41 +0000 (22:26 +0800)]
ipq806x/base-files: Add Archer C2600 LEDs and board

Signed-off-by: Ash Benz <ash.benz@bk.ru>
7 years agoipq806x: Add Archer C2600 to image/Makefile
Ash Benz [Fri, 27 May 2016 14:26:40 +0000 (22:26 +0800)]
ipq806x: Add Archer C2600 to image/Makefile

Signed-off-by: Ash Benz <ash.benz@bk.ru>
7 years agoipq806x: Add support for linux-4.4
Ram Chandra Jangir [Sat, 21 May 2016 09:18:31 +0000 (14:48 +0530)]
ipq806x: Add support for linux-4.4

1)Changes

- Rebased the patches for linux-4.4.7
- Added patch to fix spi nor fifo and dma support
- Added patch to configure watchdog barktime

2)Testing

Tested on IPQ AP148 Board:
 a. NOR boot and NAND boot
 b. ethernet network and ath10k wifi
 c. ubi sysupgrade

UnTested
 dwc3 usb has not been validated on IPQ board(AP148)

3)Known Issues:
 Once we flash ubi image on AP148, and if we reset the board, uboot on
 first boot creates PEB and LEB for dynamic sized partitions, which is incorrect
 and not what linux expects which causes errors when trying to mount rootfs.
 In order to test this, we can use the below steps:
  a. Flash the ubi image on board and don't reset the board
  b. load the kernel fit image in RAM and boot from there.

Signed-off-by: Ram Chandra Jangir <rjangi@codeaurora.org>
7 years agofw-utils/tplink-safeloader.c: Add support for Archer C2600
Ash Benz [Fri, 27 May 2016 14:26:39 +0000 (22:26 +0800)]
fw-utils/tplink-safeloader.c: Add support for Archer C2600

Signed-off-by: Ash Benz <ash.benz@bk.ru>
7 years agoinclude/image.mk: move build step tplink-safeloader to image.mk
Ash Benz [Fri, 27 May 2016 14:26:38 +0000 (22:26 +0800)]
include/image.mk: move build step tplink-safeloader to image.mk

Move tplink-safeloader from target/linux/ar71xx/image/tp-link.mk to include/image.mk

Signed-off-by: Ash Benz <ash.benz@bk.ru>
7 years agotoolchain: uClibc: Bump to the most recent version 1.0.14
Alexey Brodkin [Mon, 23 May 2016 14:48:05 +0000 (17:48 +0300)]
toolchain: uClibc: Bump to the most recent version 1.0.14

This change updates uClibc version to the most recent 1.0.14 release.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
7 years agolantiq: do not build images which exceed the flash size
Mathias Kresin [Thu, 26 May 2016 20:43:55 +0000 (22:43 +0200)]
lantiq: do not build images which exceed the flash size

The user benpicco in #openwrt reported that images are build which are
bigger that the available flash size.

He provided a proof of concept fix and gave permission to me to send it
for inclusion.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agouboot-lantiq: VGV7510KW22 - remove NOR SPL leftovers
Mathias Kresin [Thu, 26 May 2016 21:11:18 +0000 (23:11 +0200)]
uboot-lantiq: VGV7510KW22 - remove NOR SPL leftovers

Missed this one with my last cleanup patch.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: VGV7510KW22 - enable the IP101A phy
Mathias Kresin [Thu, 26 May 2016 21:11:17 +0000 (23:11 +0200)]
lantiq: VGV7510KW22 - enable the IP101A phy

The RJ45 WAN port is used for xDSL as well as the IP101A.

The pins 1,2,3,6 of the RJ45 are connected to the IP101A and the
pins 4,5 are connected to the xdsl chip.

Drop the ip101a-rst node. It can't be controlled and is not required
at all.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: VGV7510KW22 - fix pinmux configuration
Mathias Kresin [Thu, 26 May 2016 21:11:16 +0000 (23:11 +0200)]
lantiq: VGV7510KW22 - fix pinmux configuration

The STP pinmux was initially added in assumption LAN2 led is driven by
it. It worked somehow because STP group and gphy0 led0 share the GPIO.
Do it the right way by adding the gphy0 led0 the gphy function.

According to the author, the SPI node is a copy & paste leftover. Which
makes sense since nothing is connected to the SPI bus on this device.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agouboot-lantiq: Add Arcadyan VGV7519 support
Mathias Kresin [Thu, 26 May 2016 21:08:27 +0000 (23:08 +0200)]
uboot-lantiq: Add Arcadyan VGV7519 support

Based on a submission to the uboot-lantiq repo by Eddi De Pieri.

Major cleanup and addition of brnboot second stage u-boot was done by
me.

The second stage brnboot u-boot is untested, since the brnboot prompt
is secured by a still unknown password. But should work.

The former ram values are replaced with the ram values extracted from
the original brnboot. The old ones didn't worked with the ramboot
image.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agouboot-lantiq: vrx200 - lzma compress gphy firmware
Mathias Kresin [Thu, 26 May 2016 21:08:26 +0000 (23:08 +0200)]
uboot-lantiq: vrx200 - lzma compress gphy firmware

The default bootloader partition of some devices is to small for an
u-boot with uncompressed gphy firmware(s).

Instead of increasing the bootloader partition size, in compare to the
stock firmware, compress the firmware. This would allow the bootloader
of at least the FritzBox 3370 as well as the bootloader of the
VGV7510KW22 to fit into the bootloader partition of the stock firmware.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agouboot-lantiq: vrx200 - add support for dual nor flash
Mathias Kresin [Thu, 26 May 2016 21:08:25 +0000 (23:08 +0200)]
uboot-lantiq: vrx200 - add support for dual nor flash

Based on a submission to the uboot-lantiq repo by Eddi De Pieri.

Devices like the xrx200 Arcadyan VGV7519 are using two NOR flash chips.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: VGV7519 - fix brn partition layout
Mathias Kresin [Thu, 26 May 2016 21:08:24 +0000 (23:08 +0200)]
lantiq: VGV7519 - fix brn partition layout

Use the brnboot partition layout as it is listed in the OpenWrt wiki
article for this board.

Configure the brnboot root selector for this device as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: VGV7519 - get mac address from board_config partition
Mathias Kresin [Thu, 26 May 2016 21:08:23 +0000 (23:08 +0200)]
lantiq: VGV7519 - get mac address from board_config partition

Use the mac address stored in the board_config partition instead of a
static one.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: VGV7519 - add vlan support
Mathias Kresin [Thu, 26 May 2016 21:08:22 +0000 (23:08 +0200)]
lantiq: VGV7519 - add vlan support

Add the lantiq,switch property to enable vlans and setup them up.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: VGV7519 - add second usb port
Mathias Kresin [Thu, 26 May 2016 21:08:21 +0000 (23:08 +0200)]
lantiq: VGV7519 - add second usb port

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: VGV7519 - cleanup pinmux configuration
Mathias Kresin [Thu, 26 May 2016 21:08:20 +0000 (23:08 +0200)]
lantiq: VGV7519 - cleanup pinmux configuration

Cleanup the pinmux configuration by removing the unused spi node. Nothing is connected to the SPI bus on devices.

The stp_out pinmux child node covers the same GPIOs as the already used
stp group.

The same applies to the gphy-leds_out pinmux node and the "gphy0
led1" as well as "gphy1 led0" groups.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: VGV7519 - remove/merge redundant parts in dts
Mathias Kresin [Thu, 26 May 2016 21:08:19 +0000 (23:08 +0200)]
lantiq: VGV7519 - remove/merge redundant parts in dts

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: fix ARV4518PWR01 network
Mohammed Berdai [Wed, 25 May 2016 22:30:38 +0000 (23:30 +0100)]
lantiq: fix ARV4518PWR01 network

This patch fixes the missing Lan interface config in the file
/etc/config/network for ARV4518PWR01/A which results in eth0 and br-lan
being down and therefore no way to access the router unless via UART-TTL.

Signed-off-by: Mohammed Berdai <mohammed.berdai@gmail.com>
7 years agomac80211: brcmfmac: return -ENFILE if interface exists
Rafał Miłecki [Mon, 30 May 2016 06:18:41 +0000 (08:18 +0200)]
mac80211: brcmfmac: return -ENFILE if interface exists

This makes brcmfmac compatible with mac80211 which uses dev_alloc_name
(and so returns -ENFILE on error).

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
7 years agomac80211: change default SSID from Lede to LEDE
Rafał Miłecki [Tue, 24 May 2016 07:33:25 +0000 (09:33 +0200)]
mac80211: change default SSID from Lede to LEDE

LEDE project seems to be using "LEDE" as its acronym everywhere. To keep
things consistent adjust default wireless SSID.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Jo-Philipp Wich <jo@mein.io>
Acked-by: John Crispin <john@phrozen.org>
Acked-by: Alexander Couzens <lynxis@fe80.eu>
7 years agoramips: add backported MT7628 pinmux fixes
Álvaro Fernández Rojas [Sun, 29 May 2016 09:26:41 +0000 (11:26 +0200)]
ramips: add backported MT7628 pinmux fixes

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agodownload.pl: Rework URLs
Daniel Engberg [Tue, 24 May 2016 12:52:54 +0000 (14:52 +0200)]
download.pl: Rework URLs

Provide HTTPS URL when possible, try to keep 8 mirrors per entry and spread
over several locations of the world. Since most active contributors are in
US/CA and/or EU prioritize mirrors that are within those regions if possible.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
7 years agokernel: fix dependency chain of kmod-igb
Jo-Philipp Wich [Fri, 27 May 2016 16:14:37 +0000 (18:14 +0200)]
kernel: fix dependency chain of kmod-igb

The igb kmods selects kmod-i2c-algo-bit which in turn is invisible until
kmod-i2c-core gets selected, causing kmod-igb to be hidden from menuconfig
as well.

Let kmod-igb select kmod-i2c-core as well in order to make it visible
in menuconfig right away.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoutil-linux: fix breakage
Dirk Neukirchen [Fri, 27 May 2016 19:25:14 +0000 (21:25 +0200)]
util-linux: fix breakage

- install correct libs to staging/usr/lib
fixes eudev, nfs-kernel-server

the lib*.a seem broken - use the correct .so files
and remove .a libs

- some build breakage was observed with parallel builds:
text-utils/more-more.o: In function `putstring':
more.c:(.text+0x1f4): undefined reference to `tputs'
text-utils/more-more.o: In function `initterm':
more.c:(.text+0x1b74): undefined reference to `setupterm'
more.c:(.text+0x1f0c): undefined reference to `tparm'
more.c:(.text+0x20ac): undefined reference to `tigetnum'
more.c:(.text+0x20c8): undefined reference to `tigetflag'
more.c:(.text+0x20ec): undefined reference to `tigetstr'
more.c:(.text+0x2148): undefined reference to `PC'
text-utils/more-more.o: In function `reset_tty':
more.c:(.text+0x2630): undefined reference to `tputs'

- fix line length

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
7 years agobase-files: rework postinstall uci-defaults handling
Jo-Philipp Wich [Fri, 27 May 2016 07:43:14 +0000 (09:43 +0200)]
base-files: rework postinstall uci-defaults handling

Some package postinstall operations, e.g. those emitted by the LuCI build
system, source and delete the uci-defaults themselves upon package insteall,
causing the generic defaults apply code to trigger shell errors like:

    .../luci-app-ddns.postinst: .: line 130: can't open './40_luci-ddns'

Rework the generic apply code to check the existence of the uci-defaults
script before trying to source it, use sed to prefilter the list of entries
from the control file and perform the directory change in a subshell,
avoiding the need for cd $OLDPWD.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoutil-linux: fix sfdisk
Dirk Neukirchen [Wed, 25 May 2016 13:30:02 +0000 (15:30 +0200)]
util-linux: fix sfdisk

reported by reproducible openwrt project[1]:
we package some libtool shell script

- add missing dependencies
- fix paths
- make in InstallDev does not seem to be necessary

tested (cal,dmesg,sfdisk) on x86 qemu VM with allyesconfig

[1]: https://reproducible.debian.net/openwrt/openwrt.html

[Jo-Philipp Wich: fix double slash in sfdisk path, reword commit message]

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoar71xx: add GPIO pin for usb power switch for RouterBOARD 912
Cezary Jackiewicz [Wed, 25 May 2016 17:36:35 +0000 (19:36 +0200)]
ar71xx: add GPIO pin for usb power switch for RouterBOARD 912

RB912 has one usb shared between external USB and miniPCIe slot. GPIO52 can
reroute power to external USB (=1) or internal miniPCIe slot (=0)

Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
7 years agomediatek: more mtd fixes
John Crispin [Wed, 25 May 2016 02:42:54 +0000 (04:42 +0200)]
mediatek: more mtd fixes

this fixes full builds when ALL_KMODS is selected

Signed-off-by: John Crispin <john@phrozen.org>
7 years agolantiq: fix regression in VG3503J.dts
John Crispin [Tue, 24 May 2016 15:17:36 +0000 (17:17 +0200)]
lantiq: fix regression in VG3503J.dts

9d0608eef3e5b9fca - "lantiq: VG3503J - merge profiles"

resulted in the dts file missing the version string.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoprocd: Update to latest head
Alexey Brodkin [Tue, 24 May 2016 10:51:31 +0000 (13:51 +0300)]
procd: Update to latest head

This includes a fix for building against uClibc:
http://git.openwrt.org/?p=project/procd.git;a=commit;h=9a6f83d3c168523ac7b898ae481c2fd8c501d6a6

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: John Crispin <john@phrozen.org>
7 years agomediatek: update mtd backport
John Crispin [Tue, 24 May 2016 15:01:41 +0000 (17:01 +0200)]
mediatek: update mtd backport

Signed-off-by: John Crispin <john@phrozen.org>
7 years agosdk: remove redundant symbol declaration
Jo-Philipp Wich [Tue, 24 May 2016 21:39:18 +0000 (23:39 +0200)]
sdk: remove redundant symbol declaration

Commit d79f8909c1bde8376c82537798ce363797033cf9 introduced CONFIG_ALL,
CONFIG_ALL_KMODS and CONFIG_ALL_NONSHARED as menuconfig choices to the SDK,
therefor we can drop the hardcoded CONFIG_ALL symbol declaration now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agosdk: stop shipping a .config
Jo-Philipp Wich [Tue, 24 May 2016 21:32:14 +0000 (23:32 +0200)]
sdk: stop shipping a .config

Now that the most important options are exposed via menuconfig in the SDK we
can stop shipping a (possibly outdated) copy of .config from the emitting
buildroot.

Leaving out .config has two positive side effects:

 - A simple "make" run without any prior config will launch menuconfig, forcing
   interactive users to make appropriate choices

 - Buildbot systems (e.g. our phase2 builder) can issue a "make defconfig" to
   obtain a .config enabling all packages by default

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoiproute2: Use URL alias
Daniel Engberg [Tue, 24 May 2016 13:13:48 +0000 (15:13 +0200)]
iproute2: Use URL alias

Remove hardcoded URLs and use alias instead.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>