openwrt/openwrt.git
7 years agoppp: Add ppp-mod-passwordfd subpackage to ppp
Hans Dedecker [Wed, 27 Apr 2016 09:14:02 +0000 (11:14 +0200)]
ppp: Add ppp-mod-passwordfd subpackage to ppp

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agodnsmasq: Add conntrack support in the full variant
Hans Dedecker [Wed, 27 Apr 2016 09:14:01 +0000 (11:14 +0200)]
dnsmasq: Add conntrack support in the full variant

Conntrack support reads the connection track mark associated with
incoming DNS queries and sets the same mark value on the upstream
forwarded DNS query. This can be usefull to track traffic generated
by dnsmasq to associate it with the clients who generate the queries,
usefull for bandwidth accouting and firewall.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agodropbear: Add procd interface triggers when interface config is specified
Hans Dedecker [Wed, 27 Apr 2016 09:14:00 +0000 (11:14 +0200)]
dropbear: Add procd interface triggers when interface config is specified

A dropbear instance having an interface config won't start if the interface is down as no
IP address is available.
Adding interface triggers for each configured interface executing the dropbear reload script
will start the dropbear instance when the interface is up.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoiproute2: Add package for nstat utility
Hans Dedecker [Wed, 27 Apr 2016 09:13:59 +0000 (11:13 +0200)]
iproute2: Add package for nstat utility

Add support for the command line utility nstat displaying network statistics

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agodropbear: Make utmp and putuline support configurable via seperate config options
Hans Dedecker [Wed, 27 Apr 2016 09:13:58 +0000 (11:13 +0200)]
dropbear: Make utmp and putuline support configurable via seperate config options

Utmp support tracks who is currenlty logged in by logging info to the file /var/run/utmp (supported by busybox)
Putuline support will use the utmp structure to write to the utmp file

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agonetifd: Add configurable DHCP release behavior
Hans Dedecker [Thu, 28 Apr 2016 11:40:17 +0000 (13:40 +0200)]
netifd: Add configurable DHCP release behavior

Make sending a DHCP release configurable when the client exits allowing to clean up
IP/mac state info in intermediate devices.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agobcm53xx: add m25p80 workaround for SPI flash writing problems
Rafał Miłecki [Wed, 27 Apr 2016 21:20:45 +0000 (21:20 +0000)]
bcm53xx: add m25p80 workaround for SPI flash writing problems

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

7 years agomediatek: sync and patches add support for several boards
John Crispin [Wed, 27 Apr 2016 08:58:15 +0000 (08:58 +0000)]
mediatek: sync and patches add support for several boards

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

7 years agobcm53xx: support SPI-NOR on dual flash devices
Rafał Miłecki [Wed, 27 Apr 2016 08:04:30 +0000 (08:04 +0000)]
bcm53xx: support SPI-NOR on dual flash devices

We need it to access NVRAM.

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

7 years agobcm53xx: switch to m25p80 and drop bcm53xxspiflash
Rafał Miłecki [Tue, 26 Apr 2016 17:08:53 +0000 (17:08 +0000)]
bcm53xx: switch to m25p80 and drop bcm53xxspiflash

For some time now m25p80 supports 32 MiB flashes and we just needed to
patch spi-nor to support JEDEC incompatible w25q128. Also by switching
to m25p80 we gain accelerated SPI flash reads.

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

7 years agobcm53xx: support JEDEC incompatible w25q128 in spi-nor
Rafał Miłecki [Tue, 26 Apr 2016 12:36:34 +0000 (12:36 +0000)]
bcm53xx: support JEDEC incompatible w25q128 in spi-nor

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

7 years agoxtables-addons: Fix Lua packet script implementation
Hans Dedecker [Thu, 28 Apr 2016 09:18:56 +0000 (11:18 +0200)]
xtables-addons: Fix Lua packet script implementation

lua_packet_segment parameter start has type char pointer; in function lua_tg
it's assigned an uint16 value generating compiler warnings obviously indicating
posssible seg fault problems. Fix the issue by using the correct skb functions
so the parameter points to the position inside the sk_buff

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Signed-off-by: Stijn Cleynhens <stijn.cleynhens@gmail.com>
7 years agolantiq: fix xway image building
Jo-Philipp Wich [Tue, 26 Apr 2016 23:13:34 +0000 (01:13 +0200)]
lantiq: fix xway image building

