Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Bastian Bittorf
* Roman Yeryomin [11.04.2014 10:45]: > I would even use it if it really works... For now, it boots fine via ethernet and/or Compact-flash but only 1 ethernet-port is working. my two ath5k-cards (R52) are not detected and it seems to be somehow like this: http://patchwork.linux-mips.org/patch/408

Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Bastian Bittorf
* Roman Yeryomin [11.04.2014 16:48]: > > at the moment i dont have time for this, but if somebody like, > > SSH-access and SSH to serial-line is possible (screen-session). > > Did you fix anything to boot it? no, i just removed the broken-flag and started the build. > Mine says (with both ext4

Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Bastian Bittorf
* Roman Yeryomin [11.04.2014 17:56]: > Tried jffs2 image - same result. > Could it be because I have 532A version? That one was with bigger RAM > (64M) with no other differences (as far as I know). > Images here: > https://box.tet.rtu.lv/public.php?service=files&t=1ed7993af28d2878e315eb415bea45c5

Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Bastian Bittorf
* Roman Yeryomin [11.04.2014 20:18]: > .and panicked about 10 minutes later: > http://pastebin.com/vuABEvPE we should made this discussion offlist via PM! this crash is enforced from a special script, read the log carefully: system_crashreboot() reason: olsrd missing so dont mind, it's work

Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Bastian Bittorf
* Roman Yeryomin [11.04.2014 20:18]: > > seems generating the rootfs is broken for you somehow. > > ptgen fault? > I have 64bit environment if that matters... please go into 'target/linux/rb532/image/gen_image.sh' and before ptgen, insert this: echo >>/tmp/BLA "OUTPUT=$OUTPUT KERNELSIZE=$KERNEL

Re: [OpenWrt-Devel] procd crash

2014-04-16 Thread Bastian Bittorf
* Nuno Gonçalves [16.04.2014 09:34]: > Crash happens always after a dvb_usb_rtl28xxu stick is inserted for > the 2nd time. please run procd in debug-mode (hitting key '4') during bootup bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.op

Re: [OpenWrt-Devel] target rb532 / routerboard / PCI issues

2014-04-16 Thread Bastian Bittorf
* Roman Yeryomin [16.04.2014 09:34]: > Also pci seems to be broken as neither miniPCI slots nor VIA ethernet > ports are not working: can you please try to fiddle in: http://patchwork.linux-mips.org/patch/4087/ bye, bastian ___ openwrt-devel mailing li

[OpenWrt-Devel] removed function jffs2_ready() in r40402

2014-04-16 Thread Bastian Bittorf
till r40402 we where probing jffs2_ready() before writing to disc (e.g. new config-files). what is the supposed way the handle that now? bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman

[OpenWrt-Devel] [PATCH] [libubox] sh/jshn.sh - json_cleanup() dont pollute env with local vars

2014-04-20 Thread Bastian Bittorf
this script is mostly sourced, so we should try to keep the pollution of the users environment as low as possible. make the var 'tmp' local Signed-off-by: Bastian Bittorf --- sh/jshn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/jshn.sh b/sh/jshn.sh ind

Re: [OpenWrt-Devel] [PATCH] ar71xx: abort building if there is failure when generating image.

2014-04-23 Thread Bastian Bittorf
* Yousong Zhou [23.04.2014 14:53]: once upon a time 36ea10375db186bf10c13d89bbdc4cfb62bf5fcc, the idea was NOT to abort because e.g. the user builts for a whole arch and only "some" images are too big. (see the warnings) bye, bastian ___ openwrt-devel

[OpenWrt-Devel] high load without reason

2014-04-23 Thread Bastian Bittorf
on some boxes we can see a high load, but i have no idea, what the cause of this: Mem: 27740K used, 1264K free, 0K shrd, 2160K buff, 9592K cached CPU: 0% usr 0% sys 0% nic 97% idle 0% io 0% irq 1% sirq Load average: 1.03 1.02 1.05 1/40 9974 PID PPID USER STAT VSZ %VSZ %CPU CO

Re: [OpenWrt-Devel] high load without reason

2014-04-24 Thread Bastian Bittorf
* Bastian Bittorf [24.04.2014 09:07]: thank you 'Luiz Angelo Daros de Luca', the reason was khubd / a USB-issue. i did nothing, just waited and it was "repaired" automatically. according to dmesg, there was something USB-related, but without user-action: http://www.in

[OpenWrt-Devel] [PATCH] [packages] iptables: Makefile: only build ip6tc, if IPv6 is enabled

2014-04-25 Thread Bastian Bittorf
without this patch the build breaks at iptables Signed-off-by: Bastian Bittorf --- package/network/utils/iptables/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/utils/iptables/Makefile b/package/network/utils/iptables/Makefile index fd84772

[OpenWrt-Devel] [PATCH] [base-files] target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC

2014-04-25 Thread Bastian Bittorf
. /etc/functions.sh root@box:~ [ -e "/lib/functions.sh" ] && . /lib/functions.sh root@box:~ . /lib/upgrade/platform.sh root@box:~ . /lib/upgrade/common.sh root@box:~ platform_check_image /tmp/myfirmware.bin ash: bad number root@box:~ echo $? 0 Signed-off-by: Bastian Bittorf --

[OpenWrt-Devel] Q: ntpd / DCF77-refclock / configure-options

2014-04-25 Thread Bastian Bittorf
i'am trying to change the ntpd-makefile via vi ../packages/net/ntpd/Makefile and adding the needing tweaks: --enable-LOCAL-CLOCK --enable-RAWDCF but no matter, when recompiling: make package/ntpd/{clean,compile} V=s i cannot see that 'config.h' has changed: /home/bastian/owrtbuild/openwrt/build_

[OpenWrt-Devel] [PATCH] dnsmasq: bump to 2.71

2014-05-20 Thread Bastian Bittorf
dnsmasq: bump to 2.71 this is a bugfix-release, see http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2014q2/008538.html Signed-off-by: Bastian Bittorf --- package/network/services/dnsmasq/Makefile |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package

Re: [OpenWrt-Devel] [PATCH] [packages] iptables: Makefile: only build ip6tc, if IPv6 is enabled

2014-05-21 Thread Bastian Bittorf
* Bastian Bittorf [25.04.2014 15:51]: > without this patch the build breaks at iptables to make it a bit cleaer: when trying to build without IPv6: # CONFIG_IPV6 is not set # CONFIG_PACKAGE_6relayd is not set # CONFIG_PACKAGE_odhcp6c is not set # CONFIG_PACKAGE_odhcpd is not

Re: [OpenWrt-Devel] ideal battery for solar nodes?

2014-05-23 Thread Bastian Bittorf
* valent.turko...@gmail.com [23.05.2014 11:22]: > So 92Ah is much too big, but is 7Ah too small? Does anybody have experience > with batteries and solar power? i have and: it depends (TM) look out for you _local_ "Solar Radiation" and Temperature. here in Germany during wintertime we have no use

[OpenWrt-Devel] SoC RT5350F based wireless socket / power plug

2014-06-01 Thread Bastian Bittorf
I found an interesting product for ~25 Euro which is build around a RT5350F but it useless / has a bad software design 8-) so it makes so sense to install OpenWrt on it: Edimax SP-1101W (EU) FCC ID: QBL-RTSPO120-0 maybe this or next week i will play with it and fill a wiki-page. bye, bastian ___

