[LEDE-DEV] [PATCH v2] package-ipkg: Do not fail build without base-files

2016-12-09 Thread Florian Fainelli
If the base-files package is not selected, we will fail executing the very first postinst script: make[3]: Leaving directory `/local/users/fainelli/openwrt/trunk' cp -fpR /local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root-orion /local/users/fainelli/openwrt/trunk

Re: [LEDE-DEV] [PATCH RFC 2/3] openvpn: use proper quoting of push option in openvpn.config

2016-12-09 Thread Magnus Kroken
Hi P On 09.12.2016 23.34, p.wa...@gmx.at wrote: What about doing the 'correct' quotation in the init script? I.e. removing the 'push' option from the append_params list and instead do the workaround for quoatition there. Thanks for making me rethink this. I thought about it when I worked on t

Re: [LEDE-DEV] [PATCH RFC 2/3] openvpn: use proper quoting of push option in openvpn.config

2016-12-09 Thread p . wassi
Hi Magnus, > This does not cause errors in OpenVPN 2.3, but OpenVPN 2.4 fails to start > with unquoted push arguments. > > This fixes FS#290 by way of documentation, but existing configurations > will need editing to work with OpenVPN 2.4. What about doing the 'correct' quotation in the init scr

[LEDE-DEV] [PATCH 2/2] ath10k-ct-fw: Add support for QCA9887 CT firmware.

2016-12-09 Thread greearb
From: Ben Greear I do not have hardware to test this on, but someone said it at least sort of worked for them. Hoping to get feedback if others try it. Signed-off-by: Ben Greear --- package/firmware/ath10k-firmware/Makefile | 36 +++ 1 file changed, 36 insertions(+

[LEDE-DEV] [PATCH 1/2] ath10k-ct-fw: Add support for QCA9888/9886 CT firmware.

2016-12-09 Thread greearb
From: Ben Greear This supports the QCA9886 chipsets, at least. Tested with a compex eval NIC, but not specifically on LEDE. Signed-off-by: Ben Greear --- package/firmware/ath10k-firmware/Makefile | 38 +++ 1 file changed, 38 insertions(+) diff --git a/package/firm

[LEDE-DEV] [PATCH 1/2] ath10k-ct: Update to latest CT ath10k driver.

2016-12-09 Thread greearb
From: Ben Greear This works around deadlock and/or memory corruption during firmware crash and improves ability to configure number of tids in firmware. Signed-off-by: Ben Greear --- package/kernel/ath10k-ct/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packa

[LEDE-DEV] [PATCH 2/2] ath10k-ct-fw: Update to latest CT ath10k firmware.

2016-12-09 Thread greearb
From: Ben Greear For 10.4, this fixes issue with EAPOL 4/4 transmit, among other things. For 10.1, some additional stability fixes. Signed-off-by: Ben Greear --- package/firmware/ath10k-firmware/Makefile | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pa

[LEDE-DEV] [PATCH RFC 0/3] Update OpenVPN to 2.4_rc1

2016-12-09 Thread Magnus Kroken
This series updates OpenVPN to 2.4_rc1, along with some needed changes. I'm sending this as RFC as I don't know if LEDE will accept RC-quality packages, and there are a few points I'd like feedback on which are equally relevant for the final release (related to patch 3, detailed explanation in that

[LEDE-DEV] [PATCH RFC 1/3] mbedtls: enable MBEDTLS_DHM_C

2016-12-09 Thread Magnus Kroken
This option is required by OpenVPN, and OpenVPN 2.4 uses mbedTLS 2.x. DHM_C is also already enabled in the PolarSSL 1.3.x config.h. Signed-off-by: Magnus Kroken --- package/libs/mbedtls/Makefile | 2 +- package/libs/mbedtls/patches/200-config.patch | 9 - 2 files changed,

[LEDE-DEV] [PATCH RFC 3/3] openvpn: update to 2.4_rc1

2016-12-09 Thread Magnus Kroken
OpenVPN 2.4 builds with mbedTLS 2.x, rename openvpn-polarssl variant to openvpn-mbedtls. Some feature highlights: * Data channel cipher negotiation * AEAD cipher support for data channel encryption (currently only AES-GCM) * ECDH key exchange for control channel * LZ4 compression support See http

[LEDE-DEV] [PATCH RFC 2/3] openvpn: use proper quoting of push option in openvpn.config

2016-12-09 Thread Magnus Kroken
OpenVPN requires arguments to --push to be enclosed in double quotes. A single set of quotes is stripped when the UCI config is parsed. Enclosing in double and single quotes results in a proper configuration. This does not cause errors in OpenVPN 2.3, but OpenVPN 2.4 fails to start with unquoted p

[LEDE-DEV] [PATCH] comgt-ncm: Add support for specifying profile index

2016-12-09 Thread Giuseppe Lippolis
> Ah, that's the echo from the command messing up things. I was using the > cdc-wdm0 node, which doesn't echo, so I didn't notice this. Will send a fix > later today. However, it still wouldn't work with your modem as the > manufacturer would be "+cgmi:". This is a bug in the modem firmware, since

Re: [LEDE-DEV] [PATCH] uqmi: Add support for specifying profile index

2016-12-09 Thread Nikolay Ledovskikh
Tested your patch. It's working, but only after startup. When you disconnect modem from usb we have old cids saved. Then we connect modems back, modems won't bring up automatically (and I suppose they souldn't). And when we try to bring interface up we are falling into situation with locked up uqm

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-09 Thread Nikolay Ledovskikh
OK. It seems I missed something when doing cleanup. Your patch is working, but only after startup. When you disconnect modem from usb we have old cids saved. Then we connect modems back, modems won't bring up automatically (and I suppose they souldn't). And when we try to bring interface up we are

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-09 Thread Nikolay Ledovskikh
> Are all modems the same? Do they have same firmware versions? Are you sure > that the mapping of different /dev/cdc-wdmX nodes always stay the same? It > could be that on some boot the modem with the Megafon SIM gets /dev/cdc-wdm0 > and on the second boot it gets /dev/cdc-wdm1 or some other numbe

Re: [LEDE-DEV] RFC: removing support for old Atheros reference boards

2016-12-09 Thread Lucian Cristian
On 08.12.2016 22:43, Felix Fietkau wrote: On 2016-12-08 21:39, Lucian Cristian wrote: On 08.12.2016 22:27, Felix Fietkau wrote: On 2016-12-08 21:26, Felix Fietkau wrote: Hi all, support code for some old ar71xx reference boards (e.g. AP83) carries quite a bit of specific code that bloats imag

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-09 Thread Matti Laakso
Hi Nikolay, On 09.12.2016 11:57, Nikolay Ledovskikh wrote: I'm using multiple modems config interface 'wan1' option proto 'qmi' option device '/dev/cdc-wdm0' option apn 'internet.megafon.ru' option ipv6 '0' option metric '1' config interface 'wan2'

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-09 Thread Nikolay Ledovskikh
We are using sierra MC7710, MC7304. 2016-12-09 14:41 GMT+03:00 Nikolay Ledovskikh : >> I agree fully. That's why I added the autoconnect option in my last patch >> and defaulted it to disabled. >> >> Matti > > So, what we get: uqmi exit with 'Call failed'. > > -- > Best regards, Nikolay Ledovskikh

Re: [LEDE-DEV] [PATCH] Allow sending a fd in a ubus_request

2016-12-09 Thread Felix Fietkau
On 2016-12-08 13:47, amine.ahd wrote: > In the current implementation, a fd can be sent in the reply to an existing > request which can be inefficient in certain cases. > Example: when you want to create a pipe between two process with the help of > a 3rd process acting as a manager: you need 3 p

Re: [LEDE-DEV] [PATCH] uqmi: Add support for specifying profile index

2016-12-09 Thread Felix Fietkau
On 2016-12-03 23:05, Matti Laakso wrote: > Update uqmi to latest version, which brings about support for > specifying a call profile index instead of APN. A specific index > different from 1 must be used for some service provider and modem > combinations. > > Also make autoconnect optional and def

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-09 Thread Nikolay Ledovskikh
> I agree fully. That's why I added the autoconnect option in my last patch > and defaulted it to disabled. > > Matti So, what we get: uqmi exit with 'Call failed'. -- Best regards, Nikolay Ledovskikh. ___ Lede-dev mailing list Lede-dev@lists.infradea

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-09 Thread Nikolay Ledovskikh
I'm using multiple modems config interface 'wan1' option proto 'qmi' option device '/dev/cdc-wdm0' option apn 'internet.megafon.ru' option ipv6 '0' option metric '1' config interface 'wan2' option proto 'qmi' option device '/dev/cdc-wdm1'

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-09 Thread Matti Laakso
On 09.12.2016 11:27, Petr Štetiar wrote: Matti Laakso [2016-12-09 10:23:24]: I don't think that the autoconnect setting is "transferred" to the network, rather it could be tied to a specific call profile index, which has the wrong APN. If your Slovakian SIM card has several predefined profiles

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-09 Thread Petr Štetiar
Matti Laakso [2016-12-09 10:23:24]: > I don't think that the autoconnect setting is "transferred" to the > network, rather it could be tied to a specific call profile index, which > has the wrong APN. If your Slovakian SIM card has several predefined > profiles, this could be the case. If y

Re: [LEDE-DEV] Convert ar71xx to devicetree

2016-12-09 Thread John Crispin
On 09/12/2016 10:08, p.wa...@gmx.at wrote: >> looks like the link to privatedns.org is causing this. > > I've just checked on the web server's access log: there > was no bot checking the contents of my site, so it must really be > related to the URI itself. > > As this is not the first time, I'

Re: [LEDE-DEV] Convert ar71xx to devicetree

2016-12-09 Thread p . wassi
> looks like the link to privatedns.org is causing this. I've just checked on the web server's access log: there was no bot checking the contents of my site, so it must really be related to the URI itself. As this is not the first time, I'm sending these URIs to the list, this 'feature' must have

Re: [LEDE-DEV] Convert ar71xx to devicetree

2016-12-09 Thread John Crispin
looks like the link to privatedns.org is causing this. amazing feature, who wants to send a mail with a privatedns.org to lkml ? On 09/12/2016 09:59, John Crispin wrote: > > > On 09/12/2016 09:40, p.wa...@gmx.at wrote: >>> Done. Pushed the cleanup commit to my staging tree >> >> Thank you, Fe

Re: [LEDE-DEV] Convert ar71xx to devicetree

2016-12-09 Thread John Crispin
On 09/12/2016 09:40, p.wa...@gmx.at wrote: >> Done. Pushed the cleanup commit to my staging tree > > Thank you, Felix. This commit works perfectly on DT boards :) > (I did not test it on non-DT devices) > > In the meantime I've prepared DT things here: > https://github.com/p-wassi/lede-source/t

[LEDE-DEV] [PATCH] ar71xx: prepare jffs2 partition properly in factory.bin for BHR-4GRV2

2016-12-09 Thread FUKAUMI Naoki
"pad-rootfs" is required just after "append-rootfs". Signed-off-by: FUKAUMI Naoki --- target/linux/ar71xx/image/generic.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk index 6ceabeb..b1d9af9 10064

Re: [LEDE-DEV] Convert ar71xx to devicetree

2016-12-09 Thread p . wassi
> Done. Pushed the cleanup commit to my staging tree Thank you, Felix. This commit works perfectly on DT boards :) (I did not test it on non-DT devices) In the meantime I've prepared DT things here: https://github.com/p-wassi/lede-source/tree/ath79_devicetree This branch is compile-tested and ru

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-09 Thread Matti Laakso
On 08.12.2016 17:11, Bjørn Mork wrote: Petr Štetiar writes: Matti Laakso [2016-12-08 15:39:57]: Hi, I don't like the autoconnect at all, it being so unpredictable across various models. This autoconnect feature should burn in hell :-) The funny thing about this feature is, that the behav

[LEDE-DEV] [PATCH netifd] ubus: Display the IPv6 prefix assigned address

2016-12-09 Thread Hans Dedecker
Display the IPv6 address obtained from a prefix assignment as local-address element in the ubus ipv6-prefix-assignment list so it's explicitly clear which IPv6 address from the delegated prefix is assigned to the interface. Signed-off-by: Hans Dedecker --- ubus.c | 11 ++- 1 file changed