openwrt/staging/mkresin.git
9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 years agokernel: use .ONESHELL to speed up processing of many kmod-* packages
Felix Fietkau [Wed, 22 Oct 2014 08:57:56 +0000 (08:57 +0000)]
kernel: use .ONESHELL to speed up processing of many kmod-* packages

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

9 years agobuild: only print skipped packages that were selected
Felix Fietkau [Wed, 22 Oct 2014 08:57:50 +0000 (08:57 +0000)]
build: only print skipped packages that were selected

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

9 years agokernel: use /bin/sh instead of bash to speed up processing of many kmod-* packages
Felix Fietkau [Wed, 22 Oct 2014 08:57:45 +0000 (08:57 +0000)]
kernel: use /bin/sh instead of bash to speed up processing of many kmod-* packages

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

9 years agobuild: use ONESHELL to speed up scanning and the toplevel makefile
Felix Fietkau [Wed, 22 Oct 2014 08:57:40 +0000 (08:57 +0000)]
build: use ONESHELL to speed up scanning and the toplevel makefile

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

9 years agoinclude/shell.sh: remove getvar()
Felix Fietkau [Wed, 22 Oct 2014 08:57:30 +0000 (08:57 +0000)]
include/shell.sh: remove getvar()

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

9 years agobuild: optimize target metadata dump
Felix Fietkau [Wed, 22 Oct 2014 08:57:25 +0000 (08:57 +0000)]
build: optimize target metadata dump

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

9 years agorules.mk: reduce shexport to one line to allow it to be put in a target context
Felix Fietkau [Wed, 22 Oct 2014 08:57:20 +0000 (08:57 +0000)]
rules.mk: reduce shexport to one line to allow it to be put in a target context

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

9 years agobuild: clean up and optimize ipkg control generator code
Felix Fietkau [Wed, 22 Oct 2014 08:57:16 +0000 (08:57 +0000)]
build: clean up and optimize ipkg control generator code

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

9 years agobuild: do not process built-in rules for make subdirs
Felix Fietkau [Wed, 22 Oct 2014 08:57:11 +0000 (08:57 +0000)]
build: do not process built-in rules for make subdirs

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

9 years agobuild: optimize printing of disabled packages
Felix Fietkau [Wed, 22 Oct 2014 08:57:07 +0000 (08:57 +0000)]
build: optimize printing of disabled packages

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

