openwrt/staging/ansuel.git
10 years agobcm53xx: refresh patches
Hauke Mehrtens [Sat, 1 Nov 2014 13:55:02 +0000 (13:55 +0000)]
bcm53xx: refresh patches

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43144

10 years agoppp: support adaptive LCP echos
Jo-Philipp Wich [Sat, 1 Nov 2014 12:37:03 +0000 (12:37 +0000)]
ppp: support adaptive LCP echos

Port Debians adaptive LCP echo patch to pppd, make it configurable with UCI
and enable it by default.

When adaptive LCP echo is enabled, LCP echo requests are only sent if the
link is idle, this avoids the common situation where a congested PPP link
(e.g. during torrenting) is falsely detected as disconnected because the
LCP replies are not received in time.

Also bump the copyright year in the Makefile, remove a redundant maintainer
entry and fix the shell processing of the keepalive option when the two-
value syntax is used.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 43143

10 years agobrcm47xx: add config for kernel 3.18
Hauke Mehrtens [Fri, 31 Oct 2014 23:54:33 +0000 (23:54 +0000)]
brcm47xx: add config for kernel 3.18

This adds a kernel config for kernel 3.18

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43140

10 years agokernel: add missing patch for AR8216_PHY_LEDS
Hauke Mehrtens [Fri, 31 Oct 2014 23:53:32 +0000 (23:53 +0000)]
kernel: add missing patch for AR8216_PHY_LEDS

The patch adding AR8216_PHY_LEDS was not ported to more recent kernel
versions.
Thank you swalker for spotting this.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43139

10 years agokernel: refresh patches
Hauke Mehrtens [Fri, 31 Oct 2014 23:50:42 +0000 (23:50 +0000)]
kernel: refresh patches

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43138

10 years agokernel: 3.18: add some missing parts in 721-phy_packets.patch
Hauke Mehrtens [Fri, 31 Oct 2014 23:48:43 +0000 (23:48 +0000)]
kernel: 3.18: add some missing parts in 721-phy_packets.patch

Some changes from the header file were not ported from older kernel.
Thank you swalker for spotting this.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43137

10 years agokernel: add some missing config options
Hauke Mehrtens [Fri, 31 Oct 2014 23:43:10 +0000 (23:43 +0000)]
kernel: add some missing config options

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43136

10 years agokernel: remove wrongly added SYS_HAS_DMA_OPS in r43134
Hauke Mehrtens [Fri, 31 Oct 2014 23:39:34 +0000 (23:39 +0000)]
kernel: remove wrongly added SYS_HAS_DMA_OPS in r43134

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43135

10 years agokernel: add patch header and missing part in 132-mips_inline_dma_ops.patch again
Hauke Mehrtens [Fri, 31 Oct 2014 23:32:22 +0000 (23:32 +0000)]
kernel: add patch header and missing part in 132-mips_inline_dma_ops.patch again

The select SYS_HAS_DMA_OPS in CPU_CAVIUM_OCTEON was from the kernel
patch in 3.13, but it is only included in kernel 3.14 and not in 3.13
and 3.18, add it again.

Thank you swalker for spotting this.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43134

10 years agomac80211: configuration: Better handling of LIB80211 configuration
Hauke Mehrtens [Fri, 31 Oct 2014 23:27:27 +0000 (23:27 +0000)]
mac80211: configuration: Better handling of LIB80211 configuration

Apply patch for kernel 3.10 from r43112 also in 3.12, 3.14 and 3.18.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43133

10 years agopackages: kernel: negate kernel version checks
Hauke Mehrtens [Fri, 31 Oct 2014 22:02:07 +0000 (22:02 +0000)]
packages: kernel: negate kernel version checks

Only list the kernel versions that do not match so that new kernel
versions will automatically match. This improves support for kernel
3.18.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43132

10 years agomac80211: remove unused patch
Hauke Mehrtens [Fri, 31 Oct 2014 21:55:21 +0000 (21:55 +0000)]
mac80211: remove unused patch

This patch added stuff that is already there and if it would be needed
this would result in a compile error.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43131

10 years agokernel: kernel 3.18 fix compilation on mips
Hauke Mehrtens [Fri, 31 Oct 2014 21:54:16 +0000 (21:54 +0000)]
kernel: kernel 3.18 fix compilation on mips

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43130

10 years agotarget/imagebuilder: remove obsolete !TARGET_ROOTFS_INITRAMFS dependency
Felix Fietkau [Fri, 31 Oct 2014 12:59:23 +0000 (12:59 +0000)]
target/imagebuilder: remove obsolete !TARGET_ROOTFS_INITRAMFS dependency

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43128

10 years agouqmi: update to latest git HEAD
John Crispin [Fri, 31 Oct 2014 11:02:06 +0000 (11:02 +0000)]
uqmi: update to latest git HEAD

this adds support for pin set/unlock/... and iccid.

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

