openwrt/staging/dedeckeh.git
11 years agobroadcom-wl: shutdown 'nas' when 'wl' device is disabled
Hauke Mehrtens [Mon, 11 Nov 2013 21:59:58 +0000 (21:59 +0000)]
broadcom-wl: shutdown 'nas' when 'wl' device is disabled

'nas' must be shutdown independently for each 'wl' device to properly
support devices with multiple radios.  Do the shutdown when the device
is disabled instead of when it is brought up.

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

11 years agobroadcom-wl: use a single instance of 'nas' per 'wl' device
Hauke Mehrtens [Mon, 11 Nov 2013 21:59:34 +0000 (21:59 +0000)]
broadcom-wl: use a single instance of 'nas' per 'wl' device

A single instance of 'nas' can support multiple interfaces; there's
no need to run multiple instances.

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

11 years agobroadcom-wl: fix whitespace handling
Hauke Mehrtens [Mon, 11 Nov 2013 21:59:07 +0000 (21:59 +0000)]
broadcom-wl: fix whitespace handling

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

11 years agobroadcom-wl: update description for recently added
Hauke Mehrtens [Mon, 11 Nov 2013 21:58:42 +0000 (21:58 +0000)]
broadcom-wl: update description for recently added

Update descriptions for 'phytype' and 'band'.

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

11 years agobroadcom-wl: fix band reporting
Hauke Mehrtens [Mon, 11 Nov 2013 21:58:19 +0000 (21:58 +0000)]
broadcom-wl: fix band reporting

Modify the band reporting for broadcom devices to correctly report
HW capability.  Currently, 802.11na devices report "bgn"; but should be
reporting "an".

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

11 years agobroadcom-wl: change interface names
Hauke Mehrtens [Mon, 11 Nov 2013 21:57:26 +0000 (21:57 +0000)]
broadcom-wl: change interface names

'netifd' treats all devices with a "." in their name as vlan devices.
Modify the name of virtual/WDS interfaces created by broadcom-wl to use
a "-" instead of a ".", so they will be treated as simple devices
by 'netifd'.

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

11 years agobroadcom-wl: fix compiler warning
Hauke Mehrtens [Mon, 11 Nov 2013 21:56:45 +0000 (21:56 +0000)]
broadcom-wl: fix compiler warning

Delete the return value (nvram_exit is declared with a 'void' return).

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

11 years agoiwinfo: don't report associations for broadcom wds interfaces
Hauke Mehrtens [Mon, 11 Nov 2013 21:54:55 +0000 (21:54 +0000)]
iwinfo: don't report associations for broadcom wds interfaces

The associations list for Broadcom WDS interfaces are duplicate to those
reported by the corresponding AP interface; so there is no need to report
them again.

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

11 years agoiwinfo: fix hwmodelist reporting for broadcom wl
Hauke Mehrtens [Mon, 11 Nov 2013 21:54:25 +0000 (21:54 +0000)]
iwinfo: fix hwmodelist reporting for broadcom wl

Modify the hwmodelist reporting for broadcom devices to include
proper reporting of 802.11n support.

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

11 years agobrcm47xx: b44: fix logic in BUG_ON()
Hauke Mehrtens [Mon, 11 Nov 2013 21:23:29 +0000 (21:23 +0000)]
brcm47xx: b44: fix logic in BUG_ON()

It is a problem when phydev is not set at this position and not the other way around.

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

11 years agouhttpd: return after processing -d switch, only set ubus prefix if not already defined
Jo-Philipp Wich [Mon, 11 Nov 2013 19:14:01 +0000 (19:14 +0000)]
uhttpd: return after processing -d switch, only set ubus prefix if not already defined

SVN-Revision: 38743

11 years agobase-files: fix typo in rfkill script
John Crispin [Mon, 11 Nov 2013 18:12:30 +0000 (18:12 +0000)]
base-files: fix typo in rfkill script

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

11 years agouhttp: add ubus.default
John Crispin [Mon, 11 Nov 2013 18:12:26 +0000 (18:12 +0000)]
uhttp: add ubus.default

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

11 years agoixp4xx: fix usb on cambria boards by using the ehci-platform driver
Felix Fietkau [Mon, 11 Nov 2013 16:51:01 +0000 (16:51 +0000)]
ixp4xx: fix usb on cambria boards by using the ehci-platform driver

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

