Re: [OpenWrt-Devel] Broadcom ARM Status

2013-11-02 Thread Felix Fietkau
On 2013-11-02 00:30, James Hilliard wrote: It's a very confusing way of building a package, but the reason seems to come down to how the GPL works. The GPL prohibits statically linking any closed source packages into the kernel, that however is how drivers are often built. Broadcom came up

Re: [OpenWrt-Devel] Broadcom ARM Status

2013-11-02 Thread James Hilliard
Well, maybe they didn't create the shared code because of the GPL but they can't link a binary directly to a GPL component, only a LGPL component I think or something like that. I've object dumped and ran decompilers on the broadcom-wl object files and I don't see anything statically linked or

[OpenWrt-Devel] [PATCH] [package] xfsprogs: move to submenu Filesystem

2013-11-02 Thread Dirk Neukirchen
move xfsprogs to the right submenu e2fsprogs, btrfs-progs and other stuff is there already Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de --- package/utils/xfsprogs/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/package/utils/xfsprogs/Makefile

[OpenWrt-Devel] netifd knowledge wanted

2013-11-02 Thread Casper Meijn
Hello, I am trying to get Tayga working with netifd. I have used OpenWRT for a while now, but this is my first development effort. I, personally, think that is have come quiet far. I discovered the proto scripts and created one myself. I even got Tayga running with the script and its settings,

[OpenWrt-Devel] [PATCH 0/2] Initial NAND support for WNDR4300

2013-11-02 Thread Stefan Agner
Hi, This replaces my patch sent in September. I rebased the changes to master as of today. Also I altered the functionality; The image now uses squashfs and JFFS2 on UBI (using GLUEBI) in order to provide proper NAND support. Its not the final solution, but works right now out of the box

[OpenWrt-Devel] [PATCH 1/2] ar71xx: Add new subtarget nand for WNDR4300

2013-11-02 Thread Stefan Agner
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 ste...@agner.ch --- target/linux/ar71xx/Makefile

[OpenWrt-Devel] [PATCH 2/2] ar71xx: Generate UBI image for WNDR4300

2013-11-02 Thread Stefan Agner
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 header is placed just before the root image (at the very end of the kernel partition).

[OpenWrt-Devel] [PATCH v2] ubox: support specifying swap priority from the command line

2013-11-02 Thread Nathan Hintz
Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- block.c | 104 1 file changed, 66 insertions(+), 38 deletions(-) diff --git a/block.c b/block.c index 2289b77..941e4b8 100644 --- a/block.c +++ b/block.c @@ -13,6 +13,7 @@ */

[OpenWrt-Devel] util-linux: cleanup description for swap-utils

2013-11-02 Thread Nathan Hintz
swapon/swapoff are no longer provided by swap-utils, so remove them from the description as well. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/utils/util-linux/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/utils/util-linux/Makefile

[OpenWrt-Devel] [PATCH] zram-swap: fix dependencies

2013-11-02 Thread Nathan Hintz
swapon/swapoff are no longer provided by swap-utils; they are provided by block-mount instead. Selecting swap-utils when swapon/swapoff are not provided by busybox serves no purpose. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/system/zram-swap/Makefile | 2 +- 1 file changed, 1

[OpenWrt-Devel] [PATCH v3] zram-swap: Assign non-default priority to zram swap

2013-11-02 Thread Nathan Hintz
Insures zram swap is higher priority than any swap added by block-mount; which is not the case if zram swap is restarted for any reason (e.g., /etc/init.d/zram restart). Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- v3 - Added fallback for case when swap priority is not supported. -

[OpenWrt-Devel] [PATCH] busybox: don't enable swapon/swapoff by default

2013-11-02 Thread Nathan Hintz
'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 nlhi...@hotmail.com --- package/utils/busybox/config/util-linux/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[OpenWrt-Devel] [PATCH] ixp4xx: support for little endian build

2013-11-02 Thread Nathan Hintz
Set ARCH=arm in target/linux/ixp4xx/Makefile Adjust kernel config as follows: target/linux/generic/config-3.10 # CONFIG_MTD_CFI_NOSWAP is not set target/linux/ixp4xx/config-3.10 #