10 years agokernel/modules: add native vxlan package
John Crispin [Fri, 31 Oct 2014 11:01:28 +0000 (11:01 +0000)]
kernel/modules: add native vxlan package

More recent kernel versions (>= 3.12) support native VXLAN
support.

The Open VSwitch kernel module tries to build using native VXLAN
support if it detects a kernel version >=3.12.

The build works fine, but during startup the OVS kernel module
does not load.
dmesg output is something like this:
    [ 1201.262842] openvswitch: Unknown symbol vxlan_sock_release
    [ 1201.262949] openvswitch: Unknown symbol vxlan_xmit_skb
    [ 1201.263161] openvswitch: Unknown symbol vxlan_sock_add

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
SVN-Revision: 43126

10 years agolantiq: vr9-vdsl-fw: properly write firmware to flash
John Crispin [Fri, 31 Oct 2014 11:00:42 +0000 (11:00 +0000)]
lantiq: vr9-vdsl-fw: properly write firmware to flash

Using a redirect to a non-empty mtd partition will not erase the
blocks prior to writing to them resulting in broken dsl_fw.
Fix this by piping to mtd write - /dev/mtdX instead.

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

10 years ago6in4: https support for he.net tunnel api
Steven Barth [Thu, 30 Oct 2014 13:15:18 +0000 (13:15 +0000)]
6in4: https support for he.net tunnel api

HE.net tunnel update API requests are now made via https if an
SSL-capable wget is installed.  Certificate validation is
conditionally enabled if the CA certs are available.

Signed-off-by: Andrew Skalski <askalski@gmail.com>
SVN-Revision: 43124

10 years agoopenssl: optimize build options, disable old SSL versions
Steven Barth [Thu, 30 Oct 2014 13:11:04 +0000 (13:11 +0000)]
openssl: optimize build options, disable old SSL versions

Based on a patchset by Etienne CHAMPETIER <champetier.etienne@gmail.com>
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 43123

10 years agokernel: add missing symbols for 3.18
Zoltan Herpai [Thu, 30 Oct 2014 10:15:20 +0000 (10:15 +0000)]
kernel: add missing symbols for 3.18

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
SVN-Revision: 43121

10 years agoralink: make sure a mii_bus is loaded before accesing its state
John Crispin [Thu, 30 Oct 2014 10:10:57 +0000 (10:10 +0000)]
ralink: make sure a mii_bus is loaded before accesing its state

this caused a crash on boot

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

10 years agoralink: load mt7530 driver on the 3 buffalo units
John Crispin [Thu, 30 Oct 2014 10:10:51 +0000 (10:10 +0000)]
ralink: load mt7530 driver on the 3 buffalo units

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

10 years agoprocd: Allow boot messages to be sent to console
John Crispin [Thu, 30 Oct 2014 10:10:45 +0000 (10:10 +0000)]
procd: Allow boot messages to be sent to console

update to latest git HEAD, adds "log to console"

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

10 years agoralink: mt7530 - force wan port up
John Crispin [Thu, 30 Oct 2014 08:44:00 +0000 (08:44 +0000)]
ralink: mt7530 - force wan port up

some bootloaders (linksys e1700) set wonky hw trap values. reset this upon boot to make all ports work.

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

10 years agovgv7519: fix profile, this board have a rt2800-pci board
John Crispin [Thu, 30 Oct 2014 08:08:09 +0000 (08:08 +0000)]
vgv7519: fix profile, this board have a rt2800-pci board

SVN-Revision: 43115

10 years agoltq-vdsl-app: use VDSL tone-setup if annex is unset
John Crispin [Thu, 30 Oct 2014 08:08:01 +0000 (08:08 +0000)]
ltq-vdsl-app: use VDSL tone-setup if annex is unset

I had to use a VDSL-only tone-setup to get show-time.
Handle this in uci by checking if annex is unset.

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

10 years agoralink: fix mt7530 for newer silicon revisions
John Crispin [Thu, 30 Oct 2014 08:07:49 +0000 (08:07 +0000)]
ralink: fix mt7530 for newer silicon revisions

latest mt7530 silicon seems to have a different phy id.

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

10 years agomac80211: configuration: Better handling of LIB80211 configuration
John Crispin [Wed, 29 Oct 2014 21:04:30 +0000 (21:04 +0000)]
mac80211: configuration: Better handling of LIB80211 configuration

OpenWRT patch 255-lib80211_kconfig_hacks gives user possiblity to select
LIB80211 dependant settings (LIB80211_CRYPT_*) without having LIB80211
selected which is wrong.
My patch changes OpenWRT patch so LIB80211 is vissible and all
LIB80211_CRYPT_* options selects LIB80211 automatically.

Signed-off-by: Tomasz Wasiak <tjwasiak@gmail.com>
SVN-Revision: 43112