11 years agopppd: don't call modprobe at all from pppoatm
John Crispin [Mon, 11 Nov 2013 13:40:28 +0000 (13:40 +0000)]
pppd: don't call modprobe at all from pppoatm

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

11 years agorevert 94e44643a8ce1d7991376b6ced586784b3f92500
John Crispin [Mon, 11 Nov 2013 13:40:24 +0000 (13:40 +0000)]
revert 94e44643a8ce1d7991376b6ced586784b3f92500

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

11 years agoramips: use gpio-button-hotplug in favour of the input variant
John Crispin [Mon, 11 Nov 2013 13:40:20 +0000 (13:40 +0000)]
ramips: use gpio-button-hotplug in favour of the input variant

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

11 years agoramips: make the rfkill switch work on fonera20n
John Crispin [Mon, 11 Nov 2013 13:40:17 +0000 (13:40 +0000)]
ramips: make the rfkill switch work on fonera20n

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

11 years agolantiq: DGN3500 fixups
John Crispin [Mon, 11 Nov 2013 13:15:08 +0000 (13:15 +0000)]
lantiq: DGN3500 fixups

Just fixing up a few things for the Netgear DGN3500.

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
SVN-Revision: 38733

11 years agoFix modprobe path for pppoatm
John Crispin [Mon, 11 Nov 2013 13:15:04 +0000 (13:15 +0000)]
Fix modprobe path for pppoatm

Without netifd generates an error:

daemon.notice netifd: wan (1249): /bin/sh: /sbin/modprobe: not found

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

11 years agolantiq: dont install deu test manager
John Crispin [Mon, 11 Nov 2013 12:22:12 +0000 (12:22 +0000)]
lantiq: dont install deu test manager

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

11 years agolantiq: rename TDW8970 led adsl->dsl
John Crispin [Mon, 11 Nov 2013 12:19:26 +0000 (12:19 +0000)]
lantiq: rename TDW8970 led adsl->dsl

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

11 years agobase-files: update rfkill script to work with slider buttons
John Crispin [Mon, 11 Nov 2013 12:19:22 +0000 (12:19 +0000)]
base-files: update rfkill script to work with slider buttons

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

11 years agolantiq: update TDW8970.dts to support buttons properly
John Crispin [Mon, 11 Nov 2013 12:19:18 +0000 (12:19 +0000)]
lantiq: update TDW8970.dts to support buttons properly

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

11 years agolantiq: remove old hotplug handler
John Crispin [Mon, 11 Nov 2013 12:19:15 +0000 (12:19 +0000)]
lantiq: remove old hotplug handler

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

11 years agobase-files: add a generic wps button handler
John Crispin [Mon, 11 Nov 2013 12:19:10 +0000 (12:19 +0000)]
base-files: add a generic wps button handler

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

11 years agogpio-button-hotplug: add support for sliding switches
John Crispin [Mon, 11 Nov 2013 12:19:06 +0000 (12:19 +0000)]
gpio-button-hotplug: add support for sliding switches

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

11 years agouhttp: make the service auto respawn if it crashes
John Crispin [Mon, 11 Nov 2013 12:19:02 +0000 (12:19 +0000)]
uhttp: make the service auto respawn if it crashes

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

11 years agouhttp: make sure that the ubus module is loaded when when installed
John Crispin [Mon, 11 Nov 2013 12:18:58 +0000 (12:18 +0000)]
uhttp: make sure that the ubus module is loaded when when installed

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

11 years agoadd missing option, enable hw rng
Imre Kaloz [Mon, 11 Nov 2013 11:55:44 +0000 (11:55 +0000)]
add missing option, enable hw rng

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

11 years agodepend on the correct target
Imre Kaloz [Mon, 11 Nov 2013 11:51:54 +0000 (11:51 +0000)]
depend on the correct target

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

11 years agoar71xx: Use KEY_RESTART key code for the reset button on WD My Net N600 boards
Gabor Juhos [Mon, 11 Nov 2013 08:10:02 +0000 (08:10 +0000)]
ar71xx: Use KEY_RESTART key code for the reset button on WD My Net N600 boards

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38720

11 years agoar71xx: add profile and build image for the TL-WA750RE TL-WA850RE range extender
Gabor Juhos [Mon, 11 Nov 2013 08:04:48 +0000 (08:04 +0000)]
ar71xx: add profile and build image for the TL-WA750RE TL-WA850RE range extender

