openwrt/staging/ynezz.git
10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 years agomusl: update to version 1.1.5
Felix Fietkau [Sun, 19 Oct 2014 21:45:41 +0000 (21:45 +0000)]
musl: update to version 1.1.5

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

10 years agogcc: update, split and rework 4.9 musl patches
Felix Fietkau [Sun, 19 Oct 2014 21:45:36 +0000 (21:45 +0000)]
gcc: update, split and rework 4.9 musl patches

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

10 years agogcc: update, split and rework 4.8 musl patches
Felix Fietkau [Sun, 19 Oct 2014 21:45:28 +0000 (21:45 +0000)]
gcc: update, split and rework 4.8 musl patches

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

10 years agox86_64: fix invoking sysupgrade on PARTUUID mounted system
Jo-Philipp Wich [Sun, 19 Oct 2014 20:28:43 +0000 (20:28 +0000)]
x86_64: fix invoking sysupgrade on PARTUUID mounted system

Fix sysupgrade to determine the correct boot block device to use if
/proc/cmdline contains a PARTUUID root.

Change the preinit move_config() hook to use the UUID scanning code
from sysupgrade in order to avoid code duplication.

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

10 years agox86_64: unbreak squashfs images
Jo-Philipp Wich [Sun, 19 Oct 2014 17:58:46 +0000 (17:58 +0000)]
x86_64: unbreak squashfs images

Enable the required squashfs and block2mtd support in the kernel in order
to be able to actually boot them.

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

10 years agox86_64: use default block2mtd timeout of 5s
Jo-Philipp Wich [Sun, 19 Oct 2014 17:46:37 +0000 (17:46 +0000)]
x86_64: use default block2mtd timeout of 5s

If the underlying block device is a USB device it might require some
time to settle, observed when booting a squashfs image from sd card
on an Alix APU board.

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

10 years agox86_64: sysupgrade: consider hdX and vdX devices as well
Jo-Philipp Wich [Sun, 19 Oct 2014 17:13:50 +0000 (17:13 +0000)]
x86_64: sysupgrade: consider hdX and vdX devices as well

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