Re: [OpenWrt-Devel] SoC RT5350F based wireless socket / power plug

2014-06-02 Thread Bastian Bittorf
because i was getting a lot of private mails regarding the inside, here are some pictures. i will get better ones, if the photograph next to me is in the office again 8-) http://www.intercity-vpn.de/files/edimax-1101w/ (upload is in progress) bye, bastian _

[OpenWrt-Devel] Q: hotplug-issue / var INTERFACE

2014-06-04 Thread Bastian Bittorf
while writing the hotplug-thingy for OLSRd2, i have issues: according to http://wiki.openwrt.org/doc/techref/hotplug the var $INTERFACE is the name (given by user, e.g. 'mylan') and $DEVICE is the real physical one (e.g. 'eth0.1'). but i can see 'ifup'-events with INTERFACE = 'cfg0f4d8f'. this ma

Re: [OpenWrt-Devel] SoC RT5350F based wireless socket / power plug

2014-06-04 Thread Bastian Bittorf
i made some better pictures, but still no progess: http://intercity-vpn.de/files/edimax-1101w/DSC_3729.JPG http://intercity-vpn.de/files/edimax-1101w/DSC_3730.JPG http://intercity-vpn.de/files/edimax-1101w/DSC_3731.JPG http://intercity-vpn.de/files/edimax-1101w/DSC_3732.JPG bye, bastian _

[OpenWrt-Devel] hotplug / micro-optimization

2014-06-05 Thread Bastian Bittorf
i have a router here with 400 vlan-interfaces. i'am still not happy, that an hotplug-event triggers a lot of unneccesary action. i see at least 3 possibilities reduce the load: (beside the upcoming procd-interface job) 1) each script implements something like: #!/bin/sh /etc/init.d/$daemon enab

Re: [OpenWrt-Devel] hotplug / micro-optimization

2014-06-06 Thread Bastian Bittorf
* Weedy [06.06.2014 09:23]: > On 5 Jun 2014 04:19, "Bastian Bittorf" wrote: > > 3) > > during bootup or '/etc/init.d/$daemon enable' we build a directory for > > enabled scripts. while we are at it, we can e.g. call 'ifup'/$ACTION if the

Re: [OpenWrt-Devel] hotplug / micro-optimization

2014-06-09 Thread Bastian Bittorf
* Felix Fietkau [09.06.2014 21:23]: [...] > For this trigger we can add a time delay, which will aggregate events. > Once that is implemented correctly, 400 ifup events in rapid succession > will lead to only one series of init script calls instead of 400. > With that approach, such micro-optimi

