Re: [OpenWrt-Devel] [PATCH v3] package/utils/usbutils: Update USB IDs list and drop gzip compression

2016-04-17 Thread Daniel Engberg
On 2016-04-17 15:12, Hauke Mehrtens wrote:
> On 04/07/2016 08:50 AM, Daniel Engberg wrote:
>> Change mirror to Github (Gentoo repo) and drop the gzip compression.
>> Worst case there's about 4kbyte increase in size but most images ends up
>> beign somewhere between 4-100kbyte smaller due to the lzma compression.
>>
>> Tested on ar71xx
> 
> using the uncompressed version reduces the size when it is added to the
> squasfs image, but what happens when it gets installed later to the the
> overlay file system?
> 
> Hauke
> 

I haven't tested but the end result should be similar as according to the wiki
the jffs2 filesystem also uses lzma compression.
https://wiki.openwrt.org/doc/techref/filesystems#jffs2

//Daniel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [kernel] Support for new Archer C7 with gd25q128 chip in 15.05.1

2016-04-17 Thread John Marrett
Kristian,

On Sun, Apr 17, 2016 at 2:06 PM, Kristian Kielhofner  wrote:
> Specifically this applies to units manufactured in December of 2015 or
> later; serial numbers starting with 215C.

Thank you for that detail, I see that my router does have a serial
number that meets that pattern, I'll update the wiki with this
information.

Hauke,

> I want to make certain I get the updated patch right; I should
> integrate 
> target/linux/generic/patches-3.18/043-mtd_GD25Q128B_support_backport_from_3.19.patch
> patch (which, because of its order, results in pushes down in some
> other flash files) and adjust the
> target/linux/bcm53xx/patches-3.18/004-mtd-spi-nor-from-3.20.patch to
> avoid a conflict because of the change?

I could patch it as planned, however as far as I can tell this file
contains a large table of flash chip identifiers. Is there a reason I
wouldn't want to create a new single patch that updates the entire
"static const struct spi_device_id spi_nor_ids[]" table? This would
also consoldiate the table updates out of the following patches.

target/linux/ar71xx/patches-3.18/414-mtd-gd25q128-support.patch
target/linux/generic/patches-3.18/474-mtd-spi-nor-add-support-for-the-ISSI-SI25CD512-SPI-f.patch
target/linux/generic/patches-3.18/462-m25p80-mx-disable-software-protection.patch
target/linux/generic/patches-3.18/472-mtd-m25p80-add-support-for-Winbond-W25X05-flash.patch
target/linux/generic/patches-3.18/473-mtd-spi-nor-add-support-for-the-Macronix-MX25L512E-S.patch
target/linux/bcm53xx/patches-3.18/004-mtd-spi-nor-from-3.20.patch
target/linux/bcm53xx/patches-3.18/003-mtd-spi-nor-from-3.19.patch

I could create the new single patch for both trunk and 15.05.1 and
bring these updates into a single place under target/linux/generic.

Please let me know if this makes sense or if I'm better off limiting
the scope as originally described? I'm aware that there are non-table
updates on the other patches, I'll leave those parts alone.

-JohnF
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [kernel] Support for new Archer C7 with gd25q128 chip in 15.05.1

2016-04-17 Thread Kristian Kielhofner
Specifically this applies to units manufactured in December of 2015 or
later; serial numbers starting with 215C.

On Sun, Apr 17, 2016 at 7:55 AM, John Marrett  wrote:
> Recent Archer C7 V2.0 units have changed flash chips to the gd25q128
> chip, this is supported in trunk but not presently in 15.05. I would
> like stable support for this version so I've back ported the required
> fix [1] from the upstream kernel. I've tried to place this patch in
> order with the other flash support patches. I've tested it and I'm
> able to install a build of 15.05.1 on the device with this patch.
> Wireless and other functionality appears to be working properly.
>
> This is my first submitted patch for OpenWrt, please let me know on
> list or off if there are any issues.
>
> [1] 
> https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/mtd/spi-nor/spi-nor.c?id=fcc87a95195236b0935183361a72e4a98bf577d8
>
> Signed-off-by: John Marrett 
>
> diff --git a/target/linux/ar71xx/patches-3.18/414-mtd-gd25q128-support.patch
> b/target/linux/ar71xx/
> new file mode 100644
> index 000..c4a0a94
> --- /dev/null
> +++ b/target/linux/ar71xx/patches-3.18/414-mtd-gd25q128-support.patch
> @@ -0,0 +1,12 @@
> +Index: linux-3.18.29/drivers/mtd/spi-nor/spi-nor.c
> +===
> +--- linux-3.18.29.orig/drivers/mtd/spi-nor/spi-nor.c   2016-04-15
> 20:02:47.709062050 -0400
>  linux-3.18.29/drivers/mtd/spi-nor/spi-nor.c2016-04-16
> 07:41:06.071314788 -0400
> +@@ -510,6 +510,7 @@
> +   /* GigaDevice */
> +   { "gd25q32", INFO(0xc84016, 0, 64 * 1024,  64, SECT_4K) },
> +   { "gd25q64", INFO(0xc84017, 0, 64 * 1024, 128, SECT_4K) },
> ++  { "gd25q128", INFO(0xc84018, 0, 64 * 1024, 256, SECT_4K) },
> +
> +   /* Intel/Numonyx -- xxxs33b */
> +   { "160s33b",  INFO(0x898911, 0, 64 * 1024,  32, 0) },
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