10 years agoca-certificates: Update to Version 20141019
John Crispin [Wed, 29 Oct 2014 21:01:26 +0000 (21:01 +0000)]
ca-certificates: Update to Version 20141019

Update to Version 20141019

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
SVN-Revision: 43111

10 years agolantiq: vgv7519: fix board_config on dts, read mac address and set
John Crispin [Wed, 29 Oct 2014 20:50:40 +0000 (20:50 +0000)]
lantiq: vgv7519: fix board_config on dts, read mac address and set

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
SVN-Revision: 43109

10 years agoramips: improve ralink ethernet driver
John Crispin [Wed, 29 Oct 2014 19:43:59 +0000 (19:43 +0000)]
ramips: improve ralink ethernet driver

Change list:
* add tx scatter gather function.
* add software rx vlan offload to let GRO work.
* add jumbo frame support. because use build_skb so max MTU is 3812.
* enable hardware tx vlan.
* enable GRO and remove LRO. because it can improve performance and can work on forwarding.
* enable/fix tx padding function.
* let napi handle tx clean up.
* support ethtool operation. now support message level, hardware status and coalesce.
* ethtool support use mdio to get phy status only on mt7620. need modify dts file and add phy info to support it.

Notes:
* build and test on rt2880, rt3052, rt3352, rt3662, rt5350 and mt7620a.
* TCP NAT performance improve. test with netperf.
  - rt2880(gigabit) from 5x to 12x Mbps.
  - rt3x5x from 6x to 94 Mbps.
  - rt5250 from 5x to 8x Mbps.
  - rt3662(gigabit) from 6x to 42x Mbps with GRO. 23x Mbps without GRO. 66x Mbps with jumbo frame.
  - mt7620 still 94Mbps.
* TSO function not tested. because i don't have mt7620 with eco >= 5. and the hardware don't support to set MSS. it will have problem.

Signed-off-by: michael lee <igvtee@gmail.com>
SVN-Revision: 43108

10 years agoswconfig: last vs tail
John Crispin [Wed, 29 Oct 2014 19:24:16 +0000 (19:24 +0000)]
swconfig: last vs tail

sorry .....

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

10 years agoswconfig: "swconfig list" shows devices in reverse order
John Crispin [Wed, 29 Oct 2014 18:51:06 +0000 (18:51 +0000)]
swconfig: "swconfig list" shows devices in reverse order

Boards that have more than one swconfig enabled switch will show the devices in
reverse order when call swconfig list. Fix this by using list_add_tail().

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

10 years agoralink: fix switch config on mt7530 evb
John Crispin [Wed, 29 Oct 2014 18:51:02 +0000 (18:51 +0000)]
ralink: fix switch config on mt7530 evb

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

10 years agoralink: fix a off by 4 bug in mt7530
John Crispin [Wed, 29 Oct 2014 18:49:46 +0000 (18:49 +0000)]
ralink: fix a off by 4 bug in mt7530

0x8100000c vs 0x810000c0 int he pvc register this caused the cascade with an external mt7530 to fail.

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

10 years agoAdd support for DHT11 driver
John Crispin [Wed, 29 Oct 2014 15:02:38 +0000 (15:02 +0000)]
Add support for DHT11 driver

The DHT11 is a temperature and humidity sensor supported by linux
since 3.14.

This patch is tested on recent mxs with kernel 3.14.18.

Signed-off-by: Harald Geyer <harald@ccbib.org>
SVN-Revision: 43103

10 years agoramips: add support for A5-V11 board (resubmit)
John Crispin [Wed, 29 Oct 2014 11:01:17 +0000 (11:01 +0000)]
ramips: add support for A5-V11 board (resubmit)

(Reposted due to an issue with the patchwork server during original submission)

Unbranded. Silkscreen on PCB is “A5-V11”, believed to be made by Bococom (or at least uses Bococom image encryption - as used on poray devices - but different key)

Signed-off-by: Gareth Bryan <gareth@mx9.org>
SVN-Revision: 43102

10 years agolantiq_dsl.sh: properly detect vdsl_cpe_control and add missing quotes
John Crispin [Wed, 29 Oct 2014 08:23:47 +0000 (08:23 +0000)]
lantiq_dsl.sh: properly detect vdsl_cpe_control and add missing quotes

lantiq_dsl.sh didn't work with VDSL chipsets for now, fix that by
detecting whether vdsl_cpe_control or dsl_cpe_control should be used.
Also add missing quotes around shell string comparision.

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

10 years agobrcm47xx: initial support for kernel 3.18
Rafał Miłecki [Tue, 28 Oct 2014 10:26:00 +0000 (10:26 +0000)]
brcm47xx: initial support for kernel 3.18

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

10 years agokernel: add closing " to REGMAP_I2C's tristate
Hauke Mehrtens [Mon, 27 Oct 2014 23:14:21 +0000 (23:14 +0000)]
kernel: add closing " to REGMAP_I2C's tristate

Thanks swalker for reporting.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43099

