openwrt/staging/rmilecki.git
8 years agoramips: update i2c dtsi files
Michael Lee [Thu, 7 Jan 2016 14:27:45 +0000 (22:27 +0800)]
ramips: update i2c dtsi files

Signed-off-by: Michael Lee <igvtee@gmail.com>
8 years agoramips: update i2c drivers
Michael Lee [Thu, 7 Jan 2016 13:50:24 +0000 (21:50 +0800)]
ramips: update i2c drivers

* add rt_i2c structure to store driver data
* rewrite read/write check function and add i2c error status check.
  so we don't need to wait until time out.
* add 10 bits address support. according to the data sheet i think
  it is possible. but i haven't verify it.
* the most important is start transfer only need once. otherwise
  it cause I2C_STARTERR status.
* add set i2c clock speed register by dts options "clock-frequency".
  not just hard code it.
* add mt7621 i2c driver. i just copy i2c-ralink.c and change register
  names. and the hardware don't support error status. so i remove it.
  but the logic is the same.

Signed-off-by: Michael Lee <igvtee@gmail.com>
8 years agoramips: add gdma hsdma dts info
Michael Lee [Wed, 2 Dec 2015 13:41:22 +0000 (21:41 +0800)]
ramips: add gdma hsdma dts info

Signed-off-by: Michael Lee <igvtee@gmail.com>
8 years agoramips: enhance dma engine support
Michael Lee [Wed, 2 Dec 2015 13:35:08 +0000 (21:35 +0800)]
ramips: enhance dma engine support

* fix compiler error. device_control operation not support now.
* add old chips support 8 channels. new chips support 16 channels.
* add mt7621 hsdma driver. data sheet says it has two channels.
  but after test only one channel support.
* add memory to memory DMA support. i use dmatest kernel module to
  verify this function. on rt305x it will copy more data. on mt7621
  only two channels can works at the same time. these two chips
  maybe have hardware bugs. because on other chips don't have these bugs.
* use tasklet to handle remaining dma requests.

Signed-off-by: Michael Lee <igvtee@gmail.com>
8 years agofeeds.conf.default: disable management feed
John Crispin [Thu, 9 Jun 2016 15:39:05 +0000 (17:39 +0200)]
feeds.conf.default: disable management feed

looks like the upstream source packages were un-published.

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoubox: update to latest git HEAD
John Crispin [Tue, 7 Jun 2016 22:22:16 +0000 (00:22 +0200)]
ubox: update to latest git HEAD

this adds the new getrandom wrapper tool

Signed-off-by: John Crispin <john@phrozen.org>
8 years agotoolchain/gdb: Use correct folder name for ARC patches
Alexey Brodkin [Thu, 9 Jun 2016 09:38:34 +0000 (12:38 +0300)]
toolchain/gdb: Use correct folder name for ARC patches

Even though ARC tools were released as arc-2016.03
we have a little bit different version name for GDB.
That's because both Binutils and GDB come from the same
git repo but from different branches (and so different tags).

Also removing an extra patch that made its way into release.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
8 years agopackage/devel/gdb-arc: Add target GDB for ARC
Alexey Brodkin [Wed, 8 Jun 2016 06:50:55 +0000 (09:50 +0300)]
package/devel/gdb-arc: Add target GDB for ARC

ARC port of GDB is not yet upstream so we need to use
sources from Synopsys GitHub repo.

Given Synopys' commitment to upstream ARC support in GDB
in the nearest future it might be simpler to add a separate
package for ARC GDB instead of patching generic GDB package.
This way once ARC GDB stuff gets uptreamed we'll only need
to remove that new "gdb-arc" package.