-- 
Kristian Kielhofner
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] busybox: update to 1.24.2

2016-04-17 Thread Magnus Kroken

On 17.04.2016 14.18, Hauke Mehrtens wrote:

Why are you changing these default values? I do not see any commit
between 1.24.1 and 1.24.2 that changes anything to Kconfig.

Hauke


Sorry, you are right. I ran the config update scripts, I interpreted 
r47775 [1] as that should always be done when doing a version update.


[1]: https://dev.openwrt.org/changeset/47775

/Magnus
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [kernel] Support for new Archer C7 with gd25q128 chip in 15.05.1

2016-04-17 Thread Hauke Mehrtens
On 04/17/2016 03:17 PM, John Marrett wrote:
> Hauke,
> 
> I want to make certain I get the updated patch right; I should
> integrate 
> target/linux/generic/patches-3.18/043-mtd_GD25Q128B_support_backport_from_3.19.patch
> patch (which, because of its order, results in pushes down in some
> other flash files) and adjust the
> target/linux/bcm53xx/patches-3.18/004-mtd-spi-nor-from-3.20.patch to
> avoid a conflict because of the change?
> 
> Please confirm and I'll make the appropriate adjustments.

yes

> 
> Thank you for taking the time to review my submission,
> 
> -JohnF
> 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [kernel] Support for new Archer C7 with gd25q128 chip in 15.05.1

2016-04-17 Thread John Marrett
Hauke,

I want to make certain I get the updated patch right; I should
integrate 
target/linux/generic/patches-3.18/043-mtd_GD25Q128B_support_backport_from_3.19.patch
patch (which, because of its order, results in pushes down in some
other flash files) and adjust the
target/linux/bcm53xx/patches-3.18/004-mtd-spi-nor-from-3.20.patch to
avoid a conflict because of the change?

Please confirm and I'll make the appropriate adjustments.

Thank you for taking the time to review my submission,

-JohnF

On Sun, Apr 17, 2016 at 9:04 AM, Hauke Mehrtens  wrote:
> On 04/17/2016 01:55 PM, John Marrett wrote:
>> Recent Archer C7 V2.0 units have changed flash chips to the gd25q128
>> chip, this is supported in trunk but not presently in 15.05. I would
>> like stable support for this version so I've back ported the required
>> fix [1] from the upstream kernel. I've tried to place this patch in
>> order with the other flash support patches. I've tested it and I'm
>> able to install a build of 15.05.1 on the device with this patch.
>> Wireless and other functionality appears to be working properly.
>>
>> This is my first submitted patch for OpenWrt, please let me know on
>> list or off if there are any issues.
>>
>> [1] 
>> https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/mtd/spi-nor/spi-nor.c?id=fcc87a95195236b0935183361a72e4a98bf577d8
>>
>> Signed-off-by: John Marrett 
>>
>> diff --git a/target/linux/ar71xx/patches-3.18/414-mtd-gd25q128-support.patch
>> b/target/linux/ar71xx/
>> new file mode 100644
>> index 000..c4a0a94
>> --- /dev/null
>> +++ b/target/linux/ar71xx/patches-3.18/414-mtd-gd25q128-support.patch
>> @@ -0,0 +1,12 @@
>> +Index: linux-3.18.29/drivers/mtd/spi-nor/spi-nor.c
>> +===
>> +--- linux-3.18.29.orig/drivers/mtd/spi-nor/spi-nor.c   2016-04-15
>> 20:02:47.709062050 -0400
>>  linux-3.18.29/drivers/mtd/spi-nor/spi-nor.c2016-04-16
>> 07:41:06.071314788 -0400
>> +@@ -510,6 +510,7 @@
>> +   /* GigaDevice */
>> +   { "gd25q32", INFO(0xc84016, 0, 64 * 1024,  64, SECT_4K) },
>> +   { "gd25q64", INFO(0xc84017, 0, 64 * 1024, 128, SECT_4K) },
>> ++  { "gd25q128", INFO(0xc84018, 0, 64 * 1024, 256, SECT_4K) },
>> +
>> +   /* Intel/Numonyx -- xxxs33b */
>> +   { "160s33b",  INFO(0x898911, 0, 64 * 1024,  32, 0) },
>
> This patch is already in trunk at
> target/linux/generic/patches-3.18/043-mtd_GD25Q128B_support_backport_from_3.19.patch
> could you also place your change to the generic folder to keep it in
> sync with trunk.
>
> There is already a patch in cc for the bcm53xx target which also adds
> this line here:
> target/linux/bcm53xx/patches-3.18/004-mtd-spi-nor-from-3.20.patch this
> has to be modified when you add your patch to generic.
>
> Hauke
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v3] package/utils/usbutils: Update USB IDs list and drop gzip compression