Commit 8c130dd (lantiq: use new image build process for some images) broke
image generation for the xway target since the generated macros reference not
existing WBMRA.dts and WBMRB.dts files leading to the following build error:

  mips-openwrt-linux-musl-cpp: error: ../dts/WBMRA.dts: No such file or directory
  mips-openwrt-linux-musl-cpp: warning: '-x assembler-with-cpp' after last input file has no effect
  mips-openwrt-linux-musl-cpp: fatal error: no input files

Previously both the WBMRA and WBMRB profiles shared a common WBMR DT since
the only difference is the embedded firmware kmod package.

Extend the lantiqImage macro to optionally support specifying a different
DTS file and use this facility to let the both WBMR profiles reference the
correct device tree file.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agopackage: remove duplicate lines from otrx and nvram makefiles
Jo-Philipp Wich [Tue, 26 Apr 2016 21:28:17 +0000 (23:28 +0200)]
package: remove duplicate lines from otrx and nvram makefiles

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agopackage: flag further target specific packages as nonshared
Jo-Philipp Wich [Tue, 26 Apr 2016 21:09:12 +0000 (23:09 +0200)]
package: flag further target specific packages as nonshared

Add nonshared flag to package depending on specific targets or subtargets as
there's no guarantee otherwise that they'll be available in the shared repo.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agopackage: mark nvram and otrx nonshared as they're target specific
Jo-Philipp Wich [Tue, 26 Apr 2016 21:09:12 +0000 (23:09 +0200)]
package: mark nvram and otrx nonshared as they're target specific

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobrcm2708: removes backported patch (linux-4.4.7)
Álvaro Fernández Rojas [Tue, 26 Apr 2016 14:41:41 +0000 (16:41 +0200)]
brcm2708: removes backported patch (linux-4.4.7)

This regression was introduced while rebasing LEDE's commits over the latest
OpenWrt repository.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agoat91: fix SAMA5D3 subtarget
Jo-Philipp Wich [Mon, 25 Apr 2016 12:54:07 +0000 (14:54 +0200)]
at91: fix SAMA5D3 subtarget

Add required architecture overrides to enable SAMA5 boards in Kconfig, add
resulting missing symbols, reorder config and remove unrelated XEN setting.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agox86: remove old references to kmod-acpi-button
Jo-Philipp Wich [Mon, 25 Apr 2016 12:14:47 +0000 (14:14 +0200)]
x86: remove old references to kmod-acpi-button

The kmod-acpi-button functionality is included in the kernel where needed
and the corresponding kmod package has been deleted long ago, therfor drop
the remaining references now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agouml: revert accidentally committed change
Jo-Philipp Wich [Mon, 25 Apr 2016 12:09:05 +0000 (14:09 +0200)]
uml: revert accidentally committed change

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agotools: fix make_ext4fs build with recent glibc
Jo-Philipp Wich [Mon, 25 Apr 2016 11:41:43 +0000 (13:41 +0200)]
tools: fix make_ext4fs build with recent glibc

Update to latest make_ext4fs Git HEAD to fix build with recent glibc version
which does not implicitely includes sysmacros.h anymore.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobrcm2708: update linux 4.4 patches to latest version
Álvaro Fernández Rojas [Sun, 24 Apr 2016 11:03:39 +0000 (13:03 +0200)]
brcm2708: update linux 4.4 patches to latest version

As usual these patches were extracted from the raspberry pi repo:
https://github.com/raspberrypi/linux/tree/rpi-4.4.y

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm2708-gpu-fw: update to latest version
Álvaro Fernández Rojas [Sun, 24 Apr 2016 11:00:11 +0000 (13:00 +0200)]
brcm2708-gpu-fw: update to latest version

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agokernel: fix ip6_tunnel compilation
Álvaro Fernández Rojas [Sun, 24 Apr 2016 10:56:07 +0000 (12:56 +0200)]
kernel: fix ip6_tunnel compilation