Re: [OpenWrt-Devel] [PATCH 2/2] busybox: use ntp enabled config option

2014-06-26 Thread Bastian Bittorf
* Luka Perkov [26.06.2014 14:24]: > + [ $enabled = 0 ] && return This can also be 'true' or 'false' or 'disabled'. I see, that other packages are also doing it like this, but i remeber there was an uci-thingy() doing that, wasn't it? bye, bastian

[OpenWrt-Devel] [PATCH] base-files: load_kernelmodules()

2011-09-19 Thread Bastian Bittorf
.html From 05b8f53587baea4aa246eda6cddf5e88b9b4bf7e Mon Sep 17 00:00:00 2001 From: Bastian Bittorf Date: Mon, 19 Sep 2011 16:57:17 +0200 Subject: [PATCH 1/5] cleanup: we don't need to pass a path/filelist to a function, if it's hardcoded there anyway --- package/base-files/files/etc/i

Re: [OpenWrt-Devel] [PATCH 1/5] base-files: load_kernelmodules()

2011-09-19 Thread Bastian Bittorf
> Please post the 5 patches on the mailing-list so we can more easily > comment on > them. Comment for your proposal regarding patch1: Having the module-path configureable, is easy possible, but should ofcourse be respected in the function, which was not in the old code. But IMHO only the functio

Re: [OpenWrt-Devel] [PATCH 2/5] base-files: load_kernelmodules()

2011-09-19 Thread Bastian Bittorf
Subject: [PATCH 2/5] cleanup: use -ash builtins to iterate through list of files and insmod the content. we don't need to check, if the dir exists or is filled, if there are no files it simply does not nothing. my internal benchmarks has shown, that there is a speed-difference for old and newsty

Re: [OpenWrt-Devel] [PATCH 3/5] base-files: load_kernelmodules()

2011-09-19 Thread Bastian Bittorf
Subject: [PATCH 3/5] logging: if insmod'ing fails we push this to syslog. this is far better, than the oldstyle where we had no feedback at all --- package/base-files/files/etc/functions.sh |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/package/base-files/files/etc/fun

Re: [OpenWrt-Devel] [PATCH 4/5] base-files: load_kernelmodules()

2011-09-19 Thread Bastian Bittorf
Subject: [PATCH 4/5] cleanup: it's shorter and maybe better readable, but relies on the fact, that kernel-modules (name) begin with a letter --- package/base-files/files/etc/functions.sh |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/package/base-files/files/etc/func

Re: [OpenWrt-Devel] [PATCH 5/5] base-files: load_kernelmodules()

2011-09-19 Thread Bastian Bittorf
Subject: [PATCH 5/5] cleanup: rename the function to make it clear, that we attempt to load kernel_modules and not just another port or openwrt --- package/base-files/files/etc/functions.sh |2 +- package/base-files/files/etc/init.d/boot |2 +- 2 files changed, 2 insertions(+), 2 deleti

Re: [OpenWrt-Devel] [PATCH] configureable path

2011-09-19 Thread Bastian Bittorf
I'am unsure if this is needed, but it cold look like this... >From 386cc0ec4a81b40234a799056c7c391f3b419916 Mon Sep 17 00:00:00 2001 From: Bastian Bittorf Date: Mon, 19 Sep 2011 18:27:45 +0200 Subject: [PATCH 6/6] configureable path --- package/base-files/files/etc/functions.sh |

Re: [OpenWrt-Devel] [PATCH] base-files: load_kernelmodules()

2011-09-20 Thread Bastian Bittorf
> I would rather let it accept an argument so the day we change the > path we > don't have to change the function and just replace occurences of > the script > instead. Are you agree with patch6, which implements this? As far I can see, only one script (/etc/init.d/boot) uses this function. Wil

Re: [OpenWrt-Devel] [PATCH] base-files: load_kernelmodules()

2011-09-20 Thread Bastian Bittorf
> I think patch 6 proposes too much configurability, so let's just do > it that way > instead: > > function load_modules() { > local dir=${1:-/etc/modules.d} > ... > > } This is the same like proposed, ist'nt it? Where is the difference? bye, Bastian ___

Re: [OpenWrt-Devel] OpenWrt GPL compliance

2011-09-20 Thread Bastian Bittorf
> I don't think you understood. I know how to build *a* version of > OpenWrt. I don't know how to build *the* version that created a > snapshot. If you "simply" want to be GPL-compliant, you can build your image and _then_ make an archiv of the hole builddir. so you have all downloaded sources f

Re: [OpenWrt-Devel] OpenWrt GPL compliance

2011-09-20 Thread Bastian Bittorf
> I don't think you understood. I know how to build *a* version of > OpenWrt. I don't know how to build *the* version that created a > snapshot. If you "simply" want to be GPL-compliant, you can build your image and _then_ make an archiv of the hole builddir. so you have all downloaded sources