[OpenWrt-Devel] [PATCH 0/2] ar71xx: Add support for WD My Net Wi-Fi Range Extender

2013-11-02 Thread Christian Lamparter
I picked up one of these little devices [1] two weeks ago and I have been working on porting the relevant parts from WD's GPL Package [2] since. Features: - DB120 Platform (Code name: Starfish) AR7370 (MIPS 74Kc, cpu 560 MHz) - One 3x3:3 802.11 a/b/g/n AR9340 (Yep, 450 MBit Phy Speed) - 32

[OpenWrt-Devel] [PATCH 2/2] ar71xx: add My Net Wi-Fi Range Extender device

2013-11-02 Thread Christian Lamparter
This patch adds a new device definition for a Western Digital device. The hardware seems to be based on Qualcomm Atheros DB120 design. Signed-off-by: Christian Lamparter chunk...@googlemail.com --- target/linux/ar71xx/base-files/etc/diag.sh | 3 +

[OpenWrt-Devel] [PATCH 1/2] tools: adapt addpattern for WD's Range Extender

2013-11-02 Thread Christian Lamparter
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 Signed-off-by: Christian Lamparter chunk...@googlemail.com --- tools/firmware-utils/src/addpattern.c | 22 +++--- 1

[OpenWrt-Devel] [PATCH v2] netifd: Implement unbridge in /lib/network/config.sh

2013-11-02 Thread Nathan Hintz
The unbridge function in /lib/network/config.sh is not implemented. As a result; when wifi down is executed, the wireless devices remain attached to the bridge (broadcom-wl). Subsequent attempts to bring up the wireless devices using wifi up fail; as netifd was never notified to remove them, and

[OpenWrt-Devel] [PATCH] netifd: delete redundant 'wifi down'

2013-11-02 Thread Nathan Hintz
wifi up performs an implied wifi down prior to performing the up. Delete the redundant wifi down calls. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/network/config/netifd/files/etc/init.d/network | 2 -- 1 file changed, 2 deletions(-) diff --git

[OpenWrt-Devel] [PATCH] iwinfo: fix hwmodelist reporting for broadcom wl

2013-11-02 Thread Nathan Hintz
Modify the hwmodelist reporting for broadcom devices to include proper reporting of 802.11n support. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- .../utils/iwinfo/src/include/iwinfo/api/broadcom.h | 23 +--- package/network/utils/iwinfo/src/iwinfo_wl.c | 41

[OpenWrt-Devel] [PATCH] iwinfo: don't report associations for broadcom wds interfaces

2013-11-02 Thread Nathan Hintz
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 nlhi...@hotmail.com --- package/network/utils/iwinfo/src/iwinfo_wl.c | 3 +++ 1 file changed, 3 insertions(+)

Re: [OpenWrt-Devel] Broadcom ARM Status

2013-11-02 Thread Felix Fietkau
On 2013-11-02 08:59, James Hilliard wrote: Well, maybe they didn't create the shared code because of the GPL but they can't link a binary directly to a GPL component, only a LGPL component I think or something like that. I've object dumped and ran decompilers on the broadcom-wl object files

[OpenWrt-Devel] [PATCH 1/5] base-files: clean up variable definitions in /sbin/wifi

2013-11-02 Thread Nathan Hintz
Make variables 'local' when appropriate and delete unused. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/base-files/files/sbin/wifi | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/package/base-files/files/sbin/wifi

[OpenWrt-Devel] [PATCH 2/5] base-files: clean up parameters to setup_interface in /sbin/wifi

2013-11-02 Thread Nathan Hintz
Delete unused/obsolete parameters in 'setup_interface' call. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/base-files/files/sbin/wifi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index

[OpenWrt-Devel] [PATCH 3/5] base-files: remove unnecessary 'scan_interfaces' call

2013-11-02 Thread Nathan Hintz
Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/base-files/files/sbin/wifi | 1 - 1 file changed, 1 deletion(-) diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index 7f12e01..eb12b59 100755 --- a/package/base-files/files/sbin/wifi +++

[OpenWrt-Devel] [PATCH 4/5] base-files: fix return values