Patch to add profile and build image for the tplink TL-WA750RE/WA850RE board

Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38719

11 years agoar71xx: add user space support for the TL-WA750RE/WA850RE Range extender
Gabor Juhos [Mon, 11 Nov 2013 08:04:47 +0000 (08:04 +0000)]
ar71xx: add user space support for the TL-WA750RE/WA850RE Range extender

Patch to add user space support for the TL-WA750RE/WA850RE range extender

Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38718

11 years agoar71xx: Add kernel support for the TP-Link WA750RE / WA850RE range extender
Gabor Juhos [Mon, 11 Nov 2013 08:04:46 +0000 (08:04 +0000)]
ar71xx: Add kernel support for the TP-Link WA750RE / WA850RE range extender

Patch to add kernel support for the TP-LINK WA750RE and the WA850RE
range extender

Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
[juhosg: rename and refresh kernel patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38717

11 years agoar71xx: ag71xx: fix ag71xx_probe error path
Gabor Juhos [Mon, 11 Nov 2013 07:47:00 +0000 (07:47 +0000)]
ar71xx: ag71xx: fix ag71xx_probe error path

Signed-off-by: Catalin Patulea <cat@vv.carleton.ca>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38716

11 years agobcm53xx: make bgmac work
Hauke Mehrtens [Mon, 11 Nov 2013 00:15:00 +0000 (00:15 +0000)]
bcm53xx: make bgmac work

This makes bgmac work without sprom and refreshed the patches.

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

11 years agokernel: bgmac: make it send and receive some packages on BCM4708
Hauke Mehrtens [Mon, 11 Nov 2013 00:13:31 +0000 (00:13 +0000)]
kernel: bgmac: make it send and receive some packages on BCM4708

This adds some more code for bgmac core rev 4 and it now restarts all
cores when initializing the first one on BCM4708. I am just able to
send under 100 packages and then DMA TX does not work any more.

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

11 years agokernel: bcma: detect pci ID 0x4313
Hauke Mehrtens [Mon, 11 Nov 2013 00:08:09 +0000 (00:08 +0000)]
kernel: bcma: detect pci ID 0x4313

This pci ID is used by sprom less BCM4313 devices.
This is a backport from the mainline kernel.

This is part of #13551.

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

11 years agokernel: b53: add initial support for switches in BCM5301X
Hauke Mehrtens [Sun, 10 Nov 2013 23:29:59 +0000 (23:29 +0000)]
kernel: b53: add initial support for switches in BCM5301X

This is also known as BCM470{7,8,9}.

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

11 years agoprocd: reduce the number of unnecessary calls to /sbin/hotplug-call for tty devices
Felix Fietkau [Sun, 10 Nov 2013 15:06:28 +0000 (15:06 +0000)]
procd: reduce the number of unnecessary calls to /sbin/hotplug-call for tty devices

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

11 years agonetifd: remove connect_time from /var/state, it is unused
Felix Fietkau [Sun, 10 Nov 2013 10:01:33 +0000 (10:01 +0000)]
netifd: remove connect_time from /var/state, it is unused

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

11 years agoadd uImage image build
Imre Kaloz [Sun, 10 Nov 2013 09:57:07 +0000 (09:57 +0000)]
add uImage image build

- add building of a standard uImage along with the combined kernel+rootfs
- remove 'old' image build - that was for a very old and obsolete bootloader

To update the bootloader for GW2387,GW2388,GW2391 (NOR Flash) from uboot:
put latest NOR bootloader on tftp server:

http://svn.gateworks.com/laguna/trunk/images/u-boot_nor.bin

 Laguna> setenv ipaddr <localip>
 Laguna> setenv ipaddr <serverip>
 Laguna> tftpboot 0x800000 laguna/u-boot-nor.bin
 Laguna> erase 0x10000000 +$(filesize)
 Laguna> cp.b 0x800000 0x10000000 $(filesize)
 Laguna> reset

To update the bootloader for GW2380,GW2382,GW2383 (SPI Flash) from uboot:
put latest SPI bootloader on tftp server:

http://svn.gateworks.com/laguna/trunk/images/u-boot_spi.bin

 Laguna> setenv ipaddr <localip>
 Laguna> setenv ipaddr <serverip>
 Laguna> tftpboot 0x800000 laguna/u-boot-spi.bin
 Laguna> erase 0x60000000 +$(filesize)
 Laguna> cp.b 0x800000 0x60000000 $(filesize)
 Laguna> reset

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
SVN-Revision: 38703

11 years agoadd pushbutton GPIO for GW2380/82/83
Imre Kaloz [Sun, 10 Nov 2013 09:55:17 +0000 (09:55 +0000)]
add pushbutton GPIO for GW2380/82/83

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
SVN-Revision: 38702

11 years agobroadcom-diag: fix sys button on Asus rt-n16
Hauke Mehrtens [Sat, 9 Nov 2013 20:09:21 +0000 (20:09 +0000)]
broadcom-diag: fix sys button on Asus rt-n16

This closes: #14427.

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

11 years agobrcm47xx: add detection for Linksys WRT54GS V1
Hauke Mehrtens [Sat, 9 Nov 2013 20:08:09 +0000 (20:08 +0000)]
brcm47xx: add detection for Linksys WRT54GS V1

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

11 years agobrcm47xx: register ADM6996L switch
Hauke Mehrtens [Sat, 9 Nov 2013 19:29:46 +0000 (19:29 +0000)]
brcm47xx: register ADM6996L switch

This patch makes it possible to use adm6996.c on first generation
BCM47XX devices with ADM switches.

This was tested on a WRT54GS version 1.0, thank you Dirk Neukirchen for
the device.

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

11 years agokernel: adm6996: add support for ADM6996L and GPIO interface
Hauke Mehrtens [Sat, 9 Nov 2013 19:27:27 +0000 (19:27 +0000)]
kernel: adm6996: add support for ADM6996L and GPIO interface

This patch makes it possible to use adm6996.c on first generation
BCM47XX devices with ADM switches.
The GPIO bit banging protocol implementation was copied from the old
switch driver and adapted to this driver and changed to the mainline
kernel GPIO interface.
The ADM6996L is different from the ADM6996M which is supported, for
both specs are available in the Internet.

This was tested on a WRT54GS version 1.0, thank you Dirk Neukirchen for
the device.

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

11 years agoprocd: update to latest git head
John Crispin [Fri, 8 Nov 2013 21:53:37 +0000 (21:53 +0000)]
procd: update to latest git head

make sure that automatic respawning is turned off during upgrade

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

11 years agoswitch to 3.12, enable support for AM33xx/OMAP3
Imre Kaloz [Fri, 8 Nov 2013 12:44:38 +0000 (12:44 +0000)]
switch to 3.12, enable support for AM33xx/OMAP3

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

11 years agorename the omap4 target to omap
Imre Kaloz [Fri, 8 Nov 2013 12:37:39 +0000 (12:37 +0000)]
rename the omap4 target to omap

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

11 years agobase-files: mtd_get_mac_ascii bugfix
Gabor Juhos [Fri, 8 Nov 2013 12:16:21 +0000 (12:16 +0000)]
base-files: mtd_get_mac_ascii bugfix

The mtd_get_mac_ascii utility function was broken. This fixes it.

  - Remove the superfluous include of /lib/functions.sh. The
    function is already in that file so it is pointless,
  - only use a variable if the whole key word matches,
  - don't try to process the MAC address if it is empty,
  - use 'tr' to canonicalize the MAC address,

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
[juhosg: add more fixes, update commit message]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38690

11 years agoar71xx: ag71xx: fix a race involving netdev registration
Gabor Juhos [Fri, 8 Nov 2013 08:17:54 +0000 (08:17 +0000)]
ar71xx: ag71xx: fix a race involving netdev registration

In particular, phy_connect before register_netdev. This is because
register_netdev runs the netdev notifiers, which can race with the rest of
the initialization in ag71xx_probe. In my case this manifested in two ways:

1) If ag71xx is compiled as a module and inserted after netifd has started,
   netifd is notified by register_netdev before the call to
   ag71xx_phy_connect. netifd tries to bring the interface up, which calls
   ag71xx_open, which in turn enters ag71xx_phy_start. This keys off
   ag->phy_dev (which is still NULL) and thinks this is a fixed-link board,
   and enters ag71xx_link_adjust. This looks at ag->speed which is not yet
   initialized and hits the BUG() in the switch (ag->speed) in
   ag71xx_link_adjust.

   This is the wrong code path for ag71xx_phy_start - my board has PHYs that
   need to be brought up with phy_start. Doing ag71xx_phy_connect before
   register_netdev ensures that ag->phy_dev is non-NULL before
   ag71xx_phy_start is ever called.

