2013-01-07 00:09 wej has joined #qi-hardware 2013-01-07 00:28 wej has quit [Ping timeout: 260 seconds] 2013-01-07 00:29 nikias has joined #qi-hardware 2013-01-07 00:33 wej has joined #qi-hardware 2013-01-07 00:39 wej has quit [Ping timeout: 264 seconds] 2013-01-07 00:41 urandom__ has quit [Quit: Konversation terminated!] 2013-01-07 00:44 wej has joined #qi-hardware 2013-01-07 00:48 LunaVorax has quit [Ping timeout: 260 seconds] 2013-01-07 01:19 xiangfu has joined #qi-hardware 2013-01-07 01:24 nikias has left #qi-hardware ["Textual IRC Client: www.textualapp.com"] 2013-01-07 02:01 emeb has quit [Quit: Leaving.] 2013-01-07 02:02 xiangfu has quit [Remote host closed the connection] 2013-01-07 02:05 megha is now known as gia 2013-01-07 02:44 rz2k has quit [] 2013-01-07 04:03 DocScrutinizer05 has quit [Disconnected by services] 2013-01-07 04:03 DocScrutinizer05 has joined #qi-hardware 2013-01-07 05:41 rz2k has joined #qi-hardware 2013-01-07 06:19 jekhor has joined #qi-hardware 2013-01-07 06:59 gia has quit [Ping timeout: 248 seconds] 2013-01-07 07:07 jekhor has quit [Ping timeout: 240 seconds] 2013-01-07 07:13 gia has joined #qi-hardware 2013-01-07 07:43 jluis|work has joined #qi-hardware 2013-01-07 07:53 gia has quit [Quit: WeeChat 0.3.9.2] 2013-01-07 07:58 megha has joined #qi-hardware 2013-01-07 08:01 megha has quit [Client Quit] 2013-01-07 08:23 rz2k has quit [] 2013-01-07 08:35 megha has joined #qi-hardware 2013-01-07 08:44 megha has quit [Ping timeout: 276 seconds] 2013-01-07 09:07 jluis|work has quit [Ping timeout: 245 seconds] 2013-01-07 09:19 jluis|work has joined #qi-hardware 2013-01-07 10:08 megha has joined #qi-hardware 2013-01-07 11:25 [commit] Werner Almesberger: libubb/Makefile: build also a shared version of libubb; better cleanup (master) http://qi-hw.com/p/ben-blinkenlights/64c14fb 2013-01-07 11:25 [commit] Werner Almesberger: ubbctl/Makefile: make default build shared; add target "static" (master) http://qi-hw.com/p/ben-blinkenlights/7b8a2e1 2013-01-07 11:25 [commit] Werner Almesberger: ubbctl/Makefile: add copyright header (master) http://qi-hw.com/p/ben-blinkenlights/b557adf 2013-01-07 11:26 kyak: i added the shared library build process for libubb. does it look good ? been a while since i did that the last time. 2013-01-07 11:26 wej has quit [Ping timeout: 248 seconds] 2013-01-07 11:28 urandom__ has joined #qi-hardware 2013-01-07 11:29 wej has joined #qi-hardware 2013-01-07 12:49 megha has quit [Quit: WeeChat 0.3.9.2] 2013-01-07 12:50 LunaVorax has joined #qi-hardware 2013-01-07 12:58 megha has joined #qi-hardware 2013-01-07 13:42 wej has quit [Ping timeout: 260 seconds] 2013-01-07 13:47 wej has joined #qi-hardware 2013-01-07 13:55 jekhor has joined #qi-hardware 2013-01-07 14:17 woakas has joined #qi-hardware 2013-01-07 14:40 megha has quit [Quit: WeeChat 0.3.9.2] 2013-01-07 14:47 megha has joined #qi-hardware 2013-01-07 14:48 [commit] Werner Almesberger: ubblib/Makefile: don't generate the versioned shared library (master) http://qi-hw.com/p/ben-blinkenlights/2004d8c 2013-01-07 14:49 git rewrite-history s/ubblib/libubb/ 2013-01-07 15:23 megha has quit [Quit: WeeChat 0.3.9.2] 2013-01-07 15:32 wolfspraul has quit [Ping timeout: 246 seconds] 2013-01-07 15:34 wolfspraul has joined #qi-hardware 2013-01-07 15:37 urandom__ has quit [Quit: Konversation terminated!] 2013-01-07 15:47 megha has joined #qi-hardware 2013-01-07 15:48 Hello 2013-01-07 15:48 I realized that Qi-Hw had no news for over a year 2013-01-07 15:48 No on-going projects? 2013-01-07 16:04 jluis|work has quit [Read error: Operation timed out] 2013-01-07 16:21 wpwrak: lemme check 2013-01-07 16:24 wpwrak: make[3]: *** No rule to make target `mmcclk.o', needed by `libubb.a'. Stop. 2013-01-07 16:24 i don't see mmcclk.c either 2013-01-07 16:25 ubb/mmclk.h is also not there 2013-01-07 16:26 hey, it seems we revealed your next secret project :) 2013-01-07 16:30 emeb has joined #qi-hardware 2013-01-07 16:32 btw, you probably already noticed, but naming of source and header (mmcclk.c/mmclk.h) is not consistent 2013-01-07 16:33 kyak: how did you make that letter bold, you wizard?! 2013-01-07 16:34 heh :) depends on your client, in irssi it's ^B 2013-01-07 16:34 foobarfoo 2013-01-07 16:34 oh cool. 2013-01-07 16:34 oh, wonder how it looks like in your web logs :) 2013-01-07 16:35 does it support formatting? 2013-01-07 16:35 like *this*, yes it does 2013-01-07 16:35 4,3foobar 2013-01-07 16:35 blargh 2013-01-07 16:35 my eyes 2013-01-07 16:36 :) 2013-01-07 16:36 well I never knew about this formatting, so it doesn't 2013-01-07 16:36 plus larsc's colored text breaks the underlying library I use 2013-01-07 16:37 yea! 2013-01-07 16:37 just a stupid test 2013-01-07 16:37 ah, this one appears as message 2013-01-07 16:37 megha has quit [Quit: WeeChat 0.3.9.2] 2013-01-07 16:38 what was that? 2013-01-07 16:38 it's called notice :) 2013-01-07 16:54 purple :) 2013-01-07 16:57 megha has joined #qi-hardware 2013-01-07 17:08 jluis has quit [Ping timeout: 272 seconds] 2013-01-07 17:10 megha has quit [Quit: WeeChat 0.3.9.2] 2013-01-07 17:11 megha has joined #qi-hardware 2013-01-07 17:18 megha has quit [Quit: WeeChat 0.3.9.2] 2013-01-07 17:19 (mmcclk.c) oh crap. that's WIP. lemme unleak it ... 2013-01-07 17:20 kyak: not very secret, though :) 2013-01-07 17:21 [commit] Werner Almesberger: libubb/Makefile: unleak mmcclk.o and mis-typed mmclk.h (master) http://qi-hw.com/p/ben-blinkenlights/a593da0 2013-01-07 17:21 wolfspraul: btw, each push still produces "ssh: Could not resolve hostname fidelio.qi-hardware.com: No address associated with hostname" 2013-01-07 17:21 followed by "error: hooks/post-receive exited with error code 255" 2013-01-07 17:22 sooner or later someone will overlook a real error after getting used to not paying attention to git push complaints 2013-01-07 17:41 megha has joined #qi-hardware 2013-01-07 17:58 jluis has joined #qi-hardware 2013-01-07 18:01 LunaVorax has quit [Ping timeout: 260 seconds] 2013-01-07 18:09 megha has quit [Quit: WeeChat 0.3.9.2] 2013-01-07 18:18 ok great, I finally found the old hostname in a script file 2013-01-07 18:18 let's see whether the problem is gone now, after your next commit we know... 2013-01-07 18:20 let's see ... 2013-01-07 18:20 [commit] Werner Almesberger: libubb/mmcclk.c: helper functions for selecting and configuring the MMC bus clock (master) http://qi-hw.com/p/ben-blinkenlights/1eb8e64 2013-01-07 18:21 hmm, the error changed :) 2013-01-07 18:21 http://paste.ie/view/c5034aa1 2013-01-07 18:33 wpwrak: we are almost there. Openwrt is too smart, and complains that ubbctl is missing dependency for libubb.so.0.0.0. This is because libubb package only provides libubb.so. I can install the symlink from package, but probably it's better done in Makefile 2013-01-07 18:43 wpwrak: perhaps another option would be to use the soname without $(LIBVERSION) 2013-01-07 18:46 jekhor has quit [Ping timeout: 276 seconds] 2013-01-07 18:49 LunaVorax has joined #qi-hardware 2013-01-07 18:51 jekhor has joined #qi-hardware 2013-01-07 18:51 megha has joined #qi-hardware 2013-01-07 18:52 hmm, you mean call the file libubb.so.0.0.0 (instead of libubb.so) and change the soname from ibubb.so.0.0.0 to libubb.so ? 2013-01-07 18:52 or eliminate the version entirely ? in this case, how would ldconfig know what to do ? 2013-01-07 18:52 argh :-) 2013-01-07 18:52 wpwrak: made another change, let's see :-) 2013-01-07 18:55 preparing another commit ... 2013-01-07 19:15 [commit] Werner Almesberger: libubb/include/ubb/regs4740.h: add CPCCR (clock control register) (master) http://qi-hw.com/p/ben-blinkenlights/2f4e1bd 2013-01-07 19:16 victory ! no errors 2013-01-07 19:16 wolfspraul: thanks a lot ! 2013-01-07 19:18 megha has quit [Quit: WeeChat 0.3.9.2] 2013-01-07 19:19 did CPCCR.PCS change from 1 to 0 in the last year or so ? (i.e., that the clock that drives MSC and such is now PLL/2 instead of PLL/1) 2013-01-07 19:20 either that, or i always got the UBB-VGA clock calculations wrong 2013-01-07 19:21 wpwrak: name the file libubb.so and set soname to libubb.so, or provide libubb.so and libubb.so.0.0.0 (symlink) and change soname to libubb.so.0.0.0 2013-01-07 19:22 currently soname is libubb.so.0.0.0, but libubb.so.0.0.0 is not provided 2013-01-07 19:22 just the libubb.so is provided 2013-01-07 19:23 how does ldconfig know the version if neither file nor soname has it ? 2013-01-07 19:23 or are you saying i can just omit the version completely ? 2013-01-07 19:24 hmm, dunno, i'm not sure if it possible to omit the version completely :) 2013-01-07 19:24 i'm just guessing it should work 2013-01-07 19:25 and yeah, that's what i meant - omit the version completely 2013-01-07 19:26 seems to work. kewl. less bureaucracy ;-) 2013-01-07 19:26 megha has joined #qi-hardware 2013-01-07 19:26 yeah, just tried it, too.. And you don't need ldconfig in this case 2013-01-07 19:27 even better :) 2013-01-07 19:30 what do i put into "suggested by ..." ? your real name doesn't seem to be on record :) 2013-01-07 19:31 don't bother :) 2013-01-07 19:33 "kyak" it is then 2013-01-07 19:33 [commit] Werner Almesberger: libubb/mmcclk.c (mmcclk_first): base clock calculation on state of CPCCR.PCS (master) http://qi-hw.com/p/ben-blinkenlights/b18d688 2013-01-07 19:33 [commit] Werner Almesberger: libubb/Makefile: get rid of version bureaucracy (suggested by Kyak) (master) http://qi-hw.com/p/ben-blinkenlights/127e18d 2013-01-07 19:34 no problem, thanks for insisting on the bug report 2013-01-07 19:34 sometimes I do hope bugs go away 'by themselves', but then most of the time it's not like that :-) 2013-01-07 19:36 yeah, that could have been a lazy DNS 2013-01-07 19:38 [commit] kyak: libubb: initial package (master) http://qi-hw.com/p/openwrt-packages/971cadb 2013-01-07 19:38 [commit] kyak: ubbctl: initial package (master) http://qi-hw.com/p/openwrt-packages/66d3d0f 2013-01-07 19:38 wpwrak: you can download built packages from http://downloads.qi-hardware.com/people/kyak/tmp/libubb_20130107-1_xburst.ipk and http://downloads.qi-hardware.com/people/kyak/tmp/ubbctl_20130107-1_xburst.ipk 2013-01-07 19:40 they should work, if you have the latest image (2012-10-24) 2013-01-07 19:43 great, thanks a lot ! let's see what installs ... 2013-01-07 19:45 kewl. works like a charm 2013-01-07 19:45 nice! and thank you 2013-01-07 19:51 wpwrak: what does "keep" argument do for ubb_open and ubb_close? 2013-01-07 19:52 for ubb_open it specified which GPIOs should be left in the state they have. e.g., don't change them to GPIO, etc. 2013-01-07 19:53 megha has quit [Quit: WeeChat 0.3.9.2] 2013-01-07 19:53 also, just wondering, why do use well-defined datatypes (like uint32_t), but sometimes use ill-defined (like int)? 2013-01-07 19:53 for ubb_close it specifies which GPIOs should not be reset to the state before calling ubb_open 2013-01-07 19:53 i use uint32_t when it's machine registers and such 2013-01-07 19:53 ah, ok, so it's like an exception mask.. 2013-01-07 19:53 int/unsigned for all the rest ;-) 2013-01-07 19:54 keep = 0 means "act upon all pins" 2013-01-07 19:54 yes 2013-01-07 19:55 ok, thanks for explanation :) 2013-01-07 19:59 ..also, i should read README more carefully.. 2013-01-07 20:02 yeah, it's all there ;-) 2013-01-07 20:02 [commit] Werner Almesberger: ubb-patgen/hw/: schematics of a pattern generator based on UBB (master) http://qi-hw.com/p/ben-blinkenlights/ed91f62 2013-01-07 20:02 [commit] Werner Almesberger: ubb-patgen/hw/labels.fig: cut-out labels for the wires (master) http://qi-hw.com/p/ben-blinkenlights/7c1f065 2013-01-07 20:02 [commit] Werner Almesberger: ubb-patgen/: UBB-based pattern generator (WIP) (master) http://qi-hw.com/p/ben-blinkenlights/52ce194 2013-01-07 20:02 wpwrak: what happens if i try to SET pin that is IN? 2013-01-07 20:02 and this is the secret new project :) 2013-01-07 20:03 it'll remember the "1" until you turn it into an output 2013-01-07 20:03 important for avoiding glitches 2013-01-07 20:03 not so secret anymore ;) 2013-01-07 20:07 wpwrak: just a suggestion, what if we could pass an argument to ubb_open to initiailize chosen pins as outputs (the rest are initialized as inputs)? 2013-01-07 20:10 would there be a problem in your application if the pin transitions first to input ? 2013-01-07 20:10 btw, you can set any number of pins at the same time with IN, OUT, SET, CLR. you don't have to do it one by one. 2013-01-07 20:11 well, i believe that it's unlikely someone will change the pin from input to output or vice versa at runtime, so it makes sense to do that once during initialization 2013-01-07 20:12 yeah, these macros accept masks, that's great 2013-01-07 20:13 also i was thinking about ubb_write function, that would accept mask of pins to write and a value to write and call SET or CLR under the hood 2013-01-07 20:15 there are many protocols that switch the direction of pins. not everything is SPI or UART ;-) 2013-01-07 20:16 ok thne :) 2013-01-07 20:16 ubb_write would be tricky because it would be non-atomic 2013-01-07 20:16 that is, unless you set them all to the same value 2013-01-07 20:17 indeed.. why is it a problem? 2013-01-07 20:17 being non-atomic ? well, people may assume operations are atomic. and if they aren't, you get races 2013-01-07 20:18 hm, right.. 2013-01-07 20:26 wpwrak: does PIN accept mask as well? 2013-01-07 20:26 i can't decrypt the (!!(PDPIN & (mask))) --) 2013-01-07 20:26 it says so, doesn't it ? ;-) 2013-01-07 20:27 what happens is that you get 0 if ALL pins in the mask are 0. else, you get 1. 2013-01-07 20:27 that's what i thought 2013-01-07 20:27 but what if i want individual statuses of all pins? 2013-01-07 20:27 !! is simply a normalization. 0 stays 0, everything else becomes 1 2013-01-07 20:28 that's why the registers are available as well :) 2013-01-07 20:28 SET, PIN, etc. are just simplifications for basic tasks 2013-01-07 20:28 if you need something more complicated, you use PDxxx 2013-01-07 20:29 if you still want more, there's a bunch of additional registers to play with 2013-01-07 20:29 yeah, i understand, but i'm trying to think from a library point of view :) 2013-01-07 20:30 if i have a function that does (PDPIN & (mask)) and returns the result as a mask, would it be atomic? 2013-01-07 20:31 yes 2013-01-07 20:32 ok, then it is ubb_read :) 2013-01-07 20:39 !0 is 1 ? 2013-01-07 20:40 pcercuei has joined #qi-hardware 2013-01-07 20:43 Guest27683 has joined #qi-hardware 2013-01-07 20:45 viric: yup 2013-01-07 20:56 rz2k has joined #qi-hardware 2013-01-07 20:57 pcercuei has quit [Ping timeout: 255 seconds] 2013-01-07 20:57 Guest27683 has quit [Quit: Verlassend] 2013-01-07 21:04 pcercuei has joined #qi-hardware 2013-01-07 22:00 pcercuei has quit [Quit: Bye] 2013-01-07 22:15 Hoolxi has joined #qi-hardware 2013-01-07 22:49 urandom__ has joined #qi-hardware 2013-01-07 23:02 wej has quit [Ping timeout: 264 seconds] 2013-01-07 23:06 wej has joined #qi-hardware 2013-01-07 23:19 uwe__ is now known as uwe_ 2013-01-07 23:27 wej has quit [Ping timeout: 248 seconds] 2013-01-07 23:31 wej has joined #qi-hardware 2013-01-07 23:32 jekhor has quit [Ping timeout: 265 seconds] 2013-01-07 23:42 LunaVorax has quit [Ping timeout: 260 seconds] 2013-01-07 23:52 wej has quit [Ping timeout: 260 seconds] 2013-01-07 23:57 wej has joined #qi-hardware