Re: [LEDE-DEV] [PATCH v2] base-files: Don't deconfigure IP settings while using NFS root

2017-11-08 Thread Petr Štetiar
John Crispin [2017-11-08 08:01:53]: Hi, > wondering if it would be nicer to add this to the already existing if > clause. I find code more readable if I check for all necessary preconditions at the start of the function and then do the main logic afterwards, if all

[LEDE-DEV] [PATCH v2] base-files: Don't deconfigure IP settings while using NFS root

2017-11-06 Thread Petr Štetiar
Signed-off-by: Petr Štetiar <yn...@true.cz> --- package/base-files/files/lib/preinit/10_indicate_preinit | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit b/package/base-files/files/lib/preinit/10_indicate_preinit index 7a97a8d..4

[LEDE-DEV] [PATCH] base-files: Don't deconfigure IP settings while using NFS root

2017-11-05 Thread Petr Štetiar
Signed-off-by: Petr Štetiar <yn...@true.cz> --- package/base-files/files/lib/preinit/10_indicate_preinit | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit b/package/base-files/files/lib/preinit/10_indicate_preinit index 7

Re: [LEDE-DEV] [PATCH] dropbear: make syslog support configurable

2017-11-04 Thread Petr Štetiar
Hans Dedecker [2017-11-03 13:46:14]: Hi, > By default dropbear logs to syslog which discloses info about account names > when doing connection attempts (e.g. "Bad password attempt for 'engineer' > from x.x.x.x:y") I don't get it, syslog discloses this information to whom

Re: [LEDE-DEV] [PATCH][ubox] Fixes log read starvation issue after threshold reached

2017-07-14 Thread Petr Štetiar
equest is using the old log ubus `id` from [2], but logd has now new ubus log `id` from [5]. And here is one more fix which I wasn't able to test and submit yet: commit ecbc9e12dc298b76e2597a9bdaff6db092e3e402 Author: Petr Štetiar <yn...@true.cz> Date:

Re: [LEDE-DEV] [PATCH ubox v2] Add template support to logread

2017-05-02 Thread Petr Štetiar
Henry Chang [2017-04-28 14:14:57]: > 1. logd is built-in logd is a built-in feature of ubox, and ubox is a heart > of OpenWrt/LEDE. If ubox can achieve all the use cases, we should simply > just use it. Use rsyslog instead will create additional footprint in terms > of

Re: [LEDE-DEV] FCC killing open platforms and inovations

2017-02-14 Thread Petr Štetiar
Simon Wunderlich [2016-11-17 11:19:48]: > On the other hand, swapping the u-boot is not so trivial, at least without > opening/soldering/modifying the flash from outside, which is considered a > reasonable hurdle. Overflows can substitute soldering

Re: [LEDE-DEV] Observing procd progress

2017-02-14 Thread Petr Štetiar
Philip Prindeville [2017-02-12 12:57:19]: Hi, > One thing I was wondering about was, on a headless system, but that does > have an LCD display, is maybe capturing the progress of procd as it runs and > displaying it on that LCD. BTW, what kind of platform

Re: [LEDE-DEV] the ipv6 issues and the notions of timer

2017-01-26 Thread Petr Štetiar
Karl Palsson [2017-01-25 10:17:32]: > Bastian Bittorf wrote: > > * Dave Taht [24.01.2017 08:52]: > > > I'd love a "simple ubus listen daemon example - one that listens > > > merely for events on a set of interfaces. or routes or on a

Re: [LEDE-DEV] FCC killing open platforms and inovations

2017-01-19 Thread Petr Štetiar
Simon Wunderlich [2016-11-17 11:19:48]: Hi Simon, > On the other hand, swapping the u-boot is not so trivial, at least without > opening/soldering/modifying the flash from outside, which is considered a > reasonable hurdle. the more I'm exploring the secrets

[LEDE-DEV] [PATCH] imx6: kernel: Backport serial port fixes

2017-01-13 Thread Petr Štetiar
Signed-off-by: Petr Štetiar <yn...@true.cz> --- ...erial-imx-repair-and-complete-handshaking.patch | 78 ++ .../111-serial-imx-fix-polarity-of-RI.patch| 38 +++ ...let-irq-handler-return-IRQ_NONE-if-no-eve.patch | 72 ...imx-mak

Re: [LEDE-DEV] [PATCH v2] imx6: Add hwmon-core driver to the kernel config instead of packaging it