2) When ag71xx is built into the kernel, and netconsole is enabled, there
   is a gap in the initial burst of replayed printks right after the netdev
   comes up. My assumption is that netconsole is also triggered by a netdev
   notifier, and part of this printk burst happens before the call into
   ag71xx_phy_connect, so part of the burst is lost while the PHY comes up.
   This patch fixes the gap - all the printks before eth0 comes up are bursted
   in full when netconsole initializes.

ag71xx_phy_connect_xxx no longer runs with a registered netdev, so the
logging has been adjusted accordingly to avoid "unregistered net_device" or
"eth%d" messages in dmesg.

Signed-off-by: Catalin Patulea <cat@vv.carleton.ca>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38689

11 years agoar71xx: build image for the WD My Net Wi-Fi Range Extender
Gabor Juhos [Thu, 7 Nov 2013 22:31:54 +0000 (22:31 +0000)]
ar71xx: build image for the WD My Net Wi-Fi Range Extender

Patchwork: http://patchwork.openwrt.org/patch/4281/
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
[juhosg:
  - remove the Image/Build/CyberTANLZMA/loader macro, it is not used
  - move the MYNETREXT SingleProfile definition to the correct place]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38688

11 years agoar71xx: add user-space support for the WD My Net Wi-Fi Range Extender
Gabor Juhos [Thu, 7 Nov 2013 22:31:53 +0000 (22:31 +0000)]
ar71xx: add user-space support for the WD My Net Wi-Fi Range Extender