Replace undefined iph for ip_hdr(skb)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agokernel: update kernel 4.4 to version 4.4.8
Álvaro Fernández Rojas [Sun, 24 Apr 2016 09:32:17 +0000 (11:32 +0200)]
kernel: update kernel 4.4 to version 4.4.8

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agoopkg: fix use-after-free with duplicate packages on the command line
Jo-Philipp Wich [Sat, 23 Apr 2016 12:03:50 +0000 (14:03 +0200)]
opkg: fix use-after-free with duplicate packages on the command line

When the same package file is specified multiple times on the opkg install
command line, the name pointer on the argv array becomes stale after the
package structures have been merged, leading to invalid memory accesses
upon install.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoimagebuilder: use correct package directory when bundling kmods and libc
Jo-Philipp Wich [Fri, 22 Apr 2016 10:22:57 +0000 (12:22 +0200)]
imagebuilder: use correct package directory when bundling kmods and libc

The libc and kernel package files moved since the introduction of shared
packages and the changed output directory layout. This causes the generated
ImageBuilder archive to lack the necessary "libc" and "kernel" meta packages,
leading to opkg install errors later on.

Use the FeedPackageDir macro to figure out the proper source directory to use.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agopackage: fix toolchain ipk flags
Jo-Philipp Wich [Fri, 22 Apr 2016 10:20:47 +0000 (12:20 +0200)]
package: fix toolchain ipk flags

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoinclude: remove unused FeedPackageDir macro arguments
Jo-Philipp Wich [Fri, 22 Apr 2016 10:02:53 +0000 (12:02 +0200)]
include: remove unused FeedPackageDir macro arguments

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agolinux: kmod-e100: use preconverted firmware files
Jo-Philipp Wich [Thu, 21 Apr 2016 14:39:59 +0000 (16:39 +0200)]
linux: kmod-e100: use preconverted firmware files

Instead of converting the firmware files ourselves, use the files
generated during the normal kernel build process. This fixes packaging
kmod-e100 in the SDK environment.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agosdk: bundle required firmware files
Jo-Philipp Wich [Thu, 21 Apr 2016 14:34:39 +0000 (16:34 +0200)]
sdk: bundle required firmware files

Bundle all firmware files which have been built along with the kernel to fix
packaging of kmods in the SDK environment that rely on in-tree firmwares,
specifically kmod-e100.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoinclude: bin/ dir was not created
John Crispin [Tue, 19 Apr 2016 14:08:18 +0000 (16:08 +0200)]
include: bin/ dir was not created

explicitly create the bin dir

Signed-off-by: John Crispin <john@phrozen.org>
8 years agobase-files: remove ununsed login.sh
John Crispin [Tue, 19 Apr 2016 18:42:34 +0000 (20:42 +0200)]
base-files: remove ununsed login.sh

Signed-off-by: John Crispin <john@phrozen.org>
8 years agobase-files: Allow to disable failsafe mode
John Crispin [Tue, 19 Apr 2016 08:07:35 +0000 (10:07 +0200)]
base-files: Allow to disable failsafe mode

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
8 years agoimage / basefiles: make console password configurable
John Crispin [Mon, 18 Apr 2016 19:53:07 +0000 (21:53 +0200)]
image / basefiles: make console password configurable

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
Signed-off-by: John Crispin <john@phrozen.org>
8 years agobase-files: fix error message during boot
John Crispin [Mon, 11 Apr 2016 09:58:57 +0000 (11:58 +0200)]
base-files: fix error message during boot

preinit spews out this message

"cat: can't open '/proc/device-tree/model': No such file or directory"

Signed-off-by: John Crispin <john@phrozen.org>
8 years agosdk: do not exclude ccache executable
Jo-Philipp Wich [Mon, 18 Apr 2016 10:28:16 +0000 (12:28 +0200)]
sdk: do not exclude ccache executable

Change tar exclude pattern to skip ccache directory contents but not the
ccache executable itself.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agosdk: fix generation of base feed url
Jo-Philipp Wich [Sun, 17 Apr 2016 19:50:31 +0000 (21:50 +0200)]
sdk: fix generation of base feed url

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agotarget: globally remove ARCH_PACKAGES overrides
Jo-Philipp Wich [Sun, 17 Apr 2016 17:55:09 +0000 (19:55 +0200)]
target: globally remove ARCH_PACKAGES overrides

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoinclude/target.mk: disambiguate package architecture
Jo-Philipp Wich [Sun, 17 Apr 2016 17:50:53 +0000 (19:50 +0200)]
include/target.mk: disambiguate package architecture