10 years agobcm53xx: remove support for fpu
Hauke Mehrtens [Mon, 27 Oct 2014 23:04:07 +0000 (23:04 +0000)]
bcm53xx: remove support for fpu

This SoC does not have a vfpv3 FPU.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43098

10 years agobcm53xx: initial support for kernel 3.18
Hauke Mehrtens [Mon, 27 Oct 2014 23:02:08 +0000 (23:02 +0000)]
bcm53xx: initial support for kernel 3.18

This adds initial support for kernel 3.18.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43097

10 years agokernel: add generic config for kernel 3.18
Hauke Mehrtens [Mon, 27 Oct 2014 22:58:12 +0000 (22:58 +0000)]
kernel: add generic config for kernel 3.18

There are still many options missing.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43096

10 years agokernel: make the kernel 3.18 patches apply and boot on arm.
Hauke Mehrtens [Mon, 27 Oct 2014 22:55:39 +0000 (22:55 +0000)]
kernel: make the kernel 3.18 patches apply and boot on arm.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43095

10 years agokernel: make it possible to select experimental 3.18 (3.18-rc2)
Rafał Miłecki [Mon, 27 Oct 2014 18:16:45 +0000 (18:16 +0000)]
kernel: make it possible to select experimental 3.18 (3.18-rc2)

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

10 years agokernel: start working on 3.18 support
Rafał Miłecki [Mon, 27 Oct 2014 18:14:39 +0000 (18:14 +0000)]
kernel: start working on 3.18 support

This commit:
1) Copies 3.14 patches
2) Drops mainlined stuff
3) Modifies some patches to apply

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

10 years agoiwinfo: add cli support for phy lookup from uci section
Jo-Philipp Wich [Mon, 27 Oct 2014 16:35:41 +0000 (16:35 +0000)]
iwinfo: add cli support for phy lookup from uci section

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 43092

10 years agokernel: 3.14: use patch that is really upstreamed for hso 0af0:9200
Rafał Miłecki [Mon, 27 Oct 2014 16:00:36 +0000 (16:00 +0000)]
kernel: 3.14: use patch that is really upstreamed for hso 0af0:9200

Patch 060 we had in repo was never sent/accepted.

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

10 years agofstools: update to latest git head
John Crispin [Mon, 27 Oct 2014 15:51:33 +0000 (15:51 +0000)]
fstools: update to latest git head

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

10 years agolibiconv: do not replace untranslatable characters with * or ?
John Crispin [Mon, 27 Oct 2014 15:51:25 +0000 (15:51 +0000)]
libiconv: do not replace untranslatable characters with * or ?

Instead throw an -EILSEQ error.

Signed-off-by: Tjalling Hattink <t.hattink@fugro.nl>
SVN-Revision: 43089

10 years agobase-files: config_generate did not handle setups with more than 1 switch properly
John Crispin [Mon, 27 Oct 2014 15:51:17 +0000 (15:51 +0000)]
base-files: config_generate did not handle setups with more than 1 switch properly

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

10 years agoiwinfo: switch to external git repo, support lookup by phyname & macaddr
Jo-Philipp Wich [Mon, 27 Oct 2014 14:35:44 +0000 (14:35 +0000)]
iwinfo: switch to external git repo, support lookup by phyname & macaddr

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 43087

10 years agoconfig: use PARTUUID by default on x86_64
Jo-Philipp Wich [Mon, 27 Oct 2014 14:35:39 +0000 (14:35 +0000)]
config: use PARTUUID by default on x86_64

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 43086