Patchwork: http://patchwork.openwrt.org/patch/4281/
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38687

11 years agoar71xx: add kernel support for the My Net Wi-Fi Range Extender device
Gabor Juhos [Thu, 7 Nov 2013 22:31:52 +0000 (22:31 +0000)]
ar71xx: add kernel support for the My Net Wi-Fi Range Extender device

This patch adds a new device definition for a
Western Digital device. The hardware seems to
be based on Qualcomm Atheros DB120 design.

Patchwork: http://patchwork.openwrt.org/patch/4281/
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
[juhosg: refresh kernel patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38686

11 years agotools: adapt addpattern for WD's Range Extender
Gabor Juhos [Thu, 7 Nov 2013 22:31:48 +0000 (22:31 +0000)]
tools: adapt addpattern for WD's Range Extender

A few things had to be changed to add support for these devices:
 - support code patterns with 8 characters
 - new board definition for the range extender device

Patchwork: http://patchwork.openwrt.org/patch/4280/
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38685

11 years agomac80211: mark rt2x00 library packages as hidden, there's no point in allowing users...
Felix Fietkau [Thu, 7 Nov 2013 20:59:22 +0000 (20:59 +0000)]
mac80211: mark rt2x00 library packages as hidden, there's no point in allowing users to enable them without the packages that depend on them

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

11 years agoar71xx: image: add EOF marker to the WNDR4300 UBI image
Gabor Juhos [Thu, 7 Nov 2013 19:53:02 +0000 (19:53 +0000)]
ar71xx: image: add EOF marker to the WNDR4300 UBI image

Append EOF markers to the END of the UBI image
file. This forces the kernel to erase all blocks
after the marker even if those blocks are not
empty.

Additionally, the resulting image can be flashed
from the original web UI now, so use '-factory'
suffix for that.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38683

11 years agotools/mtd-utils: add EOF marker support to libubigen/ubinize
Gabor Juhos [Thu, 7 Nov 2013 19:53:01 +0000 (19:53 +0000)]
tools/mtd-utils: add EOF marker support to libubigen/ubinize

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38682

11 years agokernel/3.10: add EOF marker support to the UBI layer
Gabor Juhos [Thu, 7 Nov 2013 19:53:00 +0000 (19:53 +0000)]
kernel/3.10: add EOF marker support to the UBI layer

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38681

11 years agoubox: fix extroot/extoverlay mounting by label and support mounting by device name
Jo-Philipp Wich [Thu, 7 Nov 2013 18:06:29 +0000 (18:06 +0000)]
ubox: fix extroot/extoverlay mounting by label and support mounting by device name

SVN-Revision: 38680

11 years agoubox: update to latest git head
John Crispin [Thu, 7 Nov 2013 15:31:44 +0000 (15:31 +0000)]
ubox: update to latest git head

support for specifying swap priority from the command line

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

11 years agoubus: update to latest git head
John Crispin [Thu, 7 Nov 2013 15:31:40 +0000 (15:31 +0000)]
ubus: update to latest git head

adds support for events in the lua binding

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

11 years agolantiq: fix TDW8970 lan/wan mac
John Crispin [Thu, 7 Nov 2013 12:46:24 +0000 (12:46 +0000)]
lantiq: fix TDW8970 lan/wan mac

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

11 years agobutton-hotplug: sync list of supported keys with gpio-button-hotplug
John Crispin [Thu, 7 Nov 2013 12:46:20 +0000 (12:46 +0000)]
button-hotplug: sync list of supported keys with gpio-button-hotplug

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

11 years agoau1000: make sysupgrade compatible with all file system types
John Crispin [Thu, 7 Nov 2013 12:46:16 +0000 (12:46 +0000)]
au1000: make sysupgrade compatible with all file system types

This patch adds support for all file system types as discussed earlier:

https://lists.openwrt.org/pipermail/openwrt-devel/2013-October/022109.html

This patch depends on a previous patch:

https://lists.openwrt.org/pipermail/openwrt-devel/2013-October/022111.html

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

11 years agoau1000: create sysupgrade binary for each file system type
John Crispin [Thu, 7 Nov 2013 12:46:12 +0000 (12:46 +0000)]
au1000: create sysupgrade binary for each file system type

This patch should prevent overriding of sysupgrade binaries in the bin directory
if we build images for more then one file system type.

Discussion:

https://lists.openwrt.org/pipermail/openwrt-devel/2013-October/022108.html

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

11 years agolantiq: Fix ar8216 switch configuration for WBMR-HP-G300H devices
John Crispin [Thu, 7 Nov 2013 12:46:08 +0000 (12:46 +0000)]
lantiq: Fix ar8216 switch configuration for WBMR-HP-G300H devices

The switch is renamed to "switch0" in newer (3.10) linux kernels.
Configure the switch using vlans by default and only configure
the physical switch ports that are present.

Signed-off-by: Richard Mortimer <richm@oldelvet.org.uk>
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38673

11 years agoutil-linux: cleanup description for swap-utils
John Crispin [Thu, 7 Nov 2013 12:46:04 +0000 (12:46 +0000)]
util-linux: cleanup description for swap-utils

swapon/swapoff are no longer provided by swap-utils, so remove them from
the description as well.

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

11 years agobusybox: don't enable swapon/swapoff by default
John Crispin [Thu, 7 Nov 2013 12:46:00 +0000 (12:46 +0000)]
busybox: don't enable swapon/swapoff by default

'swapon/swapoff' are now provided by 'block-mount'; enabling them by default in busybox is no longer required and adds unnecessary bloat.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38671

11 years agobase-files: Make /etc/init.d/boot restartable
John Crispin [Thu, 7 Nov 2013 12:45:57 +0000 (12:45 +0000)]
base-files: Make /etc/init.d/boot restartable

Only reload hostname and timezone config on /etc/init.d/boot restart.
Module loading and basic boot setup is only done during boot.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 38670

11 years agoralink: revert 38348 as it breaks network on the hame-mpr
John Crispin [Thu, 7 Nov 2013 12:45:52 +0000 (12:45 +0000)]
ralink: revert 38348 as it breaks network on the hame-mpr

https://dev.openwrt.org/changeset/38348
https://dev.openwrt.org/ticket/14403#comment:1

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

11 years agoralink: fix c&p error in gpio driver
John Crispin [Thu, 7 Nov 2013 12:45:48 +0000 (12:45 +0000)]
ralink: fix c&p error in gpio driver

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

11 years agolantiq: fix td-w8970 initramfs generation
John Crispin [Thu, 7 Nov 2013 12:45:44 +0000 (12:45 +0000)]
lantiq: fix td-w8970 initramfs generation

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

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

11 years agolantiq: fix vdsl-app dependency
John Crispin [Thu, 7 Nov 2013 12:45:39 +0000 (12:45 +0000)]
lantiq: fix vdsl-app dependency

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

11 years agomark as broken (toolchain issues), bump kernel version
Imre Kaloz [Thu, 7 Nov 2013 09:27:52 +0000 (09:27 +0000)]
mark as broken (toolchain issues), bump kernel version

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

11 years agokirkwood: add support for dockstar
Luka Perkov [Wed, 6 Nov 2013 19:24:32 +0000 (19:24 +0000)]
kirkwood: add support for dockstar

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38664

11 years agofirmware-utils: remove the wndr3700 utility
Gabor Juhos [Wed, 6 Nov 2013 10:16:40 +0000 (10:16 +0000)]
firmware-utils: remove the wndr3700 utility

It is not used anymore.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38663

11 years agoar71x: image: don't use the wndr3700 utility
Gabor Juhos [Wed, 6 Nov 2013 10:16:39 +0000 (10:16 +0000)]
ar71x: image: don't use the wndr3700 utility

Pass the uImage magic value directly to mkimage instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38662

11 years agosunxi: drop CONFIG_DEVTMPFS option
Luka Perkov [Wed, 6 Nov 2013 08:19:31 +0000 (08:19 +0000)]
sunxi: drop CONFIG_DEVTMPFS option

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38661

11 years agokernel: add some config options
Luka Perkov [Wed, 6 Nov 2013 08:19:24 +0000 (08:19 +0000)]
kernel: add some config options

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38660

11 years agoar71xx: image: fix WNDR4300 initramfs image generation
Gabor Juhos [Tue, 5 Nov 2013 18:41:20 +0000 (18:41 +0000)]
ar71xx: image: fix WNDR4300 initramfs image generation

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38659

11 years agoar71xx: image: allow to use optional parameters for MkuImageLzma/initramfs
Gabor Juhos [Tue, 5 Nov 2013 18:41:18 +0000 (18:41 +0000)]
ar71xx: image: allow to use optional parameters for MkuImageLzma/initramfs

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38658

11 years agoupdate for 3.12 final
Imre Kaloz [Tue, 5 Nov 2013 17:46:18 +0000 (17:46 +0000)]
update for 3.12 final

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

11 years agobrcm47xx: fix detection of Asus RT-N12B1 and Netgear WNR3500L
Hauke Mehrtens [Tue, 5 Nov 2013 17:09:19 +0000 (17:09 +0000)]
brcm47xx: fix detection of Asus RT-N12B1 and Netgear WNR3500L

This closes #14367 and #14328.

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

11 years agoar71xx: generate recovery image for WNDR4300
Gabor Juhos [Tue, 5 Nov 2013 16:31:14 +0000 (16:31 +0000)]
ar71xx: generate recovery image for WNDR4300

Extended the Makefile to generate a working factory reset image
for Netgear WNDR4300. The image uses UBI with two volumes squashfs
(rootfs) and JFFS2 (rootfs_data). In order to make stock U-Boot
happy, a fake rootfs image is placed into the last erase block
of the kernel partition.

Signed-off-by: Stefan Agner <stefan@agner.ch>
[juhosg:
  - restore the NetgearNAND/initramfs macro,
  - remove unused {Squash,Ubi}fsTemplate macros,
  - remove board specific mtd options from CONFIG_CMDLINE, append the
    board specific ubi.mtd parameter to the kernel command line instead,
  - increase kernel partition size to 2MiB,
  - use board specific ini file for ubinize,
  - put jffs2 eof mark into the rootfs_data ubi volume,
  - use KDIR_TMP for temporary images,
  - use the squashfs-raw image,
  - increase kernel partition size to 2MiB,
  - use a local ubinize macro,
  - fix macro parameter comments,
  - put the fake rootfs into the last erase block of the kernel
    partition,
  - move Image/Build/NetgearNAND/buildkernel macro before
    define Image/Build/NetgearNAND,
  - don't use the wndr3700 utility, use '-M' parameter of mkimage to set
    the uImage magic,
  - use '-recovery' suffix for the generated image, it is only usable via
    the fw_recovery function of the bootloader,
  - update commit log]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38655

11 years agopackage/ubox: fix jffs2 handling on MTD devices emulated by gluebi
Gabor Juhos [Tue, 5 Nov 2013 16:31:12 +0000 (16:31 +0000)]
package/ubox: fix jffs2 handling on MTD devices emulated by gluebi

The jffs2_ready() function in mount_root.c checks
the presence of various JFFS2 markers at the start
of a given MTD device. The function works on NOR
flashes because JFFS2 puts 'cleanmarker' nodes at
the start of freshly erased blocks.

However if jffs2 is used on a MTD device emulated
by the gluebi layer, the 'cleanmarker' nodes are
not present and the jffs2_ready() function fails.

Update the code to handle jffs2 correctly even on
MTD devices emulated by the gluebi layer.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38654

11 years agokernel: update 3.10 to 3.10.18
Gabor Juhos [Tue, 5 Nov 2013 08:25:45 +0000 (08:25 +0000)]
kernel: update 3.10 to 3.10.18

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38652

11 years agosunxi: add new target
Luka Perkov [Tue, 5 Nov 2013 08:00:34 +0000 (08:00 +0000)]
sunxi: add new target

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38651

11 years agoimx6: drop unused variable from Makefile
Luka Perkov [Tue, 5 Nov 2013 08:00:30 +0000 (08:00 +0000)]
imx6: drop unused variable from Makefile

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38650

11 years agoinclude: add more CPU flags for arm
Luka Perkov [Tue, 5 Nov 2013 08:00:24 +0000 (08:00 +0000)]
include: add more CPU flags for arm

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38649

11 years agodnsmasq: fix backward compatibility with existing configs
Jo-Philipp Wich [Mon, 4 Nov 2013 22:40:56 +0000 (22:40 +0000)]
dnsmasq: fix backward compatibility with existing configs

Changeset r36943 ("dnsmasq: use host-record instead of address") removed
the automatic domain expansion for config domain sections, this breaks
existing setups and alters the old behaviour in unexpected ways, therfore
restore behaviour of the current stable release.

Additionally handle fully qualified hostnames properly when setting up the
own hostrecord by stripping the local domain part form the given name
instead of unconditionally appending it, so that "example.lan" results
in "example example.lan" and not "example.lan example.lan.lan".

SVN-Revision: 38648

11 years agoar71xx: move WNDR4300 profile to the nand subtarget
Gabor Juhos [Mon, 4 Nov 2013 18:37:09 +0000 (18:37 +0000)]
ar71xx: move WNDR4300 profile to the nand subtarget

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38647

11 years agoar71xx: Add new subtarget nand for WNDR4300
Gabor Juhos [Mon, 4 Nov 2013 18:37:08 +0000 (18:37 +0000)]
ar71xx: Add new subtarget nand for WNDR4300

Add new subtarget nand with UBI/UBIFS including GLUEBI and squashfs.
This target will be used for NAND based router which make use of
UBI (and maybe UBIFS later on) in order to provide proper NAND
support.

Signed-off-by: Stefan Agner <stefan@agner.ch>
[juhosg:
  - tweak target.mk:
     change BOARDNAME variable,
     improve Target/Description,
     remove targz and ubifs from FEATURES and add broken flag,
  - optimize kernel configuration:
     disable ubifs, it is not used yet,
     disable unused MTD options,
     disable SPI support
     disable unused network drivers,
     tune kernel command line,
  - remove image/ubinize.cfg, it will be in a follow-up patch
  - move profile modifications into a separate patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38646

11 years agoar71xx: remove yaffs from the generic rootfstype list
Gabor Juhos [Mon, 4 Nov 2013 18:37:07 +0000 (18:37 +0000)]
ar71xx: remove yaffs from the generic rootfstype list

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38645

11 years agoar71xx: image: dd root.* images in fs specific macros
Gabor Juhos [Mon, 4 Nov 2013 18:37:06 +0000 (18:37 +0000)]
ar71xx: image: dd root.* images in fs specific macros

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38644

11 years agokernel/3.1[02]: move MTD root device setup code to mtdcore
Gabor Juhos [Mon, 4 Nov 2013 18:37:05 +0000 (18:37 +0000)]
kernel/3.1[02]: move MTD root device setup code to mtdcore

The current code only allows to automatically set
root device on MTD partitions. Move the code to MTD
core to allow to use it with all MTD devices.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38643

11 years agokernel: refresh kernel configs with kconfig.pl
Gabor Juhos [Mon, 4 Nov 2013 18:37:03 +0000 (18:37 +0000)]
kernel: refresh kernel configs with kconfig.pl

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38642

11 years agokernel: add some config options
Hauke Mehrtens [Sun, 3 Nov 2013 20:20:14 +0000 (20:20 +0000)]
kernel: add some config options

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