Re: [OpenWrt-Devel] OpenWrt GPL compliance

2011-09-20 Thread Bastian Bittorf
> This is better than nothing, but I suspect won't fit on a single > DVD :(. It is also unpleasant for the recipient, for instance they i just tried to tar.bz2 my hole openwrt-dir including staging + dl: it nearly fits on a CD...(800mb). bye Bastian. _

[OpenWrt-Devel] [PATCH] activate zram-swap if possible during early boot

2011-11-22 Thread Bastian Bittorf
6 megabytes RAM (or lower) are then useable again, which is really a pity at the moment, e.g. we cannot use 'opkg list | grep foo' at time of writing on these devices without triggering the oom-killer. Next step will be a uci-configureable disksize. Signed-

[OpenWrt-Devel] /dev/watchdog from shell script

2011-12-28 Thread Bastian Bittorf
hi devs, for having a better way not to lost a router i like to use /dev/watchdog from a shell script. the reason is this: Sometimes the oom-killer removes important tasks like ssh + httpd + routing + cron but leaves the watchdog-petting on, so the device is running, but in fact lost. A better w

Re: [OpenWrt-Devel] /dev/watchdog from shell script

2011-12-28 Thread Bastian Bittorf
> I think jow wrote something like this already, see: > http://luci.subsignal.org/trac/browser/luci/trunk/contrib/package/freifunk-watchdog > Interesting, but has the same design-issue like already mentioned: if the oom-killer is working it will likely kill the freifunk-watchdog and crond, so to

Re: [OpenWrt-Devel] /dev/watchdog from shell script

2011-12-28 Thread Bastian Bittorf
> > A better way would be IMHO to use a cron.minutely which fire's > > an ioctl to /dev/watchdog. if crond is removed, the device > should > > reboot. so i need a way to invoke an ioctl from shellscript. > > I think this doesn't work. in our special case it would work, because all "daemon-checkin

Re: [OpenWrt-Devel] /dev/watchdog from shell script

2012-01-05 Thread Bastian Bittorf
> > would'nt it be senseful to adjust "START=01" to > /etc/init.d/watchdog > > and place something like this? > > > > pid="$( pidof watchdog )" > > echo "1000" >/proc/$pid/oom_score_adj > > yeah, could do this. I did this on my boxes, but it does not help. Again a device is _pingable_, but all

Re: [OpenWrt-Devel] /dev/watchdog from shell script

2012-01-05 Thread Bastian Bittorf
> > # call this in cron.minutely > > watchdogger -d /dev/watchdog --kick > > > > # do all checks with cron-called scripts > > > > if cron fails, the watchdog will reboot the device. > > if you are more conservative, use timeout 900 > > What about just using panic_on_oom? then we are busted 8-) se

Re: [OpenWrt-Devel] /dev/watchdog from shell script

2012-01-05 Thread Bastian Bittorf
> An OOM is not considered to be a panic by default afaik. yes, it's only a seldom behaviour > Regarding your cronjob idea; won't work imo. Many (most?) watchdog > drivers do not support >= 60 second intervals. thats the smallest problem: #!/bin/sh watchdogger -d /dev/watchdog --kick sleep 30 w

Re: [OpenWrt-Devel] /dev/watchdog from shell script

2012-01-05 Thread Bastian Bittorf
> kernel.panic = 3 means that the kernel will reboot 3 seconds after > > getting a panic. OOM is not a condition to trigger a panic by > default, > unless you set panic_on_oom=1. So if you get the following > situation : > > OOM will cause a panic > panic will cause a reboot in 3 seconds. > > k

[OpenWrt-Devel] [PATCH] sysupgrade: try harder during an error

2012-02-25 Thread Bastian Bittorf
, was just a random mtd-error) Some things to discuss: * built 'verify'-option into mtd for fearful poeple * does mtd really throws an exitcode != 0 in case of an error? Signed-off-by: Bastian Bittorf From c9d4e7a8c4f6befcc13e4dc329adb7c5646fee76 Mon Sep 17 00:00:00 2001 From: Basti

Re: [OpenWrt-Devel] [PATCH] sysupgrade: try harder during an error

2012-02-25 Thread Bastian Bittorf
> cause is, but what I have seen is that the mtd utility > needs to retry sometimes, and that [e] condition > is a temporary "Out of memory" error. At least, on ar71xx. out of memory doesnt satisfy me. on our boxes we remove all (!) running programs and unload all (!) kernel-modules before invok

Re: [OpenWrt-Devel] [PATCH] sysupgrade: try harder during an error

2012-02-25 Thread Bastian Bittorf
> It also means that sysupgrade would loop forever in case of a > really > fatal issue, like when the image is too large for the given mtd > partition. maybe we should limit the loop to X times? > I'd say the mtd util should perform 3-5 consecutive tries in case > of a > block erase problem and t

Re: [OpenWrt-Devel] [PATCH] sysupgrade: try harder during an error