2013-11-02 Thread Nathan Hintz
Fix return values for 'find_net_config' and 'bridge_interface'. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/base-files/files/sbin/wifi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi

[OpenWrt-Devel] [PATCH 5/5] base-files: improve device cleanup

2013-11-02 Thread Nathan Hintz
/var/state/wireless isn't cleaned up properly when 'set_wifi_down' is called. State info for virtual devices (broadcom-wl) remains set unless 'scan_wifi' is invoked prior to calling 'uci_revert_state wireless $cfg' Signed-off-by: Nathan Hintz nlhi...@hotmail.com ---

[OpenWrt-Devel] [PATCH] base-files: don't kill nas for sysupgrade

2013-11-02 Thread Nathan Hintz
Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/base-files/files/lib/upgrade/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 7e6e5fc..322c9c9 100644 ---

[OpenWrt-Devel] [Patch][RFC][packages] net/pure-ftpd: default to TLS

2013-11-02 Thread Dirk Neukirchen
file transfer submenu has variants notls/nossl and tls that's a little bit confusing unify the entries: tls becomes default, old variant get changed to notls Signed-off-by: Dirk Neukirchendirkneukirc...@web.de --- net/pure-ftpd/Makefile | 12 ++-- 1 file changed, 6 insertions(+), 6

Re: [OpenWrt-Devel] Broadcom ARM Status

2013-11-02 Thread James Hilliard
I'm not actually trying to use a fully compiled .ko file, the file is a .o file such as wl_apsta.o(tools indicate it is a relocatable ELF for ARM) that gets compiled into a .ko when you build GPL tarballs. Seems to be the same as the wl_prebuilt.o files we have for the most part in the current

[OpenWrt-Devel] [PATCH 1/18] broadcom-wl: fix compiler warning

2013-11-02 Thread Nathan Hintz
Delete the return value (nvram_exit is declared with a 'void' return). Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/kernel/broadcom-wl/patches/100-fix_nvram_two_devices.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[OpenWrt-Devel] [PATCH 4/18] broadcom-wl: update description for recently added

2013-11-02 Thread Nathan Hintz
Update descriptions for 'phytype' and 'band'. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/kernel/broadcom-wl/src/wlc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/kernel/broadcom-wl/src/wlc.c b/package/kernel/broadcom-wl/src/wlc.c index

[OpenWrt-Devel] [PATCH 2/18] broadcom-wl: change interface names

2013-11-02 Thread Nathan Hintz
'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 an _ instead of a ., so they will be treated as simple devices by 'netifd'. Signed-off-by: Nathan Hintz nlhi...@hotmail.com ---

[OpenWrt-Devel] [PATCH 0/18] broadcom-wl: improvements for newer devices

2013-11-02 Thread Nathan Hintz
The goal of this patch set is to provide improved support for newer devices supported by the proprietary broadcom-wl driver. This includes some general cleanup items, bug fixes, and some enhancements. I've tried to keep the individual patches small and focused on a single topic. Testing was

[OpenWrt-Devel] [PATCH 3/18] broadcom-wl: fix band reporting

2013-11-02 Thread Nathan Hintz
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 nlhi...@hotmail.com --- .../patches/014-fix-band-reporting.patch | 41 ++ 1 file

[OpenWrt-Devel] [PATCH 5/18] broadcom-wl: fix whitespace handling

2013-11-02 Thread Nathan Hintz
Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/kernel/broadcom-wl/src/wlc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/kernel/broadcom-wl/src/wlc.c b/package/kernel/broadcom-wl/src/wlc.c index 7b21ea0..9f4abc0 100644 ---

[OpenWrt-Devel] [PATCH 7/18] broadcom-wl: shutdown 'nas' when 'wl' device is disabled

2013-11-02 Thread Nathan Hintz
'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 nlhi...@hotmail.com --- package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh | 4

[OpenWrt-Devel] [PATCH 12/18] broadcom-wl: improve device cleanup

2013-11-02 Thread Nathan Hintz
Move all device cleanup to disable_broadcom. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- .../kernel/broadcom-wl/files/lib/wifi/broadcom.sh | 36 +- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh

[OpenWrt-Devel] [PATCH 10/18] broadcom-wl: eliminate 'invalid command' when setting ssid

2013-11-02 Thread Nathan Hintz
Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh index

[OpenWrt-Devel] [PATCH 6/18] broadcom-wl: use a single instance of 'nas' per 'wl' device

2013-11-02 Thread Nathan Hintz
A single instance of 'nas' can support multiple interfaces; there's no need to run multiple instances. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[OpenWrt-Devel] [PATCH 11/18] broadcom-wl: add support for setting H/W address

2013-11-02 Thread Nathan Hintz
Some devices initialize with a default address (common to all H/W). The address needs to be changeable so that a unique address can be assigned to each AP. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh | 15 +++

[OpenWrt-Devel] [PATCH 15/18] broadcom-wl: fix crash when starting multiple virtual interfaces

2013-11-02 Thread Nathan Hintz
When enabling multiple VIFS, the driver sometimes crashes. The frequency of the crash increases as more VIFS are enabled. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- .../patches/008-fix_virtual_interfaces.patch | 123 -

[OpenWrt-Devel] [PATCH 16/18] broadcom-wl: support probe of 'wds' devices

2013-11-02 Thread Nathan Hintz
'nas' requires probe of 'wds' devices to be successful; so don't fail them. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- .../patches/015-support-probe-of-wds-interfaces.patch | 11 +++ 1 file changed, 11 insertions(+) create mode 100644

[OpenWrt-Devel] [PATCH 13/18] broadcom-wl: support more virtual interfaces

2013-11-02 Thread Nathan Hintz
Read the number of virtual interfaces to support from the device capabilities; as some newer devices can support up to 16. Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- .../kernel/broadcom-wl/files/lib/wifi/broadcom.sh | 10 - package/kernel/broadcom-wl/src/wlc.c | 43

[OpenWrt-Devel] [PATCH 14/18] broadcom-wl: perform additional cleanup on wl module unload

2013-11-02 Thread Nathan Hintz
Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/kernel/broadcom-wl/patches/007-use-glue-driver.patch | 8 ++-- .../kernel/broadcom-wl/patches/008-fix_virtual_interfaces.patch | 2 +- package/kernel/broadcom-wl/patches/012-compat-3.10.patch | 2 +-

[OpenWrt-Devel] [PATCH 17/18] broadcom-wl: support 'wds' interfaces on 'wl1' device

2013-11-02 Thread Nathan Hintz
Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/kernel/broadcom-wl/files/etc/hotplug.d/net/20-broadcom_wds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/broadcom-wl/files/etc/hotplug.d/net/20-broadcom_wds

[OpenWrt-Devel] [PATCH 18/18] broadcom-wl: version roll

2013-11-02 Thread Nathan Hintz
Signed-off-by: Nathan Hintz nlhi...@hotmail.com --- package/kernel/broadcom-wl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/broadcom-wl/Makefile b/package/kernel/broadcom-wl/Makefile index 3b4d54c..588ac34 100644 ---

[OpenWrt-Devel] [PATCH] [packages] New Package - Puppet 3.3.1

2013-11-02 Thread Kyle Anderson
This patch provides the Puppet package, a configuration management tool. I've already got upstream support for OpenWrt into Puppet, so this patch doesn't require any puppet modifications, so that is cool. This does require a ruby patch. Please accept the patches in this ticket:

[OpenWrt-Devel] [PATCH] [packages] facter 1.7.3

2013-11-02 Thread Kyle Anderson
This bumps the facter package to 1.7.3. This works in conjuction with Puppet. Signed-off-by: Kyle Anderson k...@xkyle.com Index: admin/facter/Makefile === --- admin/facter/Makefile (revision 0) +++ admin/facter/Makefile

[OpenWrt-Devel] [PATCH] [packages] mosh

2013-11-02 Thread Kyle Anderson
This adds mosh-full, mosh-server, and mosh-client packages. The Entware team has already done the hard work: http://code.google.com/p/wl500g-repo/source/browse/feeds/rtndev/mosh/Makefile?r=1220 All I added was a patch to disabled the check for UTF-8, which is not available on our platform. (It