9 years agocomgt: drop the use of the non-standard XCASE termios flag (#18186)
Felix Fietkau [Tue, 21 Oct 2014 20:32:05 +0000 (20:32 +0000)]
comgt: drop the use of the non-standard XCASE termios flag (#18186)

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

9 years agonftables: bump to latest, fix minigmp
Steven Barth [Tue, 21 Oct 2014 20:00:56 +0000 (20:00 +0000)]
nftables: bump to latest, fix minigmp

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 43013

9 years agolibnftnl: bump to latest
Steven Barth [Tue, 21 Oct 2014 20:00:46 +0000 (20:00 +0000)]
libnftnl: bump to latest

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 43012

9 years agoath9k: merge a fix for queue start/stop handling (fixes #18164, #18130)
Felix Fietkau [Tue, 21 Oct 2014 16:30:01 +0000 (16:30 +0000)]
ath9k: merge a fix for queue start/stop handling (fixes #18164, #18130)

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

9 years agobcm53xx: add support for Asus RT-N18U LEDs & buttons
Rafał Miłecki [Tue, 21 Oct 2014 14:37:44 +0000 (14:37 +0000)]
bcm53xx: add support for Asus RT-N18U LEDs & buttons

Got GPIOs from #18152 thanks to Grrruk

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

9 years agomusl: fix getopt optional argument processing
Felix Fietkau [Tue, 21 Oct 2014 11:03:20 +0000 (11:03 +0000)]
musl: fix getopt optional argument processing

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

9 years agobcm53xx: switch RT-N18U firmware to the UBI
Rafał Miłecki [Mon, 20 Oct 2014 22:09:40 +0000 (22:09 +0000)]
bcm53xx: switch RT-N18U firmware to the UBI

According to the ticket #18152 it also uses NAND with 0x20000 erase size
and 0x800 page size.

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

9 years agonetifd: update to the latest version, fixes link status handling on VLAN devices...
Felix Fietkau [Mon, 20 Oct 2014 20:09:35 +0000 (20:09 +0000)]
netifd: update to the latest version, fixes link status handling on VLAN devices (#18106)

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

9 years agobase-files: fix telnet login on musl
Felix Fietkau [Mon, 20 Oct 2014 15:07:19 +0000 (15:07 +0000)]
base-files: fix telnet login on musl

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

9 years agorpcd: add 802.11ac for iwinfo
Felix Fietkau [Mon, 20 Oct 2014 13:55:11 +0000 (13:55 +0000)]
rpcd: add 802.11ac for iwinfo

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

9 years agobinutils: remove linaro version string, it confuses gcc lto support detection
Felix Fietkau [Mon, 20 Oct 2014 11:43:08 +0000 (11:43 +0000)]
binutils: remove linaro version string, it confuses gcc lto support detection

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

9 years agogcc: update 4.9 to linaro 2014.10
Felix Fietkau [Mon, 20 Oct 2014 11:42:59 +0000 (11:42 +0000)]
gcc: update 4.9 to linaro 2014.10

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

9 years agoopenssl: host build fails when ccache is enabled
John Crispin [Mon, 20 Oct 2014 11:19:53 +0000 (11:19 +0000)]
openssl: host build fails when ccache is enabled

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

9 years agohostapd: Add wpa_psk_file option to netifd.sh
John Crispin [Mon, 20 Oct 2014 11:19:21 +0000 (11:19 +0000)]
hostapd: Add wpa_psk_file option to netifd.sh

The wpa_psk_file option offers the possibility to use a different WPA-PSK key for each client. The directive points to a file with the following syntax:

mac_address wpa_passphrase_or_hex_key

Example:

00:11:22:33:44:55 passphrase_for_client_1
00:11:22:33:44:67 passphrase_for_client_2
00:11:22:33:44:89 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

So it is possible to specify both ASCII passphrases and raw 64-chars hex keys.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 43001

9 years agofix compile against musl
Imre Kaloz [Mon, 20 Oct 2014 10:00:02 +0000 (10:00 +0000)]
fix compile against musl

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 43000

9 years agoprereq-build: rename the openssl check to libssl, add back the old check - it is...
Felix Fietkau [Mon, 20 Oct 2014 09:23:55 +0000 (09:23 +0000)]
prereq-build: rename the openssl check to libssl, add back the old check - it is required after all

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

9 years agofirmware-utils: rename encrypt()/decrypt() in mkhilinkfw to avoid collisions
Felix Fietkau [Mon, 20 Oct 2014 09:18:36 +0000 (09:18 +0000)]
firmware-utils: rename encrypt()/decrypt() in mkhilinkfw to avoid collisions

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

9 years agoRevert "openssl: add host build."
Felix Fietkau [Mon, 20 Oct 2014 09:18:21 +0000 (09:18 +0000)]
Revert "openssl: add host build."

This reverts commit r42988

SVN-Revision: 42997

9 years agotools: revert faulty dependency on package stuff
Felix Fietkau [Mon, 20 Oct 2014 09:18:02 +0000 (09:18 +0000)]
tools: revert faulty dependency on package stuff

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

9 years agoprereq-build: replace the openssl command check with a check for headers
Felix Fietkau [Mon, 20 Oct 2014 09:17:56 +0000 (09:17 +0000)]
prereq-build: replace the openssl command check with a check for headers

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

9 years agoramips: revert 1d5afc012e9d3eef0b113e1a89cff7508b731f90
John Crispin [Mon, 20 Oct 2014 06:48:51 +0000 (06:48 +0000)]
ramips: revert 1d5afc012e9d3eef0b113e1a89cff7508b731f90

the submitted patch was bogus

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

9 years agoar71xx: unify usage of IMAGE_PROFILE instead of PROFILE.
John Crispin [Mon, 20 Oct 2014 06:29:58 +0000 (06:29 +0000)]
ar71xx: unify usage of IMAGE_PROFILE instead of PROFILE.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 42992

9 years agoramips: add comments for image/Makefile.
John Crispin [Mon, 20 Oct 2014 06:29:51 +0000 (06:29 +0000)]
ramips: add comments for image/Makefile.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 42991

9 years agoar71xx: add comments for Image/BuildLoader{, Alone}.
John Crispin [Mon, 20 Oct 2014 06:29:44 +0000 (06:29 +0000)]
ar71xx: add comments for Image/BuildLoader{, Alone}.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 42990

9 years agofirmware-utils: restore compilation of mkhilinkfw.
John Crispin [Mon, 20 Oct 2014 06:29:38 +0000 (06:29 +0000)]
firmware-utils: restore compilation of mkhilinkfw.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 42989

9 years agoopenssl: add host build.
John Crispin [Mon, 20 Oct 2014 06:29:27 +0000 (06:29 +0000)]
openssl: add host build.

Only support Linux at the moment.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 42988

9 years agobuild: add $(STAGING_DIR_HOST)/usr/{include, lib} to build search path.
John Crispin [Mon, 20 Oct 2014 06:29:21 +0000 (06:29 +0000)]
build: add $(STAGING_DIR_HOST)/usr/{include, lib} to build search path.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 42987

9 years agofirmware-utils: fix compilation warnings.
John Crispin [Mon, 20 Oct 2014 06:29:13 +0000 (06:29 +0000)]
firmware-utils: fix compilation warnings.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 42986

9 years agofailsafe-mode: print short help on commandline
John Crispin [Mon, 20 Oct 2014 06:29:05 +0000 (06:29 +0000)]
failsafe-mode: print short help on commandline

[base-files] failsafe-mode: print short help on commandline

Like mentioned in ticket https://dev.openwrt.org/ticket/11911
this should make the IRC much quieter. Failsafe is somehow
special and even experienced users are helpless, because they
are not used to this seldom situation. Also: likely you have
no internet access in this mode, so you cannot use the wiki.

a failsafe-session now looks like this:
first we see from 'package/base-files/files/bin/login.sh' the hint:

 === IMPORTANT ============================
  Use 'passwd' to set your login password
  this will disable telnet and enable SSH
 ------------------------------------------

after this the /etc/banner ("OpenWrt - wireless freedom")
and then the new text:

================= FAILSAFE MODE active ================
special commands:
* firstboot          reset settings to factory defaults
* mount_root     mount root-partition with config files

after mount_root:
* passwd                         change root's password
* /etc/config               directory with config files

for more help see:
http://wiki.openwrt.org/doc/howto/generic.failsafe
=======================================================

this supersedes the old patches:
http://patchwork.openwrt.org/patch/3337/
http://patchwork.openwrt.org/patch/3553/

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

9 years agokernel: add another missing symbol for 3.14
John Crispin [Mon, 20 Oct 2014 06:28:57 +0000 (06:28 +0000)]
kernel: add another missing symbol for 3.14

SENSORS_VEXPRESS is masked by HWMON

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

9 years agoramips: add support for Nexx WT3020 devices
John Crispin [Mon, 20 Oct 2014 06:28:48 +0000 (06:28 +0000)]
ramips: add support for Nexx WT3020 devices

SVN-Revision: 42983

9 years agoramips: sort boards in upgrade/platform.sh alphabetically
John Crispin [Mon, 20 Oct 2014 06:28:39 +0000 (06:28 +0000)]
ramips: sort boards in upgrade/platform.sh alphabetically

SVN-Revision: 42982

9 years agoiproute2: fix musl build
Felix Fietkau [Sun, 19 Oct 2014 23:04:17 +0000 (23:04 +0000)]
iproute2: fix musl build

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

9 years agoauthsae: fix musl build
Felix Fietkau [Sun, 19 Oct 2014 23:04:02 +0000 (23:04 +0000)]
authsae: fix musl build

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

9 years agogdb: update to version 7.8, fix musl build
Felix Fietkau [Sun, 19 Oct 2014 22:49:42 +0000 (22:49 +0000)]
gdb: update to version 7.8, fix musl build

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

9 years agovalgrind: update to the latest version, fix musl support
Felix Fietkau [Sun, 19 Oct 2014 22:35:27 +0000 (22:35 +0000)]
valgrind: update to the latest version, fix musl support

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

9 years agotoolchain: mark musl as non-broken
Felix Fietkau [Sun, 19 Oct 2014 21:57:28 +0000 (21:57 +0000)]
toolchain: mark musl as non-broken

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

9 years agobase-files: fix ldd definition if /usr/bin/ldd exists
Felix Fietkau [Sun, 19 Oct 2014 21:46:08 +0000 (21:46 +0000)]
base-files: fix ldd definition if /usr/bin/ldd exists

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

9 years agotoolchain: drop the mips softfloat symlink hack
Felix Fietkau [Sun, 19 Oct 2014 21:46:03 +0000 (21:46 +0000)]
toolchain: drop the mips softfloat symlink hack

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

9 years agotoolchain: when using musl, install a symlink from ld-musl-*.so to /usr/bin/ldd
Felix Fietkau [Sun, 19 Oct 2014 21:45:58 +0000 (21:45 +0000)]
toolchain: when using musl, install a symlink from ld-musl-*.so to /usr/bin/ldd

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

9 years agogcc: do not assume that the Mac OS X filesystem is case insensitive
Felix Fietkau [Sun, 19 Oct 2014 21:45:51 +0000 (21:45 +0000)]
gcc: do not assume that the Mac OS X filesystem is case insensitive

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

9 years agomountd: explicitly link libubox (needed by libuci)
Felix Fietkau [Sun, 19 Oct 2014 21:45:45 +0000 (21:45 +0000)]
mountd: explicitly link libubox (needed by libuci)

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