Re: [OpenWrt-Devel] full tmpfs, but not much / nothing inside, syslogd

2012-07-16 Thread Bastian Bittorf
there is one known issue on Unix like systems which may lead to the case where a file system without file entries may report no available space. I do not know if this is the reason for your trouble, but it it's better to tell about, as this is not known to all Unix users. On Unix like

[OpenWrt-Devel] WRT54g / b43 / mac802.11 BREAKTHROUGH

2012-07-18 Thread Bastian Bittorf
hi devs! yesterday we had a breaktrough debugging b43 in our hackspace maschinenraum/m18[1,2] at weimar.freifunk.net[3,4] - since a long time our darling wrt54g suffers from a hanging wifi and bad performance[5], but the workaround is easy: now it's up to you to fix the rootcause. our

Re: [OpenWrt-Devel] WRT54g / b43 / mac802.11 BREAKTHROUGH

2012-07-20 Thread Bastian Bittorf
1) why does a band change (can be seen through minstrel) is a problem? Because IIRC b43 doesn't support anything other than 2.4GHz at all. 8-) sorry, i used the wrong term band: (fast) changing between b and g rates are the problem. you can easily reproduce, when you force this by: iw

Re: [OpenWrt-Devel] WRT54g / b43 / mac802.11 BREAKTHROUGH

2012-07-20 Thread Bastian Bittorf
What chip is in your WRT54G? We tested both: 4318 (Buffalo HP54G) and 4306 (Linksys WRT54GL) bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] change Kernel-commandline / add panic=10

2012-08-15 Thread Bastian Bittorf
we have sometimes the problem that a board will not come up after a remote reboot. we already switched on during early boot in /etc/init.d/00... these sysctl flags: vm.panic_on_oom=1 kernel.panic_on_oops=1 kernel.panic=10 but this is sometimes not enough. i'am unsure what happens, but if a board

Re: [OpenWrt-Devel] change Kernel-commandline / add panic=10

2012-08-15 Thread Bastian Bittorf
CONFIG_CMDLINE is used. Maybe do the change to config-3.3 and do a make target/linux/clean make Now your kernel should be called with the CMDLINE. no, does not work: user@buildbox:~/openwrt$ grep ^CONFIG_CMDLINE= target/linux/ar71xx/config-3.3

Re: [OpenWrt-Devel] Attitude Adjustment (12.08)

2012-08-15 Thread Bastian Bittorf
Can't stuff done in the bleeding-edge be backported to the stable? there is nobody, who can do that. think about this: there are more than 400 open patches. it's a matter of time to fiddle them into trunk, not to mention backporting... bye, bastian

Re: [OpenWrt-Devel] change Kernel-commandline / add panic=10 [SOLVED]

2012-08-16 Thread Bastian Bittorf
the cmdline is patched inside target/linux/ar71xx/image/Makefile yes, it works! just for the record: i changed 2 lines in the makefile for my special options: user@buildbox:~/openwrt$ grep KERNEL_CMDLINE target/linux/ar71xx/image/Makefile $(LOADER_MAKE) LOADER=loader-$(1).$(2)

Re: [OpenWrt-Devel] WRT54g / b43 / mac802.11 BREAKTHROUGH

2012-08-24 Thread Bastian Bittorf
Do you have any info whether the failure occurs with the change from OFDM to CCK, or vice versa? I am wondering if the radio needs a dummy i cannot answer this question - interesting idea. i like to test your patch, simply do a dummy tx in both cases. bye, bastian

Re: [OpenWrt-Devel] WRT54g / b43 / mac802.11 BREAKTHROUGH

2012-08-24 Thread Bastian Bittorf
How do I monitor this particular channel with an other wifi card to get most of the packages, with aircrack I am unable to set the channel? the simple approach is installing horst on another router or your pc. ofcourse you get a full dump with wireshark sniffing on your monitor-interface.

[OpenWrt-Devel] package olsr / compiler bug on ARM / MIPS when using -Os

2012-08-29 Thread Bastian Bittorf
[copy to olsr-dev list] can we please switch off compiler-optimizations for all ARM and MIPS-platforms, till the compiler-bug is filed [lars?] and fixed? Simply omit -Os does the trick. https://lists.olsr.org/pipermail/olsr-dev/2012-August/006046.html bye, bastian

Re: [OpenWrt-Devel] package olsr / compiler bug on ARM / MIPS when using -Os

2012-08-29 Thread Bastian Bittorf
Disabling all optimization sounds like a horrible idea to me. How about identifying which specific optimization is causing this issue? If if you follow the thread, you can see it: https://lists.olsr.org/pipermail/olsr-dev/2012-August/006056.html problem1: for filing a bug-report we need to

Re: [OpenWrt-Devel] package olsr / compiler bug on ARM / MIPS when using -Os

2012-08-31 Thread Bastian Bittorf
Only the Truemobile 2300 and the the Asus WL-500G was mentioned in the thread and both of them is based on BCM4702/4710. An old post [1] on the linux-mips list indicates that those SoCs may have problems with the 'branch-likely' instructions, so this might not be a compiler bug at all.

Re: [OpenWrt-Devel] package olsr / compiler bug on ARM / MIPS when using -Os