Add $ARCH and $CPU_SUBTYPE to the package architecture strings to differentiate
low and big endian targets as well as extended instructions sets like NEON
or DSP2.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobrcm2708: implement sysupgrade image check
Christian Lamparter [Thu, 7 Apr 2016 16:26:51 +0000 (18:26 +0200)]
brcm2708: implement sysupgrade image check

Implement a crude but functioning sysupgrade image check for the
Raspberry Pi. The code only checks if the master boot record boot
signature (0x55aa) is present in the first 512-bytes at the correct
location. This can prevent the odd bricking of a system when flashing
the wrong file.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
8 years agobrcm2708-gpu-fw: improve package version and release
Álvaro Fernández Rojas [Sat, 16 Apr 2016 09:27:56 +0000 (11:27 +0200)]
brcm2708-gpu-fw: improve package version and release

Use git revision as package release and date for package version.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agobrcmfmac43430-firmware: improve package version and release
Álvaro Fernández Rojas [Sat, 16 Apr 2016 09:25:56 +0000 (11:25 +0200)]
brcmfmac43430-firmware: improve package version and release

Use git revision as package release and date for package version.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agobrcm2708: add missing config symbols
Álvaro Fernández Rojas [Sat, 16 Apr 2016 09:23:56 +0000 (11:23 +0200)]
brcm2708: add missing config symbols

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agoinclude: fix nonshared flag handling
Jo-Philipp Wich [Fri, 15 Apr 2016 08:26:36 +0000 (10:26 +0200)]
include: fix nonshared flag handling

Fix nonshared flag handling to properly deal with source packages defining
both kmod and non-kmod ipks.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoopenssl: fix wrong build target strings
Jo-Philipp Wich [Fri, 15 Apr 2016 05:40:31 +0000 (07:40 +0200)]
openssl: fix wrong build target strings

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agouclibc++: add hack to fix failing patch
Jo-Philipp Wich [Thu, 14 Apr 2016 16:27:12 +0000 (18:27 +0200)]
uclibc++: add hack to fix failing patch

One of the patched files, include/unwind-cxx.h, contains windows newlines
which lead to the following failure:

  Applying ./patches/006-eabi_fix.patch using plaintext:
  patching file include/typeinfo
  patching file include/unwind-cxx.h
  Hunk #1 FAILED at 173 (different line endings).
  Hunk #2 FAILED at 181 (different line endings).

Add a fixup command to the prepare phase which normalizes the line endings
before applying source patches.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoimagebuilder: fix standalone operation
Jo-Philipp Wich [Tue, 12 Apr 2016 23:46:09 +0000 (01:46 +0200)]
imagebuilder: fix standalone operation

Fix standalone ImageBuilders after the package layout rework.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agopackage: flag essential components as nonshared
Jo-Philipp Wich [Wed, 6 Apr 2016 20:38:47 +0000 (22:38 +0200)]
package: flag essential components as nonshared

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoinclude/kernel.mk: flag kmod packages as nonshared by default
Jo-Philipp Wich [Wed, 6 Apr 2016 20:37:58 +0000 (22:37 +0200)]
include/kernel.mk: flag kmod packages as nonshared by default

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoinclude/version.mk: rework repository url handling
Jo-Philipp Wich [Tue, 12 Apr 2016 22:31:15 +0000 (00:31 +0200)]
include/version.mk: rework repository url handling

- Add %A placeholder for substituting the package architecture
- Change %U placeholder to refer to the toplevel repository URL
- Construct package feed URLs relative to the toplevel one to match new layout

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoinclude: choose package output directory based on repository info
Jo-Philipp Wich [Wed, 6 Apr 2016 19:55:44 +0000 (21:55 +0200)]
include: choose package output directory based on repository info

Use the new repository metadata field to choose the output directory of the
final package archives.

Non-sharable packages will be placed in the per-target package directory
while the rest will be placed in a per-repository sub directory within the
$OUTPUT_DIR/packages/$CPU_TYPE/ prefix.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoglobal: introduce ALL_NONSHARED symbol
Jo-Philipp Wich [Wed, 13 Apr 2016 15:24:12 +0000 (17:24 +0200)]
global: introduce ALL_NONSHARED symbol