10 years agoopenssl: add ABI_VERSION to fix package rebuild issues (fixes #18169)
Felix Fietkau [Sun, 19 Oct 2014 16:19:07 +0000 (16:19 +0000)]
openssl: add ABI_VERSION to fix package rebuild issues (fixes #18169)

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

10 years agogcc: backport an upstream fix for extern vars with local weak definitions
Felix Fietkau [Sun, 19 Oct 2014 16:18:56 +0000 (16:18 +0000)]
gcc: backport an upstream fix for extern vars with local weak definitions

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

10 years agopolarssl: do not build the unused programs
Felix Fietkau [Sun, 19 Oct 2014 09:43:31 +0000 (09:43 +0000)]
polarssl: do not build the unused programs

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

10 years agorpcd: update to the latest version, fixes build after libubox update
Felix Fietkau [Sun, 19 Oct 2014 08:46:00 +0000 (08:46 +0000)]
rpcd: update to the latest version, fixes build after libubox update

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

10 years agoramips: fix usercfg partition offset for WHR-1166D
Felix Fietkau [Sun, 19 Oct 2014 08:45:56 +0000 (08:45 +0000)]
ramips: fix usercfg partition offset for WHR-1166D

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

10 years agoar71xx: disable irq on reboot to fix hang issues (fixes #17839)
Felix Fietkau [Sat, 18 Oct 2014 19:25:30 +0000 (19:25 +0000)]
ar71xx: disable irq on reboot to fix hang issues (fixes #17839)

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

10 years agotoolchain: fix binutils broken symlink
Felix Fietkau [Sat, 18 Oct 2014 19:25:24 +0000 (19:25 +0000)]
toolchain: fix binutils broken symlink

The Makefile for binutils creates a broken symlink to "binutils-linaro" in
"trunk/build_dir/toolchain-<target>_gcc-4.9-linaro_uClibc-0.9.33.2".
Modify the Makefile to point the symlink to the correct directory.

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

10 years agomac80211: add a maintenance script for upstream backport commits
Felix Fietkau [Sat, 18 Oct 2014 17:39:04 +0000 (17:39 +0000)]
mac80211: add a maintenance script for upstream backport commits

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

10 years agomac80211: update to 2014-10-08
Felix Fietkau [Sat, 18 Oct 2014 17:38:59 +0000 (17:38 +0000)]
mac80211: update to 2014-10-08

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

10 years agoodhcpd: fix regression in dhcpv6 t1 and t2 calculation
Steven Barth [Sat, 18 Oct 2014 15:47:31 +0000 (15:47 +0000)]
odhcpd: fix regression in dhcpv6 t1 and t2 calculation

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

10 years agopolarssl: add missing version bump
Felix Fietkau [Sat, 18 Oct 2014 09:20:38 +0000 (09:20 +0000)]
polarssl: add missing version bump

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

10 years agopolarssl: disable SSLv3 support, fixes CVE-2014-3566 (POODLE)
Felix Fietkau [Sat, 18 Oct 2014 09:17:31 +0000 (09:17 +0000)]
polarssl: disable SSLv3 support, fixes CVE-2014-3566 (POODLE)

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

10 years agox86_64: support sysupgrade config restore on PARTUUID mounted disks
Jo-Philipp Wich [Fri, 17 Oct 2014 22:50:38 +0000 (22:50 +0000)]
x86_64: support sysupgrade config restore on PARTUUID mounted disks

Fix the move_config() procedure to properly find the corresponding disk if
the rootfs was mounted by PARTUUID instead of a device node.

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

10 years agox86_64: add kmod-r8169 to the default packages
Jo-Philipp Wich [Fri, 17 Oct 2014 13:09:37 +0000 (13:09 +0000)]
x86_64: add kmod-r8169 to the default packages

This kmod is required by the Alix APU 1D4 to be reachable after
installing an x86-64 image.

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

10 years agoodhcpd: multiple fixes
Steven Barth [Fri, 17 Oct 2014 11:18:52 +0000 (11:18 +0000)]
odhcpd: multiple fixes

* Rewrite ndp proxy using kernel proxying
* Aid flash-renumbering in hybrid DHCPv6-mode
* Unicast RAs to RS senders
* Add support for router address

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

10 years agohostapd: CVE-2014-3686 fixes
Steven Barth [Fri, 17 Oct 2014 06:15:35 +0000 (06:15 +0000)]
hostapd: CVE-2014-3686 fixes

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

10 years agobcm53xx: image: switch Netgear and Buffalo devices to UBI
Rafał Miłecki [Thu, 16 Oct 2014 21:33:34 +0000 (21:33 +0000)]
bcm53xx: image: switch Netgear and Buffalo devices to UBI

We still don't have a smart sysupgrade method, but at least we can use
UBI which provides some protection for rootfs (SquashFS).

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

10 years agobcm53xx: hack UBI to erase all dirty blocks left by CFE
Rafał Miłecki [Thu, 16 Oct 2014 20:52:22 +0000 (20:52 +0000)]
bcm53xx: hack UBI to erase all dirty blocks left by CFE

UBI requires PEBs to be formatted (with a valid UBI header) or empty
(0xFF), however CFE doesn't clear blocks after flashing the image. To
workaround this problem, teach UBI to recognize EOF mark in a similar
way JFFS2 handles that in OpenWrt.

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

10 years agobcm53xx: enable UBI and UBIFS
Rafał Miłecki [Thu, 16 Oct 2014 20:50:36 +0000 (20:50 +0000)]
bcm53xx: enable UBI and UBIFS

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

10 years agobcm53xx: image: build UBI partition image
Rafał Miłecki [Thu, 16 Oct 2014 20:48:56 +0000 (20:48 +0000)]
bcm53xx: image: build UBI partition image

This could be used on NAND devices once we get UBI working.

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

10 years agobcm53xx: image: specify flash type for all devices
Rafał Miłecki [Thu, 16 Oct 2014 20:44:44 +0000 (20:44 +0000)]
bcm53xx: image: specify flash type for all devices

This will allow us to add proper support for NAND one day.

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

10 years agox86_64: initial support for PARTUUID
Jo-Philipp Wich [Thu, 16 Oct 2014 16:28:16 +0000 (16:28 +0000)]
x86_64: initial support for PARTUUID

This change configures grub to mount the rootfs by PARTUUID instead of the
device path if CONFIG_TARGET_ROOTFS_PARTNAME is unset.

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

10 years agosdk: improve feed setup
Jo-Philipp Wich [Thu, 16 Oct 2014 16:28:12 +0000 (16:28 +0000)]
sdk: improve feed setup

 - Add current buildroot scm url as base feed to feeds.conf
 - Prefer feeds.conf over feeds.conf.default when generating the SDK feeds.conf.default

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

10 years agofirmware-utils: allow passing a specific MBR signature to ptgen
Jo-Philipp Wich [Thu, 16 Oct 2014 16:16:47 +0000 (16:16 +0000)]
firmware-utils: allow passing a specific MBR signature to ptgen

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

10 years agobuild: improve feed handling for opkg.conf
Jo-Philipp Wich [Thu, 16 Oct 2014 10:30:16 +0000 (10:30 +0000)]
build: improve feed handling for opkg.conf

 - Consider not installed feeds as well
 - Add option to decide whether to comment disabled feeds

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

10 years agoopenssl: update to v1.0.1j (CVE-2014-3513, CVE-2014-3567, CVE-2014-3568)
Jo-Philipp Wich [Thu, 16 Oct 2014 08:32:54 +0000 (08:32 +0000)]
openssl: update to v1.0.1j (CVE-2014-3513, CVE-2014-3567, CVE-2014-3568)

Also refresh patches and bump copyright year in Makefile.

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

10 years agodefault_postinst() fix wrong call of group_add
John Crispin [Wed, 15 Oct 2014 17:55:13 +0000 (17:55 +0000)]
default_postinst() fix wrong call of group_add

[base-files] default_postinst() fix wrong call of group_add
after 12bae65d07d29854204715cebc1ef1eae237fd9b group_add is
always called. shell scripting can be tricky...

wrong call:
[ -n "$gid" ] && group_exists $name || group_add $name $gid

this leads to a call of 'group_add' when $gid is emtpy, proof:

root@box:~ functionA() { echo A; }
root@box:~ functionB() { echo B; }
root@box:~ VAR=
root@box:~ [ -n "$VAR" ] && functionA || functionB
B
root@box:~ # functionB was called, but VAR is not filled
root@box:~ VAR=filled
root@box:~ [ -n "$VAR" ] && functionA || functionB
A

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

10 years agobcm53xx: add support for Buffalo WZR-600DHP2
Rafał Miłecki [Wed, 15 Oct 2014 07:14:13 +0000 (07:14 +0000)]
bcm53xx: add support for Buffalo WZR-600DHP2

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

10 years agobcm53xx: fix Asus RT-N18U support
Rafał Miłecki [Wed, 15 Oct 2014 07:12:46 +0000 (07:12 +0000)]
bcm53xx: fix Asus RT-N18U support

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

10 years agobase-files: default_postinst() force clear luci-indexcache
John Crispin [Tue, 14 Oct 2014 19:01:30 +0000 (19:01 +0000)]
base-files: default_postinst() force clear luci-indexcache

Inside every LuCI package you need to clear luci-indexcache and
sometimes when installing non LuCI pacakges it's also needed to clear
it. Easier put it into default_postinst().

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

10 years agowr1043nd-v2: Change .code of the wi-fi button to KEY_RFKILL
John Crispin [Tue, 14 Oct 2014 19:01:21 +0000 (19:01 +0000)]
wr1043nd-v2: Change .code of the wi-fi button to KEY_RFKILL

This patch changes the code of the Wi-Fi On/Off button on the TP-Link WR1043ND v2
from KEY_WLAN to KEY_RFKILL (and renames a few constants to match). The reason
for this change is, that the KEY_WIFI button code is not recognized by the
hotplug subsystem. This means that the userspace is not notified about the
button being pressed which effectively renders it useless.

Signed-off-by: Josef Gajdusek <atx@atx.name>
SVN-Revision: 42922

10 years agopackage: add libnetfilter-log.
John Crispin [Tue, 14 Oct 2014 19:01:16 +0000 (19:01 +0000)]
package: add libnetfilter-log.

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

10 years agolantiq xway: generate ramdisk image by default
John Crispin [Tue, 14 Oct 2014 19:01:10 +0000 (19:01 +0000)]
lantiq xway: generate ramdisk image by default

The installation process on nand-based boards using ubi
like the BTHOMEHUBV2B makes use of a ramdisk image, so it
makes sense to generate this by default.

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

10 years agobase-files: the USERID code path did not check for duplicate groups
John Crispin [Tue, 14 Oct 2014 19:01:05 +0000 (19:01 +0000)]
base-files: the USERID code path did not check for duplicate groups

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

10 years agoprocd: update to latest git
John Crispin [Tue, 14 Oct 2014 15:53:05 +0000 (15:53 +0000)]
procd: update to latest git

this adds the remaining patches that Michel Stam sent

Signed-off-by: Michel Stam <m.stam@fugro.nl>
SVN-Revision: 42918

10 years agolibubox: update to latest git
John Crispin [Tue, 14 Oct 2014 15:53:00 +0000 (15:53 +0000)]
libubox: update to latest git

this adds a new helper for setting/overriding the signal handlers

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

10 years agouClibc: Backport uClibc master git commit fd355bc1dbcb794ae1abf0fad1459e28d8567ba0...
John Crispin [Tue, 14 Oct 2014 12:57:39 +0000 (12:57 +0000)]
uClibc: Backport uClibc master git commit fd355bc1dbcb794ae1abf0fad1459e28d8567ba0 (eventfd.h: Use new "bits/" scheme for arch-specific flags)

This patch adds missing architecture-specific headers for use with
eventfd(2). Fixes #16679.

Signed-off-by: Luis Dallos <ld@nkvd.ignorelist.com>
SVN-Revision: 42916

10 years agoar71xx: fix seama factory type image generation.
John Crispin [Tue, 14 Oct 2014 12:21:41 +0000 (12:21 +0000)]
ar71xx: fix seama factory type image generation.

Currently JFFS2 end-of-filesystem marker 0xdeadc0de is included the
computation of image's MD5 checksum as part of the seama header.  But
OpenWrt will erase blocks including and after the marker thus
invalidating the checksum after the first boot.

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

10 years agoar71xx: qihoo-c301: reset imageNtrynum after each successful boot.
John Crispin [Tue, 14 Oct 2014 12:21:36 +0000 (12:21 +0000)]
ar71xx: qihoo-c301: reset imageNtrynum after each successful boot.

Qihoo C301 has 2 flash chips of which one is used as primary and the
other is used as backup.  OEM U-Boot will try to boot an activeregion N
with imageNstatus=0 and imageNtrynum <= imagemaxtry.  If such a region
is found, bootloader will try to increment imageNtrynum and boot it.

This patch tries to reset imageNtrynum after each successful boot (if
the boot process reaches the execution of /etc/init.d/done).

root@OpenWrt:/# hexdump -C -n 128 /dev/mtdblock9
00000000  9e f3 63 91 61 63 74 69  76 65 72 65 67 69 6f 6e  |..c.activeregion|
00000010  3d 31 00 69 6d 61 67 65  31 73 74 61 74 75 73 3d  |=1.image1status=|
00000020  30 00 69 6d 61 67 65 32  73 74 61 74 75 73 3d 30  |0.image2status=0|
00000030  00 69 6d 61 67 65 32 74  72 79 6e 75 6d 3d 30 00  |.image2trynum=0.|
00000040  69 6d 61 67 65 6d 61 78  74 72 79 3d 33 00 69 6d  |imagemaxtry=3.im|
00000050  61 67 65 31 74 72 79 6e  75 6d 3d 30 00 00 00 00  |age1trynum=0....|
00000060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

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

10 years agoudev/Config.in: help format, and fix spelling mistake
John Crispin [Tue, 14 Oct 2014 12:21:24 +0000 (12:21 +0000)]
udev/Config.in: help format, and fix spelling mistake

Formatting and spelling fixes.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
SVN-Revision: 42913

10 years agotarget/toolchain/Config.in: Clarify packaging of toolchain.
John Crispin [Tue, 14 Oct 2014 12:21:16 +0000 (12:21 +0000)]
target/toolchain/Config.in: Clarify packaging of toolchain.

Change the "help" info to emphasize that this option refers
specifically to packaging the toolchain that would be built anyway.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
SVN-Revision: 42912

10 years agoscripts: fix wrong usage of '==' operator
John Crispin [Tue, 14 Oct 2014 12:21:11 +0000 (12:21 +0000)]
scripts: fix wrong usage of '==' operator

[base-files] shell-scripting: fix wrong usage of '==' operator

normally the '==' is used for invoking a regex parser and is a bashism.
all of the fixes just want to compare a string. the used busybox-ash
will silently "ignore" this mistake, but make it portable/clean at least.

this patch does not change the behavior/logic of the scripts.

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

10 years agorb532: switch to 3.14 and ath5k
John Crispin [Tue, 14 Oct 2014 11:32:57 +0000 (11:32 +0000)]
rb532: switch to 3.14 and ath5k

Signed-off-by: Roman Yeryomin <roman@advem.lv>
SVN-Revision: 42910

10 years agogeneric: fix yaffs compilation on 3.14
John Crispin [Tue, 14 Oct 2014 11:32:48 +0000 (11:32 +0000)]
generic: fix yaffs compilation on 3.14

Signed-off-by: Roman Yeryomin <roman@advem.lv>
SVN-Revision: 42909

10 years agorb532: add 3.14 support
John Crispin [Tue, 14 Oct 2014 11:32:43 +0000 (11:32 +0000)]
rb532: add 3.14 support

Signed-off-by: Roman Yeryomin <roman@advem.lv>
SVN-Revision: 42908

10 years agolantiq: allow pcie to be disabled by dts + vgv7519 fix pci irq + disable pcie by dts
John Crispin [Tue, 14 Oct 2014 11:04:25 +0000 (11:04 +0000)]
lantiq: allow pcie to be disabled by dts + vgv7519 fix pci irq + disable pcie by dts

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

10 years agoar71xx: Fix LED definitions for the DRAGINO2 board
John Crispin [Tue, 14 Oct 2014 10:33:07 +0000 (10:33 +0000)]
ar71xx: Fix LED definitions for the DRAGINO2 board

This patch fixes LED definitions for the DRAGINO2 board.

1. It renames the Router/USB led to System, as it is now marked "SYS" on the board.
2. It gives control of the LAN and WAN leds and some other GPIOs to Linux.
3. It fixes the active_low property for the LAN and WAN leds.
4. It sets up WLAN, LAN and WAN leds in the UCI defaults.
5. It allows usage of the System led by the diag.sh script, so it will be used to indicate boot and failsafe status.

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

10 years agompc85xx: use wpad-mini in WDR4900 profile instead of wpad
John Crispin [Tue, 14 Oct 2014 10:30:56 +0000 (10:30 +0000)]
mpc85xx: use wpad-mini in WDR4900 profile instead of wpad

This change makes the profile of WDR4900 more consistent with other router
specific profiles.

Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
SVN-Revision: 42896

10 years agobcm53xx: fix hangs in PCIe2 host driver
Rafał Miłecki [Tue, 14 Oct 2014 08:06:15 +0000 (08:06 +0000)]
bcm53xx: fix hangs in PCIe2 host driver

Accessing CFG regs with no card present results in SoC hang.

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

10 years agobcm53xx: add temp bcma workaround that allows debugging
Rafał Miłecki [Tue, 14 Oct 2014 05:31:54 +0000 (05:31 +0000)]
bcm53xx: add temp bcma workaround that allows debugging

This way we will get logs if case of hang/crash in bcma or related code.

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

10 years agoat91: fix at91-adc dependencies
John Crispin [Mon, 13 Oct 2014 19:45:31 +0000 (19:45 +0000)]
at91: fix at91-adc dependencies

Error reported by buildbot:
Package kmod-at91-adc is missing dependencies for the following libraries:
input-core.ko

only compile tested

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
SVN-Revision: 42893

10 years agoralink: Build 8M image for 7Links PX-4885
John Crispin [Mon, 13 Oct 2014 19:41:36 +0000 (19:41 +0000)]
ralink: Build 8M image for 7Links PX-4885

7Links PX-4885 (clones) can also be purchased with 8MB flash.
Creating images for these routers, use dtsi for common part

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
SVN-Revision: 42892

10 years agoscripts/feeds: handle missing/broken feeds better
John Crispin [Mon, 13 Oct 2014 19:41:27 +0000 (19:41 +0000)]
scripts/feeds: handle missing/broken feeds better

pts/feeds update -a" can fail rather silently for feeds using git, as
the script does not pause when updating a feed fails. Instead it prints the
error message and calmly continues to the next feed. It is very easy to
overlook update errors with the feeds updated first, as their text scrolls
rapidly away from the screen.

This behaviour has not been a big problem with svn feeds, as svn update stops
with a conflict message and interactively forces the user to resolve or
postpone the conflict. In any case the svn error is noticed by the user.

Majority of the feeds use now git, so this silent failure can affect users
doing private builds in an increasing amount.

Below is an example of update failing and script continuing:

perus@v1404:/Openwrt/barrier$ ./scripts/feeds update -a
Updating feed 'packages' from
'https://github.com/openwrt/packages.git;for-14.07' ...
remote: Counting objects: 17, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 17 (delta 10), reused 8 (delta 1)
Unpacking objects: 100% (17/17), done.
 From https://github.com/openwrt/packages
62031da..dc26009  for-14.07  -> origin/for-14.07
Updating 62031da..dc26009
error: Your local changes to the following files would be overwritten by merge:
utils/collectd/Makefile
Please, commit your changes or stash them before you can merge.
Aborting
failed.
Updating feed 'luci' from 'http://git.openwrt.org/project/luci.git;luci-0.12' ...
Already up-to-date.
Create index file './feeds/luci.index'
Updating feed 'routing' from
'https://github.com/openwrt-routing/packages.git;for-14.07' ...
...

The script prints "failed.", but does not break the updating process. The
"update_feed" function returns an error code 1, but that value is not checked
in the "update" function, which continues to the next feed.
Return 1 as error:
​https://dev.openwrt.org/browser/trunk/scripts/feeds#L547
Call to update_feed without any error monitoring:
​https://dev.openwrt.org/browser/trunk/scripts/feeds#L585

The included patch makes the feeds script to stop updating after failing to
update a feed.

The script continues to the refresh_config step despite a possible failure in
updating, so the stopping action just prevents the other feeds from updating
and makes the error more clearly visible.

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

10 years agofstools: update to latest git HEAD
John Crispin [Mon, 13 Oct 2014 19:41:16 +0000 (19:41 +0000)]
fstools: update to latest git HEAD

this adds support for overlayfs v23

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

10 years agobrcm47xx: image: create initramfs TRX nodictionary images
Rafał Miłecki [Mon, 13 Oct 2014 05:53:33 +0000 (05:53 +0000)]
brcm47xx: image: create initramfs TRX nodictionary images

Signed-off-by: Stephen Parry <sgparry@mainscreen.com>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 42889

10 years agox86: remove old soekris config hacks, install a more appropriate default /etc/config...
Felix Fietkau [Sun, 12 Oct 2014 20:25:30 +0000 (20:25 +0000)]
x86: remove old soekris config hacks, install a more appropriate default /etc/config/network with lan+wan

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

10 years agoprocd: fix initial nand sysupgrade
Felix Fietkau [Sun, 12 Oct 2014 15:50:15 +0000 (15:50 +0000)]
procd: fix initial nand sysupgrade

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

10 years agoprocd: fix parsing of the has_env parameter
Felix Fietkau [Sun, 12 Oct 2014 15:50:01 +0000 (15:50 +0000)]
procd: fix parsing of the has_env parameter

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

10 years agomac80211: remove NO-IR from channel 36-48
Felix Fietkau [Sun, 12 Oct 2014 15:49:38 +0000 (15:49 +0000)]
mac80211: remove NO-IR from channel 36-48

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

10 years agoimage.mk: remove legacy target rules
Felix Fietkau [Sun, 12 Oct 2014 15:01:08 +0000 (15:01 +0000)]
image.mk: remove legacy target rules

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

10 years agoimage.mk: parallelize cpio.gz and tar.gz filesystem build
Felix Fietkau [Sun, 12 Oct 2014 15:01:01 +0000 (15:01 +0000)]
image.mk: parallelize cpio.gz and tar.gz filesystem build

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

10 years agoimage.mk: split off jffs2-raw images into a separate make target to improve parallel...
Felix Fietkau [Sun, 12 Oct 2014 15:00:55 +0000 (15:00 +0000)]
image.mk: split off jffs2-raw images into a separate make target to improve parallel build time

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

10 years agoimage.mk: clean up and parallelize mkfs calls
Felix Fietkau [Sun, 12 Oct 2014 15:00:49 +0000 (15:00 +0000)]
image.mk: clean up and parallelize mkfs calls

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

10 years agoprereq.mk: only define .NOTPARALLEL when processing prereq checks
Felix Fietkau [Sun, 12 Oct 2014 15:00:41 +0000 (15:00 +0000)]
prereq.mk: only define .NOTPARALLEL when processing prereq checks

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

10 years agokernel-build.mk: add .NOTPARALLEL
Felix Fietkau [Sun, 12 Oct 2014 15:00:19 +0000 (15:00 +0000)]
kernel-build.mk: add .NOTPARALLEL

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

10 years agotools/mtd-utils: fix a segfault in parsing the device table
Felix Fietkau [Sun, 12 Oct 2014 15:00:15 +0000 (15:00 +0000)]
tools/mtd-utils: fix a segfault in parsing the device table

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

10 years agoimage.mk: call mkfs/prepare for the image builder
Felix Fietkau [Sun, 12 Oct 2014 15:00:11 +0000 (15:00 +0000)]
image.mk: call mkfs/prepare for the image builder

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

10 years agoimage.mk: reduce code duplication, move prepare to a separate make target
Felix Fietkau [Sun, 12 Oct 2014 15:00:07 +0000 (15:00 +0000)]
image.mk: reduce code duplication, move prepare to a separate make target

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

10 years agoimage.mk: remove the unnecessary .NOTPARALLEL flag
Felix Fietkau [Sun, 12 Oct 2014 15:00:03 +0000 (15:00 +0000)]
image.mk: remove the unnecessary .NOTPARALLEL flag

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

10 years agonetifd: Make mtu configurable of dynamic 6rd tunnel interface
Steven Barth [Sun, 12 Oct 2014 12:27:21 +0000 (12:27 +0000)]
netifd: Make mtu configurable of dynamic 6rd tunnel interface

Patch allows to configure the mtu of the dynamic 6rd tunnel interface when created by dhcp script.
In some setups it's desirable to have config control over the 6rd tunnel mtu to maximize the traffic throughput

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 42871

10 years agoodhcp6c: fix parse errors with some dhcpv6 servers
Steven Barth [Sun, 12 Oct 2014 12:18:33 +0000 (12:18 +0000)]
odhcp6c: fix parse errors with some dhcpv6 servers

SVN-Revision: 42869

10 years agoralink: various i2c related fixes
John Crispin [Fri, 10 Oct 2014 08:56:53 +0000 (08:56 +0000)]
ralink: various i2c related fixes

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

10 years agoramips: add support for Nexx WT1520
John Crispin [Fri, 10 Oct 2014 08:56:43 +0000 (08:56 +0000)]
ramips: add support for Nexx WT1520

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
SVN-Revision: 42867

10 years agocomgt: add ncm proto support
John Crispin [Fri, 10 Oct 2014 08:56:33 +0000 (08:56 +0000)]
comgt: add ncm proto support

This will not work for all board/dongle combinations until we hit 3.17.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
SVN-Revision: 42866

10 years agofeeds: switch LuCI to Github repo
Jo-Philipp Wich [Thu, 9 Oct 2014 21:27:26 +0000 (21:27 +0000)]
feeds: switch LuCI to Github repo

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

10 years agobcm53xx: prepare to support Asus RT-N18U
Rafał Miłecki [Thu, 9 Oct 2014 16:36:51 +0000 (16:36 +0000)]
bcm53xx: prepare to support Asus RT-N18U

DT file doesn't include any GPIOs yet, but let's add it as we got some
interest in this device on IRC.

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

10 years agobcm53xx: add support for Buffalo WZR-1750DHP
Rafał Miłecki [Thu, 9 Oct 2014 16:36:05 +0000 (16:36 +0000)]
bcm53xx: add support for Buffalo WZR-1750DHP

Let's generate a simple TRX file as we can't get encrypted one.

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