2012-09-21 Thread Bastian Bittorf
sorry for late reply and breaking the ml-thread: You can add '-mno-branch-likely' option to CFLAGS. The option ensures that such instructions will not be emitted by the toolchain. Can you test again after r33328? This will need a complete toolchain rebuild. i tested a fresh build of

Re: [OpenWrt-Devel] package olsr / compiler bug on ARM / MIPS when using -Os

2012-09-23 Thread Bastian Bittorf
i tested a fresh build of openwrt r33502. this changed nothing 8-( i will now build an image without -Os ... If you can get me a very simple test case that I can use to reproduce this issue, I will look into it. sorry, no simple testcase. It works without any problems when i simply

Re: [OpenWrt-Devel] package olsr / compiler bug on ARM / MIPS when using -Os

2012-09-23 Thread Bastian Bittorf
First of all: what's the fastest possible way to see if 'it works' 1) standard build of package olsr must run on a affected router with BCM4702/4710 CPU (e.g. Dell Truemobile 2300 or Asus WL-500G). 2) Add a 2nd router (arch does not matter) via Ethernet (we need a second, the problem is that

Re: [OpenWrt-Devel] wlan interface becomes unresponsive

2012-11-04 Thread Bastian Bittorf
of them under backfire) use 12.09-beta or trunk. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] dev.openwrt.org is down for me

2012-11-13 Thread Bastian Bittorf
Is down for me too nginx 502 bad gateway it's mostly down since _several_ weeks: there is also one (or more) ticket which complains about that, but ignored...wtf? questions in IRC about that are also ignored. its not a problem to have a faulty server, but then: delegate to work to somebody

Re: [OpenWrt-Devel] milliseconds time measurements

2012-11-23 Thread Bastian Bittorf
not possible to get more resolution than 1 second, at least with the date command. I'd like to know if there's a way to get a resolution you can start with 'date +%s' the tic() toc() approach is nice, here is what we do to measure exact time between 2 events: read t1 trash /proc/uptime

Re: [OpenWrt-Devel] milliseconds time measurements

2012-11-23 Thread Bastian Bittorf
/proc/uptime is much simplier :-) and it's even monotonic...and...fast. (date +%s can jump into future and past) read t1 trash /proc/uptime do_something() read t2 trash /proc/uptime ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

[OpenWrt-Devel] ath9k / longshot / 5 MHz enforced but 20 MHz shown

2013-10-21 Thread Bastian Bittorf
during debugging a problematic longshot i discovered, that /sys/kernel/debug/ieee80211/phy0/ath9k/chanbw show 0x5 - but 'iw dev wlan0 info' shows: Interface wlan0 ifindex 6 wdev 0x2 addr 00:15:6d:1c:6a:09 ssid bb type IBSS wiphy 0 channel

[OpenWrt-Devel] build fails when uhttpd is built without TLS/SSL with r38575 / Trac fails for new tickets