Note 1 very minor change in generic gdb package was done -
it now depends on !arc (while "gdb-arc" depends on "arc").

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
8 years agoipq806x: move dts file to the files folder
John Crispin [Tue, 7 Jun 2016 19:00:28 +0000 (21:00 +0200)]
ipq806x: move dts file to the files folder

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoipg806x: set v4.4 as default
John Crispin [Tue, 7 Jun 2016 18:33:35 +0000 (20:33 +0200)]
ipg806x: set v4.4 as default

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoipq806x: add mangle bootargs options in config-4.4
Adrian Panella [Wed, 25 May 2016 19:06:54 +0000 (14:06 -0500)]
ipq806x: add mangle bootargs options in config-4.4

Add config options to manage dual boot partitions, using MANGLE BOOTARGS

Signed-off-by: Adrian Panella <ianchi74@outlook.com>
8 years agoipq806x: base-files: add support for Linksys EA8500
Adrian Panella [Fri, 13 May 2016 06:13:15 +0000 (01:13 -0500)]
ipq806x: base-files: add support for Linksys EA8500

Signed-off-by: Adrian Panella <ianchi74@outlook.com>
8 years agoipq806x: build Linksys EA8500 images
John Crispin [Tue, 7 Jun 2016 17:29:10 +0000 (19:29 +0200)]
ipq806x: build Linksys EA8500 images

Signed-off-by: Adrian Panella <ianchi74@outlook.com>
8 years agoipq806x: qcom rpm fix support for smb208
Adrian Panella [Mon, 30 May 2016 19:56:50 +0000 (14:56 -0500)]
ipq806x: qcom rpm fix support for smb208

In commit "regulator: qcom: Rework to single platform device" the smb208
regulator used in IPQ8064 was left out.

Add it to that new framework and update Docs and DT accordingly.

Signed-off-by: Adrian Panella <ianchi74@outlook.com>
8 years agouboot-envtools: add ipq806x support
John Crispin [Tue, 7 Jun 2016 17:19:01 +0000 (19:19 +0200)]
uboot-envtools: add ipq806x support

Signed-off-by: Adrian Panella <ianchi74@outlook.com>
8 years agomtd: add linksys_bootcount for ipq806x
Adrian Panella [Thu, 19 May 2016 14:45:38 +0000 (09:45 -0500)]
mtd: add linksys_bootcount for ipq806x

Reset bc is needed for Linksys EA8500's dual boot.

Signed-off-by: Adrian Panella <ianchi74@outlook.com>
8 years agomac80211: ath10k fix otp check patch
Adrian Panella [Mon, 16 May 2016 07:10:56 +0000 (02:10 -0500)]
mac80211: ath10k fix otp check patch

Fix patch to match new updated package version

Signed-off-by: Adrian Panella <ianchi74@outlook.com>
8 years agolantiq: use new property name for eiu irqs
John Crispin [Tue, 7 Jun 2016 16:59:52 +0000 (18:59 +0200)]
lantiq: use new property name for eiu irqs

Signed-off-by: John Crispin <john@phrozen.org>
8 years agolantiq: fix a regression in the eiu irq loading code
John Crispin [Tue, 7 Jun 2016 16:56:51 +0000 (18:56 +0200)]
lantiq: fix a regression in the eiu irq loading code

this worked in 3.18 but broke at some point. the old code that loaded a
irq table was incorrewct anyhow as it mapped the irqs int he domain which
should really be done when the driver using them loads them and not the
irq driver itself.

Signed-off-by: John Crispin <john@phrozen.org>
8 years agolantiq: add default lan setup to board.d script
John Crispin [Tue, 7 Jun 2016 16:59:26 +0000 (18:59 +0200)]
lantiq: add default lan setup to board.d script

