**** BEGIN LOGGING AT Sat Dec 17 02:59:57 2011 Dec 17 04:26:02 build #117 of at91 is complete: Failure [failed compile_4] Build details are at http://buildbot.openwrt.org:8010/builders/at91/builds/117 Dec 17 04:41:43 build #115 of ubicom32 is complete: Failure [failed compile_3] Build details are at http://buildbot.openwrt.org:8010/builders/ubicom32/builds/115 Dec 17 05:02:06 hmmm.... do I need to do anything to create a vlan interface? I have: http://fpaste.org/HptL/ but this seems to be incorrect. Dec 17 05:06:52 philipp64|laptop: nope.. but you need to config the switch accordingly Dec 17 05:07:31 switch? no, I just want to have a trunked interface (not an access untagged interface) Dec 17 05:07:48 my box doesn't have 'switch' hardware. Dec 17 05:09:51 philipp64|laptop: http://fpaste.org/GaJX/ Dec 17 05:09:58 thats what works for me. Dec 17 05:11:12 the t marks the tagged ports.. i guess if you have a real iface which has no switch what you tried should work. Dec 17 05:11:21 if the hw can handle the bigger mtu Dec 17 05:12:15 what kind of hw do you have on that and the other end? Dec 17 05:13:14 it's an Alix 6F2 with via_rhine ethernet ports. it's talking to a Cisco SFP300 switch. Dec 17 05:13:56 i see Dec 17 05:14:37 can you exchange both devices by a linux notebook with some intel nic and try it 'dry' ? Dec 17 05:14:55 maybe you need to set some ios tweak to make it speak vlan to linux. Dec 17 05:15:48 ! Little note about VLAN 1. In Cisco systems it is the default VLAN Dec 17 05:15:48 so you MUST start using vlans from 2. Dec 17 05:15:55 http://www.candelatech.com/~greear/vlan/cisco_howto.html *g* Dec 17 05:16:43 I have another Alix box running Astlinux right now with vlans and it works fine. Dec 17 05:17:22 well.. just try some vlan above 1 and see if that works Dec 17 05:25:27 seems the /lib/network/config.sh script is missing "ip link set vlanN name ethX.N" ... Dec 17 05:26:12 uhm. worked for me.. weird Dec 17 05:26:53 philipp64|laptop: using the vlan notation in ifname is enough Dec 17 05:27:07 check add_vlan() Dec 17 05:27:09 prepare_interface() will call vconfig then to spawn the vlan Dec 17 05:27:48 the reason why you iface isn't brought up is the missing ip address Dec 17 05:27:57 I think the problem is that we're not doing "vconfig set_name_type DEV_PLUS_VID" at the top. Dec 17 05:28:00 not the vlan setup Dec 17 05:28:14 you're barking up the wrong tree Dec 17 05:28:29 or that the busybox default is braindead. Dec 17 05:29:20 I tried using vconfig to manually create the interface, and "vconfig add eth0 1" results in "vlan1@eth0" as the name according to "ip link show". Dec 17 05:29:35 again, the issue is not ip link or vconfig Dec 17 05:29:43 your config is simply incomplete Dec 17 05:29:49 add an ip address and it will work ;) Dec 17 05:32:36 jow_laptop: the line got trimmed, but it was there... Dec 17 05:33:00 we definitely need: vconfig set_name_type DEV_PLUS_VID Dec 17 05:33:02 oh and another problem Dec 17 05:33:12 software vlans and bridges do not play well together Dec 17 05:33:22 stuff eth0 into the bridge and create a br-lan.1 Dec 17 05:33:37 or simply disable the bridge Dec 17 05:34:17 the vconfig name type call happens in /etc/init.d/boot Dec 17 05:34:40 jow_laptop: eh. sure? i use that Dec 17 05:35:22 hmm. i have a serial console on the airrouter now Dec 17 05:35:30 roh: it works with switch hardware, but not with software vlans Dec 17 05:35:36 ah Dec 17 05:35:43 at least not here, on any unit I tried Dec 17 05:36:41 r29289 boots, r29557 doesn't Dec 17 05:37:28 this is why I hate busybox... http://fpaste.org/MHOr/ Dec 17 05:37:51 typing "vconfig set_name_type" with no argument is *supposed* to give the current naming mode. Dec 17 05:38:07 even the usage help says so. Dec 17 05:38:13 *g* .. well.. feel free to fix it Dec 17 05:38:19 philipp64|laptop: please, you're not the first one who tries vlans on openwrt, we already thought about setting the right naming schema Dec 17 05:38:41 as I said, it happens in /etc/init.d/boot and it is very unlikely to be your problem Dec 17 05:38:55 so I can't have a trunked interface in a bridge with wifi? Dec 17 05:39:02 apparently not Dec 17 05:39:05 and have the wifi be untrunked? Dec 17 05:39:15 hmmm.... that's weird. works fine on Astlinux. Dec 17 05:39:23 then compare the sysctls Dec 17 05:40:33 http://fpaste.org/rbbE/ Dec 17 05:41:42 kernel version? Dec 17 05:42:07 [ 0.290000] VFS: Cannot open root device "(null)" or unknown-block(0,0) Dec 17 05:42:10 [ 0.300000] Please append a correct "root=" boot option; here are the available partitions: Dec 17 05:42:13 [ 0.310000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) Dec 17 05:43:17 2.6.27.7 Dec 17 05:43:43 well, try with 32+ Dec 17 05:43:46 BusyBox v1.12.4 Dec 17 05:45:19 did you ensure that on openwrt the eth0 itself is not member of another bridge? This will break vlans as well Dec 17 05:45:40 r29293 nano factory image works too Dec 17 05:46:48 it's not. Dec 17 05:48:01 http://marc.info/?l=linux-netdev&m=132007004619404&w=2 Dec 17 05:48:03 lol, the current nano image works too, so it's something about the airrouter image Dec 17 05:48:21 russell--: juhosg redid large chunks of the model detection lately Dec 17 05:50:04 [ 0.000000] MIPS: no machine found for id 'UBNT-AR', supported machines: [...] Dec 17 05:51:08 the working version says "[ 0.080000] MIPS: machine is Ubiquiti Nanostation M Dec 17 05:51:11 russell--: did you compile yourself? Dec 17 05:51:12 " Dec 17 05:51:14 yeah Dec 17 05:51:21 just with svn up && make ? Dec 17 05:51:40 the git equivalents, more or less Dec 17 05:51:46 that will not copy updated mach files into the linux build tree Dec 17 05:51:53 ah Dec 17 05:52:00 run make target/linux/clean world and test that image Dec 17 05:52:03 I bet it'll work Dec 17 05:52:08 okay, thanks! Dec 17 05:52:09 jow_laptop: how does busybox retain the state from one call to "vconfig set_name_type ..." to the next "vconfig add eth0 1" ??? Dec 17 05:52:34 philipp64|laptop: its kept in the kernel vlan code, that command is basically just a sysctl wrapper Dec 17 05:53:28 the only explanation of what I saw was that the "vconfig set_name_type" had been skipped in /etc/init.d/boot the first time, and that the interfaces were being named wrong. Dec 17 05:53:53 no, I believe you're hitting actual kernel bugs or bridge code limitations Dec 17 05:53:57 because I did a "vconfig set_name_type DEV_PLUS_VID_NO_PAD" manually and rebooted and everything came up as it should. Dec 17 05:54:11 weird persistence. Dec 17 05:54:38 I assume correlation Dec 17 05:55:46 well, I could burn a new image and reboot, but without sysupgrade for the x86 pulling CF's from the alix is a real pain. you have to unscrew the board from the base... Dec 17 05:55:50 grrrrr... Dec 17 05:56:47 well, I'm going to hook it up to my switch and see if it works in the wild... Dec 17 06:09:45 jow_laptop: well, bridging wlan0 and eth0.1 seems to work fine.... Dec 17 06:11:06 btw, when I ssh in, I'm seeing: Dec 17 06:11:09 -ash: tty: not found Dec 17 06:11:10 ash: /dev/console: unknown operand Dec 17 06:11:15 is this a known bug? Dec 17 06:11:57 I'm using dropbear, but couldn't figure out how it creates tty sessions... Dec 17 06:13:22 so I didn't get very far debugging it. Dec 17 06:39:11 jow_laptop++ Dec 17 06:45:19 https://plus.google.com/u/0/114541658134976985870/posts/XA8rywK24gt Dec 17 06:45:46 just to document the serial pinout Dec 17 07:06:47 build #80 of mpc52xx is complete: Failure [failed compile_10] Build details are at http://buildbot.openwrt.org:8010/builders/mpc52xx/builds/80 Dec 17 12:18:18 jow_laptop: reading and removing the uci-defaults scripts in post-inst is just so that you don't need to reboot right? Dec 17 12:18:55 any files in ucidefaults will get read and removed automatically every boot without me adding anything extra to the package makefiles, beyond copying the file to uci-defaults in the install step right? Dec 17 12:58:58 jow_laptop: ok, I've got my postinst and defaults scripts to create a ucitrack entry, Dec 17 12:59:24 but save and apply on the luci page now saves and applys into the config file, but the service isn't restarted. Dec 17 12:59:36 I've double checked the syntax and naming. Dec 17 12:59:42 there's nothing in logread -f Dec 17 12:59:53 (except my own service logs, showing that it doesn't get restarted) Dec 17 13:04:35 Hi. I need to call a new shell code from net/mac80211/status.c Dec 17 13:04:59 this shell code do some operations on router Dec 17 13:15:14 wow, that sounds like a *really* ugly hack Dec 17 13:37:26 nbd: sorry for late reply, but your ath9k patch seems to fix my oops Dec 17 13:37:30 thanks again Dec 17 13:43:26 jow_laptop: are you also going to factor the tx power offset into the "iwinfo wlanX info" command ? Dec 17 14:33:42 nbd * r29559 /trunk/package/hostapd/patches/760-fix_wds_sta_check.patch: hostapd: add missing check for wds stations Dec 17 14:33:47 nbd * r29560 /trunk/package/mac80211/patches/565-ath9k_fix_lockup.patch: ath9k: fix a locking issue in the tx path Dec 17 15:21:29 karlp: see if luci-reload name works Dec 17 15:21:42 stintel: will do Dec 17 15:25:02 jow_laptop: I'll give that a go monday morning. Dec 17 15:25:14 karlp: ok Dec 17 15:25:31 that should either work, or tell me more about why it couldn't? Dec 17 15:25:40 it should work Dec 17 15:26:06 when I removed my on_commit hook, luci behaved much better, (I didn't get any raw html back) but the service wasn't restarted. Dec 17 15:26:16 anyway, monday. I'm about out of here for today Dec 17 15:27:06 if you get raw html back then something is wrong Dec 17 15:27:32 I get that back if I use on_commit... os.excute Dec 17 15:27:52 yeah, you need to move stdout to /dev/null Dec 17 15:28:02 oh, duh. Dec 17 15:28:07 I should have known that. Dec 17 15:28:13 printing text before the content type. Dec 17 15:28:18 luci-reload will call /etc/init.d/foo reload Dec 17 15:28:31 if reload isn't defined, will that call restart? Dec 17 15:28:41 afair yes, need to check Dec 17 15:28:47 the default restart just calls stop, then start, Dec 17 15:28:57 nope Dec 17 15:29:11 oh, then that's probably all it is. Dec 17 15:29:11 reload will just return 1 Dec 17 15:29:31 hm Dec 17 15:29:41 so I can either make my app properly understand "reload", or add a reload step to my init.d that just calls restart. Dec 17 15:30:03 yeah Dec 17 15:30:29 ok, well that seems like a pretty 100% explanation. Dec 17 15:30:35 I'll just add a reload step for now, Dec 17 15:30:47 reloading is on the list of things to do, but restarting is good enough for now for me. Dec 17 15:32:10 ah no actually it does [ "$action" = "reload" ] && action='eval reload "$@" || restart "$@" && :' Dec 17 15:32:17 (rc.common) Dec 17 15:38:41 umm, my brane is full, will that do restart if there is no reload method, but reload and only reload if reload is defined? Dec 17 15:38:59 well, things to try on monday anyway. Dec 17 15:42:14 yes, it will fallback to restart if reload fails Dec 17 15:42:31 reload is implemented as "return 1" by default, so always fails Dec 17 16:05:13 jow_laptop: how would I prevent a make install procedure of a package from resulting in the files being put into the ipkg-install dir Dec 17 16:06:04 the new ISC DHCPd relies on a make process for a bunch of export libs which then performs a make install to a dir within the source project folder, but using the OpenWRT environment results in everything ending up inside the ipkg-install dir Dec 17 16:08:55 build #118 of s3c24xx is complete: Failure [failed compile_10] Build details are at http://buildbot.openwrt.org:8010/builders/s3c24xx/builds/118 Dec 17 16:27:04 ok, you override DESTDIR Dec 17 16:27:07 lovely Dec 17 16:41:17 build #95 of avr32 is complete: Failure [failed compile_4] Build details are at http://buildbot.openwrt.org:8010/builders/avr32/builds/95 Dec 17 16:49:13 I need to do some commands on the router such as uci set .. and I wrote it into .sh file Dec 17 16:49:30 and I need to call this file from c code Dec 17 16:49:47 mbaba, bad idea Dec 17 16:50:14 what can i do Dec 17 16:50:18 write a patch for the application you want to make the calls from Dec 17 16:50:22 in C Dec 17 16:51:44 the problem is that I need to call a function in nl80211.c but I can't prepare the its parameter Dec 17 16:53:25 mbaba, ok explain what your trying to do Dec 17 16:53:27 so I think I may write a shell code to do the corresponding function using the uci command Dec 17 16:53:32 ok Dec 17 16:56:18 I need to call __nl80211_set_channel which responsible of changing the channel(I think) from another function but I can't get the wdev and rdev to send them to this function Dec 17 16:57:54 mbaba: no, the problem is that apparently the idea what you want to do is flawed and you need to rethink your approach Dec 17 16:58:25 what do you think Dec 17 16:59:12 calling user space code from the kernel like that is wrong on many levels Dec 17 16:59:44 especially exec'ing it to a shell Dec 17 17:01:03 so what I can do instead of that Dec 17 17:01:45 first explain what you want to do without talking about any implementation details Dec 17 17:02:31 I need to change the channel of the wlan according to some condition Dec 17 17:02:39 whats the condition Dec 17 17:03:26 according to if a packet failed to send and dropped Dec 17 17:04:04 what mode are you operating in? Dec 17 17:04:27 infrastructure Dec 17 17:04:42 my router is as access point Dec 17 17:04:54 ok, so all channel changes need to come from hostapd (on the ap side) or wpa_supplicant (on the client side) Dec 17 17:05:30 so you should ignore the kernel side for now (aside from ensuring that you can read the relevant counters from user space) Dec 17 17:05:39 and focus on integrating your changes into hostapd Dec 17 17:06:34 with mac80211, it's not possible to have the wireless stack change the channel properly without going through hostapd Dec 17 17:07:04 you mean hostapd package Dec 17 17:07:08 or what Dec 17 17:07:25 you cannot run an AP interface without having a running hostapd instance Dec 17 17:07:32 be interesting to know at what state you detect a packet failed to send / drop then attempt a channel change Dec 17 17:07:46 yeah, i still doubt that this is useful in any way Dec 17 17:08:30 since failed packets can have so many different causes Dec 17 17:09:08 nbd, like no neighbors / association Dec 17 17:09:35 sounds like he might be trying to automate channel hunting Dec 17 17:09:53 hostapd already has some code for that Dec 17 17:10:02 yupp Dec 17 17:10:04 it just need to be changed to run some tests while the interface is up Dec 17 17:10:24 I found a counter at net/mac80211/status.c which called dot11failedcount Dec 17 17:10:51 mbaba: why do you think it's a good idea to use that as a trigger for channel changes? Dec 17 17:13:37 yes I need to make an automatic channel switiching Dec 17 17:13:37 called dynamic channel allocation Dec 17 17:13:51 "why" is not a yes or no question Dec 17 17:13:57 AKA autochannel Dec 17 17:14:16 i'd like to know why you consider failed transmission useful for dynamic channel selection Dec 17 17:14:24 because i think that as an indicator it's worthless Dec 17 17:19:47 nbd, which gets me to wonder, if an interface is in monitor mode utlizing packet injection and doesnt have an ssid what would be the smartest way to scan for other nodes and set the chanell to match Dec 17 17:21:06 what kind of nodes? Dec 17 17:22:18 nbd, mesh based our config is http://pastebin.com/5CeeKU64 Dec 17 17:22:40 notice theres no adhoc/ahdemo Dec 17 17:22:54 scan for APs using an additional client mode interface Dec 17 17:23:31 you could change hostapd to inject a custom IE Dec 17 17:23:36 nbd, ok... now how? Dec 17 17:24:30 iw phy0 interface add sta0 type managed; ifconfig sta0 hw ether up; iw sta0 scan Dec 17 17:25:04 a scan is fast enough that clients will typically not lose their connection to the AP Dec 17 17:25:16 if they're transferring data, they'll get some slight packet loss Dec 17 17:25:26 but TCP easily recovers from that anyway Dec 17 17:29:36 interesting Dec 17 17:31:28 then parse the scan results for unique mac, set channel Dec 17 17:33:12 nbd, so could i simply add a phy0 mode managed with bssid to the default config Dec 17 17:33:54 no, because right now there's no way to specify an interface that should not attempt to connect to anything Dec 17 17:35:35 and i cant add a bssid to the monitor interface Dec 17 17:35:45 a monitor interface can't scan Dec 17 17:35:55 so i would still need other interfaces to broadcast something Dec 17 17:36:05 yes Dec 17 17:36:10 unless you come up with something else Dec 17 17:36:29 but i'd suggest doing something simple first Dec 17 17:36:32 can a monmitor interface broadcast a bssid ? Dec 17 17:36:39 creating an algorithm to allow large networks to converge is not exactly trivial Dec 17 17:37:06 especially if at some point it gets split into two big clusters Dec 17 17:37:13 that issue is with a channel change from the command center, sometimes its not fully propogated and we orphan a radio or two Dec 17 17:38:00 ah, ok. so if there's some central control, then you can get away with a more simple form of discovery Dec 17 17:38:06 so i was trying to asses how to get them to scan, find neighbor, change channel, rejoin Dec 17 17:38:14 without rolling a truck :) Dec 17 17:38:25 does every node bring up an AP mode interface? Dec 17 17:38:39 yes though not always the same ssid Dec 17 17:38:49 ok, then use a client mode interface for scanning Dec 17 17:38:59 modify hostapd to inject an IE on the AP side Dec 17 17:39:01 for probe responses Dec 17 17:39:28 so that you can write a program for the client side that can find this IE in the scan results and decide which AP is the right one Dec 17 17:39:43 the nl80211 scan API gives you access to IEs Dec 17 17:40:03 ok ill dig Dec 17 17:40:09 thanks for your brain Dec 17 18:36:49 Does anyone here know what package do I need to enable if I want to compile a package that requires /dev/ptmx (pseudo-terminal master multiplexer)? Dec 17 18:55:19 juhosg * r29561 /trunk/target/linux/ar71xx/image/Makefile: ar71xx: use 64kraw template on more TP-Link boards **** ENDING LOGGING AT Sun Dec 18 02:59:57 2011