2012-02-25 Thread Bastian Bittorf
> That would still mean needlessly rewriting good blocks X times. > Your loop approaches the problem several layers too high. you are right. so "just" the error-handling within the sysupgrade-script. fire telnet + landev? (because reboot = dead/brick) bye, bastian ___

Re: [OpenWrt-Devel] [PATCH] sysupgrade: try harder during an error

2012-02-25 Thread Bastian Bittorf
> My machine too has significant free memory, but I suspect > the memory relates to some kernel memory issues, rather > than megabytes of free user space memory. > > Chill. And I recommend use of your shift key ;-) Thanks for your feedback. I'am fine with shift 8-) and just misunderstood you...

Re: [OpenWrt-Devel] How to check the status of wan connection

2008-08-18 Thread Bastian Bittorf
* Gary Li <[EMAIL PROTECTED]> [18.08.2008 13:30]: > > In my application, I want to check the status of WAN connection. I think you want to know, if there is a working internet- connectivity, if so - check the freifunk-firmware at /usr/sbin/cron.minutely : http://download-master.berlin.freifunk.

Re: [OpenWrt-Devel] 2.6.25.7 and b43 driver oops

2008-10-24 Thread Bastian Bittorf
> The difference is that I use the kernel 2.6.25.15 seems to be fixed with r13025, and works in 'sta' and 'ap'-mode, but not in 'adhoc' - needs some testing. Bastian Bittorf signature.asc Description: Digital signature _

Re: [OpenWrt-Devel] Atheros ar9102/ar9103 madwifi or ath9k support

2008-12-19 Thread Bastian Bittorf
* Stephen Gutknecht (hilltx) [19.12.2008 16:45]: > r...@openwrt:/# lspci -G > Trying method 1..using /sys/bus/pci...OK > Decided to use linux-sysfs don't be shy: cat /proc/pci ? bye, Bastian signature.asc Description: Digital signature ___ openwr

Re: [OpenWrt-Devel] HOME set in /etc/profile

2009-01-17 Thread Bastian Bittorf
* Stefan Monnier [17.01.2009 05:00]: > When is the following line from /etc/profile > > export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6) > > ever useful? if $USER != 'root' ? or $USER is unset - is this possible at this stage? bye, Bastian signature.asc Description:

Re: [OpenWrt-Devel] [PATCH] start mpd normally

2009-01-17 Thread Bastian Bittorf
* Stefan Monnier [17.01.2009 05:45]: > +if [ -x /bin/nice ]; then maybe this is a better abstraction: which nice >/dev/null && { ... } > +# This has real-time constraints, so let's at least tell the OS > +# that this should have higher priority to avoid s

Re: [OpenWrt-Devel] rebooting from a kernel on external storage

2009-01-21 Thread Bastian Bittorf
* Brian J. Murrell [21.01.2009 15:30]: > restore" process? This is _exactly_ the kind of rigmarole I am talking KISS! Just write an script which tar->gzip->uuencode's your prefered config-files into nvram-partition (if your hardware has one), which is (if existent) restored at firstboot (just

Re: [OpenWrt-Devel] rebooting from a kernel on external storage

2009-01-22 Thread Bastian Bittorf
* Brian J. Murrell [21.01.2009 16:15]: > On Wed, 2009-01-21 at 15:41 +0100, Bastian Bittorf wrote: > > > > KISS! > > Heh. KISS would have been leaving the config in the NVRAM as it was > intended. :-) only very few computersystems have NVRAM - thats why UCI was inven

Re: [OpenWrt-Devel] tar -xjvf kamikaze_8.09_rc2_source.tar.bz2 failed

2009-01-30 Thread Bastian Bittorf
* Amin Abdul [30.01.2009 16:45]: > > It seems that "tar -xjvf kamikaze_8.09_rc2_source.tar.bz2" command is failing > with the following error message: > > bzip2: (stdin) is not a bzip2 file. maybe its just an gzipped tar, try: tar -xvzf kamikaze_8.09_rc2_sou

Re: [OpenWrt-Devel] [PATCH] madwifi: do not force softled default value

2009-04-08 Thread Bastian Bittorf
* Frédéric Moulins [08.04.2009 12:45]: > Forcing softled parameter can be harmful with some cards. > > - config_get_bool softled "$device" softled 1 > + config_get_bool softled "$device" softled which cards make problems and: wouldn't it be better to add an source-comment

Re: [OpenWrt-Devel] [PATCH] [hostap-driver] Major enhancement to hostap.sh script

2009-05-21 Thread Bastian Bittorf
* Vasilis Tsiligiannis [21.05.2009 00:00]: > + for dev in $(awk '{ print $1 }' /proc/net/hostap/"$device"/wds); do > + [ -f "/var/run/wifi-${dev}.pid" ] && > + kill "$(cat "/var/run/wifi-${dev}.pid")" > + ifconfig "$dev" down > + unbridg