2016-04-17 Thread Hauke Mehrtens
On 04/07/2016 08:50 AM, Daniel Engberg wrote:
> Change mirror to Github (Gentoo repo) and drop the gzip compression.
> Worst case there's about 4kbyte increase in size but most images ends up
> beign somewhere between 4-100kbyte smaller due to the lzma compression.
> 
> Tested on ar71xx

using the uncompressed version reduces the size when it is added to the
squasfs image, but what happens when it gets installed later to the the
overlay file system?

Hauke
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [kernel] Support for new Archer C7 with gd25q128 chip in 15.05.1

2016-04-17 Thread Hauke Mehrtens
On 04/17/2016 01:55 PM, John Marrett wrote:
> Recent Archer C7 V2.0 units have changed flash chips to the gd25q128
> chip, this is supported in trunk but not presently in 15.05. I would
> like stable support for this version so I've back ported the required
> fix [1] from the upstream kernel. I've tried to place this patch in
> order with the other flash support patches. I've tested it and I'm
> able to install a build of 15.05.1 on the device with this patch.
> Wireless and other functionality appears to be working properly.
> 
> This is my first submitted patch for OpenWrt, please let me know on
> list or off if there are any issues.
> 
> [1] 
> https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/mtd/spi-nor/spi-nor.c?id=fcc87a95195236b0935183361a72e4a98bf577d8
> 
> Signed-off-by: John Marrett 
> 
> diff --git a/target/linux/ar71xx/patches-3.18/414-mtd-gd25q128-support.patch
> b/target/linux/ar71xx/
> new file mode 100644
> index 000..c4a0a94
> --- /dev/null
> +++ b/target/linux/ar71xx/patches-3.18/414-mtd-gd25q128-support.patch
> @@ -0,0 +1,12 @@
> +Index: linux-3.18.29/drivers/mtd/spi-nor/spi-nor.c
> +===
> +--- linux-3.18.29.orig/drivers/mtd/spi-nor/spi-nor.c   2016-04-15
> 20:02:47.709062050 -0400
>  linux-3.18.29/drivers/mtd/spi-nor/spi-nor.c2016-04-16
> 07:41:06.071314788 -0400
> +@@ -510,6 +510,7 @@
> +   /* GigaDevice */
> +   { "gd25q32", INFO(0xc84016, 0, 64 * 1024,  64, SECT_4K) },
> +   { "gd25q64", INFO(0xc84017, 0, 64 * 1024, 128, SECT_4K) },
> ++  { "gd25q128", INFO(0xc84018, 0, 64 * 1024, 256, SECT_4K) },
> +
> +   /* Intel/Numonyx -- xxxs33b */
> +   { "160s33b",  INFO(0x898911, 0, 64 * 1024,  32, 0) },

This patch is already in trunk at
target/linux/generic/patches-3.18/043-mtd_GD25Q128B_support_backport_from_3.19.patch
could you also place your change to the generic folder to keep it in
sync with trunk.

There is already a patch in cc for the bcm53xx target which also adds
this line here:
target/linux/bcm53xx/patches-3.18/004-mtd-spi-nor-from-3.20.patch this
has to be modified when you add your patch to generic.

Hauke
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] netifd: Send DHCP release when client exits

2016-04-17 Thread Hauke Mehrtens
On 03/31/2016 12:18 PM, Hans Dedecker wrote:
> Let DHCP client send a release when it exists so the DHCP server is
> informed the IP address is released and allowing to clean up IP/mac
> state info in intermediate devices.
> 
> Signed-off-by: Hans Dedecker 

I think in the normal case we should not send a release, so we can get
the IP address back later.

https://www.ietf.org/rfc/rfc2131.txt says in section 3.2 part 4.:
  Note that in this case, where the client retains its network
  address locally, the client will not normally relinquish its
  lease during a graceful shutdown.  Only in the case where the
  client explicitly needs to relinquish its lease, e.g., the client
  is about to be moved to a different subnet, will the client send
  a DHCPRELEASE message.

What about making this configurable?

Hauke
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [kernel] Support for new Archer C7 with gd25q128 chip in 15.05.1

