librecmc/librecmc.git
8 years agobrcm2708: take over maintainership
Álvaro Fernández Rojas [Sun, 5 Jun 2016 09:46:56 +0000 (11:46 +0200)]
brcm2708: take over maintainership

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agokernel: add missing config symbols for 4.4
Jo-Philipp Wich [Wed, 8 Jun 2016 12:49:26 +0000 (14:49 +0200)]
kernel: add missing config symbols for 4.4

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobase-files: maintain LED config state
Jo-Philipp Wich [Wed, 8 Jun 2016 08:14:27 +0000 (10:14 +0200)]
base-files: maintain LED config state

Record the state of any hardware LED configured through UCI and use that
information to revert the state when applying updated settings while
maintaining default behaviour of system LEDs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobrcm63xx: improve image/Makefile
Álvaro Fernández Rojas [Tue, 7 Jun 2016 11:50:36 +0000 (13:50 +0200)]
brcm63xx: improve image/Makefile

- Use KERNEL_INITRAMFS_SUFFIX for customizing initramfs name.
- Modifying $(PROFILES) is no longer needed.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agobase-files: fix /bin/config_generate breakage
Felix Fietkau [Wed, 8 Jun 2016 05:32:30 +0000 (07:32 +0200)]
base-files: fix /bin/config_generate breakage

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agouboot-lantiq: get rid of bogus profile dependencies
Felix Fietkau [Wed, 8 Jun 2016 04:42:18 +0000 (06:42 +0200)]
uboot-lantiq: get rid of bogus profile dependencies

Turn them into subtarget dependencies instead

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobase-files: drop /etc/config/system
Jo-Philipp Wich [Tue, 31 May 2016 12:50:05 +0000 (14:50 +0200)]
base-files: drop /etc/config/system

The board_detect framework is now able to create the entire system config from
scratch so we can finally drop the copy shipped by base-files.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobase-files: rework config generation logic
Jo-Philipp Wich [Tue, 31 May 2016 12:47:30 +0000 (14:47 +0200)]
base-files: rework config generation logic

Now that config_generate is able to generate the entire /etc/config/system
from scratch we can apply the same logic as used for /etc/config/network;
when the configuration file exists already then do not do anything, else
generate it from the values provided by /etc/board.json .

In order to facilitate that move the file existance checking inside
/bin/config_generate and call it unconditionally from /bin/board_detect.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoadm5120: remove target specific /etc/config/system
Jo-Philipp Wich [Tue, 31 May 2016 12:43:27 +0000 (14:43 +0200)]
adm5120: remove target specific /etc/config/system

Now that deviations to the default /etc/config/system are registered via
board.d we can drop the target specific copy.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoadm5120: convert LED setup to board.d
Jo-Philipp Wich [Tue, 31 May 2016 12:30:41 +0000 (14:30 +0200)]
adm5120: convert LED setup to board.d

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobase-files: support port_state LED types in board.d
Jo-Philipp Wich [Tue, 31 May 2016 12:35:24 +0000 (14:35 +0200)]
base-files: support port_state LED types in board.d

Add support for handling port_state LEDs as used by ADM5120.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoxburst: remove target specific /etc/config/system
Jo-Philipp Wich [Tue, 31 May 2016 12:24:47 +0000 (14:24 +0200)]
xburst: remove target specific /etc/config/system

Now that deviations to the default /etc/config/system are registered via
board.d we can drop the target specific copy.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoxburst: add /etc/config/system overrides via board.d
Jo-Philipp Wich [Tue, 31 May 2016 12:23:06 +0000 (14:23 +0200)]
xburst: add /etc/config/system overrides via board.d

Use /etc/board.d/ to register hostname and ntp server overrides.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobase-files: support hostname and ntp servers through board.d
Jo-Philipp Wich [Tue, 31 May 2016 12:19:45 +0000 (14:19 +0200)]
base-files: support hostname and ntp servers through board.d

Add support for specifying hostname and NTP servers via /etc/board.d/ scripts.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoath25: remove target specific /etc/config/system
Jo-Philipp Wich [Tue, 31 May 2016 11:56:42 +0000 (13:56 +0200)]
ath25: remove target specific /etc/config/system

The system config file shipped by ath25 is now equivalent to the generic one
in base files, so drop the target specific copy.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoath25: drop target specific button hotplug
Jo-Philipp Wich [Tue, 31 May 2016 11:33:05 +0000 (13:33 +0200)]
ath25: drop target specific button hotplug

The ath25 target has its own unique button action config support, which is not
used anywhere except for two example logger statements in UCI.

Since there is a generic /etc/rc.button facility since some time already there
is no reason at all to keep this target specific mechanism anymore, so simply
drop it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agogeneric: remove brcmfmac-sdio.h
Ben Whitten [Sat, 4 Jun 2016 08:06:04 +0000 (09:06 +0100)]
generic: remove brcmfmac-sdio.h

This file is present in the kernel so no point overlaying it.

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>
8 years agoxtables-addons: update to 2.11
Dirk Neukirchen [Tue, 31 May 2016 07:23:46 +0000 (09:23 +0200)]
xtables-addons: update to 2.11

- fix compilation w. Kernel 4.6 due to
hash->shash crypto API
- remove a patch integrated upstream

- remove unrecognized configure option
removed upstream in 2010
commit 40d0345f1ed02de183b13a6ce38847bc1f4ac48e

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years agoopenvpn: add support for tls-version-min
Matteo Panella [Sat, 4 Jun 2016 13:15:03 +0000 (15:15 +0200)]
openvpn: add support for tls-version-min

Currently, the uci data model does not provide support for specifying
the minimum TLS version supported in an OpenVPN instance (be it server
or client).

This patch adds support for writing the relevant option to the openvpn
configuration file at service startup.

Signed-off-by: Matteo Panella <morpheus@level28.org>
[Jo-Philipp Wich: shorten commit title, bump pkg release]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobase-files: reset LED state
Jo-Philipp Wich [Tue, 7 Jun 2016 20:58:22 +0000 (22:58 +0200)]
base-files: reset LED state

Attempt to reset all LED states before applying the UCI configuration to
avoid leaving disabled LEDs behind in lingering glowing state, e.g. when
changing the sysfs entry in the config from one hardware LED to another.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoimage.mk: fix dependencies for legacy make prepare step
Felix Fietkau [Tue, 7 Jun 2016 14:22:14 +0000 (16:22 +0200)]
image.mk: fix dependencies for legacy make prepare step

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agotreewide: replace jow@openwrt.org with jo@mein.io
Jo-Philipp Wich [Tue, 7 Jun 2016 09:42:32 +0000 (11:42 +0200)]
treewide: replace jow@openwrt.org with jo@mein.io

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoar71xx: add support for OpenEmbed SOM9331
Allan Nick Pedrana [Sun, 29 May 2016 22:26:03 +0000 (17:26 -0500)]
ar71xx: add support for OpenEmbed SOM9331

This patch adds the target profile SOM9331 and configures hardware
functionality for the 3x Eth Ports & corresponding LED's, the USB Host,
the USART to USB bridge and the System LED.

Signed-off-by: Allan Nick Pedrana <nik9993@gmail.com>
8 years agoixp4xx: fix Avila SoC audio driver compilation
Jo-Philipp Wich [Tue, 7 Jun 2016 09:13:03 +0000 (11:13 +0200)]
ixp4xx: fix Avila SoC audio driver compilation

Upstream dropped the `dapm` member of `struct snd_soc_component`, requiring
users to access it using `snd_soc_codec_get_dapm()` instead so change the
driver code to do just that.

Fixes the following build error spotted by the buildbots:

      CC [M]  sound/soc/gw-avila/gw-avila.o
    sound/soc/gw-avila/gw-avila.c: In function 'avila_aic3x_init':
    sound/soc/gw-avila/gw-avila.c:104:44: error: 'struct snd_soc_codec' has no member named 'dapm'

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoimage.mk: fix filesystem dependency issue
Felix Fietkau [Tue, 7 Jun 2016 08:26:23 +0000 (10:26 +0200)]
image.mk: fix filesystem dependency issue

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolantiq: fix image DEVICE_DTS handling, add proper default value
Felix Fietkau [Tue, 7 Jun 2016 07:42:11 +0000 (09:42 +0200)]
lantiq: fix image DEVICE_DTS handling, add proper default value

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolantiq: only call Image/Prepare/Profile for defined profiles
Felix Fietkau [Tue, 7 Jun 2016 07:35:18 +0000 (09:35 +0200)]
lantiq: only call Image/Prepare/Profile for defined profiles

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agowolfssl: enable openssl 1.0.1 compatibility
Karl Palsson [Mon, 6 Jun 2016 15:49:21 +0000 (15:49 +0000)]
wolfssl: enable openssl 1.0.1 compatibility

