#qi-hardware IRC log for Friday, 2015-01-02

wpwrakso this is what it looks like when the gloves come off :) [in german] http://www.heise.de/newsticker/meldung/Google-veroeffentlicht-Exploit-fuer-Zero-Day-Luecke-in-Windows-2507565.html11:35
wpwrak("google publishes zero-day exploit for windows")11:35
wpwrak"don't be evil" sounded good, but "be delightfully evil" sounds even better (-:C11:36
whitequarkmeh, full disclosure existed since what, 2001?12:22
whitequarkand actually many people give the vendor a *week*, much less three months12:22
wpwrakoh yes, google are being very nice. not that they wouldn't get flamed for it anyway, see the comments in https://code.google.com/p/google-security-research/issues/detail?id=11812:24
whitequarkyes I've read the comments. they are extremely amusing12:25
kristianpaulwpwrak: had you worked/know about the LPC810 mcu?14:31
kristianpaulwas looking at dip lowcost lowpower mcu the other day and came up with this one14:32
Action: xiangfu using LPC 11u14 mcu right now.14:37
xiangfuusing that for convert USB to IIC.14:37
Action: xiangfu reading Anelok document right now. wpwrak 14:38
xiangfutrying to join the project in some way:)14:38
DocScrutinizer05((0day))  more like 90day, right?15:02
DocScrutinizer05who's using that weird OS anyway? I for one could care less about the issue15:02
DocScrutinizer05just yesterday TV torured me with a report about "Bill Gates, the great innovator, nah inventor, of PCs" - almost puked. Luckily in the report they went a bit more honest than in title: he stole stuff wherever he could and extorted companies like Dell etc. Just a pity M$ didn't receive a sentence of "let's nuke the whole company" in that trial about the netscape war15:06
wpwrakkristianpaul: not the 810, but a similar one ... the LPC1112. for once no USB, though :)15:06
wpwrakfor cheap MCUs, i've become a big fan of the freescale kinetis KLxx series. i think they give you the most bang for the buck (at least unless you're in china, as bunnie's lovely article on gongkai described)15:09
DocScrutinizer05USB<->I2C? there are ready-made controllers for that15:09
wpwrakxiangfu have you seen this ? http://www.bunniestudios.com/blog/?p=429715:10
wpwrakDocScrutinizer05: how incredibly lame ;-)15:10
DocScrutinizer05;-P15:10
xiangfu DocScrutinizer05: Yes. 15:12
wpwrakbesides, if you need USB <-> I2C, you probably need other things, too.15:12
DocScrutinizer05just saying15:13
wpwraki have to admit that fully prepped chips avoid the bootstrapping problem, though (i.e., if all you have are programmable MCUs that need some special in-circuit-programming protocol to get going, how do you flash the first one ?)15:14
wpwrakbigger chips have a ROM that can boot from USB. but things are trickier with the small ones15:14
wpwrakxiangfu: (trying to join) sounds great ! :) have you seen my recent "helping anelok" post ? http://lists.en.qi-hardware.com/pipermail/discussion/2014-December/010741.html15:16
xiangfuit is like a custom design. one the USB side. it is send BULK fixed 64BYTE data. one the I2C side it convert the 64bytes to IIC data. then send to i2c salves. just FYI.15:16
xiangfuI have a lot of LPC 11U14 chips... :(. so there is no choice. :)15:16
xiangfuwpwrak: I am clone the anelok repo.15:16
xiangfuwpwrak: I will start with software and PCB first. 15:16
xiangfuwpwrak: I just bought three Y-cables from taobao.com.15:16
xiangfus/bought/ordered.15:16
wpwrakthere's a list of software things that need doing. some of them don't even need prototype hardware15:16
xiangfumaking PCB is easy for me.15:16
wpwrak(y-cables) yes !! thanks ! :)15:16
xiangfubuy those BOMs... I need some time. but I will making those PCBs first. 15:18
wpwraki think the LPCxxx may, in general, be a bit easier to use than the kinetis chips. the kinetis can be fairly tricky and the documentation needs some getting used to. but the feature set is impressive.15:18
wpwrakah, gitorious just told me that you've cloned the repo :)15:19
xiangfu_ping15:19
xiangfu_what is my last message? :)15:20
wpwrakwhen do you plan to make a pcb ? i have a few loose ends that i should clean up first15:20
wpwraklast msg: "buy those BOMs"15:21
wpwrakhmm, seems that i broke the simulator :( let's see where to apply the duct tape ....15:27
kristianpaulinteresting those freescale CPU15:32
wpwrakthe most fun ones: kl26 with usb otg, kl16 without but a more gpios instead, and that flexio of the kl17/kl27 may also be interesting15:33
kristianpaultotally backed by gcc right?15:35
wpwrakgotchas: clocking is a mess. not all the gpios are interrupt-capable.15:35
wpwrakyes, of course. would you see me touch them if they weren't ? :)15:35
wpwrakanother gotcha is that the register definitions are under uncertain licensing terms. i don't think freescale want to be difficult there, just seems that they haven't gotten around to cleaning it up.15:36
Action: xiangfu install the arm-none-eabi-gcc15:37
wpwrakbiggest disappointment: no TRNG in the smaller kinetis chips. so we'll have to improvise there.15:37
xiangfugot disconnect again.15:38
xiangfuwpwrak: I can make the PCB at Jan 04. it should be about 7 of them for samples15:38
wpwrakoh, you're quick ! :) then i should make the critical changes immediately ...15:39
xiangfu[The following libraries could not be found: ./../kicad-libs/components/gencon] when I open the hw/anelok.pro .sch file15:39
xiangfuafter I send the file to someone. it needs maybe 5 days to finish them.15:39
wpwrak(gencon) you need to run "make" in kicad-libs/components15:41
xiangfuoh. Yes.15:41
kristianpaulwpwrak: not that i see that on you, but i was a bit brave to ask ;)15:41
wpwrakthere's an "INSTALL" file in anelok that should cover most of the set up process. it's a bit complicated because i share things with a several other repos.15:42
xiangfuYes. doing that one by one. seems I have most of those repos. :)15:43
wpwrakit's the usual suspects :)15:45
eintopfwpwrak: http://www2.htw-dresden.de/~wiki_sn/images/6/6c/Raven_USB_JTAG_Connector.jpg - this works like the atusb stick. Are you angry when I will port the firmware on this device? :-)15:47
eintopfbut has more cpu power and special fancy leds15:47
eintopfof course I will leave the copyright and license information15:49
wpwrak(port firmware) no problem :) maybe you'll even get to fix some bugs ;-)15:49
eintopfyea, I will try that. Then we have some standard opensource firmware for 802154 linux usb dongles15:50
eintopfehm at first only for avr mcu's15:50
wpwrak(kl27) just looked at the boot loader (that's something the predecessors didn't have). this one can boot from USB. so it would solve the bootstrap problem.15:53
wpwrak(bootstrap problem) that will be relevant for the fab testing / developer fixtures for anelok. with a bootstrappable mcu, we won't need a bootstrapping board for the fixtures15:55
eintopfhttp://www.atmel.com/Images/doc8117.pdf - page 2215:56
eintopfthat's what I need15:56
wpwrakbtw, at86rf230. you'll have fun with that one ;-)15:56
eintopf...15:58
eintopfoh they also have a exernal osc15:58
eintopf16 Mhz15:58
xiangfu/usr/lib/gcc/arm-none-eabi/4.8.2/../../../arm-none-eabi/bin/ld: anelok-2014.elf section `.text' will not fit in region `FLASH'15:58
xiangfu/usr/lib/gcc/arm-none-eabi/4.8.2/../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 201180 bytes15:59
xiangfumake -C fw/15:59
eintopfwpwrak: maybe they stole ideas from your atusb design :o15:59
wpwrakeintopf: naw, i think raven predates atusb by some time. else they would certainly have used the 231.16:00
wpwrakxiangfu: hmm, something's getting too big. lemme check ... text = 43360 here :)16:01
eintopfwpwrak: stefan schmidt also working on aysnc xmit/AACK/ARET support for atusb16:02
eintopfI will check now if I can run it on ravenusb, if yes I think it would be easily to make changes on top of stefans work16:03
eintopfwpwrak: and how it works with the usbid? can I simple use the qi-hardware one?16:03
xiangfuwpwrak: I am using the arm-none-eabi from ubuntu repo. not from your INSTALL instructions. 16:04
wpwrakfrom a fresh checkout: make -C fw  -> text = 14764 (anelok-2014.elf)   that seems a little small, though16:04
xiangfumy gcc is 4.8.216:06
xiangfuyours are 4.7-2013. I will try to install that one. 16:06
wpwrakmine is arm-none-eabi-gcc (4.8.2-14ubuntu1+6) 4.8.216:06
wpwrak(gcc -v)16:06
xiangfuwe are same gcc version 4.8.2 (4.8.2-14ubuntu1+6)16:07
wpwraknaw, seems that i'm using ubuntu's as well now :)16:07
wpwrakdpkg -S says it's gcc-arm-none-eabi16:09
wpwrakeintopf: http://en.qi-hardware.com/wiki/USB_product_ID_assignments16:09
wpwrakah, the 43 kB i get in my "under construction" build probably comes from temporarily having printfs in my code.16:12
wpwrakxiangfu: these are my .o sizes: https://privatepaste.com/f05f1033b816:13
xiangfuthere is only one different: 16:14
xiangfu 965096   1728      0 966824  ec0a8text.o16:14
wpwrakwhoa ! :)16:14
xiangfu2.0Mfont_10x20.h16:16
xiangfu2.0Mfont_5x7.h16:16
xiangfu2.0Mfont_7x13.h16:16
wpwrakthinking of it, my gcc is probably the one from launchpad and not the one from ubuntu. it just calls itself "ubuntu" because it's built for that target. lemme see what happens if i switch ..16:18
DocScrutinizer05((pyro)) 3 guys bombed themselves to nirvana with illegal Czech or DIY cracker, in Germany. Wow16:19
wpwraknow, downloading from ubuntu ... this one must be right :)16:20
wpwrakthe fonts look a little large :)16:21
wpwrakhttps://privatepaste.com/7489a198ce16:22
wpwrakbuild with ubuntu's gcc worked fine. so we don't need the one on launchpad anymore. very good.16:24
wpwrakwhen the fonts are generates, little xterms with 0123456789:;<=>? ... should pop up16:25
wpwrakdoes  make spotless; LANG=C LC_CTYPE= XTERM_LOCALE= make   help ?16:26
xiangfuno16:33
xiangfuhave to sleep. 16:33
xiangfusee you16:33
wpwraksweet dreams ! :)16:35
wpwrakwe'll have to dissect what happens in fontify step by step. it's somewhat delicate ...16:36
wpwrak(for those who haven't checked out the repo) this is the critter: https://gitorious.org/anelok/anelok/source/fw/fontify16:37
--- Sat Jan 3 201500:00

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!