Introduce a new symbol ALL_NONSHARED which selects all non-sharable packages
by default. This option is mainly intented for buildbot setups to build the
target dependant software subset only.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoscripts: remove "Package-Subdir" metadata handling
Jo-Philipp Wich [Wed, 13 Apr 2016 13:38:17 +0000 (15:38 +0200)]
scripts: remove "Package-Subdir" metadata handling

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoinclude: remove now unused PACKAGE_SUBDIR variable
Jo-Philipp Wich [Wed, 13 Apr 2016 13:37:34 +0000 (15:37 +0200)]
include: remove now unused PACKAGE_SUBDIR variable

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoscripts: metadata: use the new "Repository" field
Jo-Philipp Wich [Wed, 13 Apr 2016 13:33:53 +0000 (15:33 +0200)]
scripts: metadata: use the new "Repository" field

Switch to the new "Repository" metadata field to populate tmp/.packagesubdirs

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoinclude/package-dumpinfo.mk: introduce Repository values
Jo-Philipp Wich [Wed, 13 Apr 2016 13:28:13 +0000 (15:28 +0200)]
include/package-dumpinfo.mk: introduce Repository values

Introduce a new dumpinfo field "Repository" which contains the name of the
shared repository where the package will be hosted in. The name is chosen
according to the following rules:

 - Name of the feed directory for any feed package, e.g. "Repository: luci" for
   "feeds/luci/applications/luci-app-firewall/Makefile"
 - The value "base" for any other, sharable package
 - Unset for any package flagged PKG_FLAGS:=nonshared

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoinclude/target.mk: default to CPU_TYPE for the package architecture
Jo-Philipp Wich [Wed, 6 Apr 2016 19:53:19 +0000 (21:53 +0200)]
include/target.mk: default to CPU_TYPE for the package architecture

Use the more specific CPU_TYPE designation as default package architecture
and only fall back to ARCH if no specific CPU_TYPE is set.

This means that e.g. ar71xx packages will use "74kc" as architecture,
not "mips" which is a precondition for sharing packages between targets.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agorules.mk: introduce new variable OUTPUT_DIR
Jo-Philipp Wich [Wed, 6 Apr 2016 19:49:15 +0000 (21:49 +0200)]
rules.mk: introduce new variable OUTPUT_DIR

Introduce a new variable OUTPUT_DIR which refers to the parent bin/ directory
without the architecture specific component.

Also construct the BIN_DIR variable based on OUTPUT_DIR now and add both target
and subtarget components to it to prevent different subtargets from
overwriting each others files in bin/.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoscripts: metadata: add CONFIG_TARGET_SUBTARGET symbol
Jo-Philipp Wich [Wed, 6 Apr 2016 19:47:04 +0000 (21:47 +0200)]
scripts: metadata: add CONFIG_TARGET_SUBTARGET symbol

Add a new string symbol "CONFIG_TARGET_SUBTARGET" which contains the name of
the chosen subtarget or "generic" if there are no subtargets available.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobrcm2708: update to latest version
Álvaro Fernández Rojas [Thu, 7 Apr 2016 19:25:10 +0000 (21:25 +0200)]
brcm2708: update to latest version

As usual these patches were extracted from the raspberry pi repo:
https://github.com/raspberrypi/linux/commits/rpi-4.4.y

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agobrcm2708-gpu-fw: update to latest version
Álvaro Fernández Rojas [Thu, 7 Apr 2016 19:25:01 +0000 (21:25 +0200)]
brcm2708-gpu-fw: update to latest version

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agobrcm2708-gpu-fw: update to latest version
Álvaro Fernández Rojas [Fri, 1 Apr 2016 11:37:33 +0000 (13:37 +0200)]
brcm2708-gpu-fw: update to latest version

This update also adds individual download of firmware files instead of fetching
every file on the repository (10-MiB vs 100+MiB).
Also copy Linux license from kernel directory instead of using the rpi-firmware
one.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agobrcmfmac43430-firmware: use @GITHUB download alias
Álvaro Fernández Rojas [Sun, 3 Apr 2016 20:05:55 +0000 (22:05 +0200)]
brcmfmac43430-firmware: use @GITHUB download alias

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agodownload: add @GITHUB download facility
Álvaro Fernández Rojas [Sun, 3 Apr 2016 20:02:46 +0000 (22:02 +0200)]
download: add @GITHUB download facility

Define a new alias (@GITHUB) for downloading raw files from github repos.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agobusybox: fix setting the kernel timezone
Jo-Philipp Wich [Thu, 31 Mar 2016 13:26:42 +0000 (15:26 +0200)]
busybox: fix setting the kernel timezone

The settimeofday() syscall wrapper provided by musl filters out the timezone
argument, breaking the ability to set the kernel timezone through the function.

Adjust busybox patch to issue the syscall directly in order to circumvent the
problem.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agonetifd: Send DHCP release when client exits
Hans Dedecker [Thu, 31 Mar 2016 10:18:29 +0000 (12:18 +0200)]
netifd: Send DHCP release when client exits

Let DHCP client send a release when it exists so the DHCP server is
informed the IP address is released and allowing to clean up IP/mac
state info in intermediate devices.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
8 years agouci: commit through symlinks
Jo-Philipp Wich [Thu, 31 Mar 2016 00:09:53 +0000 (02:09 +0200)]
uci: commit through symlinks

Update to latest HEAD in order to not clobber symlinks in /etc/config on
uci commit.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agonetifd: fix default ip rules
Jo-Philipp Wich [Wed, 30 Mar 2016 22:05:02 +0000 (00:05 +0200)]
netifd: fix default ip rules

Update to latest HEAD in order to remove the faulty "prelocal" ip rule leading
to unexpected policy rule precedence.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agox86: search PARTUUID in any block device
Jo-Philipp Wich [Wed, 30 Mar 2016 01:19:23 +0000 (03:19 +0200)]
x86: search PARTUUID in any block device

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agox86: make sysupgrade work without partx
Jo-Philipp Wich [Wed, 30 Mar 2016 01:10:51 +0000 (03:10 +0200)]
x86: make sysupgrade work without partx

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobranding: add LEDE branding
John Crispin [Thu, 24 Mar 2016 21:40:13 +0000 (22:40 +0100)]
branding: add LEDE branding

Signed-off-by: John Crispin <blogic@openwrt.org>
8 years agoscripts/getver.sh: generate revision relative to the reboot tag
John Crispin [Thu, 24 Mar 2016 21:14:12 +0000 (22:14 +0100)]
scripts/getver.sh: generate revision relative to the reboot tag

Signed-off-by: John Crispin <blogic@openwrt.org>
7 years agoar71xx: Add support for the OMYlink OMY-G1 reboot
John Crispin [Tue, 26 Apr 2016 11:44:36 +0000 (11:44 +0000)]
ar71xx: Add support for the OMYlink OMY-G1

https://wiki.openwrt.org/toh/omylink/omy-g1

http://www.omylink.com/

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
SVN-Revision: 49258

7 years agozynq: Add Zybo device support
John Crispin [Tue, 26 Apr 2016 11:44:29 +0000 (11:44 +0000)]
zynq: Add Zybo device support

Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>
SVN-Revision: 49257

7 years agoZynq: Add Zedboard device support
John Crispin [Tue, 26 Apr 2016 11:44:26 +0000 (11:44 +0000)]
Zynq: Add Zedboard device support

Tested-by: Joe Zhang <jz21082@gmail.com>
Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>
SVN-Revision: 49256

7 years agozynq: Remove rdinit patch
John Crispin [Tue, 26 Apr 2016 11:44:22 +0000 (11:44 +0000)]
zynq: Remove rdinit patch

This is not required as long as CONFIG_TARGET_INIT_CMD is correctly
configured.

Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>
SVN-Revision: 49255

7 years agolantiq: use dwc2 by default on all ar9 boards
John Crispin [Tue, 26 Apr 2016 11:44:17 +0000 (11:44 +0000)]
lantiq: use dwc2 by default on all ar9 boards

The dwc2 USB driver now works on Lantiq ar9, but the
default is still ltq-hcd-ar9. This patch switches to
dwc2 by default.

v2: all ar9 boards (v1 was just for BTHOMEHUBV3A and WBMR)

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
SVN-Revision: 49254