2013-10-29 Thread Bastian Bittorf
again trac fails openening a new ticket, because of SPAM: build fails when uhttpd is built without TLS/SSL with r38575: {{{ make dirclean rm .config make menuconfig - select brcm63xx - select uhttpd make }}} results in: {{{

[OpenWrt-Devel] [PATCH] [platform/au1000/sysupgrade] fix sysupgrade when changing rootfs from jffs2 to squashfs and visa versa

2013-10-30 Thread Bastian Bittorf
from r36088 to r38570. (jffs2 to squashfs). Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- .../au1000/base-files/lib/upgrade/platform.sh | 25 +-- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/target/linux/au1000/base-files/lib/upgrade/platform.sh

Re: [OpenWrt-Devel] [PATCH] [platform/au1000/sysupgrade] fix sysupgrade when changing rootfs from jffs2 to squashfs and visa versa

2013-10-30 Thread Bastian Bittorf
* Philipp Borgers borg...@mi.fu-berlin.de [30.10.2013 10:12]: I think we should also update the Makefile for the images. As far as I know the Makefile only creates an image for one of the rootfs types. I can provide a patch if you don't have the time to do so. please do so, i'am lost while

Re: [OpenWrt-Devel] [PATCH] [platform/au1000/sysupgrade] fix sysupgrade when changing rootfs from jffs2 to squashfs and visa versa

2013-10-30 Thread Bastian Bittorf
* Philipp Borgers borg...@mi.fu-berlin.de [30.10.2013 14:57]: We can use the tar option --transform to rename the file system name inside the tar. I have a patch ready. I can test on the device tomorrow. this sounds like a GNU-extension and maybe breaks portability. bye, bastian

Re: [OpenWrt-Devel] [PATCH][packages]firewall3: optimize by loading conntrack modules on demand

2013-11-01 Thread Bastian Bittorf
* Jo-Philipp Wich j...@openwrt.org [01.11.2013 13:28]: We can certainly change the netfilter kmod packages to not autoload on boot anymore, then insmod the required ones from fw3 (similar to how iptables did it). i like this idea. bye, bastian ___

Re: [OpenWrt-Devel] zram backport for Attitude Adjustment

2013-11-09 Thread Bastian Bittorf
* Ben West b...@gowasabi.net [09.11.2013 19:22]: anecdotal experience that some processes don't behave well when paged to swap. I'm running AR7240 devices with 32MB RAM (i.e. UBNT M gear) as mesh nodes, and I've found that services like olsrd, coovachilli, and wpa_supplicant seem to behave

Re: [OpenWrt-Devel] Newbie needs help in building stable for newer hardware

2013-11-09 Thread Bastian Bittorf
* Florian Effenberger flo...@gmail.com [09.11.2013 19:22]: Is there an easy way to compile OpenWRT stable only with those patchsets necessary to make it work with newer hardware revisions? From what I recall, micro releases of OpenWRT stable often include newer hardware revisions, without

[OpenWrt-Devel] forky hotplug-calls on lowmem-devices

2013-11-09 Thread Bastian Bittorf
i recognized that a simple 'ifup lan' can be very expensive for a router with low ressources, below a typcal call/execution trace: hotplug-call: $1 = 'iface' START: 1139 hotplug-call: $1 = 'net' START: 1141 hotplug-call: script: /etc/hotplug.d/iface/00-netstate START: 1139 hotplug-call: script:

Re: [OpenWrt-Devel] forky hotplug-calls on lowmem-devices

2013-11-09 Thread Bastian Bittorf
* Felix Fietkau n...@openwrt.org [10.11.2013 08:00]: hotplug-call: script: /etc/hotplug.d/iface/00-netstate READY: 1194 hotplug-call: script: /etc/hotplug.d/iface/15-teql START: 1194 hotplug-call: script: /etc/hotplug.d/iface/15-teql READY: 1194 hotplug-call: script:

Re: [OpenWrt-Devel] forky hotplug-calls on lowmem-devices

2013-11-10 Thread Bastian Bittorf
* Felix Fietkau n...@openwrt.org [10.11.2013 13:13]: 3 sec vs. 70 sec... this was done on a strong board, on a weak board the difference is much bigger. This is only _one_ little optimization, and there are a lot of... For it to matter, I'm more interested in the absolute time saved than

Re: [OpenWrt-Devel] forky hotplug-calls on lowmem-devices

2013-11-10 Thread Bastian Bittorf
* Felix Fietkau n...@openwrt.org [10.11.2013 13:13]: For it to matter, I'm more interested in the absolute time saved than relative differences on a completely unrealistic number of iterations. In the case you're describing, it's still only saving about 7 ms per interface-up event, that's not

Re: [OpenWrt-Devel] forky hotplug-calls on lowmem-devices

2013-11-10 Thread Bastian Bittorf
* Felix Fietkau n...@openwrt.org [10.11.2013 15:22]: We could then also make it check if the /etc/hotplug.d/$SUBSYSTEM directory exists before issuing a call to /sbin/hotplug-call. this sounds good. so in /sbin/hotplug-call there is everytime the check [ \! -z $1 -a -d /etc/hotplug.d/$1 ] {

Re: [OpenWrt-Devel] forky hotplug-calls on lowmem-devices

2013-11-10 Thread Bastian Bittorf
* Felix Fietkau n...@openwrt.org [10.11.2013 15:22]: You could try this patch to see if it makes a difference wrt. boot time: --- --- a/package/system/procd/files/hotplug.json +++ b/package/system/procd/files/hotplug.json @@ -69,8 +69,14 @@ [ exec, /etc/rc.button/%BUTTON% ]

Re: [OpenWrt-Devel] forky hotplug-calls on lowmem-devices

2013-11-10 Thread Bastian Bittorf
* Felix Fietkau n...@openwrt.org [10.11.2013 16:13]: for FILE in /etc/hotplug.d/$1/*; do ( command . $FILE ); done because we know, that the directory exists and there is no need to fork ls and there is no need to check for a file if we use 'command' (a builtin). FILE should

Re: [OpenWrt-Devel] forky hotplug-calls on lowmem-devices

2013-11-10 Thread Bastian Bittorf
* Felix Fietkau n...@openwrt.org [10.11.2013 16:24]: if there are no files, than the call is e.g.: command . /etc/hotplug.d/iface/* (which throws an error, but does not hurt). the call I'd prefer preventing unnecessary logspam. test -f $file . $file is racy anyway. just use

Re: [OpenWrt-Devel] forky hotplug-calls on lowmem-devices

2013-11-10 Thread Bastian Bittorf
* Felix Fietkau n...@openwrt.org [10.11.2013 14:36]: also every script which needs an action has to fork, e.g. in '/etc/hotplug.d/iface/50-olsrd' we call /etc/init.d/olsrd restart maybe we can just source 'rc.common' once in '/sbin/hotplug-call' and so we can call just 'restart'

[OpenWrt-Devel] Alix-Board / Alix.2D / netifd segfault

2013-11-11 Thread Bastian Bittorf
i just flashed an alix-board with openwrt-trunk r38680 its working, but i can see: [ 1156.833612] netifd[6931]: segfault at 38 ip 080544cd sp bffb7f30 error 4 in netifd[8048000+19000] everytime ifup or ifdown an interface. but each 3 ethernet-interfaces are working normally, as far i tested.

[OpenWrt-Devel] uhttpd outputs error-message in decoding-mode

2013-11-11 Thread Bastian Bittorf
again Trac/new ticket does not work: root@box:~ uhttpd -d a=1b=2 Error: No sockets bound, unable to continue a=1b=2 unsure which commit introduced this, but i did'nt see this in old versions. bye, bastian ___ openwrt-devel mailing list

Re: [OpenWrt-Devel] zram backport for Attitude Adjustment

2013-11-11 Thread Bastian Bittorf
* Ben West b...@gowasabi.net [11.11.2013 20:36]: I am assuming incidents like these are occurring due to an ill-behaved process (or processes) attempting to allocate several MBytes for itself, failing that, and also causing memory errors for random resident processes in consequence. The only

Re: [OpenWrt-Devel] uhttpd outputs error-message in decoding-mode

2013-11-11 Thread Bastian Bittorf
* Jo-Philipp Wich j...@openwrt.org [11.11.2013 20:36]: Fixed with https://dev.openwrt.org/changeset/38743 too fast 8-) for me! thank you - bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

[OpenWrt-Devel] zram / swapon missing

2013-11-11 Thread Bastian Bittorf
since r38671: busybox: don't enable swapon/swapoff by default the tools for activating are missing. block-mount should be installed for this. please add an dependency for that to basefiles/zram. i will update the zram-script for making usage of that... bye, bastian

[OpenWrt-Devel] hotplug: ifup-calls during shutdown / netifd-crash

2013-11-12 Thread Bastian Bittorf
here on an alix2d i can see hotplug calls with ACTION = ifup during shutdown. also netif-crashs. i'am unsure why: maybe netifd crashs because of interface shutdowns and procd refires it again, so it takes all interfaces up again? the game goes infinite and nobody wins: especially: reboot does not

Re: [OpenWrt-Devel] hotplug: ifup-calls during shutdown / netifd-crash

2013-11-14 Thread Bastian Bittorf
* Bastian Bittorf bitt...@bluebottle.com [12.11.2013 10:32]: here on an alix2d i can see hotplug calls with ACTION = ifup during shutdown. also netif-crashs. i'am unsure why: maybe netifd crashs because of interface shutdowns and procd refires it again, so it takes all interfaces up again

Re: [OpenWrt-Devel] [RFC] uClibc: Deactivate oversized thread stack cache

2013-11-15 Thread Bastian Bittorf
* Sven Eckelmann s...@open-mesh.com [11.11.2013 11:41]: On Friday 08 November 2013 11:32:23 Weedy wrote: Do you have any benches or log dumps that show this fixed it for you? I am not really sure what you are expecting. I can not really show a log of the reset because the device just

Re: [OpenWrt-Devel] [OpenWrt-Users] Problem of connectivity with adhoc using wpa

2013-11-20 Thread Bastian Bittorf
* Felix Fietkau n...@openwrt.org [20.11.2013 09:30]: [ 169.77] net_ratelimit: 4598 callbacks suppressed [ 1864.61] net_ratelimit: 6 callbacks suppressed [ 1869.62] net_ratelimit: 4639 callbacks suppressed [39448.09] net_ratelimit: 4997 callbacks suppressed [41383.60]

Re: [OpenWrt-Devel] [OpenWrt-Users] Problem of connectivity with adhoc using wpa

2013-11-20 Thread Bastian Bittorf
* cmsv c...@wirelesspt.net [20.11.2013 12:24]: [ 4551.24] net_ratelimit: 2 callbacks suppressed [ 5324.84] net_ratelimit: 20 callbacks suppressed [11319.58] net_ratelimit: 5171 callbacks suppressed [12768.62] net_ratelimit: 1969 callbacks suppressed [12921.55] device mon0

Re: [OpenWrt-Devel] AR9330 hornet board stops beaconing after a few days (0xdeadbeef)

2013-11-20 Thread Bastian Bittorf
* Simon Wunderlich simon.wunderl...@s2003.tu-chemnitz.de [19.09.2012 11:25]: just to bump again - isn't there anyone who can give us some hint or clue regarding these 0xdeadbeef entries in the registers? Couldn't find a connection to other reports deadbeef on the mailing list so far. it doesnt

[OpenWrt-Devel] Q: basefiles: server_check() / start-stop-daemon

2013-11-21 Thread Bastian Bittorf
in package olsrd we use the call service_start /usr/sbin/olsrd -f $OLSRD_CONFIG_FILE -nofork service_check /usr/sbin/olsrd || logger error and often we see an 'error' on log, but the daemon runs fine. when checking what service_check() does, i can see that it calls: start-stop-daemon -K -t --

Re: [OpenWrt-Devel] Q: basefiles: server_check() / start-stop-daemon

2013-11-22 Thread Bastian Bittorf
* Bastian Bittorf bitt...@bluebottle.com [22.11.2013 08:50]: and often we see an 'error' on log, but the daemon runs fine. when checking what service_check() does, i can see that it calls: start-stop-daemon -K -t -- /usr/sbin/olsrd i read my debugging wrong, and it really calls: start-stop

[OpenWrt-Devel] failsafe broken with recent trunk

2013-11-22 Thread Bastian Bittorf
with r38885 and r38892 failsafe does not work via button but on serial console with f + enter. tested with TP-LINK TL-WR1043ND. bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

Re: [OpenWrt-Devel] failsafe broken with recent trunk

2013-11-22 Thread Bastian Bittorf
was the response time on trac not fast enough for you that you now mail us your bugs aswell ? :) sorry, did'nt looked on trac - it does not work for me - everything i do there is marked as spam, but nobody cares (?). sorry - bye, bastian ___

[OpenWrt-Devel] [PATCH 1/3] base-files: hotplug-call: directly exit, if call is invalid (minor optimization)

2013-11-22 Thread Bastian Bittorf
Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/base-files/files/sbin/hotplug-call | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index 260be0b..0a7c238

[OpenWrt-Devel] [PATCH 3/3] base-files: hotplug-call: make it more visible, that braces are used for the sources (protection against misbehaving external script, e.g. exit-call) - minor style/cleanup

2013-11-22 Thread Bastian Bittorf
Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/base-files/files/sbin/hotplug-call |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index 440926e..1121732

[OpenWrt-Devel] [PATCH 2/3] base-files: hotplug-call: use shell-feature filename-globbing instead of forking a 'ls'-call (minor optimization)

2013-11-22 Thread Bastian Bittorf
Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/base-files/files/sbin/hotplug-call |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index 0a7c238..440926e 100755

Re: [OpenWrt-Devel] [PATCH 1/3] base-files: hotplug-call: directly exit, if call is invalid (minor optimization)

2013-11-22 Thread Bastian Bittorf
new: +[ -n $1 -a -d /etc/hotplug.d/$1 ] exit sorry, changed the logic here: dont apply, will send a new patch old: -[ \! -z $1 -a -d /etc/hotplug.d/$1 ] { ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

[OpenWrt-Devel] [PATCH 1/5] base-files: hotplug: minor optimization: directly exit, if call is unneeded

2013-11-22 Thread Bastian Bittorf
Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/base-files/files/sbin/hotplug-call |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index 260be0b..5d22bb4 100755

[OpenWrt-Devel] [PATCH 2/5] base-files: hotplug: indentation

2013-11-22 Thread Bastian Bittorf
Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/base-files/files/sbin/hotplug-call |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index 5d22bb4..fb96cd0

[OpenWrt-Devel] [PATCH 3/5] base-files: hotplug: updated year

2013-11-22 Thread Bastian Bittorf
Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/base-files/files/sbin/hotplug-call |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index fb96cd0..2887869 100755

[OpenWrt-Devel] [PATCH 5/5] base-files: hotplug-call: minor cleanup: make it more visible, that braces are used for sourcing (protection against misbehaving external script, e.g. exit-call)

2013-11-22 Thread Bastian Bittorf
Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/base-files/files/sbin/hotplug-call |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index c848701..6050180

[OpenWrt-Devel] [PATCH 4/5] base-files: hotplug-call: minor optimization: use shell-feature filename-globbing instead of forking a 'ls'-call

2013-11-22 Thread Bastian Bittorf
Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/base-files/files/sbin/hotplug-call |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index 2887869..c848701 100755

Re: [OpenWrt-Devel] [PATCH 5/5] base-files: hotplug-call: minor cleanup: make it more visible, that braces are used for sourcing (protection against misbehaving external script, e.g. exit-call)

2013-11-23 Thread Bastian Bittorf
* Yousong Zhou yszhou4t...@gmail.com [23.11.2013 09:40]: That is a really long Subject line I guess. yes, i should change the way like i write git-commit-messages. (emails are automatically written with 'git format-patch -s' -for script in /etc/hotplug.d/$1/* ; do ( - [ -f $script ] .

Re: [OpenWrt-Devel] [PATCH 5/5] base-files: hotplug-call: minor cleanup: make it more visible, that braces are used for sourcing (protection against misbehaving external script, e.g. exit-call)

2013-11-23 Thread Bastian Bittorf
* Yousong Zhou yszhou4t...@gmail.com [23.11.2013 10:58]: Looks like most of them `exit` for a reason. Maybe we could instead just document explicitly the way hotplug scripts are run and let scripts take the shortcut `exit` at appropriate time. i think there is no change needed. i

Re: [OpenWrt-Devel] [PATCH 5/5] base-files: hotplug-call: minor cleanup: make it more visible, that braces are used for sourcing (protection against misbehaving external script, e.g. exit-call)

2013-11-23 Thread Bastian Bittorf
* Yousong Zhou yszhou4t...@gmail.com [23.11.2013 17:01]: was puzzles me: the PID_inside is the same like from the main-script. should'nt it change? It's weird. I found the following description from bash manual [1] that `$$`: Expands to the process ID of the shell. In a ()

Re: [OpenWrt-Devel] [PATCH 5/5] base-files: hotplug-call: minor cleanup: make it more visible, that braces are used for sourcing (protection against misbehaving external script, e.g. exit-call)

2013-11-23 Thread Bastian Bittorf
* Felix Fietkau n...@openwrt.org [23.11.2013 22:47]: first update all hotplug-scripts to work without 'exit', then change the /sbin/hotplug-call to '. $script' instead of ( . $script ) I disagree with the proposal to get rid of subshells here. I don't want one hotplug script to accidentally

Re: [OpenWrt-Devel] Interest in a openwrt router database to partially replace TOH?

2013-12-08 Thread Bastian Bittorf
* Joshua Judson Rosen jro...@harvestai.com [09.12.2013 08:38]: what is missing then is the router name, e.g. VENDOR and MODEL - e.g. 'TP-LINK TL-WR1043ND' What I really wish the TOH listing had is some indication of whether the hardware is known to be out of production. Looking for hardware

Re: [OpenWrt-Devel] Interest in a openwrt router database to partially replace TOH?

2013-12-09 Thread Bastian Bittorf
* Manuel Munz freif...@somakoma.de [09.12.2013 14:16]: * Integrating more information directly into the build system also sounds like a good idea, though i'm not really sure how that would be done on a per model basis. And then the question is how much information would we want to add there

Re: [OpenWrt-Devel] Interest in a openwrt router database to partially replace TOH?

2013-12-09 Thread Bastian Bittorf
* Daniel Golle dgo...@allnet.de [09.12.2013 14:35]: VENDOR - e.g. 'TP-LINK' MODEL - e.g. 'TL-WR1043ND' VERSION - e.g. empty or 'v2' ? SALE_START - e.g. '2013-05' SALE_STOP - e.g. empty or '2014-08' STATUS - e.g. 'broken' or 'r12345' or 'WIP' what about devices which work in old

Re: [OpenWrt-Devel] [PATCH v2 1/3] sysupgrade: let force be more forceful with multiple --force/-F options

2013-12-15 Thread Bastian Bittorf
* Andreas Mohr a...@lisas.de [15.12.2013 17:09]: I'm feeling a bit uneasy about changing that assignment into an increment of a variable that thereby loses its initialization (or is it already initialized elsewhere?). yes, it gets an init at scriptstart. - bye, bastian

Re: [OpenWrt-Devel] tl-wr1043nd-v2

2013-12-16 Thread Bastian Bittorf
* Daniel A. Nagy nagyd...@epointsystem.org [16.12.2013 10:11]: I have noticed that the trunk already supports v2 hardware of TP-Link's TL WR-1043ND router, but attitude adjustment does not. My question is which patches are the ones responsible for it and whether it is possible/reasonable to

[OpenWrt-Devel] Q: hotplug / button / reset

2013-12-18 Thread Bastian Bittorf
on a 'TP-LINK TL-WDR4900 v1' there is a button labeled 'WPS/reset'. when i press it, i get a hotplug call with $BUTTON = reset and $ACTION = pressed / released after this the router restarts. who does this? procd? do i have a chance to relabel this button to e.g. 'wps' without recompiling?

Re: [OpenWrt-Devel] ubus hostapd del_client problem

2013-12-21 Thread Bastian Bittorf
* Alexander Klosch klos...@subsignal.org [21.12.2013 10:11]: root@nh2:~# ubus call hostapd.wlan0 del_client '{addr: 00:00:ca:ff:ee:00, reason: 5, deauth: True, ban_time: 60}' root@nh2:~# ubus call hostapd.wlan0 list_bans { clients: [ ] } ban_time is 'milliseconds' IMHO.

Re: [OpenWrt-Devel] [PATCH 5/5] base-files: hotplug-call: minor cleanup: make it more visible, that braces are used for sourcing (protection against misbehaving external script, e.g. exit-call)

2013-12-25 Thread Bastian Bittorf
* Bastian Bittorf bitt...@bluebottle.com [23.11.2013 22:49]: * Felix Fietkau n...@openwrt.org [23.11.2013 22:47]: I disagree with the proposal to get rid of subshells here. I don't want one hotplug script to accidentally pick up variables of another one, because such issues can be annoying

Re: [OpenWrt-Devel] [PATCH] Add sysfixtime init script, replacement of luci_fixtime

2013-12-29 Thread Bastian Bittorf
* Etienne CHAMPETIER etienne.champet...@free.fr [29.12.2013 22:09]: Save time by touching /etc/config/sysfixtime, so it's included in backups Introduce save_time_interval config (in days) to choose how often time is saved to flash (default 30) Use busybox ntpd -S option so time is saved

Re: [OpenWrt-Devel] [PATCH] Add sysfixtime init script, replacement of luci_fixtime

2014-01-02 Thread Bastian Bittorf
* etienne.champet...@free.fr etienne.champet...@free.fr [02.01.2014 10:25]: When you do a fresh (re)start, openvpn complains because certificate is not yet valid. so simply set the system-time to the filedate of your cert + X seconds. bye, bastian

Re: [OpenWrt-Devel] [PATCH] Add sysfixtime init script, replacement of luci_fixtime

2014-01-03 Thread Bastian Bittorf
* etienne.champet...@free.fr etienne.champet...@free.fr [02.01.2014 21:10]: so simply set the system-time to the filedate of your cert + X seconds. It seems much more complicated (where is the cert, also it need openssl-util to decode the cert, ...) and would only work for openvpn.

Re: [OpenWrt-Devel] r38914 breaks multiple WiFi interfaces

2014-01-03 Thread Bastian Bittorf
* Nuno Gonçalves nuno...@gmail.com [03.01.2014 13:32]: Since r38914 I can no longer have a AP and STA interface simultaneously on a WRT160NL. The STA will work fine but the AP SSID is not broadcasted. already fixed, try trunk = r39139 bye, bastian

Re: [OpenWrt-Devel] r38914 breaks multiple WiFi interfaces

2014-01-03 Thread Bastian Bittorf
* Nuno Gonçalves nuno...@gmail.com [03.01.2014 14:40]: On Fri, Jan 3, 2014 at 1:38 PM, Bastian Bittorf bitt...@bluebottle.com wrote: already fixed, try trunk = r39139 I found the issue on r39183 and backtracked it to r38914, so the issue is not fixed or at least is happening again

Re: [OpenWrt-Devel] r38914 breaks multiple WiFi interfaces

2014-01-05 Thread Bastian Bittorf
* Nuno Gonçalves nuno...@gmail.com [06.01.2014 08:48]: On Fri, Jan 3, 2014 at 1:43 PM, Bastian Bittorf bitt...@bluebottle.com wrote: please reopen https://dev.openwrt.org/ticket/14590 and submit your config and experience there... bye, bastian Thanks for pointing me to the ticket

Re: [OpenWrt-Devel] [PATCH v3] Add sysfixtime init script, replacement of luci_fixtime

2014-01-05 Thread Bastian Bittorf
* Etienne CHAMPETIER etienne.champet...@free.fr [06.01.2014 08:48]: +#!/bin/sh /etc/rc.common +# Copyright (C) 2013-2014 OpenWrt.org + +START=00 + +boot() { + CURTIME=`date +%s` + MAXTIME=`find /etc -type f -exec date +%s -r {} \; | sort | tail -n1` + [[ $CURTIME -lt $MAXTIME

Re: [OpenWrt-Devel] [PATCHv2][packages] add libnetconf package

2014-01-06 Thread Bastian Bittorf
* Luka Perkov l...@openwrt.org [06.01.2014 08:49]: I wanted to create a new feed for management tools (called i like the idea... bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

Re: [OpenWrt-Devel] procd: reboot sometimes hangs

2014-01-14 Thread Bastian Bittorf
* John Crispin j...@phrozen.org [14.01.2014 19:55]: sometimes I experience hangs when rebooting. there are already some bugs on tra open regarding this. As far as I can see procd does not try to kill any started services but relies on them to exit gracefully. Would it make sense to

Re: [OpenWrt-Devel] [PATCH] dnsmasq: add reload to init script and use it by dhcp client

2014-01-15 Thread Bastian Bittorf
* Ulrich Weber uweber.li...@gmail.com [15.01.2014 20:05]: avoids nasty race condition between manual dnsmasq restart and killall -HUP dnsmasq by dhcp client, killing the init script accidentially +reload_service() { + DNSMASQ_PID=$(cat /var/run/dnsmasq.pid) + + if [ $DNSMASQ_PID !=

[OpenWrt-Devel] PowerPC / mpc85xx: change kernel-commandline

2014-01-16 Thread Bastian Bittorf
we are used to apply 'oops=panic panic=10' to our kernel-cmdline, but doing this with mpc85xx seems not to work: user@build:~/openwrt$ grep 'CONFIG_CMDLINE=' target/linux/mpc85xx/config-3.10 CONFIG_CMDLINE=console=ttyS0,115200 oops=panic panic=10 root@box$ cat /proc/cmdline

Re: [OpenWrt-Devel] [PATCH] busybox: enable CONFIG_FEATURE_WGET_TIMEOUT

2014-01-16 Thread Bastian Bittorf
* Alexander Couzens lyn...@fe80.eu [16.01.2014 11:48]: This enables wget argument -T TIMEOUT. Otherwise a wget will timeout after ~2 minutes. but to make it clear, the timeout does not work always. the busybox-people are aware of this, but there is no fix yet. this means: if you script

Re: [OpenWrt-Devel] PowerPC / mpc85xx: change kernel-commandline

2014-01-16 Thread Bastian Bittorf
* John Crispin j...@phrozen.org [16.01.2014 12:16]: what cmdline is shown in the bootlog ? the same like in '/proc/cmdline': [0.00] Kernel command line: console=ttyS0,115200 bye, bastian ___ openwrt-devel mailing list

Re: [OpenWrt-Devel] [PATCH:kernel] OpenWRT for Raspberry PI - _fixed_ second version.

2014-01-20 Thread Bastian Bittorf
* Oskari Rauta oskari.ra...@gmail.com [20.01.2014 08:19]: Since the current raspberry pi target BCM2708 will never be accepted just an idea: maybe it should not be a subtarget of BCM2708 but a standalone one? than the special patches are not a problem anymore got the other BCM2708 ones... i

Re: [OpenWrt-Devel] [PATCH] busybox: enable CONFIG_HOSTNAME

2014-01-21 Thread Bastian Bittorf
* Stefan Hellermann ste...@the2masters.de [21.01.2014 10:09]: What do the maintainers of openwrt/busybox think? Is it useful to have a hostname binary on a router/access point? Maybe for shell scripts or some web-interface? If yes, can you add it? is the applet 'hostname' really just needed

Re: [OpenWrt-Devel] trunk: firstboot forever on tp-link tl-wr740n v4.21

2014-01-25 Thread Bastian Bittorf
* Jiri Pirko j...@resnulli.us [25.01.2014 20:32]: Any idea what might be wrong? yes, your image is too big and jffs2 has not enough space / erase blocks for a working writeable partition, so everything is done in ramdisc-overlay only. check dmesg. bye, bastian

Re: [OpenWrt-Devel] trunk: firstboot forever on tp-link tl-wr740n v4.21

2014-01-25 Thread Bastian Bittorf
* Jiri Pirko j...@resnulli.us [25.01.2014 20:32]: Any idea what might be wrong? thanks to Gabor Juhos - since r39397 there is a mechanism for ar71xx, which actively prevents such situations during buildtime. bye, bastian ___ openwrt-devel mailing list

Re: [OpenWrt-Devel] [PATCHv2 1/2] wifi: Introduce 802.11ac support

2014-01-31 Thread Bastian Bittorf
* Rafał Miłecki zaj...@gmail.com [31.01.2014 18:20]: On the other way, it doesn't make much sense to switch into 5GHz and 2GHz, as this can be determined using just a channel number... not really. some channels are available in 2 and 5 GHz band. (e.g. channel 7,8,9,11,12) bye, bastian

Re: [OpenWrt-Devel] PowerPC / mpc85xx: change kernel-commandline

2014-02-05 Thread Bastian Bittorf
this patch changes 'arch/powerpc/boot/dts/tl-wdr4900-v1.dts' so, if i want to change (for me) the line i can make a 150-xxx on top of that? mit drahtlosen Grüßen, Bastian Bittorf -- bittorf wireless )) Verantwortlicher Entwicklung Telefon: +49 3643 4965 235 Mobil: +49 176 242 234 19 Inhaber: Bastian

Re: [OpenWrt-Devel] Backport of zram to AA

2014-02-14 Thread Bastian Bittorf
* Fernando Frediani fhfredi...@gmail.com [14.02.2014 09:35]: When will someone backport it from the trunk to Attitude Adjustment someone is you. there are some howto's out there to apply the needed changes to your local branch, use them. zram has changed a little but over the time, if you

Re: [OpenWrt-Devel] [RFC] menuconfig policy?

2014-02-21 Thread Bastian Bittorf
* Russell Senior russ...@personaltelco.net [19.02.2014 10:01]: That's possible. But it still means a substantial change in behavior for users. Previously, selecting kmod-batman-adv alone gave you batctl (similar to the userspace parts of madwifi, iirc). I'm afraid users are going to miss

Re: [OpenWrt-Devel] how do I troubleshoot Kernel Panic

2014-02-21 Thread Bastian Bittorf
* Alan.Hoo huqings...@ycmedia.cn [21.02.2014 19:23]: reboot suddenly. how do I troubleshoot ? Thank you in Advance. you can see the crash in '/sys/kernel/debug/crashlog' if your arch is supported. make sure you have debugging symbols enabled in your kernel. bye, bastian

Re: [OpenWrt-Devel] [PATCH 5/5] base-files: hotplug-call: minor cleanup: make it more visible, that braces are used for sourcing (protection against misbehaving external script, e.g. exit-call)

2014-02-24 Thread Bastian Bittorf
* Felix Fietkau n...@openwrt.org [24.11.2013 09:08]: thanks for feedback - i understand your argument and agree. beside that: anything against patch 1-5? No objections from me, except that I think 1 and 2 should be merged into one patch. ping - should i resend the (simple) patch?

[OpenWrt-Devel] TP-LINK TL-WR1043ND / switch: rtl8366rb / dead because of lightning

2014-02-25 Thread Bastian Bittorf
just for reference i want to share the relevant parts of klog from a working router TP-LINK TL-WR1043ND which was hit from lightning via DSL-line. The log shows: [0.62] Realtek RTL8366RB ethernet switch driver version 0.2.4 [0.74] rtl8366rb rtl8366rb: using GPIO pins 18 (SDA) and

Re: [OpenWrt-Devel] [PATCH] [routing] olsrd: bump version to 0.6.6.1, remove redundant patch

2014-03-15 Thread Bastian Bittorf
* Russell Senior russ...@personaltelco.net [15.03.2014 20:21]: thank you. Applied in 654615db01d29e658c42ba9f0922177849e48dce of openwrt-routing feed: https://github.com/openwrt-routing/packages/commit/654615db01d29e658c42ba9f0922177849e48dce bye, bastian

[OpenWrt-Devel] omap4 / Pandaboard / Pandaboard-ES

2014-03-22 Thread Bastian Bittorf
with the help of Kaloz i managed it to boot a little bit a Pandaboard-ES with kernel 3.13 preparations (for the record): SD-card with 10 mb FAT16 bootable partition and 512 mb EXT4 partition. put 'u-boot.img' and 'MLO' on FAT16 and untar the rootfs to EXT4. mkdir 'boot' on the EXT4-partition

Re: [OpenWrt-Devel] omap4 / Pandaboard / Pandaboard-ES / Kernel 3.13.7

2014-03-24 Thread Bastian Bittorf
* Bastian Bittorf bitt...@bluebottle.com [21.03.2014 20:13]: on the Panda-ES the boot stops here: http://intercity-vpn.de/files/openwrt/pandaboard_dmesg_booterror.txt the error is the same with 3.13.7 (was 3.13.3): http://intercity-vpn.de/files/openwrt/pandaboard_dmesg_booterror-kernel_3.13.7

<    1   2   3   4   5   6   7   8   >