2016-04-17 Thread John Marrett
Recent Archer C7 V2.0 units have changed flash chips to the gd25q128
chip, this is supported in trunk but not presently in 15.05. I would
like stable support for this version so I've back ported the required
fix [1] from the upstream kernel. I've tried to place this patch in
order with the other flash support patches. I've tested it and I'm
able to install a build of 15.05.1 on the device with this patch.
Wireless and other functionality appears to be working properly.

This is my first submitted patch for OpenWrt, please let me know on
list or off if there are any issues.

[1] 
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/mtd/spi-nor/spi-nor.c?id=fcc87a95195236b0935183361a72e4a98bf577d8

Signed-off-by: John Marrett 

diff --git a/target/linux/ar71xx/patches-3.18/414-mtd-gd25q128-support.patch
b/target/linux/ar71xx/
new file mode 100644
index 000..c4a0a94
--- /dev/null
+++ b/target/linux/ar71xx/patches-3.18/414-mtd-gd25q128-support.patch
@@ -0,0 +1,12 @@
+Index: linux-3.18.29/drivers/mtd/spi-nor/spi-nor.c
+===
+--- linux-3.18.29.orig/drivers/mtd/spi-nor/spi-nor.c   2016-04-15
20:02:47.709062050 -0400
 linux-3.18.29/drivers/mtd/spi-nor/spi-nor.c2016-04-16
07:41:06.071314788 -0400
+@@ -510,6 +510,7 @@
+   /* GigaDevice */
+   { "gd25q32", INFO(0xc84016, 0, 64 * 1024,  64, SECT_4K) },
+   { "gd25q64", INFO(0xc84017, 0, 64 * 1024, 128, SECT_4K) },
++  { "gd25q128", INFO(0xc84018, 0, 64 * 1024, 256, SECT_4K) },
+
+   /* Intel/Numonyx -- xxxs33b */
+   { "160s33b",  INFO(0x898911, 0, 64 * 1024,  32, 0) },
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [luci] [PATCH] luci-mod-admin-full: Add option to set anonymous_identity field

2016-04-17 Thread Manuel Munz
On 07.04.2016 18:22, Kevin O'Connor wrote:
> Add support for setting the "anonymous_identity" field on EAP type
> networks.
>
> Signed-off-by: Kevin O'Connor 
> ---
>

Tested, worked.

Reviewed-By: Manuel Munz 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] hostapd.sh: Add support for "anonymous_identity" config field

2016-04-17 Thread Manuel Munz
I had the same requirement for a connection with eduroam and came up
with the same solution. I also tested the patch works. Should be commited.

Reviewed-by: Manuel Munz 

On 07.04.2016 18:21, Kevin O'Connor wrote:
> The wpa_supplicant supports an "anonymous_identity" field, which some
> EAP networks require.  From the documentation:
>
> anonymous_identity: Anonymous identity string for EAP (to be used as the
> unencrypted identity with EAP types that support different tunnelled
> identity, e.g., EAP-TTLS).
>
> This change modifies the hostapd.sh script to propagate this field
> from the UCI config to the wpa_supplicant.conf file.
>
> Signed-off-by: Kevin O'Connor 
> ---
>  package/network/services/hostapd/files/netifd.sh | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/package/network/services/hostapd/files/netifd.sh 
> b/package/network/services/hostapd/files/netifd.sh
> index ad96b8b..005112d 100644
> --- a/package/network/services/hostapd/files/netifd.sh
> +++ b/package/network/services/hostapd/files/netifd.sh
> @@ -139,7 +139,7 @@ hostapd_common_add_bss_config() {
>   config_add_string nasid
>   config_add_string ownip
>   config_add_string iapp_interface
> - config_add_string eap_type ca_cert client_cert identity auth priv_key 
> priv_key_pwd
> + config_add_string eap_type ca_cert client_cert identity 
> anonymous_identity auth priv_key priv_key_pwd
>  
>   config_add_int dynamic_vlan vlan_naming
>   config_add_string vlan_tagged_interface vlan_bridge
> @@ -623,9 +623,10 @@ wpa_supplicant_add_network() {
>   key_mgmt='WPA-EAP'
>   [ "$ieee80211r" -gt 0 ] && key_mgmt="FT-EAP $key_mgmt"
>  
> - json_get_vars eap_type identity ca_cert
> + json_get_vars eap_type identity anonymous_identity 
> ca_cert
>   [ -n "$ca_cert" ] && append network_data 
> "ca_cert=\"$ca_cert\"" "$N$T"
>   [ -n "$identity" ] && append network_data 
> "identity=\"$identity\"" "$N$T"
> + [ -n "$anonymous_identity" ] && append network_data 
> "anonymous_identity=\"$anonymous_identity\"" "$N$T"
>   case "$eap_type" in
>   tls)
>   json_get_vars client_cert priv_key 
> priv_key_pwd
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel