2013-07-17 00:04 _ffio_ has joined #qi-hardware 2013-07-17 00:05 ffio_ has quit [Ping timeout: 240 seconds] 2013-07-17 00:22 wej has quit [Ping timeout: 248 seconds] 2013-07-17 01:02 xiangfu has joined #qi-hardware 2013-07-17 01:56 xiangfu has quit [Remote host closed the connection] 2013-07-17 02:43 emeb has joined #qi-hardware 2013-07-17 02:47 porchao has quit [Quit: Leaving...] 2013-07-17 04:23 pcercuei has quit [Ping timeout: 256 seconds] 2013-07-17 04:24 pcercuei has joined #qi-hardware 2013-07-17 04:33 wej has joined #qi-hardware 2013-07-17 04:42 hi wej 2013-07-17 04:43 is the path where GMU saves / loads its config modificable? 2013-07-17 04:48 wej has quit [Ping timeout: 245 seconds] 2013-07-17 05:13 _ffio_ has quit [Quit: WeeChat 0.4.1] 2013-07-17 05:22 ffio has joined #qi-hardware 2013-07-17 05:43 emeb has quit [Quit: Leaving.] 2013-07-17 05:44 emeb has joined #qi-hardware 2013-07-17 05:48 pcercuei has quit [Ping timeout: 264 seconds] 2013-07-17 05:54 emeb has quit [Ping timeout: 268 seconds] 2013-07-17 06:01 wej has joined #qi-hardware 2013-07-17 06:15 pcercuei has joined #qi-hardware 2013-07-17 06:29 rz2k has joined #qi-hardware 2013-07-17 06:30 jekhor has joined #qi-hardware 2013-07-17 06:31 pcercuei has quit [Ping timeout: 245 seconds] 2013-07-17 07:14 viric has quit [*.net *.split] 2013-07-17 07:29 viric has joined #qi-hardware 2013-07-17 07:38 lekernel has joined #qi-hardware 2013-07-17 07:52 Luke-Jr has quit [Read error: Connection reset by peer] 2013-07-17 07:53 Luke-Jr has joined #qi-hardware 2013-07-17 08:03 ffio_ has joined #qi-hardware 2013-07-17 08:05 ffio has quit [Ping timeout: 240 seconds] 2013-07-17 08:35 jekhor has quit [Read error: Operation timed out] 2013-07-17 09:04 kuribas has joined #qi-hardware 2013-07-17 09:42 jekhor has joined #qi-hardware 2013-07-17 09:48 lekernel has quit [Ping timeout: 264 seconds] 2013-07-17 10:00 lekernel has joined #qi-hardware 2013-07-17 11:18 Jurting_pc2 has joined #qi-hardware 2013-07-17 11:27 http://unix.stackexchange.com/questions/83308/optimizing-a-while-loop 2013-07-17 11:27 ... 2013-07-17 11:28 However, for those of you not familiar with the Pi, it comes with very limited hardware resources (including 512 MB of memory) which can be easily consumed by a [while] loop [in Bash] like the one I'm using. 2013-07-17 11:46 porchao has joined #qi-hardware 2013-07-17 11:51 by the way, an acquaintance of mine recently suggested another reason broadcom could be selling pis at a tiny margin 2013-07-17 11:52 apparently if you have a few thousands of unliquidated chips (or early revisions, or slightly broken ones), it is somehow problematic to just dump them in a landfill 2013-07-17 12:35 didn't they sell millions? 2013-07-17 12:39 "a few thousands" was a figure of speech 2013-07-17 12:39 millions. well, not sure 2013-07-17 12:39 "can't sell those to real customers, so let's make a false open source design to at least squizz some internet buzz out of it" ? 2013-07-17 12:40 but pis work, don't they? 2013-07-17 12:40 maybe they don't work at 85°C :) 2013-07-17 12:40 ah 2013-07-17 12:40 or -40 2013-07-17 12:41 or some part of the chip does not work 2013-07-17 12:41 maybe it's parts on the sides of the waffers 2013-07-17 12:41 btw, anyone knows where to find a reasonably priced infrared camera+lamp, for night seeing? usb would be fine. 2013-07-17 12:42 ysionneau: I've one and it always worked fine, for the limited work I gave. 2013-07-17 12:42 ysionneau: yeah 2013-07-17 12:42 the reason he said that: you know the ODROID thingy? 2013-07-17 12:42 hardkernel.com etc 2013-07-17 12:42 a friend reported many fails for odroid 2013-07-17 12:42 he worked quite a bit with the devices and it turns out that they indeed ship failed/early batches 2013-07-17 12:42 yeah 2013-07-17 12:42 for his odroid. 2013-07-17 12:42 viric: indeed, but you cannot notice that some IP core not routed to the Rpi PCB (so feature not present on the Rpi) is not working 2013-07-17 12:43 because you simply cannot test it 2013-07-17 12:43 and you don't care 2013-07-17 12:43 ysionneau: then it's fine for me. It's the same for two-core, three-core computers 2013-07-17 12:43 lol, someone actually sells three-core cpu? 2013-07-17 12:43 yep, but they cannot sell the chip to a real customer 2013-07-17 12:43 original 4-core processors where some core doesn't work 2013-07-17 12:43 sure 2013-07-17 12:43 viric: yeah I understand how it can be 2013-07-17 12:43 they can only sell it soldered to some board with a very specific use case 2013-07-17 12:43 but never seen 2013-07-17 12:44 ysionneau: well, celerons *are* dumbed down pentiums after all 2013-07-17 12:44 There are even bioses that allow *unblocking* those cores 2013-07-17 12:44 motherboards with that feature. It has a name I can't recall. 2013-07-17 12:44 some kind of "give the cores back, I don't mind if they don't work" 2013-07-17 12:44 whitequark: well yes, dividing the production of the same chips into several different parts is common for chip makers 2013-07-17 12:45 like AEC-Q100 chips, and non-automotive ones 2013-07-17 12:45 yeah, that's generally what is done 2013-07-17 12:45 AEC-Q100 are just those on the middle of the waffer, or just for some lucky reason pass the temperature tests 2013-07-17 12:45 http://uk.asus.com/Motherboards/Features/Core_Unlocker/ 2013-07-17 12:47 so, for the pi, fine. 2013-07-17 12:47 for programmers who have the true C spirit: "I don't care if it works if it is fast!" :p 2013-07-17 12:47 yes, on that line :) but with hardware. 2013-07-17 12:48 Performance boost! 2013-07-17 12:53 FDCX has quit [Remote host closed the connection] 2013-07-17 12:55 FDCX has joined #qi-hardware 2013-07-17 13:01 unclouded has quit [Ping timeout: 245 seconds] 2013-07-17 13:07 rz2k has quit [Ping timeout: 240 seconds] 2013-07-17 13:15 jekhor has quit [Ping timeout: 264 seconds] 2013-07-17 13:28 LunaVorax has joined #qi-hardware 2013-07-17 13:38 Fummy has joined #qi-hardware 2013-07-17 13:51 LunaVorax has quit [Ping timeout: 252 seconds] 2013-07-17 14:00 rz2k has joined #qi-hardware 2013-07-17 14:06 Fummy has quit [Ping timeout: 248 seconds] 2013-07-17 14:06 Fummy has joined #qi-hardware 2013-07-17 14:08 wej_ has joined #qi-hardware 2013-07-17 14:11 wej has quit [Ping timeout: 248 seconds] 2013-07-17 14:28 prolog/lisp: i don't care of it works, as long as the experience is good :) 2013-07-17 14:30 missing the point ;) 2013-07-17 14:31 I only recently talked with a self-described C programmer 2013-07-17 14:31 he had a program which only worked correctly when compiled with -O2 (implying he has really bad UB somewhere) 2013-07-17 14:31 so what he did, could you guess? 2013-07-17 14:31 added "compile with -O2" to README 2013-07-17 14:32 and (in my eyes) this attitude is too prevalent and too harmful. I don't care about minor issues like manual MM vs GC :p 2013-07-17 14:45 UB = ? 2013-07-17 14:46 undefined behavior 2013-07-17 14:47 overall, that would mean that his program works "correctly" (even if it does) purely by accident, and changing so much as a minor version of GCC would suffice to break it 2013-07-17 14:47 but I'm pretty sure you already know it 2013-07-17 14:49 seems that he should try, in this order, -Wall, and then valgrind :) 2013-07-17 14:50 no everything can be caught this way, but a lot 2013-07-17 14:52 wpwrak: oh, sure, or -fsanitize=undefined 2013-07-17 14:52 but the problem is that he doesn't want 2013-07-17 14:52 "yeah, gotta build it with -O2, whatever, I don't care as long as it works" 2013-07-17 14:52 and he defended that even after an explanation of what UB actually is 2013-07-17 14:52 * whitequark sighs 2013-07-17 14:53 emeb has joined #qi-hardware 2013-07-17 14:54 does he work on embedded controllers for battery management in the boeing dreamliner ? :) 2013-07-17 14:55 no, on cloud storage stuff (I think), and plans to work on OS kernels if I'm not confused 2013-07-17 14:56 well as long as it is the Windows kernel I'm fine with that 2013-07-17 14:56 lol 2013-07-17 14:56 windows kernel is actually not that bad 2013-07-17 14:56 something something working async I/O :p 2013-07-17 14:57 only speeding up the inevitable 2013-07-17 14:57 apelete has quit [Ping timeout: 276 seconds] 2013-07-17 15:15 Fummy has quit [Ping timeout: 252 seconds] 2013-07-17 15:30 LunaVorax has joined #qi-hardware 2013-07-17 15:54 pcercuei has joined #qi-hardware 2013-07-17 16:03 _ffio_ has joined #qi-hardware 2013-07-17 16:04 ffio_ has quit [Ping timeout: 240 seconds] 2013-07-17 16:25 pcercuei has quit [Ping timeout: 252 seconds] 2013-07-17 16:41 pcercuei has joined #qi-hardware 2013-07-17 17:01 btw wpwrak 2013-07-17 17:02 have you seen Cyclone? 2013-07-17 17:02 that actually seems to have some slim chances you'd even try writing code in it :) 2013-07-17 17:14 do you think i obsess about pointers ? :) 2013-07-17 17:16 almost anything that i occasionally do wrong with pointers is easily found by valgrind. 2013-07-17 17:19 jekhor has joined #qi-hardware 2013-07-17 17:21 rz2k has quit [] 2013-07-17 17:23 wpwrak: you should not use heap memory. :) 2013-07-17 17:24 you prefer arrays ? 2013-07-17 17:30 jekhor has quit [Read error: Operation timed out] 2013-07-17 17:32 one big global state struct 2013-07-17 17:35 for example :) 2013-07-17 17:35 stack is overrated too. 2013-07-17 17:37 I should back up luks headers... 2013-07-17 17:38 larsc: is there any way I can see what my 'kworkers' do? 2013-07-17 17:38 kwoerker/0:1H for example, does it indicate anything? 2013-07-17 17:38 depends on the definition of 'do' 2013-07-17 17:38 ;) 2013-07-17 17:38 hehe 2013-07-17 17:39 cat /proc/PID/stack? 2013-07-17 17:39 no what do you mean by do 2013-07-17 17:39 ? 2013-07-17 17:39 do you want to know what code they execute 2013-07-17 17:39 or when they execute 2013-07-17 17:39 I see them on 'top' 2013-07-17 17:39 yes 2013-07-17 17:40 does each PID have a specific task? or they pick tasks from queues? 2013-07-17 17:40 depends 2013-07-17 17:40 e.g. kworker:mmcqueue 2013-07-17 17:40 will do mmc card related stuff 2013-07-17 17:40 but there are also generic workers which just queue up 'random' things 2013-07-17 17:40 # cat /proc/4567/stack 2013-07-17 17:40 [] msleep+0x24/0x30 2013-07-17 17:40 [] mmc_power_up+0xd0/0xd4 2013-07-17 17:40 [] mmc_rescan+0x29c/0x3a4 2013-07-17 17:40 ^ this one appears on top often 2013-07-17 17:40 named "kworker/u:1" 2013-07-17 17:41 that's a generic one though 2013-07-17 17:41 - I don't have any mmc card put in the slot. 2013-07-17 17:41 in the kernel there are so called workqueues 2013-07-17 17:41 a driver can create a custom workqueue 2013-07-17 17:41 but there are also a couple of generic workqueues 2013-07-17 17:41 which are usually used 2013-07-17 17:41 ok 2013-07-17 17:42 unless your queue needs like a special priority or something 2013-07-17 17:42 the generic queues are basicall first come first served 2013-07-17 17:42 what is that language of "/u:1" ? 2013-07-17 17:42 I don't know, but should be easy to find that out 2013-07-17 17:42 1 is probably cpu 1 2013-07-17 17:43 and u mabye unbound 2013-07-17 17:43 kworker/u:0H, kworker/0:0H, kworker/0:1H, kworker/u:1, ... 2013-07-17 17:43 ah 2013-07-17 17:43 and what are "flush-8:0" for? 2013-07-17 17:44 if (pool->cpu >= 0) 2013-07-17 17:44 snprintf(id_buf, sizeof(id_buf), "%d:%d%s", pool->cpu, id, 2013-07-17 17:44 pool->attrs->nice < 0 ? "H" : ""); 2013-07-17 17:44 snprintf(id_buf, sizeof(id_buf), "u%d:%d", pool->id, id); 2013-07-17 17:44 else 2013-07-17 17:44 for flushing the fs cache 2013-07-17 17:44 H = high priority, ok. cpu:id. 2013-07-17 17:45 and u = without cpu assigned. pool->id vs id, I don't know. 2013-07-17 17:45 this sheevaplug crypto device isn't performing as I'd expect 2013-07-17 17:48 probably not caused by the worker tasks though 2013-07-17 17:49 oh, Kconfig reads: "Currently the driver supports AES in ECB and CBC mode without DMA." 2013-07-17 18:06 lekernel has quit [Quit: Leaving] 2013-07-17 18:31 emeb has quit [Ping timeout: 248 seconds] 2013-07-17 19:26 LunaVorax has quit [Read error: Connection reset by peer] 2013-07-17 19:42 viric has quit [Ping timeout: 240 seconds] 2013-07-17 19:48 viric has joined #qi-hardware 2013-07-17 19:52 can anyone recommend a JTAG cable with best free software support? 2013-07-17 19:53 check openocd. 2013-07-17 19:53 maybe they tell about jtag adapters 2013-07-17 19:54 I'm not sure if I can recommend a FTDI, but usually it works 2013-07-17 19:58 the sheevaplug has a ftdi jtag thing in it, and it's the only one I've used. 2013-07-17 19:58 hmm 2013-07-17 19:59 I actually wrote a FT232R-based JTAG bitbanging interface.. maybe I can use that somehow 2013-07-17 20:07 hmm, one of these is open hardware 2013-07-17 20:19 jekhor has joined #qi-hardware 2013-07-17 20:37 LunaVorax has joined #qi-hardware 2013-07-17 20:40 unclouded has joined #qi-hardware 2013-07-17 20:49 pcercuei has quit [Ping timeout: 246 seconds] 2013-07-17 20:55 the Amontec JTAGkey works quite well. ftdi-based. 2013-07-17 20:55 similarly, the famous openmoko debug board is quite nice. also brings out serial and has a built-in usb hub. there, you even get the schematics. 2013-07-17 20:56 if you have enough spare flex cables 2013-07-17 20:56 drawback of the openmoko board: you need to add the headers for the cable yourself. 2013-07-17 20:56 larsc: and a gta01 or gta02 :-) 2013-07-17 20:57 those I have, a flexcable not anymore 2013-07-17 20:57 and then there's of course the famous ubb-jtag :-) http://downloads.qi-hardware.com/people/werner/ubb/jtag/ 2013-07-17 20:58 all you need for that is one UBB, a few minutes of soldering, and a ben nanonote :) 2013-07-17 20:58 (well, and resistors, cables, whatever connector plugs into the other side. the usual "small parts") 2013-07-17 20:59 larsc: yeah, they're basically consumables :) 2013-07-17 21:00 the connector on the debug board as well. the gta0x side is fairly robust, though. 2013-07-17 21:00 larsc: of course, real men (tm) use this: http://www.almesberger.net/misc/idbg/ 2013-07-17 21:01 hmm, the nanonote thing leaves most pins unconnected? 2013-07-17 21:02 I'm talking to an AVR32, but I'd like to have something I can use for any purpose 2013-07-17 21:02 if I can justify buying a Nanonote, that'd be neat ;) 2013-07-17 21:02 I do have some GTA0x here somewhere 2013-07-17 21:04 the nanonote critter connects everything a xilinx fpga needs. not all devices are happy with so little, though. but then you still have two spare pins (in the xilinx layout). i could have added a serial console on them :) 2013-07-17 21:05 hmm, https://sharism.cc/ is down? :/ 2013-07-17 21:06 the ubb-jtag wasn't really meant to be a "real" solution. more a proof of concept. but of course, if you need only low speed, it works just fine. and you could always make an optimized driver that would then be MUCH faster than the /sys/class/gpio-based one that proof of concept uses. 2013-07-17 21:06 http://lists.en.qi-hardware.com/pipermail/discussion/2013-January/009988.html 2013-07-17 21:07 i think sharism.cc if dead for good. but try pulster.eu 2013-07-17 21:10 any idea how many volts the openmoko debug board uses for JTAG? or can it autodetect? 2013-07-17 21:11 …assuming I can still buy one of these somewhere :/ 2013-07-17 21:26 apelete has joined #qi-hardware 2013-07-17 21:36 wej_ has quit [Ping timeout: 245 seconds] 2013-07-17 21:56 jekhor has quit [Ping timeout: 240 seconds] 2013-07-17 21:58 the openmoko board is 3.3 V, no autodetect 2013-07-17 22:02 also seems I'd have to pay $50 + import customs to get it "gratis" from some german store 2013-07-17 22:02 :/ 2013-07-17 22:03 wish I could just build one of the open hardware ones, but apparently chips will burn out if I try to solder them normally? :? 2013-07-17 22:12 viric has quit [Ping timeout: 240 seconds] 2013-07-17 22:30 oh, interesting twist :) maybe mail him and ask if he sells them "normally" as well. and yes, customs always want their share :) 2013-07-17 22:30 and no, if you solder chips normally, they don't burn out :) 2013-07-17 22:34 viric has joined #qi-hardware 2013-07-17 22:47 _ffio_ has quit [Ping timeout: 240 seconds] 2013-07-17 22:50 _ffio_ has joined #qi-hardware 2013-07-17 22:54 kuribas has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 2013-07-17 23:00 nutt has joined #qi-hardware 2013-07-17 23:03 hey anyone, I just replaced a touchpad assembly for an hp pavilion dv6 laptop and had it up and running after replacing it for a couple hours. Then I rebooted to install updates and now it can't boot 2013-07-17 23:03 I tried the recovery disc and it can't find an os 2013-07-17 23:03 any ideas? 2013-07-17 23:07 viric has quit [Ping timeout: 240 seconds] 2013-07-17 23:08 ysionneau has quit [Ping timeout: 240 seconds] 2013-07-17 23:11 apelete has quit [Ping timeout: 260 seconds] 2013-07-17 23:13 viric has joined #qi-hardware 2013-07-17 23:16 ysionneau has joined #qi-hardware 2013-07-17 23:17 Jurting_pc2 has quit [Read error: Connection reset by peer] 2013-07-17 23:39 wpwrak: well, the $50 is shipping to USA and bank wire fee - so non-gratis would just be additional on top of it :/ 2013-07-17 23:40 wpwrak: is the solder thing something that has changed over the years? my father apparently had to stop using chips entirely when they stopped doing sockets, because of this; maybe at some point chips began to be more heat-tolerant? 2013-07-17 23:42 more? nah 2013-07-17 23:42 the only reason for solderchanges recent years was ROHS... basically a systematic ban on some metals like lead where possible 2013-07-17 23:43 but thats industry-wide.. all consumer stuff. there are extemtions for some telco and network equipment also. 2013-07-17 23:43 emeb has joined #qi-hardware 2013-07-17 23:44 the moko debugboard is a quite basic ftdi2232 application. you can also solder one yourself. just keep all leads short and dont forget the proper caps ;) 2013-07-17 23:44 amontec also has similar boards (also in simplicity) 2013-07-17 23:45 http://www.amontec.com/jtagkey-tiny.shtml is quite similar if not identical pinout (for the jtag part, no serial output there) 2013-07-17 23:47 roh: well, I mean changes to the chips so they don't burn out as easily 2013-07-17 23:47 wej has joined #qi-hardware 2013-07-17 23:47 the pinout of the moko debug board is actually wrong for me - I just prefer to get open hardware even if I can't build it myself >_< 2013-07-17 23:49 Luke-Jr: well.. wrong pinout in what way? for jtag? 2013-07-17 23:49 its standard 20pin arm afaik 2013-07-17 23:49 roh: yes, my board has the 10pin design 2013-07-17 23:49 hm. and you also need some support in openocd afaik 2013-07-17 23:50 if not there yet 2013-07-17 23:50 I think OpenOCD already supports AVR32 2013-07-17 23:50 or whatever you want to use as gdbserver<->jtag connector 2013-07-17 23:50 nice 2013-07-17 23:50 if not, I'll ignore it and write my own firmware upload thing 2013-07-17 23:50 <.< 2013-07-17 23:50 or port it 2013-07-17 23:51 * Luke-Jr can handle software, just not hardware ☺ 2013-07-17 23:51 hmmm.. i guess soldering an adapter for 20pin arm to avr32 jtag would be easier 2013-07-17 23:51 there seem to be 3-5 options for open hardware, just nobody selling them in the USA premade :/ 2013-07-17 23:52 eheh... 2013-07-17 23:53 http://amtek.wordpress.com/2011/07/20/make-your-own-avr-jtag-debugger/ ? 2013-07-17 23:53 seems doable even for beginners. simple one-sided board. if somebody with a clue helps a bit it can be even done with kitchen-table etching 2013-07-17 23:55 roh: not sure the interface is open (closed firmware) :/ 2013-07-17 23:55 so I may not have any way to use it 2013-07-17 23:56 "To test if the board is working you’ll have to give 5V to the board by connecting a 10pin cable to one of the headers(JTAG or AVR ISP). Make sure you use a regulated 5V source or you might damage your USB port." 2013-07-17 23:56 huh? why not just use the USB power? :/ 2013-07-17 23:56 or just buy a jtag-ice on ebay.. there is open sw on the pc afaik. the firmware is flashed onto the device 2013-07-17 23:56 wej has quit [Ping timeout: 248 seconds] 2013-07-17 23:57 hmm, ebay 2013-07-17 23:58 i just heard from my 'off' that i should just use the jtag-ice in that box... hrrr.. i like this hackerspace 2013-07-17 23:58 just no pic programmer around. 2013-07-17 23:59 ? 2013-07-17 23:59 i just soldered a GPIB interface and need to flash the fw