Re: [OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-19 Thread Steven Barth
No, miniupnp doesn't use procd yet. However you should be able to use the usual: ulimit -c unlimited somewhere above the service_start call to enable core dumps. On 19. August 2014 19:15:32 MESZ, "Luis E. Garcia" wrote: >I've noticed this issue with dnsmasq, I think that miniupnp is also >havin

Re: [OpenWrt-Devel] [PATCH v2 1/2] ramips: second spi device on rt5350

2014-08-19 Thread jonsm...@gmail.com
How to use SPI bitbang on OpenWRT http://randomcoderdude.wordpress.com/2013/08/15/spi-over-gpio-in-openwrt/ On Tue, Aug 19, 2014 at 4:03 PM, jonsm...@gmail.com wrote: > This site has a write up on how SPI mode works. > http://elm-chan.org/docs/mmc/mmc_e.html > > > > > On Tue, Aug 19, 2014 at 3:

Re: [OpenWrt-Devel] [PATCH v2 1/2] ramips: second spi device on rt5350

2014-08-19 Thread jonsm...@gmail.com
This site has a write up on how SPI mode works. http://elm-chan.org/docs/mmc/mmc_e.html On Tue, Aug 19, 2014 at 3:59 PM, jonsm...@gmail.com wrote: > > > > On Tue, Aug 19, 2014 at 3:48 PM, Álvaro Fernández Rojas > wrote: > >> El 19/08/2014 21:43, jonsm...@gmail.com escribió: >> > How is the c

Re: [OpenWrt-Devel] [PATCH v2 1/2] ramips: second spi device on rt5350

2014-08-19 Thread jonsm...@gmail.com
On Tue, Aug 19, 2014 at 3:48 PM, Álvaro Fernández Rojas wrote: > El 19/08/2014 21:43, jonsm...@gmail.com escribió: > > How is the clock speed wrong? > > The lowest speed the RT5350 SPI controller can achieve is System Clock / > 128. > System Clock = 120MHz > Lowest SPI Clock = 120MHz / 128 = 937.

Re: [OpenWrt-Devel] [PATCH v2 1/2] ramips: second spi device on rt5350

2014-08-19 Thread Álvaro Fernández Rojas
El 19/08/2014 21:43, jonsm...@gmail.com escribió: > How is the clock speed wrong? The lowest speed the RT5350 SPI controller can achieve is System Clock / 128. System Clock = 120MHz Lowest SPI Clock = 120MHz / 128 = 937.5KHz However, the MMC/SD cards need to be initialized at 100-400KHz.

Re: [OpenWrt-Devel] [PATCH v2 1/2] ramips: second spi device on rt5350

2014-08-19 Thread jonsm...@gmail.com
On Tue, Aug 19, 2014 at 3:33 PM, Álvaro Fernández Rojas wrote: > This is based on Jon Smirl's patch with the following changes: > - Set CS polarity as low by default. > - Add support for changing CS polarity. > - Add support for changing LSB/MSB. > - Add support for changing SPI mode. > - Fix inde

[OpenWrt-Devel] [PATCH 2/2] ramips: enable second SPI for VoCore

2014-08-19 Thread Álvaro Fernández Rojas
This patch enables the second SPI as spidev and also fixes some typos. Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/ramips/dts/VOCORE.dts b/target/linux/ramips/dts/VOCORE.dts index e5df9ab..e6288b0 100644 --- a/target/linux/ramips/dts/VOCORE.dts +++ b/target/linux/ramips/d

[OpenWrt-Devel] [PATCH v2 1/2] ramips: second spi device on rt5350

2014-08-19 Thread Álvaro Fernández Rojas
This is based on Jon Smirl's patch with the following changes: - Set CS polarity as low by default. - Add support for changing CS polarity. - Add support for changing LSB/MSB. - Add support for changing SPI mode. - Fix indentations. I tested it on a VoCore. Works fine connected to a second flash,

Re: [OpenWrt-Devel] [ANN] MicroPython - well-known scripting language, unbloated

2014-08-19 Thread Paul Sokolovsky
Hello, On Sat, 16 Aug 2014 13:18:33 +0200 "valent.turko...@gmail.com" wrote: > I'll definitely give cross-compiling for mips architecture (I have > lots of AR9331 based routers around) a go and let you know how it > worked out, or if it didn't work out. The latest news is that build recipes wer

[OpenWrt-Devel] NAND flashes in Broadcom routers: bad blocks, ECC

2014-08-19 Thread Rafał Miłecki
[cross-list e-mail to openwrt-devel and linux-mtd] Hi, I wanted to finally switch from NAND_ECC_NONE to NAND_ECC_SOFT (there is no hw ECC) but it appears it won't be that straightforward. The problem is NAND implementation in Broadcom's CFE bootloader. It appears that all the bootloader cares ab

Re: [OpenWrt-Devel] kirkwood / howto make bootloader

2014-08-19 Thread Felix Kaechele
On 19.08.2014 16:42 Bastian Bittorf wrote: > under > http://downloads.openwrt.org/barrier_breaker/14.07-rc3/kirkwood/generic/uboot-kirkwood-goflexhome/ > i can see the kwb-files, but how can i build them? > (when building generic or a subtarget they will not show up) In menuconfig: - Select "Marve

Re: [OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-19 Thread Luis E. Garcia
I've noticed this issue with dnsmasq, I think that miniupnp is also having a similar issue where it dies silently after a few days. Can I apply the same method to debug miniupnp ?? Regards, Luis Garcia On Tue, Aug 19, 2014 at 10:45 AM, Bastian Bittorf wrote: > * Steven Barth [19.08.2014 12:49

[OpenWrt-Devel] [PATCH v2 12/12] brcm63xx: Add DT support for P870HW-51a

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v2: remove old macro and correct capitalization of ZyXEL diff --git a/target/linux/brcm63xx/dts/p870hw-51a-v2.dts b/target/linux/brcm63xx/dts/p870hw-51a-v2.dts new file mode 100644 index 000..44a7eb2 --- /dev/null +++ b/target/linux/brcm63xx/dts/p870

[OpenWrt-Devel] [PATCH v2] brcm-wl: fix bash comparison error

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v2: use string comparison. diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh index 69e3132..c27a2a3 100644 --- a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/

[OpenWrt-Devel] [PATCH 7/12] brcm63xx: Add DT support for WAP-5813n

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/dts/wap-5813n.dts b/target/linux/brcm63xx/dts/wap-5813n.dts new file mode 100644 index 000..f0659eb --- /dev/null +++ b/target/linux/brcm63xx/dts/wap-5813n.dts @@ -0,0 +1,31 @@ +/dts-v1/; + +/include/ "bcm6368.dtsi"

[OpenWrt-Devel] [PATCH 12/12] brcm63xx: Add DT support for P870HW-51a

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/dts/p870hw-51a-v2.dts b/target/linux/brcm63xx/dts/p870hw-51a-v2.dts new file mode 100644 index 000..44a7eb2 --- /dev/null +++ b/target/linux/brcm63xx/dts/p870hw-51a-v2.dts @@ -0,0 +1,30 @@ +/dts-v1/; + +/include/ "bc

[OpenWrt-Devel] [PATCH 11/12] brcm63xx: Add DT support for HG553

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/dts/hg553.dts b/target/linux/brcm63xx/dts/hg553.dts new file mode 100644 index 000..6a4c695 --- /dev/null +++ b/target/linux/brcm63xx/dts/hg553.dts @@ -0,0 +1,30 @@ +/dts-v1/; + +/include/ "bcm6358.dtsi" + +/ { +

[OpenWrt-Devel] [PATCH 10/12] brcm63xx: Add DT support for HG520v

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/dts/hg520v.dts b/target/linux/brcm63xx/dts/hg520v.dts new file mode 100644 index 000..08dd711 --- /dev/null +++ b/target/linux/brcm63xx/dts/hg520v.dts @@ -0,0 +1,30 @@ +/dts-v1/; + +/include/ "bcm6358.dtsi" + +/ { +

[OpenWrt-Devel] [PATCH 9/12] brcm63xx: Add DT support for A4001N

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/dts/a4001n.dts b/target/linux/brcm63xx/dts/a4001n.dts new file mode 100644 index 000..011fbf4 --- /dev/null +++ b/target/linux/brcm63xx/dts/a4001n.dts @@ -0,0 +1,8 @@ +/dts-v1/; + +/include/ "bcm6328.dtsi" + +/ { +

[OpenWrt-Devel] [PATCH 8/12] brcm63xx: Add DT support for A4001N1

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/dts/a4001n1.dts b/target/linux/brcm63xx/dts/a4001n1.dts new file mode 100644 index 000..2bdd201 --- /dev/null +++ b/target/linux/brcm63xx/dts/a4001n1.dts @@ -0,0 +1,8 @@ +/dts-v1/; + +/include/ "bcm6328.dtsi" + +/ {

[OpenWrt-Devel] [PATCH 6/12] brcm63xx: Add DT support for VR-3025un

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/dts/vr-3025un.dts b/target/linux/brcm63xx/dts/vr-3025un.dts new file mode 100644 index 000..0907524 --- /dev/null +++ b/target/linux/brcm63xx/dts/vr-3025un.dts @@ -0,0 +1,31 @@ +/dts-v1/; + +/include/ "bcm6368.dtsi"

[OpenWrt-Devel] [PATCH 5/12] brcm63xx: Add DT support for VR-3025u

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/dts/vr-3025u.dts b/target/linux/brcm63xx/dts/vr-3025u.dts new file mode 100644 index 000..f36ba96 --- /dev/null +++ b/target/linux/brcm63xx/dts/vr-3025u.dts @@ -0,0 +1,31 @@ +/dts-v1/; + +/include/ "bcm6368.dtsi" + +

[OpenWrt-Devel] [PATCH 4/12] brcm63xx: Add DT support for AR-5387un

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/dts/ar-5387un.dts b/target/linux/brcm63xx/dts/ar-5387un.dts new file mode 100644 index 000..d24a655 --- /dev/null +++ b/target/linux/brcm63xx/dts/ar-5387un.dts @@ -0,0 +1,8 @@ +/dts-v1/; + +/include/ "bcm6328.dtsi" +

[OpenWrt-Devel] [PATCH 3/12] brcm63xx: Add DT support for AR-5381u

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/dts/ar-5381u.dts b/target/linux/brcm63xx/dts/ar-5381u.dts new file mode 100644 index 000..812108a --- /dev/null +++ b/target/linux/brcm63xx/dts/ar-5381u.dts @@ -0,0 +1,8 @@ +/dts-v1/; + +/include/ "bcm6328.dtsi" + +/

[OpenWrt-Devel] [PATCH 2/12] brcm63xx: Add DT support for CT-6373

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/dts/ct-6373.dts b/target/linux/brcm63xx/dts/ct-6373.dts new file mode 100644 index 000..56ca587 --- /dev/null +++ b/target/linux/brcm63xx/dts/ct-6373.dts @@ -0,0 +1,31 @@ +/dts-v1/; + +/include/ "bcm6358.dtsi" + +/ {

[OpenWrt-Devel] [PATCH 1/12] brcm63xx: Add DT support for CT-5365

2014-08-19 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/dts/ct-5365.dts b/target/linux/brcm63xx/dts/ct-5365.dts new file mode 100644 index 000..6e90638 --- /dev/null +++ b/target/linux/brcm63xx/dts/ct-5365.dts @@ -0,0 +1,31 @@ +/dts-v1/; + +/include/ "bcm6348.dtsi" + +/ {

Re: [OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-19 Thread Bastian Bittorf
* Steven Barth [19.08.2014 12:49]: > procd_set_param limits core="unlimited" thanks, this works fine here when the 'root' part of dnsmasq gets a -SIGSEGV (or during a real crash) and produces coredumps. i will keep the list updated, when i catch a real hang. bye, bastian

[OpenWrt-Devel] kirkwood / howto make bootloader

2014-08-19 Thread Bastian Bittorf
under http://downloads.openwrt.org/barrier_breaker/14.07-rc3/kirkwood/generic/uboot-kirkwood-goflexhome/ i can see the kwb-files, but how can i build them? (when building generic or a subtarget they will not show up) bye, bastian ___ openwrt-devel mailin

Re: [OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-19 Thread Steven Barth
Hi Bastian, you should try: procd_set_param limits core="unlimited" Cheers, Steven ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-19 Thread Roman Yeryomin
On 19 August 2014 12:10, Bastian Bittorf wrote: > sometimes dnsmasq 2.71 (trunk) dies silently but > the process is still running. when sending: > > kill -SIGSEGV $PID > > there is no coredump but the daemon gets restarted (via procd?) > normally inserting 'ulimit -c unlimited' just before startin

[OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-19 Thread Bastian Bittorf
sometimes dnsmasq 2.71 (trunk) dies silently but the process is still running. when sending: kill -SIGSEGV $PID there is no coredump but the daemon gets restarted (via procd?) normally inserting 'ulimit -c unlimited' just before starting the daemon should be enough, but i'am unsure how to apply,

Re: [OpenWrt-Devel] [PATCH] because -e xx , only export one value. I try to get all value by one call. So I add '; ' in -e parameters.

2014-08-19 Thread Jo-Philipp Wich
Hi Liu Bo, was there any particular reason why you couldn't use multiple "-e" arguments? That should produce the very same results without using ";" jsonfilter -s '{"a":"b","e":{"a":"c"}}' -e "t=$['a']" -e "y=$['e']['a']" export t='b'; export y='c'; ~ Jow ___