10 years agobusybox: make high ASCII chars printable (#7993)
Jo-Philipp Wich [Mon, 27 Oct 2014 11:22:15 +0000 (11:22 +0000)]
busybox: make high ASCII chars printable (#7993)

Currently busybox utils like "ls" fail to display filenames containing UTF-8
characters, replacing any special characters with "?".

Change libbb's printable_string() function to allow high ASCII characters so
that unicode filenames are displayed correctls.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 43084

10 years agopx5g-standalone: use /dev/urandom to initialize serial (#18232)
Jo-Philipp Wich [Mon, 27 Oct 2014 11:07:38 +0000 (11:07 +0000)]
px5g-standalone: use /dev/urandom to initialize serial (#18232)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 43080

10 years agomac80211: fix key flush handling in AP+STA
Felix Fietkau [Mon, 27 Oct 2014 11:02:23 +0000 (11:02 +0000)]
mac80211: fix key flush handling in AP+STA

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43079

10 years agouhttpd: fix HTTP incompatibilities in file handler
Jo-Philipp Wich [Mon, 27 Oct 2014 10:25:07 +0000 (10:25 +0000)]
uhttpd: fix HTTP incompatibilities in file handler

 * Fixes sending an extraneous message body for 204 and 304 resoponses which
   breaks Chrome in keep-alive mode.

 * Adds mimetypes for JSON and JSONP.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 43078

10 years agoe2fsprogs: fix description, tune2fs is not part of the e2fsprogs package
John Crispin [Sun, 26 Oct 2014 18:15:25 +0000 (18:15 +0000)]
e2fsprogs: fix description, tune2fs is not part of the e2fsprogs package

https://dev.openwrt.org/ticket/18209

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

10 years agompc85xx: fix WAN/LAN-MAC for TP-LINK TL-WDR4900 v1
John Crispin [Sun, 26 Oct 2014 17:58:53 +0000 (17:58 +0000)]
mpc85xx: fix WAN/LAN-MAC for TP-LINK TL-WDR4900 v1

This works around a bootloader issue where every device
has the same lan/wan-mac 00:04:9f:ef:01:01 - with this patch
we read the macs from config-partition during initial network
setup. We have 9 valid macs stored in the partition, the
1st two are used for the radios, 3 and 4 are now used for WAN/LAN.

on an already setup / running device we can get the real macs with
. /lib/functions.sh
. /lib/functions/system.sh
echo "LAN = $(mtd_get_mac_binary config 338)"
echo "WAN = $(mtd_get_mac_binary config 344)"

see:
https://dev.openwrt.org/ticket/14714

from the ticket / user klondike:
U-Boot passed this commit https://gitorious.org/0xlab-kernel/u-boot/commit/ecd1a09b81f2ed6e6ba7bd1d0bfb0cc3d0ea2ad0
http://u-boot.10912.n7.nabble.com/U-Boot-PATCH-mpc83xx-remove-hardcoded-network-addresses-from-config-files-td44372.html
I suppose to prevent this particular issue, but the WDR4900 may be using an old bootloader still affected.
                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I have been checking the contents of the dtb on the flash, this particular bit is quite revealing:

ethernet@b0000 {
                        #address-cells = <0x1>;
                        #size-cells = <0x1>;
                        device_type = "network";
                        model = "eTSEC";
                        compatible = "fsl,etsec2";
                        fsl,num_rx_queues = <0x8>;
                        fsl,num_tx_queues = <0x8>;
                        local-mac-address = [00 00 00 00 00 00];
                                             ^^^^^^^^^^^^^^^^^

                        interrupt-parent = <0x2>;
                        phy-handle = <0x3>;
                        phy-connection-type = "rgmii-id";
                        ptimer-handle = <0x4>;

                        queue-group@0 {
                                #address-cells = <0x1>;
                                #size-cells = <0x1>;
                                reg = <0xb0000 0x1000>;
                                rx-bit-map = <0xff>;
                                tx-bit-map = <0xff>;
                                interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>;
                        };
                };

I also have been checking the live device map to find this:

root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b0000/local-mac-address
00000000  00 04 9f ef 01 01                                 |......|
00000006
root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b1000/local-mac-address
*
root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b2000/local-mac-address
*

My conclussion is that U-Boot most likely finds the device and (as no valid MAC-address is provided)
falls back to the default MAC provided by the old code, the kernel then receives thee modified
device map from U-Boot and assumes this is the correct MAC for the device despite it obviously isn't.

This can be seen at
target/linux/mpc85xx/patches-3.10/140-powerpc-85xx-tl-wdr4900-v1-support.patch

The enetaddr is filled up by using the device tree data by the process_boot_dtb
function and used by the platform_fixups function to set the eth0 address
(by calling dt_fixup_mac_address_by_alias("ethernet0", enetaddr); ).
But instead we should be used the device address which to my understanding is
provided in the mtd.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
SVN-Revision: 43074

10 years agoramips: fix filenames in PorayDualSize factory images
John Crispin [Sun, 26 Oct 2014 17:18:45 +0000 (17:18 +0000)]
ramips: fix filenames in PorayDualSize factory images

SVN-Revision: 43073

10 years agovgv7519: support more recent board release with vrx288 v1.2
John Crispin [Sun, 26 Oct 2014 17:18:41 +0000 (17:18 +0000)]
vgv7519: support more recent board release with vrx288 v1.2

The existance of this new board has been confirmed and tested by the guy on this commit

https://github.com/openwrt-vgv7519/uboot-bin/commit/76fdd8e638f81e324ffe77856481bd147398f6e8

SVN-Revision: 43072

10 years agocomgt: fix typo in the ncm proto handler
John Crispin [Sun, 26 Oct 2014 16:57:38 +0000 (16:57 +0000)]
comgt: fix typo in the ncm proto handler

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

10 years agogenerate list of license information for packages
John Crispin [Sun, 26 Oct 2014 16:57:33 +0000 (16:57 +0000)]
generate list of license information for packages

Many packages define already metadata about their license (PKG_LICENSE),
but this is only included in the ipk files.

This change allows to create the information also on the build-host,
to get an overview on the used licenses.
In the full list, also all packages without this info are shown

Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
SVN-Revision: 43070

10 years agoutil-linux-dmesg: Add missing install section
John Crispin [Sun, 26 Oct 2014 16:57:27 +0000 (16:57 +0000)]
util-linux-dmesg: Add missing install section

Package util-linux-dmesg is broken (at least) in Barrier Breaker git repo
as you can select it within menuconfig, it will compile (as a part of
util-linux) but it will not install as install section is missing from
package Makefile.

Signed-off-by: Tomasz Wasiak <tjwasiak@gmail.com>
SVN-Revision: 43069

10 years agoRevert "include/shell.sh: remove getvar()"
Felix Fietkau [Sun, 26 Oct 2014 16:18:24 +0000 (16:18 +0000)]
Revert "include/shell.sh: remove getvar()"

It is more widely used than I thought.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43068

10 years agofindutils: add dependency on bison
Felix Fietkau [Sun, 26 Oct 2014 11:26:54 +0000 (11:26 +0000)]
findutils: add dependency on bison

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43064

10 years agobroadcom-wl: align with mac80211 config
Jo-Philipp Wich [Sat, 25 Oct 2014 18:43:18 +0000 (18:43 +0000)]
broadcom-wl: align with mac80211 config

 - Support HT40 instead of HT40+/HT40- like mac80211
 - Enable 11n if htmode is HT20 or HT40

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 43063

10 years agobase-files: add /etc/shadow to list of essential files to keep in sysupgrade (bug...
Felix Fietkau [Sat, 25 Oct 2014 17:22:46 +0000 (17:22 +0000)]
base-files: add /etc/shadow to list of essential files to keep in sysupgrade (bug 18206)

Based on bug #18206 sysupgrade can lead to loss of password information in
certain situations. Most likely all users who will upgrade from versions
r43017-43040, will lose their current passwords. :-(
https://dev.openwrt.org/ticket/18206

Currently /etc/shadow is defined as a conffile in base-files:
https://dev.openwrt.org/browser/trunk/package/base-files/Makefile#L37

But it is not defined in the default list of essential files to keep in
sysupgrade:
https://dev.openwrt.org/browser/trunk/package/base-files/files/lib/upgrade/keep.d/base-files-essential

If exporting conffiles info fails, /etc/shadow can get lost.

Shadow passwords are now the default, so saying that preserving /etc/passwd
is essential while /etc/shadow is not, makes no sense.

The attached patch adds /etc/shadow to the list of essential files.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
SVN-Revision: 43061

10 years agotools: Fix compilation on x32 host
Felix Fietkau [Sat, 25 Oct 2014 16:57:16 +0000 (16:57 +0000)]
tools: Fix compilation on x32 host

Compiling the host tools on the new x32 architecture (which is
an ILP32 ELF32 system on an amd64 CPU) fails for various reasons.

 gmp: pull same fix I applied to OpenADK, which was inspired
  by the fix in the Debian source package

 mtd-utils: write a workaround myself; only affects x32, but
  the use of llseek is dangerous according to the manpage, so
  the guard ifdef should probably go away

 findutils: pull fix straight from the Debian source packae

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
SVN-Revision: 43060

10 years agohostapd: update to 2014-10-25
Felix Fietkau [Sat, 25 Oct 2014 16:48:45 +0000 (16:48 +0000)]
hostapd: update to 2014-10-25

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43059

10 years agoath9k: add a few calibration related fixes
Felix Fietkau [Sat, 25 Oct 2014 14:45:22 +0000 (14:45 +0000)]
ath9k: add a few calibration related fixes

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43058

10 years agoodhcp6c: avoid some unnecessary big mallocs
Steven Barth [Sat, 25 Oct 2014 10:39:02 +0000 (10:39 +0000)]
odhcp6c: avoid some unnecessary big mallocs

SVN-Revision: 43056

10 years agortlwifi: unbreak usb drivers
Felix Fietkau [Fri, 24 Oct 2014 22:00:34 +0000 (22:00 +0000)]
rtlwifi: unbreak usb drivers

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43052

10 years agoar71xx: refresh 3.10 patches
Felix Fietkau [Fri, 24 Oct 2014 20:39:42 +0000 (20:39 +0000)]
ar71xx: refresh 3.10 patches

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43051

10 years agokernel: refresh generic 3.10 patches
Felix Fietkau [Fri, 24 Oct 2014 20:39:36 +0000 (20:39 +0000)]
kernel: refresh generic 3.10 patches

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43050

10 years agokernel: update 3.10.49 to 3.10.58 (released 2014-oct-15)
Felix Fietkau [Fri, 24 Oct 2014 20:39:26 +0000 (20:39 +0000)]
kernel: update 3.10.49 to 3.10.58 (released 2014-oct-15)

All platforms which are using 3.10.x at the moment are upgraded.

Changelogs:
https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.10.50
https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.10.51
https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.10.52
https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.10.53
https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.10.54
https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.10.55
https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.10.56
https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.10.57
https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.10.58

A new symbol 'X86_16BIT' appeared in 3.10.52 with commit 34273f41d57ee8d854dcd2a1d754cbb546cb548f
("x86-espfix-make-it-possible-to-disable-16-bit-support.patch")
I defaults to 'unset', but it's worth a discussion to enable it
("turn off support for any 16-bit software").

Also removed the patch 0db3db45f5bd6df4bdc03bbd5dec672e16164c4e
("fix build failure on memcpy() in decompress.c")
and is obsolete by commit 29593fd5a8149462ed6fad0d522234facdaee6c8 upstream.
included in kernel 3.10.56

compile tested on all platforms with:
make tools/install
make toolchain/install
make target/linux/compile

user@box:~/user/openwrt$ cat /tmp/log.txt
[Wed Oct 22 00:36:02 CEST 2014] ./smoketest.sh: ar71xx - OK
[Wed Oct 22 00:53:22 CEST 2014] ./smoketest.sh: ar7 - OK
[Wed Oct 22 01:08:27 CEST 2014] ./smoketest.sh: au1000 - OK
[Wed Oct 22 01:21:43 CEST 2014] ./smoketest.sh: avr32 - OK
[Wed Oct 22 01:37:47 CEST 2014] ./smoketest.sh: cns21xx - OK
[Wed Oct 22 01:52:05 CEST 2014] ./smoketest.sh: cns3xxx - OK
[Wed Oct 22 02:10:23 CEST 2014] ./smoketest.sh: gemini - OK
[Wed Oct 22 02:29:07 CEST 2014] ./smoketest.sh: ixp4xx - OK
[Wed Oct 22 02:44:01 CEST 2014] ./smoketest.sh: malta - OK
[Wed Oct 22 02:55:57 CEST 2014] ./smoketest.sh: mpc85xx - OK
[Wed Oct 22 03:07:56 CEST 2014] ./smoketest.sh: orion - OK
[Wed Oct 22 03:24:30 CEST 2014] ./smoketest.sh: ppc40x - OK
[Wed Oct 22 03:40:19 CEST 2014] ./smoketest.sh: ppc44x - OK
[Wed Oct 22 03:55:29 CEST 2014] ./smoketest.sh: realview - OK
[Wed Oct 22 04:09:47 CEST 2014] ./smoketest.sh: sparc - OK
[Wed Oct 22 04:23:37 CEST 2014] ./smoketest.sh: x86 - OK
[Wed Oct 22 04:35:56 CEST 2014] ./smoketest.sh: xburst - OK

run tested on x86, au1000, ar71xx, mpc85xx and brcm47xx

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
SVN-Revision: 43049

10 years agonetlogic: use KERNEL_PATCHVER
Felix Fietkau [Fri, 24 Oct 2014 19:35:52 +0000 (19:35 +0000)]
netlogic: use KERNEL_PATCHVER

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43048

10 years agokernel: makefiles: make use of new var KERNEL_PATCHVER
Felix Fietkau [Fri, 24 Oct 2014 19:34:02 +0000 (19:34 +0000)]
kernel: makefiles: make use of new var KERNEL_PATCHVER

replace all occurences of LINUX_VERSION with the cleaner
approach. future kernel upgrades must mostly touch only
one file. the only platform left is netlogic, because it
uses a intermediate kernel 3.14.16

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
SVN-Revision: 43047

10 years agobroadcom_wl: eliminate compiler error with gcc-4.9-linaro
Felix Fietkau [Fri, 24 Oct 2014 18:05:51 +0000 (18:05 +0000)]
broadcom_wl: eliminate compiler error with gcc-4.9-linaro

Attempting to build broadcom_wl (from trunk) with the linaro 4.9.x
toolchain produces the following errors:

<...>/wl_linux.c: In function 'wl_dump_ver':
<...>/wl_linux.c:2302:3: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   __DATE__, __TIME__, EPI_VERSION_STR);
   ^
<...>/wl_linux.c:2302:13: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   __DATE__, __TIME__, EPI_VERSION_STR);
             ^
cc1: some warnings being treated as errors

Remove the use of the __DATE__ and __TIME__ macros, as the info is not
really useful.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
SVN-Revision: 43046

10 years agoopenssl: fix target definition for x86_64 (#18182)
Felix Fietkau [Fri, 24 Oct 2014 13:23:39 +0000 (13:23 +0000)]
openssl: fix target definition for x86_64 (#18182)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43045

10 years agonetifd: update to the latest version, fixes a use-after-free bug
Felix Fietkau [Fri, 24 Oct 2014 13:04:12 +0000 (13:04 +0000)]
netifd: update to the latest version, fixes a use-after-free bug

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43044

10 years agokernel: allow targets to specify KERNEL_PATCHVER instead of LINUX_VERSION
Felix Fietkau [Fri, 24 Oct 2014 13:04:08 +0000 (13:04 +0000)]
kernel: allow targets to specify KERNEL_PATCHVER instead of LINUX_VERSION

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43043

10 years agogdb: fix build failure on arm
Nicolas Thill [Fri, 24 Oct 2014 11:19:29 +0000 (11:19 +0000)]
gdb: fix build failure on arm

Signed-off-by: Nicolas Thill <nico@openwrt.org>
SVN-Revision: 43042

10 years agoinclude: unbreak conffiles, postinst & prerm exports
Jo-Philipp Wich [Fri, 24 Oct 2014 09:24:51 +0000 (09:24 +0000)]
include: unbreak conffiles, postinst & prerm exports

Changeset r43017 reworked the ipkg control metadata generation but broke
the export of conffiles, postinst and prerm defines.

Change the code back to rely on shvar and shexport, this is required to
properly output multiline contents.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 43041

10 years agolinux: add kmod-i2c-piix4
Jo-Philipp Wich [Fri, 24 Oct 2014 09:24:45 +0000 (09:24 +0000)]
linux: add kmod-i2c-piix4

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 43040

10 years agonetlogic: fix modular USB build
Florian Fainelli [Fri, 24 Oct 2014 00:16:48 +0000 (00:16 +0000)]
netlogic: fix modular USB build

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 43039

10 years agonetlogic: add basic user-space support
Florian Fainelli [Fri, 24 Oct 2014 00:16:37 +0000 (00:16 +0000)]
netlogic: add basic user-space support

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 43038

10 years agonetlogic: add XLR/XLP support
Florian Fainelli [Fri, 24 Oct 2014 00:16:23 +0000 (00:16 +0000)]
netlogic: add XLR/XLP support

Add support for Broadcom/Netlogic XLR/XLP support

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 43037

10 years agokernel: add a memmove() implementation for MIPS boot decompressor
Florian Fainelli [Fri, 24 Oct 2014 00:16:10 +0000 (00:16 +0000)]
kernel: add a memmove() implementation for MIPS boot decompressor

This is required due to 306-mips_mem_functions_performance.patch, just
add a memmove() implementation to satisfy the lzma2 decompressor code.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 43036

10 years agotoolchain: fix mips64 musl linker names
Florian Fainelli [Fri, 24 Oct 2014 00:15:58 +0000 (00:15 +0000)]
toolchain: fix mips64 musl linker names

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 43035

10 years agoath: process regulatory notifiers with CONFIG_ATH_USER_REGD set
Felix Fietkau [Thu, 23 Oct 2014 13:33:18 +0000 (13:33 +0000)]
ath: process regulatory notifiers with CONFIG_ATH_USER_REGD set

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43034

10 years agoath10k: fix survey output channel in-use flag
Felix Fietkau [Thu, 23 Oct 2014 13:33:14 +0000 (13:33 +0000)]
ath10k: fix survey output channel in-use flag

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43033

10 years agoath9k: fix tx power reporting
Felix Fietkau [Wed, 22 Oct 2014 16:26:56 +0000 (16:26 +0000)]
ath9k: fix tx power reporting

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43032

10 years agobcm53xx: backport forgotten spi-nor change
Rafał Miłecki [Wed, 22 Oct 2014 14:34:43 +0000 (14:34 +0000)]
bcm53xx: backport forgotten spi-nor change

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

10 years agobcm53xx: backport spi-nor patches from 3.18-rc1
Rafał Miłecki [Wed, 22 Oct 2014 14:16:18 +0000 (14:16 +0000)]
bcm53xx: backport spi-nor patches from 3.18-rc1

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

10 years agoath9k: merge ar9580/ar955x initval updates
Felix Fietkau [Wed, 22 Oct 2014 13:32:12 +0000 (13:32 +0000)]
ath9k: merge ar9580/ar955x initval updates

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43029

10 years agoath9k: merge a regulatory handling fix
Felix Fietkau [Wed, 22 Oct 2014 13:32:06 +0000 (13:32 +0000)]
ath9k: merge a regulatory handling fix

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43028

10 years agolinux: add kmod-hwmon-k10temp
Jo-Philipp Wich [Wed, 22 Oct 2014 11:30:07 +0000 (11:30 +0000)]
linux: add kmod-hwmon-k10temp

This module is required to read the CPU core temperature sensors
on the Alix APU board.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 43027

10 years agoar71xx: add support for buffalo WZR-450HP2
Felix Fietkau [Wed, 22 Oct 2014 11:02:18 +0000 (11:02 +0000)]
ar71xx: add support for buffalo WZR-450HP2

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43026

10 years agoRevert "build: use ONESHELL to speed up scanning and the toplevel makefile"
Felix Fietkau [Wed, 22 Oct 2014 10:47:26 +0000 (10:47 +0000)]
Revert "build: use ONESHELL to speed up scanning and the toplevel makefile"

This seems to cause issues on some build hosts, and it is not that
important.

SVN-Revision: 43025