**** BEGIN LOGGING AT Tue Nov 26 02:59:58 2013 Nov 26 03:20:59 apocn: write a init script to setup your stuff Nov 26 03:22:03 the first line being if [ -e /etc/configured ]; then exit; fi Nov 26 03:22:13 ok Nov 26 03:22:21 and the last line of it being "touch /etc/configured" Nov 26 03:23:08 the reset button should format jffs Nov 26 03:23:10 so yeah Nov 26 03:23:35 it will only be run at jffs creation Nov 26 03:24:34 ok, and what would be the difference of this way vs /sbin/firstboot ? Nov 26 03:24:55 I don't know if /sbin/firstboot is a shell script off hand Nov 26 03:25:16 nor do I know if it allows custom scripts to be inserted Nov 26 03:25:47 but the point is you need to config the routers programatically when they are "clean" Nov 26 03:25:53 so use what ever works Nov 26 03:26:04 ok, thanks a lot SmugLeaf Nov 26 03:26:35 I wrote a build system that just creates images Nov 26 03:26:44 but I have less then 50 devices Nov 26 03:27:00 with you having like 400, you need something else Nov 26 03:27:08 and your config changes sound easy Nov 26 03:27:41 yes, I could probably do the same as you every time a device goes out of stock... Nov 26 03:28:11 if your sending them out in groups of like 10 or less it's not so bad Nov 26 03:28:15 but this is just for a PoC, maybe letter I can work on something more sophisticated Nov 26 03:28:20 if you have to do them pretty much ALL at once Nov 26 03:28:21 right Nov 26 03:28:23 good ira Nov 26 03:28:24 ehhhhh Nov 26 03:28:26 good idea* Nov 26 03:29:15 I have a CSV with crap like default IP and hostname and stuff Nov 26 03:29:35 the script just reads the list and populates /files Nov 26 03:29:53 then asks for a router to be ready for tftp Nov 26 03:30:21 cool! Nov 26 03:34:35 SmugLeaf, do you have a way to protect your firmware from being "uncompressed"? Nov 26 03:34:49 I own all the routers Nov 26 03:35:02 but I don't see why you would care Nov 26 03:35:10 ok, so you're the only one doing the upgrade Nov 26 03:35:22 if your using something you can flash openwrt on, you can get a serial console on it Nov 26 03:35:29 and you can dump the firmware Nov 26 03:36:05 I try to protect this as much as I can. Cause I have a software I developed shipped in this firmware Nov 26 03:36:29 you can't stop someone from dumping the flash Nov 26 03:37:02 your only hope is encrypting the binaries Nov 26 03:37:39 yeah, and at some point they need to be un-encrypted in order to run... Nov 26 03:37:46 so I can only "harden" the more I can Nov 26 03:37:58 thats normally done in memory Nov 26 03:38:10 but I've used utilities to fully extract the firmware (.bin) and see the actual files Nov 26 03:38:19 yeah Nov 26 03:38:22 you can't stop that Nov 26 03:39:05 thinking to encrypt after building, and unencrypt before running sysupgrade Nov 26 03:39:43 still not 100% safe cause the cert will be inside the device, but at least a little harder to get... Nov 26 03:40:38 gotta go, thanks a lot SmugLeaf. later Nov 26 03:50:41 build #417 of rb532 is complete: Failure [failed shell_12] Build details are at http://buildbot.openwrt.org:8010/builders/rb532/builds/417 Nov 26 03:53:50 build #417 of ppc44x is complete: Failure [failed shell_12] Build details are at http://buildbot.openwrt.org:8010/builders/ppc44x/builds/417 Nov 26 04:50:14 build #454 of orion is complete: Failure [failed compile_8] Build details are at http://buildbot.openwrt.org:8010/builders/orion/builds/454 Nov 26 04:53:25 build #386 of sibyte is complete: Failure [failed shell_12] Build details are at http://buildbot.openwrt.org:8010/builders/sibyte/builds/386 Nov 26 06:15:25 wow, court upheld the patent on arcfour Nov 26 07:17:06 build #470 of at91 is complete: Failure [failed shell_19] Build details are at http://buildbot.openwrt.org:8010/builders/at91/builds/470 Nov 26 07:19:46 build #396 of avr32 is complete: Failure [failed compile_5] Build details are at http://buildbot.openwrt.org:8010/builders/avr32/builds/396 Nov 26 07:52:07 blogic r38916 trunk/package/system/ubox/files/log.init * ubox: the validation code has problems with the "(" char. use string for now Nov 26 07:58:30 build #334 of iop32x is complete: Failure [failed shell_12] Build details are at http://buildbot.openwrt.org:8010/builders/iop32x/builds/334 Nov 26 09:30:45 blogic: logging still doesn't work, the init script works now but it still doesn't log to a file, but when i kill logrotate and start it from cmdline with the exacte same options "/sbin/logread -f -F /var/log/messages -p /var/run/logread..pid -S 16000 Nov 26 09:30:50 it logs Nov 26 09:35:59 on extroot ? Nov 26 09:42:53 build #16 of mxs is complete: Failure [failed compile_5] Build details are at http://buildbot.openwrt.org:8010/builders/mxs/builds/16 Nov 26 09:53:56 blogic r38917 trunk/target/linux/ ramips/dts/ASL26555-16M.dts ramips/dts/W502U.dts ramips/dts/DIR-300-B1.dts ramips/dts/DIR-600-B1.dts * ralink: dts fixes Nov 26 10:19:29 blogic yes Nov 26 10:19:49 on extroot Nov 26 11:27:31 nbd r38918 trunk/package/kernel/mac80211/patches/ 310-ap_scan.patch 523-mac80211_configure_antenna_gain.patch 300-pending_work.patch 520-mac80211_cur_txpower.patch * mac80211: merge another round of upstream fixes Nov 26 11:40:10 build #443 of ramips is complete: Failure [failed compile_8] Build details are at http://buildbot.openwrt.org:8010/builders/ramips/builds/443 Nov 26 12:08:44 build #17 of mvebu is complete: Failure [failed compile_4] Build details are at http://buildbot.openwrt.org:8010/builders/mvebu/builds/17 Nov 26 12:51:35 jow r38919 packages/lang/luasocket/Makefile * luasocket: ship missing headers.lua Nov 26 13:12:57 kaloz r38920 packages/net/coova-chilli/ Config.in Makefile * [coova-chilli]: add compile options against various ssl libraries Nov 26 14:52:22 Hi, thinking about migrating my build-setup from Ubuntu to Mac OS X. Anyone with some insights if it's worth the effort? nbd maybe? Nov 26 14:52:47 my main dev machine is a mac, running mac os x Nov 26 14:53:01 it works, although some packages are occasionally broken on it Nov 26 14:55:11 I have both, and, for non owrt related stuff, I have a couple of projects that target linux and mac for final builds, mostly because my wife has a mac on her desk, so we want our astronomy stuff on both Nov 26 14:55:49 but I still build most of my owrt stuff on the debian box, mostly because it's an 8 core workhorse that can grind thru things 4x the speed of my mac, which is an older dual core iMac Nov 26 14:56:27 I've got a displayport cable running from the Debian box, to the iMac, so that I can switch to target display mode, and end up with my debian desktop on the 27 inch display at times Nov 26 14:58:33 thanks for input, before I start I'd just wanna know if it's a 1hr or 10+ hrs effort Nov 26 14:58:56 when I started on the mac, it was completely brand new to me Nov 26 14:59:21 I had a full owrt build going on it, by the next day, but, had to learn all about macports etc along the way Nov 26 14:59:28 if you already know your way around the mac, it's not a big job Nov 26 14:59:50 if you dont, then, the time spent will be more about learning mac idiosyncracies than owrt idiosyncracies Nov 26 15:02:52 groz, interesting info. we used to have similar setups with displayport but apple removed it on the new imac's (i think) Nov 26 15:03:51 I'm a regular on Ports, mac etc. Now having ubuntu via virtual machines so it's terribly slow so setting up the dev tools on mac sounds like a great thing Nov 26 15:03:56 nope, displayport is a subset of thunderbolt Nov 26 15:04:01 ah, good! Nov 26 15:04:14 even with a brand new one, you can plug a mini displayport cable into one of the thunderbolt ports Nov 26 15:04:22 My target platform is btw, AM335x ARM, so need to setup the netboot etc as well. Nov 26 15:04:26 groz: .o/ Nov 26 15:04:27 :) Nov 26 15:04:28 but you lose the pcie stuff on that port then Nov 26 15:04:46 Would be nice to see build-bots for mac in the future to ensure nothing breaks :-) Nov 26 15:04:59 i have an x86 box as my main network router here, and have netboot stuff all on that Nov 26 15:05:07 it's just a vanilla backfire setup Nov 26 15:05:35 and doesn't get many updates, except when I want to make sure the whole house is without internet for a while to piss off other folks Nov 26 15:05:39 then I'll do a router upgrade Nov 26 15:05:40 lol Nov 26 15:11:50 heh Nov 26 15:57:11 leave Nov 26 17:12:49 luka: ping? Nov 26 17:20:15 It works but there are a few issues? Nov 26 17:20:50 the unit is blinking and rootfs is awfully small (8.6M) Nov 26 17:21:11 tmpfs is 128Mbyte Nov 26 17:31:42 tmpfs is ~50% of the RAM by default, and is completely unrelated to rootfs Nov 26 17:32:19 which is size of flash - size of kernel partition - size of rom partition Nov 26 17:32:52 I just mentioned tmpfs for the sake if it, didn't know what the set size would be Nov 26 17:33:09 that is unrelated to the kirkwood target... Nov 26 17:33:17 so I guess the device has 16MB flash and your openwrt image is a little under 8MB Nov 26 17:33:24 no, it has 256mb flash Nov 26 17:33:37 ..or 128 Nov 26 17:33:37 diizzy: isn't it 512mb? Nov 26 17:33:42 uhm... Nov 26 17:33:51 my bad, 512 :) Nov 26 17:34:36 does ubifs allocate empty space too? Nov 26 17:35:22 as the jffs2 image is about half the size of ubifs Nov 26 17:36:06 sorry for the late reply, had to work late yesterday :( Nov 26 17:37:40 no problem Nov 26 17:37:53 well ubifs works diffrently then jffs2 Nov 26 17:38:09 i'm not sure how that reflects to the blob files Nov 26 17:38:21 groz / nbd, I think I'm up for it, I see there are a few different wiki pages on the openwrt site listing the install procedures. Any thought on which one to use? Nov 26 17:39:07 okay, so if I add a few packages which adds up to roughly ~12 jffs it should expand and flash as normal? Nov 26 17:39:29 or does the rootfs have some kind of sizelimitation? Nov 26 17:40:52 dav01: I started here http://wiki.openwrt.org/doc/howto/buildroot.exigence.macosx Nov 26 17:41:42 and here http://wiki.openwrt.org/easy.build.macosx Nov 26 17:42:06 read the second link first Nov 26 17:43:28 there are links to forum thread there too, read those as well before you get started Nov 26 17:43:38 after you have read all of those, should be strait forward Nov 26 17:43:58 thanks groz Nov 26 17:44:12 the bit that held me back longest, was getting the right gcc version going Nov 26 17:44:21 and that's mentioned in the forum thread linked from those pages Nov 26 17:45:29 I'm gonna see if I can get a proper netboot to work as well Nov 26 17:45:49 To bad those FTDI adapters (and their drivers are so unstable) Nov 26 17:46:19 for serial adapters ? Nov 26 17:47:40 diizzy: if you are using my patch you will use almost full flash for rootfs Nov 26 17:48:13 diizzy: also there are several compression options you might use in order to further reduce the size of the files on your system Nov 26 17:48:28 dav01: are you complaining about ftdi stability for serial adapters? For consoles ? Nov 26 17:48:45 kaloz r38921 trunk/package/kernel/mac80211/Makefile * [mac80211]: wl12xx could need the wl128x firmware files, too Nov 26 17:48:54 if so, I've got a handfull of these Nov 26 17:49:21 http://www.ebay.com/itm/280735751467 Nov 26 17:49:35 they work well, but I have had a couple die Nov 26 17:49:44 at that price, easier to just order spares Nov 26 17:49:50 than try troubleshoot em Nov 26 17:53:20 luka: I dont think compression is necessary Nov 26 17:53:27 but its blinking Nov 26 17:53:41 like when is panics during boot Nov 26 18:00:06 groz: they work well, but unplugging while they're running gets a mac to hard-crash :-/ Nov 26 18:00:21 I think the cypress ones or Silabs are more stable Nov 26 18:01:33 anyway, I'll see if I can get some simple setup with netboot not infecting my Mac with too many system wide changes. Optimally I'd like a portable .img file with all in. Then some process to manage and run the netboot stuff that would have all it's dependencies compiled and ready in the image Nov 26 18:02:08 I do it all with dnsmasq Nov 26 18:02:09 diizzy: can you try changing the values in /etc/config/system (i think that is where the leds are configured) Nov 26 18:02:30 just a few entries in dnsmasq configuration, it handles dhcp with proper parameters, and the tftp Nov 26 18:02:46 then set up the netboot directory with various images Nov 26 18:03:21 been doing it that way for years, and the pxe boot menu delivers a selection of install options Nov 26 18:03:44 then change one line in dnsmasq configuration, it delivers a standard bootp style image for other targets Nov 26 18:14:02 luka: I'll have a look Nov 26 18:14:44 Uhm... no led config at all Nov 26 18:16:20 thanks groz Nov 26 18:16:57 diizzy: please show me which patches you have on top of owrt Nov 26 18:17:12 diizzy: do not include the one for bootloader Nov 26 18:20:53 Just the ones you sent Nov 26 18:22:07 In worst case I'll just put some black tape over the led ;) Nov 26 18:26:50 I think its safe to commit the patches btw Nov 26 18:28:38 diizzy: thanks for testing Nov 26 18:29:20 diizzy: i might wait with uboot patches since blogic and jow_laptop told me that it would be good to get second loader working Nov 26 18:31:11 diizzy: take a look at this target/linux/kirkwood/base-files/etc/uci-defaults/01_leds Nov 26 18:34:22 ahh... Nov 26 18:34:53 diizzy: also, before the orange led was used for eth0 Nov 26 18:35:04 but upstream is using it for health Nov 26 18:35:21 sorry, i meant green Nov 26 18:36:00 no i meant orange :D Nov 26 18:36:05 switching windows too fast Nov 26 18:36:09 hehe Nov 26 18:36:19 Well, this is not the nic light Nov 26 18:36:37 well upstream only defines two leds Nov 26 18:36:54 will be back later Nov 26 18:37:00 sure, thanks Nov 26 18:43:05 hi Nov 26 18:43:23 I created a new target with LINUX_VERSION = 3.3 Nov 26 18:43:33 but this patch failed: target/linux/generic/patches-3.3/212-x86_reloc_portability.patch Nov 26 18:43:52 v0n: use 3.3.8, not 3.3 Nov 26 18:44:13 but generally don't use 3.3.x at all Nov 26 18:44:18 for new targets Nov 26 18:44:31 kaloz r38922 trunk/toolchain/ gcc/patches/4.8-linaro/020-fix_pr58670.patch gcc/patches/4.8-linaro/200-musl.patch gcc/common.mk gcc/patches/4.8-linaro/870-ppc_no_crtsavres.patch * [toolchain/gcc]: upgrade Linaro GCC 4.8 to 4.8-2013.11 Nov 26 18:44:54 KanjiMonster: that's because I need to build an image with DaVinci board, they are still on 3.3 :/ Nov 26 18:45:02 KanjiMonster: thanks I try with 3.3.8 Nov 26 18:47:50 kaloz r38923 trunk/package/boot/uboot-omap/Makefile * [uboot-omap]: use plain image names inside the target directories Nov 26 18:48:46 kaloz r38924 trunk/package/boot/uboot-omap/Makefile * [uboot-omap]: hide package, it's needed all the time Nov 26 18:58:41 is that possible to fix a patch with quilt? Nov 26 18:59:07 i.e. my patch doesn't apply (I think because of some generic patch applied first) Nov 26 21:20:36 blogic: pastebin.com/4xL4BjUp Nov 26 21:20:42 no luck Nov 26 22:16:23 what's the best way to deal with the &.rej files? Nov 26 22:16:28 *.rej Nov 26 22:33:50 luka: uhm... Nov 26 22:34:06 I've run into a size issue Nov 26 22:34:45 v0n: I usually just look at them as hint on how to merge stuff manually Nov 26 22:34:59 Bytes transferred = 32901120 (1f60800 hex) Nov 26 22:35:08 size > volume size! Aborting! Nov 26 22:43:31 diizzy: might be uboot limitation, i never transfered more then 32mb Nov 26 22:44:30 okay, so I can I use like nandwrite or something? Nov 26 22:44:35 sysupgrade? Nov 26 22:44:54 err Nov 26 22:45:03 so I can use something like... Nov 26 22:45:07 use nandwrite, ubi is not supported in sysupgrade yet Nov 26 22:46:18 flash_eraseall /dev/mtd2 Nov 26 22:46:26 nandwrite -p /dev/mtd2 /tmp/image.ubifs? Nov 26 22:47:09 <_trine> luka, this is my dockstar booting http://pastebin.com/wRyww4f1 Nov 26 22:47:12 you will have to google, didnt use that for a while Nov 26 22:47:28 well, how do I know which mtd it is? Nov 26 22:47:36 <_trine> luka, and this is dmesg http://pastebin.com/UCmLvmEv Nov 26 22:47:55 diizzy: it is /dev/mtd2 Nov 26 22:47:58 mtdparts says that root is 2 Nov 26 22:48:14 * diizzy gives it a try Nov 26 22:48:28 tripolar: i dont know why you are seeing that Nov 26 22:49:57 build error perhaps? Nov 26 22:51:39 luka: fwiw, http://u-boot.10912.n7.nabble.com/Is-there-file-size-limiation-of-tftp-td131283.html Nov 26 22:53:24 iirc there was a discussion (and a patch) on uboot mailing list about how to flash large images to nand flash Nov 26 22:55:53 <_trine> this dockstar code is in a mess and getting worse by the day Nov 26 22:57:17 _trine: have you tried a fresh compile? Nov 26 22:57:33 <_trine> this is a fresh compile Nov 26 22:57:39 ok :/ Nov 26 22:58:07 Seems odd that you're seeing it but I dont Nov 26 22:58:09 <_trine> I wouldn't mind so much but it's not April 1st Nov 26 22:59:07 <_trine> diizzy, what are you not seeing Nov 26 22:59:15 your errors Nov 26 22:59:19 <_trine> does the code for your dockstar boot ok Nov 26 22:59:27 <_trine> do you have a dockstar Nov 26 22:59:28 I'm on the iconnect Nov 26 22:59:30 and yes Nov 26 22:59:38 it boots fine Nov 26 22:59:58 <_trine> my has booted and is running but why do I see all those errors Nov 26 23:00:16 <_trine> maybe i am including stuff you are not Nov 26 23:01:50 I have a default image Nov 26 23:01:55 and one very large Nov 26 23:02:11 <_trine> https://forum.openwrt.org/viewtopic.php?pid=218497#p218497 Nov 26 23:02:17 <_trine> I had to do some of this Nov 26 23:03:04 shouldn't affect what you're seeing Nov 26 23:03:19 that should be fixed in trunk Nov 26 23:04:59 <_trine> diizzy, do you suggest a new Check Out Nov 26 23:05:13 <_trine> and not alter anything other than the platform Nov 26 23:05:17 yes, and that you clean your buildroot Nov 26 23:05:31 <_trine> tomorrows job now Nov 26 23:08:15 <_trine> where is kmod-video-gspca-zc3xx in make menuconfig Nov 26 23:11:03 dunno Nov 26 23:24:45 luka: nandwrite crashes :( Nov 26 23:26:57 Hmm... Nov 26 23:31:16 I think this might work.. Nov 27 00:13:34 hmm looks like DFS still has some issue, when I run wifi it hangs after: wlan1: DFS-CAC-START freq=5680 chan=136 sec_chan=-1 Nov 27 00:24:18 luka: as long as you keep it below 32Mbyte its all fine in u-boot Nov 27 00:25:26 downside is that you have no way of upgrading Nov 27 00:37:41 build #444 of ramips is complete: Success [build successful] Build details are at http://buildbot.openwrt.org:8010/builders/ramips/builds/444 Nov 27 00:44:16 looks like sysntpd no longer starts in BB r38924 Nov 27 00:44:33 root@wrt0:~# ubus call service set "{ "name": "sysntpd", "script": "\/etc\/init.d\/sysntpd", "instances": { "instance1": { "command": [ "\/usr\/sbin\/ntpd", "-n", "-l", "-p" ], "respawn": [ ] } }, "triggers": [ [ "config.change", [ "if", Nov 27 00:44:37 [ "eq", "package", "system" ], [ "run_script", "\/etc\/init.d\/sysntpd", "reload" ] ] ] ], "validate": [ { "package": "system", "type": "timeserver", "data": { "server": "list(host)", "enable_server": "bool" } } ] }" Nov 27 00:44:41 -ash: syntax error: unexpected "(" Nov 27 00:46:04 stintel: works in trunk at least Nov 27 00:46:35 diizzy: no it doesn't I just built trunk (BB) r38924 Nov 27 00:46:41 and there is nothing newer Nov 27 00:47:06 trunk as in bleeding edge, not BB Nov 27 00:47:16 ehr, trunk = BB ? Nov 27 00:47:24 BARRIER BREAKER (Bleeding Edge, r38924) Nov 27 00:47:27 Ahh, sorry my bad Nov 27 00:47:30 its late Nov 27 00:47:33 ntpd starts here Nov 27 00:47:34 go to bed ;) Nov 27 00:47:55 well I compared /etc/config/ntpd with /rom/etc/sysconfig/ntpd , syntax looks the same Nov 27 00:48:10 ehr Nov 27 00:48:15 s/ntpd/system/ Nov 27 00:48:48 the init script doesn't give an error but no ntpd running Nov 27 00:49:05 I started it manually for now Nov 27 00:49:18 as I need to go to bed too :) Nov 27 00:49:22 I guess related to https://dev.openwrt.org/changeset/38916 ? Nov 27 00:49:35 that's strange, ntp is starting up as it should here Nov 27 00:49:47 checkout is a bout a day old or so Nov 27 00:50:05 ha that commit KanjiMonster mentioned is < 24h old :) Nov 27 00:50:08 might be it, yes Nov 27 00:51:20 KanjiMonster: hmm, if I revert that in /etc/init.d/log and try restarting it gives an error too Nov 27 00:51:30 might not be related after all, just coincidence it errors on ( Nov 27 00:52:35 the commit works around an error with '(', so the cause might be the same Nov 27 00:52:48 it doesn't fix the actual problem Nov 27 00:55:11 KanjiMonster: in /etc/init.d/dropbear the same syntax seems to work fine though Nov 27 00:55:19 there is : 'Port:list(port):22' Nov 27 00:55:58 single ', double "? Nov 27 00:55:59 does the one in sysntpd have a default value? Nov 27 01:16:41 lol: http://www.indiegogo.com/projects/orp1-an-open-router-project Nov 27 02:36:07 build #430 of uml is complete: Failure [failed compile_5] Build details are at http://buildbot.openwrt.org:8010/builders/uml/builds/430 Nov 27 02:38:49 build #418 of rb532 is complete: Failure [failed shell_12] Build details are at http://buildbot.openwrt.org:8010/builders/rb532/builds/418 Nov 27 02:41:20 build #418 of ppc44x is complete: Failure [failed shell_12] Build details are at http://buildbot.openwrt.org:8010/builders/ppc44x/builds/418 **** ENDING LOGGING AT Wed Nov 27 03:00:00 2013