Re: [OpenWrt-Devel] [PATCH] [hostap-driver] Major enhancement to?hostap.sh script

2009-05-21 Thread Bastian Bittorf
* Vasilis Tsiligiannis [21.05.2009 12:45]: > Στις Thursday 21 May 2009 11:33:27 ο/η Bastian Bittorf έγραψε: > > please use only AWK, if really needed. > > Thanks for your suggestion to improve hostap.sh ! I've dumped awk and use > read > to get the wds lines. please

Re: [OpenWrt-Devel] Getting brcm47xx run on WAP54g (2 MB flash)

2009-06-14 Thread Bastian Bittorf
AFAIK the blocksize is fixed/hardlocked for this flashchip to 64k. Ever played with 'printk-patch' or similar things the get a smaller kernel? bye, Bastian Bittorf ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Bastian Bittorf
... Next steps, before delivering a patch, is to test some 'complex' setups and cleanup the code and also translate 'route' to 'ip route' and 'arp' to 'ip neigh'. bye, Bastian Bittorf this is the bootlog of on r16356 without &#x

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
anymore - and you can do much more things with 'ip', even some things you can only do with 'ip' and ofcourse using 'ip' is like writing poetry... [1] bye, Bastian Bittorf [1] some examples poems: ip route list exact 10.63.0.0/24 table dyngw ip add address 10.63.12.

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
* Vasilis Tsiligiannis [18.06.2009 21:15]: > > Try removing 'route' too (-ifconfig-route+ip). 'route' can be replaced by > 'ip' > also, if this function is implemented in busybox. -ifconfig -route -arp +ip bye, Bastian Bittorf ___

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
/router/arp') bye, Bastian Bittorf ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
, but are only sourced if needed... bye, Bastian Bittorf ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
|arp to to wrapper at boottime, to avoid such things? other ideas? bye, Bastian Bittorf ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
e attached 8-) and send me the log in /www/ifconfigwrapper_log.txt bye, Bastian Bittorf ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
with the sanitizer: http://www.datenkiste.org/cgi-bin/gitweb.cgi?p=fff/.git;a=blob_plain;f=etc/kalua/sanitizer;hb=75e2a2ce08980833e14591f0086c8438a3e8367b bye, Bastian Bittorf ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [RFC] Distcc support

2009-10-18 Thread Bastian Bittorf
> Luigi Mantellini wrote: > > toolchain... it seems to work fine but I interrupted the compilation > > (today is sunday... and I need to see also the sun). The 'sun' is always under the desk. (in fact it's a full featured 2 x ultra-sparcII with maximum RAM) If you really want to see it, just pla

[OpenWrt-Devel] WRT-54-G / bcm47xx / kernel2.6 / wifi_b43 / debugFS

2009-11-15 Thread Bastian Bittorf
hi folks, today i successfully tried a snapshot (r18405) and was very lucky to have an working opensource broadcom driver, which uses minstrel rate selection algo, is stable and fast. (only ibss/adhoc-mode tested) sadly it is not possible to use debugfs for mac80211, this dir is empty: /sys/kerne

Re: [OpenWrt-Devel] WRT-54-G / bcm47xx / kernel2.6 / wifi_b43 / debugFS

2009-11-15 Thread Bastian Bittorf
* Felix Fietkau [15.11.2009 23:40]: > > > > today i successfully tried a snapshot (r18405) > > and was very lucky to have an working opensource > > broadcom driver, which uses minstrel rate selection > > algo, is stable and fast. (only ibss/adhoc-mode tested) the great news are: olsrd + massive

Re: [OpenWrt-Devel] [PATCH] New Packages libusb-1.0 and madwimax

2009-11-25 Thread Bastian Bittorf
> +case "$ACTION" in > +add) > +[ -n ${PRODUCT} ] && > +[ -n ${INTERFACE} ] && please use quotes. > +[ "${PRODUCT}" = "4e8/6761/1" ] && > +[ "${INTERFACE}" = "255/0/0" ] && { > +/usr/sbin/madwimax -qof

[OpenWrt-Devel] brcm63xx / which image for Speedport_W500V = Targa WR 500?

2009-11-25 Thread Bastian Bittorf
ATM is a very cheap device available, named in Subject for 8 Euro each. The wikipage explains some details: http://oldwiki.openwrt.org/OpenWrtDocs(2f)Hardware(2f)T(2d)Com(2f)Speedport_W500V.html but not, which image to flash. I have compiled Kamikaze_trunk for brcm63xx-arch / kernel 2.6 / b43-wif

[OpenWrt-Devel] support for signed opkg-upgrade / check signed files

2009-11-26 Thread Bastian Bittorf
not openwrt-specfic, but: is there a simple (small_footprint) solution for checking a digital signature without installing openssl? opkg would use GnuPG + openssl, right? bye, Bastian signature.asc Description: Digital signature ___ openwrt-devel mail

Re: [OpenWrt-Devel] wifi not working on WRT54G (v1)

2009-12-02 Thread Bastian Bittorf
* Eric Cooper [02.12.2009 23:50]: kick the oldstyle wlc and use trunk/b43. post your /etc/config/wireless + network have you unbridged lan + wifi? bye, Bastian signature.asc Description: Digital signature ___ openwrt-devel mailing list openwrt-devel

Re: [OpenWrt-Devel] wifi not working on WRT54G (v1)

2009-12-03 Thread Bastian Bittorf
* Eric Cooper [03.12.2009 19:20]: > > config 'wifi-iface' name it: config 'wifi-iface' 'myAP' > LAN configuration > config interface lan > option type bridge comment this to throw away the bridge > option ifname "eth0.0" > option protostatic > option ipa

Re: [OpenWrt-Devel] [PATCH] firewall/iptables

2009-12-08 Thread Bastian Bittorf
* Ugur DOGRU [08.12.2009 13:40]: > > 1/ hush needs "eval" to substitute string. > 2/ hush doesn't handle line concatenation : "\" > 3/ hush crashes if two scripts include each other. (uci_firewall.sh and > /etc/hotplug.d/iface/20-firewall includes each other) Thanks for your work - is there any

Re: [OpenWrt-Devel] OpenWRT uml snapshot branch

2009-12-10 Thread Bastian Bittorf
* Benjamin Henrion [10.12.2009 14:30]: > > It is a pain to have to setup its own webserver if you want to install > packages for openwrt-uml. Just run 'httpd -h /mydir' and place your packages there. It's not openWRT's fault, that your windows does not have a simple httpd. bye, Bastian. signa

Re: [OpenWrt-Devel] [PATCH] Multiple IPv6-Addresses per Interface

2009-12-18 Thread Bastian Bittorf
* Alina Friedrichsen [17.12.2009 18:00]: > > Is there a reverse foreach? I need it for adding the IPv6 addresses in > the right order. The main ip must be added at last. hi alina - at the moment i use this for reversing: output_list | sed '1!G;h;$!d' | actions maybe this is also a workaround f

Re: [OpenWrt-Devel] [patch] dropbear: use -q where applicable

2010-02-02 Thread Bastian Bittorf
* Matthias Buecher / Germany [01.02.2010 18:20]: > > # check if client connection > - ps | grep -e "^[ ]*${pid} " | grep "${PROG}" >/dev/null > + ps | grep -e "^[ ]*${pid} " | grep -q -e "${PROG}" > if [ $? -eq 0 ] >then I prop

Re: [OpenWrt-Devel] [patch] dropbear: use -q where applicable

2010-02-02 Thread Bastian Bittorf
* Matthias Buecher / Germany [02.02.2010 18:00]: > > Thanks Bastian, for your input. Much cleaner approach. > > What about the follwing (works fine on my router): > > grep -q -e "${PROG}" "/proc/${pid}/cmdline" && { > append ignore "${pid}" > break > } >

Re: [OpenWrt-Devel] [PATCH] packages/opkg: provide conffiles list upon sysupgrade

2010-02-02 Thread Bastian Bittorf
* Alexey I. Froloff [03.02.2010 00:00]: > +#!/bin/sh > + > +add_opkg_conffiles() { > + local file="$1" > + find /usr/lib/opkg/info -name '*.conffiles' | xargs -r cat >> "$file" > + return 0 > +} seems complicated to me, why not: cat /usr/lib/opkg/info/*.conffiles >>"$file" bye, Ba

Re: [OpenWrt-Devel] [PATCH] packages/opkg: provide conffiles list upon sysupgrade

2010-02-03 Thread Bastian Bittorf
* Alexey I. Froloff [03.02.2010 09:10]: > On Wed, Feb 03, 2010 at 08:59:04AM +0100, Bastian Bittorf wrote: > > > + find /usr/lib/opkg/info -name '*.conffiles' | xargs -r cat >> "$file" > > seems complicated to me, why not: > > cat /usr/lib/

Re: [OpenWrt-Devel] [patch] dropbear: use -q where applicable

2010-02-03 Thread Bastian Bittorf
* Matthias Buecher / Germany [03.02.2010 15:30]: > > Note, that it is a small "e" not a big "E", so not a regular expression. sorry, you are right - didn't know this till now. anyway...commit this 8-))) sorry for the noise... bye, Bastian signature.asc Description: Digital signature _

Re: [OpenWrt-Devel] compression mode of jffs2

2010-02-08 Thread Bastian Bittorf
* Bas Mevissen [08.02.2010 11:20]: > > My 2 cents: compare the boot time between the jffs2 with and without the > patch. Can you also give an example in the actual flash space saved by > the patch? boottime should'nt be affected, because bootpartition is squashfs, only the writeable partition is

Re: [OpenWrt-Devel] 2mb flash not OpenWRT-Target?

2010-02-18 Thread Bastian Bittorf
> Linux can hardly fit in a 2MB flash device, once you have opened the Yes, but this text was written in the old times (2004?) Linux is more and more modularized, so it is comfortably possible to run it (customized) with 4MB RAM and 512k of FLASH. bye, Bastian signature.asc Description: Digita

Re: [OpenWrt-Devel] 2mb flash not OpenWRT-Target?

2010-02-19 Thread Bastian Bittorf
> So in summary, it is IMO safe to assume that a device like a router with > only 2Mbytes of non-volatile storage (flash) does not run Linux. please read the thread again - you are wrong. signature.asc Description: Digital signature ___ openwrt-devel m

Re: [OpenWrt-Devel] [PATCH] Provide a helper function that gives a list of all configs matching a network interface

2010-03-17 Thread Bastian Bittorf
* Janusz Krzysztofik [17.03.2010 15:00]: > + return ret; return $ret works better i think 8-) bye, Bastian signature.asc Description: Digital signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mai