2017-01-12 Thread Petr Štetiar
> --- a/target/linux/imx6/config-4.4 > +++ b/target/linux/imx6/config-4.4 > CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y > +CONFIG_HWMON=y Hm, this is apparently not enough. Needs more fixes probably. -- ynezz ___ Lede-dev mailing list

[LEDE-DEV] [PATCH v2] imx6: Add hwmon-core driver to the kernel config instead of packaging it

2017-01-12 Thread Petr Štetiar
EPENDS:=+kmod-thermal which had DEPENDS:=+kmod-hwmon-core and currently nothing selects kmod-hwmon-core. It's prefered to have it compiled directly in the kernel. Signed-off-by: Petr Štetiar <yn...@true.cz> Cc: Felix Fietkau <n...@nbd.name> --- target/linux/imx6/config-4.4 | 2 +-

[LEDE-DEV] [PATCH] imx6: Add kmod-hwmon-core dependency to default platform packages

2017-01-12 Thread Petr Štetiar
EPENDS:=+kmod-thermal which had DEPENDS:=+kmod-hwmon-core and currently nothing selects kmod-hwmon-core. Signed-off-by: Petr Štetiar <yn...@true.cz> Cc: Felix Fietkau <n...@nbd.name> --- target/linux/imx6/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [LEDE-DEV] Open and secure firmware for Quectel 4G modems [Was: Re: Quectel EC20 QMI autoconnect issues [Was: Re: [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.]]

2017-01-08 Thread Petr Štetiar
Bjørn Mork [2017-01-08 23:10:20]: > The output above comes from the Sierra Wireless EM7455 originally delivered > as part of my Lenovo X1 Carbon, running bog standard firmare. Oops. How did you get into the shell of your modem? Is it a root shell also? Seems like some serial

[LEDE-DEV] Open and secure firmware for Quectel 4G modems [Was: Re: Quectel EC20 QMI autoconnect issues [Was: Re: [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.]]

2017-01-08 Thread Petr Štetiar
Adding laforge and zecke to the Cc loop. Matti Laakso [2017-01-08 14:39:34]: Hi, > I'm almost done with checking the connection state using a proto_run_command > with a simple script running uqmi --get-data-status periodically. If the > check fails, the script dies and

Re: [LEDE-DEV] Quectel EC20 QMI autoconnect issues [Was: Re: [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.]

2017-01-07 Thread Petr Štetiar
Petr Štetiar <yn...@true.cz> [2016-12-12 10:06:59]: > I'm going to ask Quectel about this issue and will share the results. So it ended with the following result: "I raceived the additional informations that it’s not well to use autoconnect feature on EC20 and EC25. R will

Re: [LEDE-DEV] Scripting builds... how to?

2017-01-01 Thread Petr Štetiar
Philip Prindeville [2016-12-31 16:12:21]: Hi, > cp ../my-saved-config .config > make defconfig I use the same steps also. > to generate the .config file in a completely scripted way, by seeding it with > the minimum set of relevant parameters (the deltas)

[LEDE-DEV] Sysupgrade leads to SQUASHFS error: unable to read id index table

2016-12-12 Thread Petr Štetiar
Hi, I've found some issue with squashfs possibly related to mtdblock and mtdsplit usage. Before digging deeper into it, I would like to ask first for any pointers here. I've recently rebased my Git tree to LEDE master and rebuilt my image (haven't done this for month or so). I've noticed, that

[LEDE-DEV] Quectel EC20 QMI autoconnect issues [Was: Re: [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.]

2016-12-12 Thread Petr Štetiar
Matti Laakso [2016-12-12 10:51:42]: > Just shooting in the dark here, but maybe this operator accepts empty > APN and somehow maps it to the correct one? Well, that's maybe the most logical explanation of this weird and inconsistent behavior. Maybe it's just some

Re: [LEDE-DEV] [PATCH 1/1] add support for overlaying rootfs content

2016-12-12 Thread Petr Štetiar
ackages. Handy, thanks! You can add: Tested-by: Petr Štetiar <yn...@true.cz> -- ynezz ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev

Re: [LEDE-DEV] rt5350-spi rt2880-spi question

2016-12-12 Thread Petr Štetiar
Giuseppe Lippolis [2016-12-10 23:28:49]: > In the driver code is written the follow comment: > > /* > * spidev should never be referenced in DT without a specific > * compatible string, it is a Linux implementation thing > * rather than

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

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

2016-12-08 Thread Petr Štetiar
Bjørn Mork [2016-12-08 16:11:18]: Hi, > I don't think we can trust the modem firmware with complex features like > autoconnect. There are too many things that can go wrong. And we don't have > any way to debug or fix any of those issues when they.happen inside the > modem

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

2016-12-08 Thread Petr Štetiar
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 behaviour is network specific[1] also. I

Re: [LEDE-DEV] FCC killing open platforms and inovations

2016-11-17 Thread Petr Štetiar
Simon Wunderlich [2016-11-17 10:49:01]: Hi Simon, > No, firmware (at least in ath10k) doesn't solve the problem. You can still > set > a country code, DFS pattern matching is still done in the host-side driver > part (and not in the firmware), and you can

Re: [LEDE-DEV] FCC killing open platforms and inovations [Was: Re: [PATCH] ar71xx: Add usable, inactive LEDs on OpenMesh devices]

2016-11-15 Thread Petr Štetiar
Sven Eckelmann [2016-11-15 09:32:18]: Hi, > I was told that OpenMesh is also shipping an already unlocked version of it in > regions which don't requires closed down versions. They called it > "(International Version)". quoting from Cloudtrax help portal[1]: "For

Re: [LEDE-DEV] FCC killing open platforms and inovations [Was: Re: [PATCH] ar71xx: Add usable, inactive LEDs on OpenMesh devices]

2016-11-14 Thread Petr Štetiar
Petr Štetiar <yn...@true.cz> [2016-11-14 14:24:48]: > The only sane way of fixing this is to dump the private keys out of the > U-Boot and patch the ap51-flash so the LEDE users are able to sign their own > LEDE or any other custom OS images and use the HW as they wish.

[LEDE-DEV] FCC killing open platforms and inovations [Was: Re: [PATCH] ar71xx: Add usable, inactive LEDs on OpenMesh devices]

2016-11-14 Thread Petr Štetiar
Hi Sven, first of all I would like to thank you and your colleagues for your great work and upstreaming of the support for all OpenMesh devices, opensourcing the ap51-flash utils etc. But on the other hand I'm wondering how should I upload my custom LEDE image to my recently purchased OM5P-AC

[LEDE-DEV] [PATCH v3] base-files: sysfixtime: Keep RTC time in UTC timezone

2016-10-31 Thread Petr Štetiar
/init.d/sysfixtime stop $ date Fri Oct 21 10:15:53 CEST 2016 $ hwclock -r -f /dev/rtc0 Fri Oct 21 08:15:55 2016 0.00 seconds Signed-off-by: Petr Štetiar <yn...@true.cz> --- Changes si

[LEDE-DEV] [PATCH v2] base-files: sysfixtime: Keep RTC time in UTC by default

2016-10-30 Thread Petr Štetiar
/init.d/sysfixtime stop $ date Fri Oct 21 10:15:53 CEST 2016 $ hwclock -r -f /dev/rtc0 Fri Oct 21 08:15:55 2016 0.00 seconds Signed-off-by: Petr Štetiar <yn...@true.cz> --- Changes since v1: * improved commit message * enable rtc_utc=1 in system uc

Re: [LEDE-DEV] uqmi: re-enable autoconnect which was dropped without explanation

2016-10-21 Thread Petr Štetiar
Felix Fietkau <n...@nbd.name> [2016-10-20 12:09:36]: > On 2016-10-19 23:49, Petr Štetiar wrote: > > > > How to fix it for both use cases, with and without autoconnect feature? > > Introduce qmi_autoconnect config option? > > I think we probably need to introd

Re: [LEDE-DEV] [PATCH] base-files: sysfixtime: Allow system time in local timezones

2016-10-21 Thread Petr Štetiar
Daniel Dickinson <l...@cshore.thecshore.com> [2016-10-20 16:47:09]: > On Wed, 19 Oct 2016 22:05:43 +0200 > Petr Štetiar <yn...@true.cz> wrote: > > > Felix Fietkau <n...@nbd.name> [2016-10-19 21:44:06]: > > > > > I'd like to know why you need to

Re: [LEDE-DEV] [PATCH] base-files: sysfixtime: Allow system time in local timezones

2016-10-21 Thread Petr Štetiar
been using CEST timezone for system time (battery backed RTC in UTC) in some OpenWRT based projects since 2014. I'm not aware about any of such problems and you of course doesn't need to change the clock. It's done automagically for you. commit 215c43acc5803e82e249458e9093dba62882ff5d

[LEDE-DEV] [PATCH] base-files: sysfixtime: Allow system time in local timezones

2016-10-18 Thread Petr Štetiar
option `rtc_utc`. Signed-off-by: Petr Štetiar <yn...@true.cz> --- package/base-files/files/etc/init.d/sysfixtime | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/package/base-files/files/etc/init.d/sysfixtime b/package/base-files/files/etc/

[LEDE-DEV] [PATCH] imx6: inittab: Use login.sh wrapper so we can configure console password

2016-10-14 Thread Petr Štetiar
In dc92917 there was introduced login.sh wrapper which allows configuration of console passwords via UCI system ttylogin config option. Signed-off-by: Petr Štetiar <yn...@true.cz> --- target/linux/imx6/base-files/etc/inittab | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[LEDE-DEV] [PATCH] ugps: Simplify and fix position computation from GPRMC sentence

2016-08-31 Thread Petr Štetiar
-by: Petr Štetiar <yn...@true.cz> Tested-by: Cezary Jackiewicz <cez...@eko.one.pl> --- nmea.c | 58 ++ 1 file changed, 22 insertions(+), 36 deletions(-) diff --git a/nmea.c b/nmea.c index 31e0168..1a7ac27 100644 --- a/nmea.c +++ b/nme

[LEDE-DEV] [PATCH ugps 6/7] Show more useful error message if we can't open GPS device

2016-07-27 Thread Petr Štetiar
Signed-off-by: Petr Štetiar <yn...@true.cz> --- nmea.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nmea.c b/nmea.c index 5a691b9..4d9cb90 100644 --- a/nmea.c +++ b/nmea.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@

[LEDE-DEV] [PATCH ugps 2/7] Switch to ulog for logging and add few commandline params

2016-07-27 Thread Petr Štetiar
Signed-off-by: Petr Štetiar <yn...@true.cz> --- log.h | 17 +++-- main.c | 46 ++ nmea.c | 20 ++-- 3 files changed, 59 insertions(+), 24 deletions(-) diff --git a/log.h b/log.h index b8ae621..bf86f1e 100644 --- a

[LEDE-DEV] [PATCH ugps 4/7] Use strsep for NMEA message tokenization

2016-07-27 Thread Petr Štetiar
strtok doesn't parse correctly following message: $GPGSA,A,1,,,*1E Resulting in "datagram has wrong parameter count". Signed-off-by: Petr Štetiar <yn...@true.cz> --- nmea.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nmea.c b/nmea

[LEDE-DEV] [PATCH ugps 0/7] Few fixes and additions

2016-07-27 Thread Petr Štetiar
Hi, this patch series is result of my work on ugps while I was adding support for my Quectel EC20 miniPCIe device. -- ynezz Petr Štetiar (7): cmake: Add proper library and include files search logic for dependecies Switch to ulog for logging and add few commandline params Bail out

[LEDE-DEV] [PATCH ugps 7/7] Allow bigger lat/lng numbers in RMC message

2016-07-27 Thread Petr Štetiar
It works now with following message: $GPRMC,122536.0,A,4350.237769,N,01826.423315 Signed-off-by: Petr Štetiar <yn...@true.cz> --- nmea.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nmea.c b/nmea.c index 4d9cb90..fecdef8 100644 --- a/nmea.c +++ b/nmea.c @@

[LEDE-DEV] [PATCH ugps 5/7] Fix typo in error message

2016-07-27 Thread Petr Štetiar
Signed-off-by: Petr Štetiar <yn...@true.cz> --- nmea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmea.c b/nmea.c index 3646a36..5a691b9 100644 --- a/nmea.c +++ b/nmea.c @@ -248,7 +248,7 @@ nmea_process(char *a) return; if (nmea_verify_ch

[LEDE-DEV] [PATCH ugps 3/7] Bail out if we can't find GPS device

2016-07-27 Thread Petr Štetiar
Signed-off-by: Petr Štetiar <yn...@true.cz> --- main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 87d069b..6ff4c17 100644 --- a/main.c +++ b/main.c @@ -145,7 +145,10 @@ main(int argc, char ** argv) conn.path = ubus_socket; c

[LEDE-DEV] [PATCH ugps 1/7] cmake: Add proper library and include files search logic for dependecies

2016-07-27 Thread Petr Štetiar
Signed-off-by: Petr Štetiar <yn...@true.cz> --- CMakeLists.txt | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 326e649..7fe7a16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,15 +7,19

Re: [LEDE-DEV] [PATCH] scripts/download.pl: Use CDN for kernel downloads

2016-05-23 Thread Petr Štetiar
Felix Fietkau <n...@nbd.name> [2016-05-23 11:11:50]: > On 2016-05-23 10:29, Bjørn Mork wrote: > > Petr Štetiar <yn...@true.cz> writes: > > > >> - push @mirrors, "https://kernel.org/pub/$dir;; > >> +