7 years agolantiq: install uboot-envtools by default on BTHOMEHUBV3A
John Crispin [Tue, 26 Apr 2016 11:44:13 +0000 (11:44 +0000)]
lantiq: install uboot-envtools by default on BTHOMEHUBV3A

The only way to access the u-boot console on the BTHOMEHUBV3A
is by soldering a serial console onto some really tiny pads.

To enable installation without soldering it would be helpful
to be able to modify the uboot environment from within
the ramdisk image used as part of the installation process.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
SVN-Revision: 49253

7 years agodnsmasq: run as dedicated UID/GID
John Crispin [Tue, 26 Apr 2016 11:44:10 +0000 (11:44 +0000)]
dnsmasq: run as dedicated UID/GID

Running dnsmasq in a dedicated user/group allows matching its outgoing
traffic more easily using iptables' owner match.
Add UID/GID to the package metadata and append the user/group
parameters to the init script.

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

7 years agomac80211: ath9k: add GPIO support for AR9280 chip
John Crispin [Tue, 26 Apr 2016 11:44:07 +0000 (11:44 +0000)]
mac80211: ath9k: add GPIO support for AR9280 chip

Enable access to GPIO on Atheros wireless chip AR9280.
Support for 9280 is added to existing 9285/9287 subsystem
because these 3 chips differ only in number of GPIO pins.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
SVN-Revision: 49251

7 years agolantiq: remove read-only flag on two partitions on BTHOMEHUBV3A
John Crispin [Tue, 26 Apr 2016 11:44:03 +0000 (11:44 +0000)]
lantiq: remove read-only flag on two partitions on BTHOMEHUBV3A

Remove read-only flag on two partitions on BTHOMEHUBV3A:
  uboot-config - otherwise fw_setenv command cannot be used.
  ath9k-cal    - so that ath9k calibration data can be copied
                 to the partition on a newly installed board.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
SVN-Revision: 49250

7 years agocns3xxx: set both MPS 'and' MRSS to 128
John Crispin [Tue, 26 Apr 2016 11:44:00 +0000 (11:44 +0000)]
cns3xxx: set both MPS 'and' MRSS to 128

Fixes some DMA issues with this platform. Because this isn't currently accepted,
and can potentially disrupt other platforms (as read in commit log), I will
leave this cns3xxx specific.

Original Patch: https://patchwork.ozlabs.org/patch/600024/

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
SVN-Revision: 49249

7 years agocns3xxx: backport pci fix for cns3xxx_write_config
John Crispin [Tue, 26 Apr 2016 11:43:57 +0000 (11:43 +0000)]
cns3xxx: backport pci fix for cns3xxx_write_config

Fix is required to properly set pci config bits.
Original Patch: https://patchwork.ozlabs.org/patch/596170/

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
SVN-Revision: 49248

7 years agoramips: Add support for the Netgear WNDR3700v5
John Crispin [Tue, 26 Apr 2016 11:43:53 +0000 (11:43 +0000)]
ramips: Add support for the Netgear WNDR3700v5

https://wiki.openwrt.org/toh/netgear/wndr3700

wndr3700v5 uses the single-core dual thread MediaTek MT7621S SoC.

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
SVN-Revision: 49247

7 years agousbutils: Update USB IDs list and drop gzip compression
John Crispin [Tue, 26 Apr 2016 11:43:49 +0000 (11:43 +0000)]
usbutils: Update USB IDs list and drop gzip compression

Change mirror to Github (Gentoo repo) and drop the gzip compression.
Worst case there's about 4kbyte increase in size but most images ends up
beign somewhere between 4-100kbyte smaller due to the lzma compression.

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

7 years agoar71xx: Add TP-Link TL-WR740N v6 support to trunk
John Crispin [Tue, 26 Apr 2016 11:43:45 +0000 (11:43 +0000)]
ar71xx: Add TP-Link TL-WR740N v6 support to trunk

This patch adds support for the TP-Link TL-WR740N v6 into OpenWrt trunk. Hardware wise, it's very similar to the TL-WR841N v10. See the forum thread [1]. Credit goes to the user 'traveler' who did the legwork and tested builds.