>From wolfssl/openssl/opensslv.h, and from skimming the contents of what
"--enable-stunnel" actually does, it seems that --enable-opensslextra
doesn't give you the "full" openssl compatibility that you may wish for
these days.  Unfortuantely, while wolfssl writes the build time options
into wolfssl/options.h, it doesn't include that file itself.  User
applications must include that directly.

Signed-off-by: Karl Palsson <karlp@etactica.com>
8 years agoustream-ssl: update to the latest version, adds cyassl/wolfssl fixes
Felix Fietkau [Tue, 7 Jun 2016 07:22:11 +0000 (09:22 +0200)]
ustream-ssl: update to the latest version, adds cyassl/wolfssl fixes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agotreewide: replace nbd@openwrt.org with nbd@nbd.name
Felix Fietkau [Tue, 7 Jun 2016 06:58:31 +0000 (08:58 +0200)]
treewide: replace nbd@openwrt.org with nbd@nbd.name

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: allow to build LEDE on latest MacOS X
Waldemar Brodkorb [Wed, 25 May 2016 21:47:09 +0000 (23:47 +0200)]
build: allow to build LEDE on latest MacOS X

Latest Xcode doesn't include openssl anymore. To compile
mkimage from u-boot source you need SSL headers on your host.
This patch provides libressl host package for any Darwin
compilation. Unfortunately openssl from MacPorts can not be
used, as the installed headers in /opt/local are breaking
GDB compilation. Tested with a RB532 image build and resulting
kernel booted on a device via TFTP.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [fixes, dependencies]
8 years agoar71xx: convert OM2P to device profile
Felix Fietkau [Mon, 23 May 2016 15:59:37 +0000 (17:59 +0200)]
ar71xx: convert OM2P to device profile

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage.mk: add LegacyDevice wrapper to allow legacy image building code to be used...
Felix Fietkau [Mon, 23 May 2016 15:58:51 +0000 (17:58 +0200)]
image.mk: add LegacyDevice wrapper to allow legacy image building code to be used for device profiles

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoar71xx: enable profile sorting in preparation for adding device profiles
Felix Fietkau [Mon, 23 May 2016 15:51:19 +0000 (17:51 +0200)]
ar71xx: enable profile sorting in preparation for adding device profiles

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokirkwood: install kernel binaries into bin/ for use with external storage
Felix Fietkau [Mon, 23 May 2016 12:38:20 +0000 (14:38 +0200)]
kirkwood: install kernel binaries into bin/ for use with external storage

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agooxnas: install kernel binaries into bin/ for use with external storage
Felix Fietkau [Mon, 23 May 2016 12:37:23 +0000 (14:37 +0200)]
oxnas: install kernel binaries into bin/ for use with external storage

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage.mk: change the default of the kernel suffix
Felix Fietkau [Mon, 23 May 2016 12:36:15 +0000 (14:36 +0200)]
image.mk: change the default of the kernel suffix

Make it more suitable for installing into bin/

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage.mk: add support for specifying a different suffix for the initramfs kernel
Felix Fietkau [Mon, 23 May 2016 12:35:57 +0000 (14:35 +0200)]
image.mk: add support for specifying a different suffix for the initramfs kernel

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86: lift generic x86-32 target
Daniel Golle [Tue, 17 May 2016 21:12:49 +0000 (23:12 +0200)]
x86: lift generic x86-32 target

* build for pentium4 instead of i486
* enable PAE
* enable EFI support
* enable KVM guest and host support

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years agox86: reorganize x86_32 support
Daniel Golle [Tue, 17 May 2016 21:08:13 +0000 (23:08 +0200)]
x86: reorganize x86_32 support