[OpenWrt-Devel] Adding new platform / "ARM926EJ-Sid(wb) rev 4 (v5EJl)" / cheap wifi VoIP-Phone

2010-04-07 Thread Bastian Bittorf
today a started to explore crosscompiling a new/old wifi phone: sorry, this is in german: http://www.mikrocontroller.net/articles/PHILIPS_VP5500_VoIP_Telefon to make a long story short: 13 Euro for a good SIP-phone. (color-display, camera, 64mb RAM, 64mb flash, linux, wifi is capable of doing adh

Re: [OpenWrt-Devel] [PATCH] package/dnsmasq: allow /etc/config/dhcp to specify --address arguments

2010-04-08 Thread Bastian Bittorf
* Jeremy Kerr [08.04.2010 04:40]: > Add a config list to the 'config dnsmasq' section to specify fixed DNS > addresses. > > For example: > > config dnsmasq: > [snip] > list address '/example.com/192.168.0.1' > > will result in the argument '-A /example.com/192.168.0.1' to the dnsm

Re: [OpenWrt-Devel] Adding new platform / "ARM926EJ-Sid(wb) rev 4 (v5EJl)" / cheap wifi VoIP-Phone

2010-04-08 Thread Bastian Bittorf
* j...@phrozen.org [07.04.2010 19:20]: Seems to me (not sure) that these devices share the same platform: Philips VP5500/6500 Netgear WNR3500 Chumby One > >it would be nice to compile some things, namely a static olsrd, > >for this gadget using openWRT's build environment. How to begin? How f

Re: [OpenWrt-Devel] [PATCH] Upgrade gpsd and add init scripts

2010-04-08 Thread Bastian Bittorf
* Roberto Riggio [08.04.2010 19:00]: some suggestions: > + [ $enabled == 0 ] && exit 1 [ "$enabled" != "1" ] && exit > + [ -f "$PIDF" ] && { > + kill -9 $(cat $PIDF) > + rm $PIDF > + } [ -f "$PIDF" ] && { read PID <"$PIDF" # nonforki

Re: [OpenWrt-Devel] New platform support - OpenRISC Alekto

2010-04-15 Thread Bastian Bittorf
* qecko [15.04.2010 12:20]: > Of course it's possible to run OpenWRT from onboard flash but there > are several reasons why i'm not doing so. > First, you don't have to care about the size of the image - onboard > flash is only about 4MB, my currently used microSD card is 2GB. ok, but the initia

Re: [OpenWrt-Devel] [PATCH] Disable IPv6 autoconfiguration

2010-04-28 Thread Bastian Bittorf
* Jo-Philipp Wich [28.04.2010 16:50]: > > A default firewall solution is needed before it can be made the default. IMHO: apply alina's patches and set net.ipv6.conf.all.forwarding=1 by default - hey, we are in trunk and wan't to play with the devices and learn something. make a 'fat' warning in

Re: [OpenWrt-Devel] [backfire] WRT54G flash space problem

2010-04-30 Thread Bastian Bittorf
* Matthias Buecher / Germany [30.04.2010 22:30]: > Can OpenVPN be compiled to a smaller size? nossl/nolzo - phew! bye, Bastian signature.asc Description: Digital signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.

Re: [OpenWrt-Devel] Limit to 4 SSID's / think twice

2010-05-04 Thread Bastian Bittorf
* Chris Martin [04.05.2010 05:00]: > >> > >>> What is the reason for this limit? Is it because of a hardware issue, or > >>> certain chip sets don't support more, or > >>> just from an earlier time? This is just an "more makes no sense" behaviour. Here is an interesting hack to have 53000 SSID's

Re: [OpenWrt-Devel] [backfire] WRT54G flash space problem

2010-05-04 Thread Bastian Bittorf
* Matthias Buecher / Germany [04.05.2010 16:30]: > Can I save space in the flash mem when I add all needed packages > directly to the image? yes. > Or is the JFFS2 compression as good as the compression of the read-only > squashfs? no. bye, Bastian. signature.asc Description: Digital signatur

<    2   3   4   5   6   7   8   >