Also thanks to Matthias Schiffer for clarifying the DEVICE_PROFILE settings.

Signed-off by: Stijn Segers <francesco.borromini@inventati.org>

[1]: https://forum.openwrt.org/viewtopic.php?pid=318704

SVN-Revision: 49245

7 years agoar71xx: simplify patch 613 and add missing error handling
John Crispin [Tue, 26 Apr 2016 11:43:42 +0000 (11:43 +0000)]
ar71xx: simplify patch 613 and add missing error handling

Dynamic allocation of label can be simplified.
Also add error handling to deal with failed memory allocation.

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

7 years agomediatek: update patches
John Crispin [Tue, 26 Apr 2016 11:43:38 +0000 (11:43 +0000)]
mediatek: update patches

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

7 years agolantiq: Fix typo in LED diag script.
John Crispin [Tue, 26 Apr 2016 11:43:31 +0000 (11:43 +0000)]
lantiq: Fix typo in LED diag script.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
Acked-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49242

7 years agolantiq: use new image build process for brnImages
John Crispin [Tue, 26 Apr 2016 11:43:28 +0000 (11:43 +0000)]
lantiq: use new image build process for brnImages

LZMA compress the kernel without dictionary, otherwise brnboot fails to
uncompress the kernel.

The filesystem parameter of mkbrncmdline was dropped since the used
filesystem isn't exported in the kernel build step and at least in my
tests everything works without the parameter. If the parameter is
required for some reason, the static keyword "squashfs" can be used.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49241

7 years agoinclude: add a no dict version of lzma to new image build code
John Crispin [Tue, 26 Apr 2016 11:43:24 +0000 (11:43 +0000)]
include: add a no dict version of lzma to new image build code

Required to compress kernels in a brnboot compatible way.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49240

7 years agolantiq: remove orphaned tp-link image build steps
John Crispin [Tue, 26 Apr 2016 11:43:21 +0000 (11:43 +0000)]
lantiq: remove orphaned tp-link image build steps

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49239

7 years agolantiq: build sysupgrade images for lantiqImage
John Crispin [Tue, 26 Apr 2016 11:43:18 +0000 (11:43 +0000)]
lantiq: build sysupgrade images for lantiqImage

Tested with VGV7510KW22NOR.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49238

7 years agolantiq: new image build process - fix kernel entry address
John Crispin [Tue, 26 Apr 2016 11:43:15 +0000 (11:43 +0000)]
lantiq: new image build process - fix kernel entry address

Set the kernel entry address to the same value as it is used for the old
image build build process.

Fixes boot of uImages on VGV7510KW22NOR and others.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49237

7 years agolantiq: uboot-envtools on BTHOMEHUBV3A
John Crispin [Tue, 26 Apr 2016 11:43:11 +0000 (11:43 +0000)]
lantiq: uboot-envtools on BTHOMEHUBV3A

Generate fw_env.config for BTHOMEHUBV3A.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
SVN-Revision: 49236

7 years agoramips: add support for Planex MZK-EX300NP
John Crispin [Tue, 26 Apr 2016 11:43:06 +0000 (11:43 +0000)]
ramips: add support for Planex MZK-EX300NP

MZK-EX300NP is MT7620A based wifi repeater.
Built-in power supply.
64MiB RAM, 8MiB SPI Flash, non Wired Ethernet.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>
SVN-Revision: 49235

7 years agoramips: add support for Planex CS-QR10
John Crispin [Tue, 26 Apr 2016 11:43:01 +0000 (11:43 +0000)]
ramips: add support for Planex CS-QR10

CS-QR10 is MT7620A based IP Camera.

the camera and sound does not work with kernel 4.4.
 - camera chip is sn9c291.
 - sound chip is wm8960.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>
SVN-Revision: 49234

7 years agokernel: backport support for accelerated SPI flash read
Rafał Miłecki [Tue, 26 Apr 2016 09:23:12 +0000 (09:23 +0000)]
kernel: backport support for accelerated SPI flash read

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

7 years agobcm53xx: backport BCM5301X DT patch specifying SPI controller
Rafał Miłecki [Tue, 26 Apr 2016 09:22:49 +0000 (09:22 +0000)]
bcm53xx: backport BCM5301X DT patch specifying SPI controller

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