copy current 'generic' target to new 'legacy' target.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years agoimage.mk: split off all Build/* commands into image-commands.mk
Felix Fietkau [Sun, 22 May 2016 20:41:49 +0000 (22:41 +0200)]
image.mk: split off all Build/* commands into image-commands.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: implement support for selecting multiple device profiles
Felix Fietkau [Sun, 22 May 2016 20:02:31 +0000 (22:02 +0200)]
build: implement support for selecting multiple device profiles

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: split scripts/metadata.pl into target-metadata.pl and package-metadata.pl
Felix Fietkau [Sun, 22 May 2016 19:31:37 +0000 (21:31 +0200)]
build: split scripts/metadata.pl into target-metadata.pl and package-metadata.pl

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokmod-sched-cake: Add support for cake qdisc
Hannu Nyman [Tue, 31 May 2016 18:01:09 +0000 (21:01 +0300)]
kmod-sched-cake: Add support for cake qdisc

Add 'cake' qdisc kernel module package.

V2 - KDB Small update to base on latest cake tc changes (wash option
deprecated)
V3 - KDB Move kmod-sched-cake package to kernel as is kernel related
V4 - KDB Split into individual patches, kmod & tc

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Acked-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
8 years agoiproute2: Add support for cake qdisc
Hannu Nyman [Tue, 31 May 2016 18:01:09 +0000 (21:01 +0300)]
iproute2: Add support for cake qdisc

Add cake support to 'tc' in iproute2
  - Use a patch to modify tc instead of adding a new tc-adv package.
    Patch creates q_cake.c that matches commit https://github.com/dtaht/tc-adv/commit/3314230bc47328bc9b44faacaad8210065ef98b7
  - Do not include the other things from tc-adv (cake0, cake2, pie etc.).

V2 - KDB Small update to base on latest cake tc changes (wash option
deprecated)
V3 - KDB Move kmod-sched-cake package to kernel as is kernel related
v4 - KDB Split into individual patches, tc & kmod

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Acked-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
8 years agosunxi: remove NAMESPACES config symbols
Dirk Neukirchen [Sat, 4 Jun 2016 16:36:19 +0000 (18:36 +0200)]
sunxi: remove NAMESPACES config symbols

they are available in config/Config-kernel.in

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years agompc85xx: remove unneeded symbols
Dirk Neukirchen [Sat, 4 Jun 2016 16:35:52 +0000 (18:35 +0200)]
mpc85xx: remove unneeded symbols

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years agozynq: remove unneeded _DIAG and _XFRM symbols
Dirk Neukirchen [Sat, 4 Jun 2016 16:35:41 +0000 (18:35 +0200)]
zynq: remove unneeded _DIAG and _XFRM symbols

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years agosunxi: remove XFRM_ config symbols
Dirk Neukirchen [Sat, 4 Jun 2016 16:35:27 +0000 (18:35 +0200)]
sunxi: remove XFRM_ config symbols

they are part of packages

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years agomodules: add missing module to ipsec description
Dirk Neukirchen [Sat, 4 Jun 2016 16:35:19 +0000 (18:35 +0200)]
modules: add missing module to ipsec description

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years agooxnas: remove unneeded _DIAG symbols
Dirk Neukirchen [Sat, 4 Jun 2016 16:35:34 +0000 (18:35 +0200)]
oxnas: remove unneeded _DIAG symbols

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years agomalta: remove NAMESPACES config symbols
Dirk Neukirchen [Sat, 4 Jun 2016 16:36:13 +0000 (18:36 +0200)]
malta: remove NAMESPACES config symbols

they are available in config/Config-kernel.in

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years agomalta: remove unneeded symbols
Dirk Neukirchen [Sat, 4 Jun 2016 16:36:07 +0000 (18:36 +0200)]
malta: remove unneeded symbols

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years agoprocd: fix file permissions of /dev/tty* nodes
John Crispin [Sun, 5 Jun 2016 22:13:01 +0000 (00:13 +0200)]
procd: fix file permissions of /dev/tty* nodes

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoar71xx: add WRTnode2Q support
KeLei Liang [Tue, 31 May 2016 16:32:37 +0000 (00:32 +0800)]
ar71xx: add WRTnode2Q support

Signed-off-by: KeLei Liang <xzmu@wrtnode.com>
8 years agonetifd: update to the latest version
Felix Fietkau [Mon, 6 Jun 2016 13:42:59 +0000 (15:42 +0200)]
netifd: update to the latest version

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86: use sysfs DMI information to populate sysinfo
Jo-Philipp Wich [Wed, 1 Jun 2016 14:26:36 +0000 (16:26 +0200)]
x86: use sysfs DMI information to populate sysinfo

Use the DMI data available in sysfs to extract manufacturer and model info
and write it to /tmp/sysinfo/.

The data will be picked up by board_detect and can be used by e.g. LuCI to
display a more appropriate model description.

On an APU board the files will contain the following values:

    # cat /tmp/sysinfo/model
    PC Engines APU

    # cat /tmp/sysinfo/board_name
    pc-engines-apu

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agox86: enable DMI and DMI_SYSFS
Jo-Philipp Wich [Wed, 1 Jun 2016 15:01:55 +0000 (17:01 +0200)]
x86: enable DMI and DMI_SYSFS

Enable support for DMI decoding in the kernel so that we can access
manufacturer and model information via sysfs.

Also remove redundant per-subtarget DMI overrides and preset a few
previously unset symbols popping up due to the now enabled DMI support.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agomediatek: remove modules from Kernel config
Dirk Neukirchen [Sat, 4 Jun 2016 16:36:38 +0000 (18:36 +0200)]
mediatek: remove modules from Kernel config

most symbols should be in Kernel packages

depending on HW the removal of
CONFIG_REALTEK_PHY
and USB symbols might be wrong

compile tested only

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years agoutil-linux: fix scanf fallback detection for uClibc-ng
Waldemar Brodkorb [Sat, 4 Jun 2016 20:24:56 +0000 (22:24 +0200)]
util-linux: fix scanf fallback detection for uClibc-ng

uClibc-ng pretends to be GNU libc 2.2 and then a fallback
scanf check is tried, so that libmount is disabled
afterwards. Add a fix already suggested upstream.
Add librt dependency required for other apps, too.

Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
8 years agoipq806x: add diag.sh script
Signed-off-by: Henryk Heisig [Fri, 3 Jun 2016 09:51:28 +0000 (11:51 +0200)]
ipq806x: add diag.sh script

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
8 years agolantiq: un-macro the image building code
John Crispin [Wed, 1 Jun 2016 20:43:58 +0000 (22:43 +0200)]
lantiq: un-macro the image building code

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoubus: update to latest git HEAD
John Crispin [Wed, 1 Jun 2016 09:33:17 +0000 (11:33 +0200)]
ubus: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoramips: fix Netgear EX2700 images
Joseph C. Lehner [Wed, 1 Jun 2016 14:50:03 +0000 (16:50 +0200)]
ramips: fix Netgear EX2700 images

Calling `cat foo bar | dd ... conv=sync` *may* add
extraneous padding. Avoid this.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
8 years agoramips: rebrand Netgear EX2700 fakeroot uImage
Joseph C. Lehner [Wed, 1 Jun 2016 14:06:50 +0000 (16:06 +0200)]
ramips: rebrand Netgear EX2700 fakeroot uImage

Change image name: "OpenWrt fakeroot" -> "LEDE fakeroot"

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
8 years agoarc: Build uImage as well as vmlinux output files
Alexey Brodkin [Tue, 31 May 2016 17:12:21 +0000 (20:12 +0300)]
arc: Build uImage as well as vmlinux output files

Initially for ARC we were building vmlinux images because it
was both simpler and more convenient to debug Linux kernel
in runt-time via JTAG. Now when base system works quite nice
we may finally use U-Boot for loading the system image as
well. Still we keep building vmlinux images as some of our
boards are development boards and loading images with JTAG
could be at some points very beneficial.

Note for U-Boot header it's required to specify 2 values:
 * loading address
 * entry point (if it doesn't match loading address)

and in case of ARC entry point (EP) not only differs from
loading address but also changes from build to build due to
initramfs being placed between loading address and text section.
To accommodate that feature we have to calculate EP after
vmlinux gets built and before call to mkimage.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
8 years agoprocd: update to latest git HEAD
John Crispin [Wed, 1 Jun 2016 08:28:15 +0000 (10:28 +0200)]
procd: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agolantiq/image: move tplink specific image into own file
Alexander Couzens [Mon, 30 May 2016 09:54:06 +0000 (11:54 +0200)]
lantiq/image: move tplink specific image into own file

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years agolantiq: unmacro tp-link boards
Alexander Couzens [Mon, 30 May 2016 09:54:05 +0000 (11:54 +0200)]
lantiq: unmacro tp-link boards

even it's a little bit verbose, unmacrod board descriptions are much
easier to read and to understand.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years agokernel/mtd: Add support for Macronix mx25u25635f, used in Archer C2600 v1.1
Ash Benz [Mon, 30 May 2016 09:52:59 +0000 (17:52 +0800)]
kernel/mtd: Add support for Macronix mx25u25635f, used in Archer C2600 v1.1

Signed-off-by: Ash Benz <ash.benz@bk.ru>
8 years agoixp4xx: Drop linux 4.1 support
Ted Hess [Sun, 5 Jun 2016 18:16:08 +0000 (14:16 -0400)]
ixp4xx: Drop linux 4.1 support

Signed-off-by: Ted Hess <thess@kitschensync.net>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>