Signed-off-by: John Crispin <john@phrozen.org>
8 years agopackage/*: update git urls for project repos
John Crispin [Mon, 6 Jun 2016 19:16:47 +0000 (21:16 +0200)]
package/*: update git urls for project repos

Signed-off-by: John Crispin <john@phrozen.org>
8 years agooseama: support extracting entity
Rafał Miłecki [Fri, 10 Jun 2016 12:38:04 +0000 (14:38 +0200)]
oseama: support extracting entity

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agobcm53xx: sysupgrade: move TRX specific code to separated function
Rafał Miłecki [Fri, 10 Jun 2016 12:30:57 +0000 (14:30 +0200)]
bcm53xx: sysupgrade: move TRX specific code to separated function

This will allow adding support for other formats (e.g. Seama) in a clean
way.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agoar71xx: enable flow control for ethernet MACs with built-in switch
Felix Fietkau [Mon, 13 Jun 2016 10:43:34 +0000 (12:43 +0200)]
ar71xx: enable flow control for ethernet MACs with built-in switch

Should fix LAN speed issues on some devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolantiq: add VLAN handling fixes to xrx200 ethernet driver
Felix Fietkau [Sun, 12 Jun 2016 13:38:54 +0000 (15:38 +0200)]
lantiq: add VLAN handling fixes to xrx200 ethernet driver

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolantiq: fold 0400-xrx200-net-multi-phy.patch into 0025-NET-MIPS-lantiq-adds-xrx200...
Felix Fietkau [Sun, 12 Jun 2016 13:38:19 +0000 (15:38 +0200)]
lantiq: fold 0400-xrx200-net-multi-phy.patch into 0025-NET-MIPS-lantiq-adds-xrx200-net.patch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoath10k-firmware: add QCA9984 firmware
Pavel Kubelun [Thu, 9 Jun 2016 16:18:14 +0000 (20:18 +0400)]
ath10k-firmware: add QCA9984 firmware

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agosparse: update to support llvm 3.5.0
Stefan Sydow [Thu, 9 Jun 2016 11:24:39 +0000 (13:24 +0200)]
sparse: update to support llvm 3.5.0

sparse-0.5.0 won't link against lvm 3.5.0 as "llvm-config --libs" does not
include system libs like pthreads. This problem got fixed but not released
yet, so we need to fetch from their git repo.

Signed-off-by: Stefan Sydow <stefan.sydow@tu-berlin.de>
8 years agokernel: update kernel 4.4 to version 4.4.13
Álvaro Fernández Rojas [Sun, 12 Jun 2016 09:49:46 +0000 (11:49 +0200)]
kernel: update kernel 4.4 to version 4.4.13

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agolantiq: change xrx200 ethernet driver WRED signal to global to fix spurious packet...
Felix Fietkau [Sun, 12 Jun 2016 12:52:08 +0000 (14:52 +0200)]
lantiq: change xrx200 ethernet driver WRED signal to global to fix spurious packet loss issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agouboot-envtools: add config for WBMR300 (lantiq)
Felix Fietkau [Sun, 12 Jun 2016 10:39:35 +0000 (12:39 +0200)]
uboot-envtools: add config for WBMR300 (lantiq)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: require admin permissions for swconfig set operations
Felix Fietkau [Sun, 12 Jun 2016 10:03:11 +0000 (12:03 +0200)]
kernel: require admin permissions for swconfig set operations

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: merge pending fq_codel backlog accounting fix
Felix Fietkau [Tue, 7 Jun 2016 12:11:13 +0000 (14:11 +0200)]
kernel: merge pending fq_codel backlog accounting fix

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoath10k: merge some pending stability fixes
Felix Fietkau [Tue, 7 Jun 2016 11:27:26 +0000 (13:27 +0200)]
ath10k: merge some pending stability fixes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolantiq: enable swconfig LED support
Felix Fietkau [Thu, 9 Jun 2016 17:21:26 +0000 (19:21 +0200)]
lantiq: enable swconfig LED support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolantiq: enable SMP for XRX200
Felix Fietkau [Thu, 9 Jun 2016 15:03:41 +0000 (17:03 +0200)]
lantiq: enable SMP for XRX200

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolantiq: add Buffalo WBMR-300HPD support
Felix Fietkau [Thu, 9 Jun 2016 14:51:39 +0000 (16:51 +0200)]
lantiq: add Buffalo WBMR-300HPD support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolantiq: refresh xrx200 kernel config
Felix Fietkau [Thu, 9 Jun 2016 15:02:22 +0000 (17:02 +0200)]
lantiq: refresh xrx200 kernel config

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolantiq: remove dummy ltq_machine_power_off to fix gpio-poweroff drivers
Felix Fietkau [Thu, 9 Jun 2016 17:18:32 +0000 (19:18 +0200)]
lantiq: remove dummy ltq_machine_power_off to fix gpio-poweroff drivers

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: fix mips MT_SMP kernel crash on cache flush
Felix Fietkau [Thu, 9 Jun 2016 17:09:23 +0000 (19:09 +0200)]
kernel: fix mips MT_SMP kernel crash on cache flush

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agopolarssl: enable AES-GCM and CAMELLIA-GCM ciphersuites
Jo-Philipp Wich [Sat, 11 Jun 2016 01:18:07 +0000 (03:18 +0200)]
polarssl: enable AES-GCM and CAMELLIA-GCM ciphersuites

Recent versions of Chrome require this ciphers to successfully handshake with
a TLS enabled uhttpd server using the ustream-polarssl backend.

If `CONFIG_GCM` is disabled, `ssl_ciphersuite_from_id()` will return `NULL`
when cipher `0x9d` is looked up, causing the calling `ssl_ciphersuite_match()`
to fail with `POLARSSL_ERR_SSL_INTERNAL_ERROR`.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobcm53xx: pass datasize to mtd in hexadecimal format
Rafał Miłecki [Fri, 10 Jun 2016 11:09:10 +0000 (13:09 +0200)]
bcm53xx: pass datasize to mtd in hexadecimal format

This avoids extra calculation in bash script.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agomtd: fix typo in error message for 'c' option
Rafał Miłecki [Fri, 10 Jun 2016 11:08:38 +0000 (13:08 +0200)]
mtd: fix typo in error message for 'c' option

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agobcm53xx: fix partition typos in 09_fix_crc
Rafał Miłecki [Fri, 10 Jun 2016 11:03:44 +0000 (13:03 +0200)]
bcm53xx: fix partition typos in 09_fix_crc

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agokernel: deny swconfig set requests for unprivileged users
Jo-Philipp Wich [Fri, 10 Jun 2016 22:53:16 +0000 (00:53 +0200)]
kernel: deny swconfig set requests for unprivileged users

The swconfig kernel infrastructure fails to do any permissions checks when
changing settings. As such an ordinary user account on a device with a
switch can change switch settings without any special permissions.
Routers generally have few non-admin users so this isn't a big hole, but it
is a security hole. Likely the greatest danger is for multifunction devices
which have a lot of extra daemons, compromising a low-security daemon would
allow one to modify switch settings and cause the router/switch to appear to
lock-up (or cause other sorts of troublesome nyetwork behavior).

Implement a check for CAP_NET_ADMIN in swconfig_set_attr() and deny any
requests originating from user contexts lacking this capability.

Reported-by: Elliott Mitchell <ehem+openwrt@m5p.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoswconfig: improve failure reporting
Jo-Philipp Wich [Fri, 10 Jun 2016 22:51:22 +0000 (00:51 +0200)]
swconfig: improve failure reporting

Report the translated error to the user if a get/set netlink operation failed.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agodnsmasq: support hostid ipv6 address suffix option
Kevin Darbyshire-Bryant [Mon, 31 Aug 2015 17:11:41 +0000 (18:11 +0100)]
dnsmasq: support hostid ipv6 address suffix option

Add support for hostid dhcp config entry to dnsmasq. This allows
specification of dhcpv6 hostid suffix and works in the same way as
odhcpd.

Entries in auto generated dnsmasq.conf should conform to:

dhcp-host=mm:mm:mm:mm:mm:mm,IPv4addr,[::V6su:ffix],hostname

example based on sample config/dhcp entry:

config host
        option name 'Kermit'
        option mac 'E0:3F:49:A1:D4:AA'
        option ip '192.168.235.4'
        option hostid '4'

dhcp-host=E0:3F:49:A1:D4:AA,192.168.235.4,[::0:4],Kermit

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
8 years agomac80211: fix calculation of VHT capability values
Scott Shambarger [Fri, 10 Jun 2016 12:50:35 +0000 (14:50 +0200)]
mac80211: fix calculation of VHT capability values

 - Fix calculation of `$vht_cap` bit field
 - Replace wrong reference to `$tx_stbc` variable with proper `$tx_stbc_2by1` one
 - Emit proper `RX-STBC-{1,12,123,1234}` tokens for the VHT capability list

See https://dev.openwrt.org/ticket/22535 for reference.

Signed-off-by: Scott Shambarger <devel@shambarger.net>
8 years agobusybox: Call ntpd hotplug script for every action
Hans Dedecker [Wed, 8 Jun 2016 14:39:04 +0000 (16:39 +0200)]
busybox: Call ntpd hotplug script for every action

Daemons that are waiting for a timesync are only triggered when the action is stratum.
As step is the first sync action pass all actions to the ntpd hotplug scripts; it's up
to the ntpd hotplugscript to filter out the actions it is interested in.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
8 years agodnsmasq: Add option --max-port
Hans Dedecker [Wed, 8 Jun 2016 14:35:18 +0000 (16:35 +0200)]
dnsmasq: Add option --max-port

By default dnsmasq uses random ports for outbound dns queries;
when the maxport UCI option is specified the ports used will
always be smaller than the specified value.
This is usefull for systems behind firewalls.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
8 years agobcm53xx: calculate TRX CRC32 using whole kernel partition
Rafał Miłecki [Fri, 10 Jun 2016 10:53:11 +0000 (12:53 +0200)]
bcm53xx: calculate TRX CRC32 using whole kernel partition

This provides better protection of flash data.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agomvebu: add a patch to deal with excessive latencies/delays during flash PIO command...
Felix Fietkau [Fri, 10 Jun 2016 08:47:34 +0000 (10:47 +0200)]
mvebu: add a patch to deal with excessive latencies/delays during flash PIO command processing

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoxtables-addons: add missing dependency
Felix Fietkau [Thu, 9 Jun 2016 09:09:56 +0000 (11:09 +0200)]
xtables-addons: add missing dependency

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoubox: increase default size of system log buffer to 64 kB
Hannu Nyman [Wed, 8 Jun 2016 13:12:55 +0000 (16:12 +0300)]
ubox: increase default size of system log buffer to 64 kB

Increase the default system log buffer size
from 16 kB (default both in logd source and in the startup script)
to 64 kB by adjusting the default value in startup script.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agobase-files: increase default system log size to 64 kB
Hannu Nyman [Wed, 8 Jun 2016 13:03:20 +0000 (16:03 +0300)]
base-files: increase default system log size to 64 kB

Increase the default system log buffer size
from 16 kB (built-in default in ubox logd)
to 64 kB by setting the option in /etc/config/system.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agobrcm2708: fix another missing kmod dependency
Álvaro Fernández Rojas [Wed, 8 Jun 2016 22:14:26 +0000 (00:14 +0200)]
brcm2708: fix another missing kmod dependency

kmod-sound-soc-digidac1-soundcard is also missing snd-soc-wm8804 dependency
for snd-soc-wm8804-i2c

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agobrcm2708: fix missing dependency found by buildbot
Álvaro Fernández Rojas [Wed, 8 Jun 2016 22:06:20 +0000 (00:06 +0200)]
brcm2708: fix missing dependency found by buildbot

Add missing dependency to kmod-sound-soc-adau1977-adc.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agobrcm2708: update linux 4.4 patches to latest version
Álvaro Fernández Rojas [Wed, 8 Jun 2016 09:59:37 +0000 (11:59 +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
Also alphabetically order sound-soc kernel packages.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agobrcm2708-gpu-fw: update to latest version
Álvaro Fernández Rojas [Wed, 8 Jun 2016 13:49:02 +0000 (15:49 +0200)]
brcm2708-gpu-fw: update to latest version

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
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>