2010-08-24 00:11 [commit] Andres Calderon: USB D routing started http://qi-hw.com/p/xue/bbf8fde 2010-08-24 01:48 unclouded: hi, did you actually get nightsky working? 2010-08-24 01:49 because 1) it won't build, but i fixed it with -rpath-link and 2) it runs, but hangs and does nothing 2010-08-24 01:50 kyak: yes, I installed the package to my NN and it started 2010-08-24 01:50 hm, that's strange 2010-08-24 01:50 does it write anything to stdout before hanging? 2010-08-24 01:50 do you have the latest everthing? 2010-08-24 01:50 no, it writes nothing 2010-08-24 01:50 afaik 2010-08-24 01:51 when i strace it, the last line is getuid() = 0 and then nothing 2010-08-24 01:51 it's looking for the user's home directory 2010-08-24 01:51 yeah, i know 2010-08-24 01:51 the next call should get getpwuid 2010-08-24 01:52 i tried to change it (i.e. hardcode the path to yml file), but it still hangs 2010-08-24 01:52 in a weirdest way 2010-08-24 01:52 there are two ioctl's, and after that - nothing 2010-08-24 01:52 scratches head 2010-08-24 01:54 is path_to_data set to some really long path or is it the default? 2010-08-24 01:56 also, I thought the Makefile used rpath-link already? 2010-08-24 01:59 kyak, could it be RAM?  how much free RAM have you got? 2010-08-24 02:01 for the RAM, i have swap enabled, so should be no problem 2010-08-24 02:02 i have warnings about rpath-link not enabled that prevent from building.. so i had to add it manually to TARGET_LDFLAGS in openwrt's Makefile 2010-08-24 02:02 then it builds.. i rememeber you use openwrt SDK instead of toolchain, could it be the difference between us? 2010-08-24 02:03 i tried to printf path_to_data, but it won't output (i.e. it doesn't even call "write") 2010-08-24 02:03 it hangs somewhere before 2010-08-24 02:04 and the strangest thing is, when i uncomment this line where is checks for home dir, strace output is finished after getuid() 2010-08-24 02:06 unfortunately, i can't check anything right now.. would be good to check this path_to_data before call to getuid() 2010-08-24 02:06 which is the SDK and which is the toolchain?  Just now I did git pull on openwrt-xburst  and did package/nightsky/{clean,install} V=99, reinstalled in on the NN and that works 2010-08-24 02:06 than it's toolchain that you have 2010-08-24 02:07 i me, too 2010-08-24 02:07 we should be on the same level then 2010-08-24 02:07 with the same hardware :) 2010-08-24 02:07 weird! 2010-08-24 02:07 exactly.  we shouldn't see any differences! :( 2010-08-24 02:07 could it being a glibc/uClibc thing? 2010-08-24 02:08 did you do make package/symlinks? 2010-08-24 02:08 i think recently they switched to uClibc-0.9.32 2010-08-24 02:08 do you have it in your build_dir? 2010-08-24 02:09 I don't remember.  probably not, just scripts/feeds update -a && scripts/feeds install -a 2010-08-24 02:09 let me check 2010-08-24 02:09 ah, this is the same 2010-08-24 02:10 no, I've got: build_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1 2010-08-24 02:10 now this is the difference! 2010-08-24 02:10 toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.32 2010-08-24 02:10 i've got 2010-08-24 02:11 maybe you used to use 0.9.31 and there are still bits of it around? 2010-08-24 02:12 mm, i rememeber is cleaned up 2010-08-24 02:12 but a good idea, i will cleanup 2010-08-24 02:12 i suggest you clean up, too :) 2010-08-24 02:12 didn't I read somewhere there's a separate toolchain clean? 2010-08-24 02:13 there's a make clean 2010-08-24 02:13 also make toolchain/clean etc 2010-08-24 02:13 because i noticed that make clean doesn't clean everything 2010-08-24 02:14 it will take me a while to rebuild.  old hardware 2010-08-24 02:15 me too 2010-08-24 02:15 also, my CPU heats up to 92 C :) 2010-08-24 02:16 wow.  what type of CPU?  Intel? 2010-08-24 02:16 there's a make distclean too apparently 2010-08-24 02:16 I'm reading here: https://forum.openwrt.org/viewtopic.php?id=9180 2010-08-24 02:17 no-no 2010-08-24 02:17 it says that "make clean" does not clean the toolchain.  is uClibc considered part of the toolchain? 2010-08-24 02:17 distclean is bad :) 2010-08-24 02:17 it removes your downloaded packages 2010-08-24 02:17 sure?  that page says "cleans up everything expect $(TOPDIR)/.config and $(TOPDIR)/dl/" 2010-08-24 02:18 i did: make clean, make target/clean, make toolchain/clean, make tools/clean 2010-08-24 02:18 maybe it's out of date 2010-08-24 02:18 ok, I'll do the same 2010-08-24 02:18 Pentium(R) Dual-Core  CPU      E6500  @ 2.93GHz 2010-08-24 02:18 my CPU 2010-08-24 02:18 now to update and rebuild 2010-08-24 02:19 not that old then!  I'm building on Mobile AMD Athlon(tm) 64 Processor 3200 2010-08-24 02:19 $ du -sh build_dir/ 2010-08-24 02:19 6,8G    build_dir/ 2010-08-24 02:20 strange.. i think i'll just rm al manually 2010-08-24 02:20 what is the machine you have there? a laptop? 2010-08-24 02:20 yes 2010-08-24 02:21 old good laptop is living his last days somewhere under your bad :) 2010-08-24 02:21 *bed 2010-08-24 02:22 so i'm wondering.. maybe you're right and we need to make distclean 2010-08-24 02:22 i don't like these leftovers in build_dir 2010-08-24 02:22 it's pretty good as an Internet gateway.  doesn't use much electricity and runs OpenVZ and apache2 and so on just fine 2010-08-24 02:22 i expected them to disappear 2010-08-24 02:23 not so hot for building but better than my actual laptop, which is a Pentium4M - even slower 2010-08-24 02:23 is build_dir there when you first "git clone"? 2010-08-24 02:23 no 2010-08-24 02:23 should not be 2010-08-24 02:24 must be safe to remove then: it's all been generated 2010-08-24 02:24 so i just made distclean 2010-08-24 02:24 be warned, dl/ dir disappeared 2010-08-24 02:25 i'll re-download, that would compensate for my CPU "speed" and we should finish together :) 2010-08-24 02:25 which command are you using to "make".  can I avoid compiling the kernel again? 2010-08-24 02:25 brb, sorry. 2010-08-24 02:26 no worries 2010-08-24 02:35 i just "make".. or what do you mean? 2010-08-24 02:35 also, distclean removed the .config.. i'll take the one from data/qi_lb60/conf/config 2010-08-24 02:40 ok, i used the default config, only chose "nightsky", now making 2010-08-24 02:42 that doc must be old then sorry.  it says it -won't- remove .config 2010-08-24 02:43 also, I could just give you an .ipk to see if that works on your NN.  then we'd know for sure that it's something in the build system 2010-08-24 02:45 that's a good idea 2010-08-24 02:45 http://amadeus.dist.ro/tmp/nightsky_20100823-1_xburst.ipk 2010-08-24 02:56 does that work on your NN? 2010-08-24 03:01 unclouded: won't be able to try it for at least another 8 hours 2010-08-24 03:02 the build or the .ipk? 2010-08-24 03:02 the .ipk 2010-08-24 03:02 building now, but will also try later at home 2010-08-24 03:02 ok, no problem.  I'll leave the file up there then 2010-08-24 03:03 ok, thanks! 2010-08-24 05:17 [commit] Werner Almesberger: Update IRQ_RF after reworking both boards. IRQ_RF was erroneously connected http://qi-hw.com/p/ben-wpan/738618a 2010-08-24 05:17 [commit] Werner Almesberger: Finished and tested TX/RX. (LQ doesn't work yet, the rest does.) http://qi-hw.com/p/ben-wpan/73043a5 2010-08-24 05:22 kyak, I rebuilt my OpenWRT from clean with "make tools/install toolchain/install package/nightsky/install" and it built ok.  hope yours rebuilds ok from clean 2010-08-24 05:25 tslib.cpp:42:19: error: tslib.h: No such file or directory 2010-08-24 05:25 stupid qt4 won't compile again 2010-08-24 05:28 Clock.h:10:21: error: SDL/SDL.h: No such file or directory 2010-08-24 05:28 this is nightsky 2010-08-24 05:28 actually, something is wrong with your toolchain 2010-08-24 05:28 it should NOT compile nightsky 2010-08-24 05:29 because it depends on sdl, and by make package/nightsky/install you don't  build dependcies 2010-08-24 05:30 at what point exactly was your libsdl and sdl-image build exactly after cleanup? 2010-08-24 05:34 true.  I didn't rm build_dir as you did 2010-08-24 05:34 so libsdl must still have been lurking there 2010-08-24 05:35 indeed 2010-08-24 05:36 now i'll just wait for someone to fix qt4 2010-08-24 05:36 (as usual) 2010-08-24 05:36 damn i get so pissed every time is is broken AGAIN upstream 2010-08-24 05:37 how are they testing?? 2010-08-24 05:44 can you build libsdl and libsdl-image without building qt4? 2010-08-24 05:53 i'd like to avoid it 2010-08-24 05:54 it means manually building dependencies for libsdl and libsdl-image and dependencies of depenedcies.. and so on] 2010-08-24 05:55 not fun 2010-08-24 05:55 shame the build system can't do it auto.  the data is there 2010-08-24 06:10 once a package has been ported to openwrt-packages, what has to happen before it's available for installation via opkg? 2010-08-24 06:16 i think it has to be included in the next build :) 2010-08-24 06:17 i mean, next release of image for Ben 2010-08-24 06:20 [commit] Werner Almesberger: Setting the transmit power was broken. (And LQ works, by the way.) http://qi-hw.com/p/ben-wpan/2514804 2010-08-24 10:14 kyak: when you say qt4 is broken 'upstream' - where do you mean? 2010-08-24 10:15 in openwrt? 2010-08-24 10:15 I think mirko is quite active on all things qt4 2010-08-24 10:15 does he know what is broken? what is broken? :-) 2010-08-24 11:03 wpwrak: hey 2010-08-24 11:03 you planning use CPLD to interface SPI? 2010-08-24 11:08 hmm i have XC2C64A board from digilentic if you need try a core or something 2010-08-24 11:08 i need SPI plus some glue logic too 2010-08-24 11:17 [commit] Andres Calderon: USB A Phy has been routed http://qi-hw.com/p/xue/3eea348 2010-08-24 11:17 [commit] Andres Calderon: minor routing progress http://qi-hw.com/p/xue/c3ab9ef 2010-08-24 11:29 kristianpaul: i was inquiring about how hard/easy it would be to make an SPI to SPI bridge for the software-defined GPS wolfgang is considering. it would basically be a chip that outputs an SPI-like stream of quadrature samples at a few Mbps. 2010-08-24 11:30 kristianpaul: since the ingenic cpu can only be an spi master, not an spi slave, we would need some glue logic with a (very) little buffer to translate between the two. 2010-08-24 11:31 kristianpaul: my question is just if the simplest and cheapest CPLD is already good enough or this or if we need something more powerful. i'd leave the implementation to the experts ;-) 2010-08-24 11:32 :) 2010-08-24 11:33 (well, if sebastien one day writes a free synthesis tool for fgpas and such, i might be interested to play with programmable logic. verilog looks kinda nice :) 2010-08-24 11:34 yeah is nice :) 2010-08-24 11:34 i'm learning using the MM SoC 2010-08-24 11:35 nice way to get started ;-) 2010-08-24 11:35 i can acept Xilinx for now is the only non-free stuff i use in electronics 2010-08-24 11:36 btw are your aware of GPS signaniling and processign ? 2010-08-24 11:36 i'm just learning too amazinf topic btw 2010-08-24 11:36 amazing* 2010-08-24 11:36 ah i founded losts of free sofware projects involved around, great ! 2010-08-24 11:37 i have one non-free thing crawling about on my systems, and that's the windows-only (and non-wine) 3d scanning application. that's already more than enough for my taste ... 2010-08-24 11:37 i have my heekscad is okay for my 3d needs 2010-08-24 11:38 (gps) i don't really know about. wolfgang just asked me a few questions about which rf frontends would generally fit, assuming you want to do as much as possible in software. there's someone else working on a dsp-based gps reciver we could then adapt. (or that's the theory) 2010-08-24 11:39 i see 2010-08-24 11:39 alas, heekscad doesn't speak the proprietary protocol my cnc mill uses when scanning :-( and reverse-engineering it isn't quite easy either. it's already hard to snoop it in a useful way :-( 2010-08-24 11:40 :( 2010-08-24 11:40 3d is hobbiest so i dont hurge for high advanced features 2010-08-24 11:40 well, one day i'll try ... but for now, i'll just live with having an enemy (i.e., a windows box) in my camp 2010-08-24 11:41 very high-end 3D gets expensive anyway ;-) 2010-08-24 11:41 if you can handle is okay 2010-08-24 11:41 indeed 2010-08-24 11:42 btw what do you think is the trugput that the Ben Xbust can support on its gpio pins? 2010-08-24 11:42 i dint check datasheets in depth hoping find that info 2010-08-24 11:43 hmm, you mean the highest frequency at which you can toggle a gpio ? 2010-08-24 11:43 yeap 2010-08-24 11:44 (sorry my english dictionaary is small) 2010-08-24 11:45 i would expect a few dozen mhz. almost certainly < 100 MHz, though. the limiting factor should be cpu cycles and the internal busses. 2010-08-24 11:45 ok 2010-08-24 11:45 good 2010-08-24 11:45 you can write a little assembler program that sets a gpio on and off. you probably need to unroll the loop, though, for an accurate measuement. 2010-08-24 11:46 any Xburst hacker around? 2010-08-24 11:46 ywah i was thinking in asm right now 2010-08-24 11:46 i need fast gpio response 2010-08-24 11:46 and i dont trust linux for that ! 2010-08-24 11:46 i guess will be slow 2010-08-24 11:48 linux will be slow :) my guess would be that a memory/register access costs you at least 2 cycles, so a "write 0" followed by "write 1", infinitely unrolled, would need 4 cpu cycles per cycle of the signal. so that's 84 Mhz. 2010-08-24 11:49 yeah i think i need check code examples from SIE  Unal guys did great work documenting gpio and low level stuff 2010-08-24 11:49 s/Unal/UNAL 2010-08-24 11:50 if you want to, say, output some data in parallel, a la SPI, that would be  shift_data(1), write_carry(2), write0(2), write1(2) = 7 cycles or 48. this is quite optimistic. not sure if the xburst can be so efficient. if it needs an add or, worse, a jump in this case, expect even less 2010-08-24 11:51 well may the CPLD save the day, just in case ;) 2010-08-24 11:52 bit-banging serial protocols almost always sucks :) 2010-08-24 11:52 or a dual core Xburst :D 2010-08-24 11:52 yeah :( 2010-08-24 11:52 well i pics (my previous experience) is okay for simple stuff but well protocols with Mhz is soemthing i need to deal with 2010-08-24 11:57 s/i/in 2010-08-24 11:59 hmm yes, i'll have to speed up the little spi in my rf board as well. right now, it should be crawling at less than 1 Mbps ... (not that it matters so far) 2010-08-24 12:00 and then there's of course the frequency counter board that stubbornly refuses to do anything. that one should work up to 6 MHz, although with hardware support. 2010-08-24 12:01 oh thats hihg 2010-08-24 12:01 high* 2010-08-24 12:01 the latter is for calibrating my crystals. the idea is to count the 1/2/4/... MHz clock derived from the crystal, then compare this with NTP time. after a day or so, i should have 1 ppm accuracy :) 2010-08-24 12:01 ohh 2010-08-24 12:02 saves me buying a USD 3000 frequency counter :) 2010-08-24 12:02 (of course, the latter would still be nice to have. ah, prorities, priorities ...) 2010-08-24 12:03 money, money money.. 2010-08-24 12:05 yeah. so useless yet so important ... 2010-08-24 12:44 [commit] Juan64Bits: Routing DDR-B http://qi-hw.com/p/xue/4edf66b 2010-08-24 19:45 [commit] Andres Calderon: USB Phy re-routed http://qi-hw.com/p/xue/2e8564b 2010-08-24 20:12 [commit] Andres Calderon: 2 new decoupling caps http://qi-hw.com/p/xue/7825f69 2010-08-24 20:15 [commit] Werner Almesberger: f32xbase didn't build on ancient Gentoo due to missing include. http://qi-hw.com/p/f32xbase/bc37839 2010-08-24 20:15 [commit] Werner Almesberger: Requests following a rejected SETUP requests failed too, which sometimes http://qi-hw.com/p/f32xbase/fd09655 2010-08-24 20:15 [commit] Werner Almesberger: lib/usb.c (open_usb): libusb documentation claims that considerable http://qi-hw.com/p/f32xbase/a77a9a6 2010-08-24 20:15 [commit] Werner Almesberger: Added list of to do items and known bugs. http://qi-hw.com/p/ben-wpan/c01a5e0 2010-08-24 20:15 [commit] Werner Almesberger: Minor potential improvements of USB robustness. http://qi-hw.com/p/ben-wpan/8f744bb 2010-08-24 20:15 [commit] Werner Almesberger: Literature consistently calls the Link Quality Indication LQI, not LQ. So do http://qi-hw.com/p/ben-wpan/bb7b049 2010-08-24 22:09 xiangfu: hello :-) 2010-08-24 22:10 kristianpaul: hi 2010-08-24 22:11 Can you point me examples of using asm for the Ben Xburst? 2010-08-24 22:13 do we have datasheets for the Xbusrt 4720 btw? 2010-08-24 22:13 i need find out more info about some electrincal characteristics.. 2010-08-24 22:21 oh nv 2010-08-24 22:21 :p 2010-08-24 22:40 kristianpaul: here is one: http://projects.qi-hardware.com/index.php/p/openwrt-xburst/source/tree/xburst/package/uboot-xburst/files/arch/mips/cpu/xburst/usbboot.S 2010-08-24 22:41 xiangfu: ahh uboot is the clue ! :) 2010-08-24 22:41 thanks 2010-08-24 23:03 [commit] Juan64Bits: Kernel image uploading http://qi-hw.com/p/nn-usb-fpga/1ef32f4