Topic for #qi-hardware is now Copyleft hardware - http://qi-hardware.com | hardware hackers join here to discuss Ben NanoNote, atben / atusb 802.15.4 wireless, and other community driven hw projects | public logging at http://en.qi-hardware.com/irclogs
<hozer> I have not tried anything with lm8 .. I am fighting with libstdc++ problems with iverilog now
<qi-bot> [commit] Xiangfu: cgminer: disable curses support (master) http://qi-hw.com/p/openwrt-packages/959b320
<hozer> I may have a minsoc bitstream soon
MistahDarcy has quit [Ping timeout: 265 seconds]
<hozer> wheee, 4 cores, 2 idle, one synthesizing Milkymist, one synthesizing Opencores MinSoC
<hozer> btw, I found the lm32 .. https://github.com/milkymist/lm32
rz2k has quit []
urandom__ has quit [Quit: Konversation terminated!]
megharsh has joined #qi-hardware
wej has quit [Ping timeout: 264 seconds]
panda|x201 has joined #qi-hardware
wej has joined #qi-hardware
wej has quit [Ping timeout: 260 seconds]
wej has joined #qi-hardware
emeb has quit [Quit: Leaving.]
Jay7 has quit [*.net *.split]
Jay7 has joined #qi-hardware
DocScrutinizer05 has quit [Disconnected by services]
DocScrutinizer05 has joined #qi-hardware
panda|x201 has quit [Ping timeout: 255 seconds]
<whitequark> wpwrak: the funny fact is, *every* atmega could be replaced with a cheaper STM32 chip
<whitequark> literally every
<wpwrak> that doesn't make sense
<wpwrak> the cheapest STM32 is 1.926
<wpwrak> grmbl. i load a busy loop into that LPC111x and it draws LESS current than the boot loader ??
<wpwrak> at least this tells me that something has changed. don't see any I/O activity yet
<wpwrak> now .. where's the stupid bug that keeps all this from working ...
<whitequark> wpwrak: hm. yes. well, not literally.
<whitequark> I missed something somewhere.
<whitequark> wpwrak: I thought a lot if I should provide an AVR backend for my language implementation
<whitequark> LLVM already has one; it seems that it could only work in quite a restricted mode compared to things I could freely do on 32-bit MCUs
<whitequark> this is true of GCC as well, of course
<whitequark> basically I decided to concentrate on ARM, more precisely Cortex-M3, first, and then see if/where should I expand the support.
<wpwrak> makes sense. first see if the concept works at all, then go multiplatform
<whitequark> exactly
<wpwrak> victory ! :)
<wpwrak> had to set the LSB in vectors to indicate thumb mode. duh.
<whitequark> yeah. sometimes you need to fight with assembler to do that :)
<wpwrak> it's all in C. i'm holding them to their promise that you can use that chip without ever touching assembler
<wpwrak> i do check the assembler, though ;-)
<whitequark> yeah, I like how the interrupt controller implements EABI itself
<whitequark> it seems that they tried to pack half of an RTOS in hardware and succeeded
<wpwrak> indeed ;-)
<whitequark> also. not sure about NXP, but STM32 makes peripherals in a kinda nice way which for 80% of cases basically allows to chain them with DMA and trigger lines
<whitequark> so that you don't even need to handle interrupts, most of the time
<whitequark> yay power consumption
<whitequark> (and the fact that I can take a user-readable map for such interaction written in Ruby, process it on the host and turn into register values, all without bothering the user too much ;)
<wpwrak> i don't see DMA in my chip. it's a pretty low-endish one anyway.
<whitequark> wpwrak: another very, very nice thing is how I avoid checking bounds on most array accesses yet make accidental memory corruption pretty hard
<whitequark> the point is, you very rarely need to "just" index an element in an array
<whitequark> almost all time you want to iterate it, or maybe add data to circular buffer, or push something onto stack, or whatever. so...
<wpwrak> yes, if your compiler can figure out what the loops do, it can do the check outside the loop, and even decide it doesn't need one if the bounds are constant
<whitequark> simpler
<whitequark> (LLVM does what you say, through)
<whitequark> the trick is to use closures whenever possible
<whitequark> in a very similar way, you could update elements in an array with #map! method, compute a sum (or any different derivative) with #reduce
<wpwrak> yeah, a higher-level pattern to analyze then
<whitequark> I don't even need to analyze anything
<whitequark> I just spare the user from writing indexing code manually in most of the cases, and the problem with incorrect manually written indexing code fades away :)
<whitequark> it is amazing how much errors you can eradicate by basically just shuffling code around, with nothing to pay at runtime, and without complex and possibly flawed static analysis
<whitequark> my main optimization is inlining, as you can see. I inline methods and closures, everything, and up to the point where nothing else could be inlined. (In fact, I internally implement methods as closures.)
<whitequark> and, again, I don't need anything too complex; performance impact of inlining all the simple cases dwarfs all the other ones, combined
<whitequark> inlining (combined with SSA and escape analysis) is also how I infer types. without knowing what #each does, it won't be possible to determine the type of `val' inside the closure
<whitequark> (SSA helps to figure out types for variables. e.g. `if foo; a = 1; else a = "bar"; end' is an error)
<wpwrak> hmm. given a symbol whose address is known at link time. i want to use the negative address in a constant initializer. seems impossible, doesn't it ?
<wpwrak> (it's to calculate a checksum)
<whitequark> hm
<whitequark> I think it is possible
<whitequark> with linker scripts you can perform arbitrary arithmetics on symbol addresses, so define `b = 0 - a', and then use `&b' in your initializer
<whitequark> this *should* work
<whitequark> in fact, simply use 0 - &b in your initializer.
<whitequark> and -Os
<wpwrak> ah, that's a good idea. let's see if ld likes it, too
<whitequark> the latter won't work: test.c:2:10: error: initializer element is not a compile-time constant
<whitequark> (yeah, it's a link-time one. relocs probably cannot express the relation required here.)
<wpwrak> doing the - in the linker script seems to do the trick. lemme check the math ...
<whitequark> wpwrak: http://pastie.org/5600702
<wpwrak> works :)
<wpwrak> just -a works
<whitequark> oh.
<wpwrak> thanks ! now i have a nice solution :)
<whitequark> you're welcome
<whitequark> btw, why would you want such a checksum?
<wpwrak> the LPC111x boot loader uses that to determine whether the vector table is valid
<whitequark> I see
<whitequark> what do you do with that nxp thingy? a new qi-hw project?
<wpwrak> i'll use it to control my LED bar
<whitequark> (btw, do check the errata list for your MCU. nxp is famous for not fixing obvious bugs :/)
<whitequark> (on the other hand, STM kinda tends to miss them. a guy I know recently found that if PLL freq >= 64 MHz and MCU is put to sleep, it'll never wake up. Errata updated :)
<whitequark> (problems with NXP included something like non-working SD card boot in revs A-F, which was found in rev A)
<wpwrak> "let's not fix this since somebody may depend on that feature" :)
<whitequark> I don't even want to know what was in the head of a manager who decided to avoid fixing that
<wpwrak> it may be just that
<whitequark> well, they fixed it eventually
<wpwrak> they have lots of little feature updates. but each gets a new part number, not just a chip revision.
<whitequark> of course, it's next to impossible to buy the right revision
<whitequark> and none of the 3rd-party developer boards would have it
<wpwrak> get to know your FAE and treat him well :)
<whitequark> FAE?
<whitequark> field applications engineer?
<wpwrak> Field Application Engineer. the hybrid sales/tech critter manufacturers send to their "good" customers.
<whitequark> oh, I also have a nice story about TI
<whitequark> the same guy bought a Smart Battery System devkit
<whitequark> you know, the one where battery authenticates the host via RSA (or something like that) prior to providing the power, and commits suicide if you try to update its EEPROM a little too hard
<whitequark> (I still have no idea why battery authenticates the host and not vice-versa)
<wpwrak> sounds like a fun concept :)
<whitequark> it's probably in your notebook, if you have one
<whitequark> *laptop
<whitequark> so, he buys this devkit, plays with it for some time and forgets for half a year
<whitequark> after that, he tries to redownload the datasheet. boom, there is zero hits on TI site by partnumber
<whitequark> he asks the support where the datasheet is and gets a reply that they don't have such a part and never did
<whitequark> he shows them the order number and photos
<whitequark> and GETS BANNED.
<wpwrak> ;-)
<whitequark> how the...? I don't even understand how such a thing is even possible?!
<whitequark> and why?!
<wpwrak> that would usually be a good moment to talk to some friends in the press. make sure whatever TI are trying to cover up gets as much coverage as possible :)
<whitequark> the parts with adjacent numbers are still there
<whitequark> heh
<whitequark> for me, this just doesn't make a slightest bit of sense
<whitequark> wpwrak: talking about FAE... http://www.faemagazine.com/
<whitequark> this is even metaphorically related
<wpwrak> ;-))
<qi-bot> [commit] Werner Almesberger: lpc111x-isp/lpc111x.c: if file argument is given, flash that file (master) http://qi-hw.com/p/ben-blinkenlights/66d0913
<qi-bot> [commit] Werner Almesberger: lpc111x-isp/lpc111x.c: new option -r to reset the target and let it run (master) http://qi-hw.com/p/ben-blinkenlights/c7a7d35
<qi-bot> [commit] Werner Almesberger: lpc111x-isp/test/: proof of concept LED-blinking code (master) http://qi-hw.com/p/ben-blinkenlights/49ff81f
<whitequark> wpwrak: btw, do you have a degree in EE? or another kind of finished formal education?
<whitequark> electronics-related, that is
<wpwrak> well, there was a bit of electronics in comp. sci. and i have a phd in communication systems. (though that didn't involve the lower layers)
<wpwrak> so the qi-hw stuff i'm playing with is mostly DIY learning
megharsh has quit [Ping timeout: 255 seconds]
<whitequark> I wonder how would the fact that I'm a college dropout affect my employment (if the language thingy doesn't take off). Programming websites in ruby is nice, but it's definitely not what I'd like to do for the rest of my life.
<whitequark> (and that what I learned has nothing to do with CS nor EE)
<wpwrak> makes things more difficult, of course. it helps if you make projects that have a lot of visibility.
<whitequark> (on the other hand, I'd need some kind of degree to emigrate anyway, so...)
<wpwrak> degrees are useful to keep the paper-pushers happy :)
<whitequark> this is their main purpose :)
<whitequark> I've seen vacancies for cleaners with a degree. not joking.
<wpwrak> somebody must be enjoying that
<whitequark> well, it is not like HRs were extra clever anyway. another example: mail.ru (think russian yahoo) HR once interviewed my now-colleague. half a year (sic) later they send him a e-mail, say that they lost the results (sic) and ask him to come again
megharsh has joined #qi-hardware
<whitequark> this is slightly below the median. again, I wish I was joking.
<wpwrak> the world needs stupid people to keep the IQ balanced :)
xiangfu has quit [Quit: leaving]
xiangfu has joined #qi-hardware
megharsh has quit [Ping timeout: 264 seconds]
xiangfu has quit [Ping timeout: 255 seconds]
xiangfu has joined #qi-hardware
xiangfu has quit [Ping timeout: 276 seconds]
jekhor has joined #qi-hardware
jekhor has quit [Ping timeout: 264 seconds]
qwebirc19260 has joined #qi-hardware
<qwebirc19260> hello
xiangfu has joined #qi-hardware
jekhor has joined #qi-hardware
wolfspra1l has joined #qi-hardware
wolfspraul has quit [Ping timeout: 265 seconds]
qwebirc19260 has quit [Quit: Page closed]
jekhor has quit [Ping timeout: 276 seconds]
jekhor has joined #qi-hardware
porchao has joined #qi-hardware
porchaso0 has quit [Ping timeout: 264 seconds]
<viric> I've an old bttv card... does anybody have experience with that?
porchao has quit [Ping timeout: 255 seconds]
porchao has joined #qi-hardware
<wpwrak> viric: i used to watch tv on that kind of critter
<viric> it's a hell
<viric> I used one slot, it said it can't route irq or so
<viric> I used another slot, and the system doesn't see it
<viric> and I don't have more slots
<viric> What's a cheap device to capture from S-video or so, these days?
<viric> then it'd have to work in linux. frightening
<viric> the only usb thing I see in the kernel is Empia EM28xx USB video capture support
<wpwrak> hmm, back then the bttv just worked :) and yes, that was under linux, of course
<viric> wpwrak: when I can make bttv load, it says it doesn't identify my card though
<viric> (card=somenumber, tuner=somenumber, mess)
<wpwrak> ah, i think the tuner was a parameter you sometimes had to set
<wpwrak> for some reason it couldn't always autoprobe it
<viric> one chip, hundreds of incompatible boards
<wpwrak> the thing is that it's multiple chips and there seem to be lots of different tuner chips (on I2C)
<viric> yep
<viric> ok, found one USB that should be supported by linux!
megharsh has joined #qi-hardware
<viric> 'Conceptronic Home Video Creator', 20€, EM2862 chipset
kuribas has joined #qi-hardware
<wpwrak> you should be able to identify the tuner of your bttv by looking at the board. then you can set the module parameter.
jekhor has quit [Ping timeout: 255 seconds]
kuribas has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
megharsh has quit [Ping timeout: 252 seconds]
<viric> wpwrak: but bttv doesn't even identify the card
jekhor has joined #qi-hardware
<wpwrak> you mean on PCI ?
<viric> bttv knows the pci card is for him
<viric> but it says "unknown card"
<wpwrak> maybe google for the exact error message. there's always someone who's solved the same problem.
<wpwrak> (or for the message sequence)
<viric> I tried
<viric> and I didn't find anything
<wpwrak> look for the PCI ID ?
<wpwrak> xxxx:xxxx "unknown card"
megharsh has joined #qi-hardware
jekhor has quit [Ping timeout: 252 seconds]
jekhor has joined #qi-hardware
<viric> wpwrak: nah, the pciid is found fine. otherwise bttv wouldn't be loaded.
<viric> wpwrak: it's bttv that doesn't know what's "in the card"
<viric> it's a messy world.
<viric> I just bought a usb card
<viric> I've to hope it will work
<wpwrak> the PCI ID would be the key to problem reports that then dig deeper
<viric> I've made that card work
<viric> the usual procedure is "pass card=somenumber", testing different numbers, until it will work
<viric> But I made that work years ago. And now, one pci slot can't route the irq properly, the other doesn't show the pci card at all
<viric> some posts say that these cards don't work well with pci irq sharing, ...
<viric> I've no hope in it anymore.
<wpwrak> how easily we give up :)
<viric> ;) yes
<viric> I could improve the bttv driver and make it work, I know ;)
<wpwrak> or just find the right settings :)
<viric> among 140 different cards implemented?
<viric> ehem
<viric> Ok, the usb dongle works! I've the vcr signal :)
<viric> quite noisy
<viric> supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 SECAM; 15 = SECAM-B; 16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SEC
<viric> that's no PAL? grmbl
<wpwrak> oh. so you went to a shop. i thought you had ordered the USB critter online.
<viric> nah
<viric> I dislike online.
<viric> I like going back to the shop, saying "It doesn't work for me", and getting the money back
<viric> In the linux world, it happens from time to time.
<wpwrak> heh :)
<wpwrak> just thought today wouldn't be a good day for going to a physical shop
<viric> mh RCA gives a much better picture than s-video
<viric> snd
<wpwrak> old, proven technology :)
<viric> now I wonder how can I make the alsa 'record device' go to my alsa 'playback device'
<wpwrak> that's the problem with solving problems. solving an easy one immediately unlocks a much harder one.
<viric> it's choppy. no idea why.
<wpwrak> USB :)
<viric> I think the card delivers audio only every 0.5s
<wpwrak> bwahaha
<wpwrak> why bother at all ? :)
<viric> I want to save some VCR
<wpwrak> no, i mean: why do they bother at all to pretend to provide audio if it's unusable
<wpwrak> are there maybe any interesting complaints in dmesg ?
bartbes_ has joined #qi-hardware
bartbes__ has quit [Ping timeout: 264 seconds]
<viric> hm no, it's fine
<wpwrak> of could that USB critter be on a problem port and/or sharing the hub with company that's too numerous or too nasty ?
<wpwrak> (the internal hub)
<viric> it'd be weird.
<viric> I don't think so. I think it's more related to buffering
<wpwrak> 500 ms is pure evil
<qi-bot> [commit] Werner Almesberger: libubb/README: document GPIO and register access (master) http://qi-hw.com/p/ben-blinkenlights/9d29821
<qi-bot> [commit] Werner Almesberger: libubb/README: describe how to get rid of competing drivers (master) http://qi-hw.com/p/ben-blinkenlights/506db2d
<viric> no idea
<viric> it's a hell
<viric> mplayer plays the video fine, but with audio, no.
<viric> If mplayer plays the video, then 'arecord' in parallel can record the sound perfect.
<viric> ha
xiangfu has quit [Quit: leaving]
<whitequark> viric: (buying online) I prefer to check if it works _prior_ to buying anything.
<whitequark> this tends to be slightly more effective ;)
<viric> it's a pain to do that
urandom__ has joined #qi-hardware
<whitequark> wait, I don't get it
<whitequark> oh nevermind
jekhor has quit [Ping timeout: 264 seconds]
<viric> forums and forums and forums
<viric> for the case, all I find about the card I have is that it works for them.
<wpwrak> viric: make sure you post your negative experience, so the next poor fellow is warned :)
<viric> :)
wej has quit [Ping timeout: 264 seconds]
wej has joined #qi-hardware
<kyak> at the end of the day, it works in Linux. What else do we want? :)
<wpwrak> make the part of the day before the happy end pass faster ? :)
kilae has joined #qi-hardware
<kyak> wpwrak: what about a command to read pin status in libubb?
<hozer> so... anyone looked into USB-3.0?
<kyak> hozer: as in "look in a hole that represents USB 3.0 port on my laptop", i did :)
<hozer> hah
* hozer is a masochist, I want to design a USB 3.0 serdes
<hozer> cause, well, the infiniband-fpga is still too niche for anyone to care
<hozer> or at least figure out if the xilinx LX25T could do thunderbolt and/or usb3.0
<hozer> err xcs6LX25T
<whitequark> hozer: cool
<whitequark> AFAIK there is no open EHCI controller now
<whitequark> not even talking about XHCI
<hozer> hrrm
<hozer> anyone else want to help me write a patent for 2X DDR Infiniband over a Thunderbolt cable? ;)
wej has quit [Ping timeout: 260 seconds]
<hozer> I'd say forget about XHCI nonsense and let's just use infiniband for open hardware (and let someone else make an IB to USB3.0 bridge chip)
<hozer> http://bitspjoule.org/hg/Brick/ has a patent template
<wpwrak> kyak: the PIN(mask) macro does that. see the README for all the details :)
wej has joined #qi-hardware
<wpwrak> hozer: combine with a nonsense text generator and you can automatically file a few hundred patents per day. that should be a useful portfolio. whenever something new pops up, you search your nonsense patents for a match. every once in a while you ought to have something ...
<hozer> wpwrak: it costs $125 a pop to file
<hozer> so I think it would work better if there were humans in the loop
<hozer> oh, that's US patents. I have no idea about international stuff
rz2k has joined #qi-hardware
<wpwrak> $125 isn't all that much. humans are far more expensive.
<hozer> okay fine, write me a nonsense patent generator and I'll start filing them :)
<hozer> you can have 25% of the patent license fees recovered ;)
jekhor has joined #qi-hardware
<whitequark> hozer: why XHCI is nonsense? it's industry standard and soon it will be everywhere.
<hozer> show me the vhdl :P
<whitequark> hozer: use the spec to write one
<hozer> there's an opencores usb2.0 host, right?
<whitequark> hozer: as far as I know, no. but my knowledge might be outdated. let me check
<whitequark> yeah, it doesn't seem there is an EHCI controller on opencores
megharsh is now known as superbot
<whitequark> and say this is not a production of a nonsense generator.
emeb has joined #qi-hardware
<whitequark> http://contextfreepatentart.tumblr.com/post/37789336964 haha I love the "personal information" arrows
<wpwrak> is that a patent on patentophobia ?
<whitequark> I can't seem to find a PDF
wolfspra1l has quit [Quit: leaving]
<wpwrak> maybe that's for the better :)
wolfspraul has joined #qi-hardware
<whitequark> oh indeed
<whitequark> ha. this new year eve resembles for me exactly what it is: just another regular day. and I like it.
mwic has joined #qi-hardware
<wpwrak> low paranoia, moderate anger ? :)
<whitequark> wpwrak: I think you might have a slightly biased view of me now :) stuff tends to accumulate for months.
<wpwrak> ;-)
<whitequark> more like the opposite. doing socially expected stuff at socially expected holidays can be quite stressful.
<wpwrak> indeed. the famous xmas effect. all those family dramas and so on.
<whitequark> hm, I never encountered this as a well-known effect. just an observation. through this doesn't surprise me
<wpwrak> i don't know if it has an official name. but each year around this time people get crazy.
<wpwrak> particularly towards the 24th, of course. the 31st tends to be much better.
<whitequark> here it is slightly different. almost no one celebrates 24th. those who do, make it at Jan 7th "old style" (calendar change, etc.)
<whitequark> but it's not much either
<whitequark> so all the insanity dumps into the air at 31th
<wpwrak> i guess all those who feel that certain urge to kill their family/significant other/previous significant other/neighbours/etc. or be killed by them will have had opportunities to do so by now, so things are less tense
<wpwrak> ah, i see
<wpwrak> other countries, other insanity days :)
<whitequark> yeah. I think it's due to the fact that USSR tried to eradicate religious holidays, with quite some success
<wpwrak> not a bad idea
<whitequark> why?
<wpwrak> disentangle things a bit. well, depends on whether they remove them or whether they replace them with equally arbitrary holidays.
<whitequark> of course, they replace with arbitrarily holidays. with names which make some religious things look perfectly sensible in comparison
<whitequark> *arbitrary
<whitequark> ha, it dawned on me that you (and anyone non-russian, for that matter) probably don't know anything about our holidays :) let me elaborate then
<whitequark> there isn't much of them. Main ones:
Jurting_pc2 has quit [Read error: Connection reset by peer]
<whitequark> 1. Dec 31st. New Year, all that. Celebrated by gifting neatly packaged stuff (only children are lucky enough to get anything actually useful), dressing a fir tree in glass balls/figurines and colorful ribbons, and heavy drinking.
<whitequark> two weeks before everything is paralyzed due to sheer traffic. week after is simply dead. two weeks after early brids return to work.
<whitequark> everything kinda returns to normal to early-mid february
Jurting_pc2 has joined #qi-hardware
<whitequark> 2. Feb 23th. Day of Motherland's Defender (or something like that). Basically boys' day. (It is quite ironic that probably most of the people getting greetings on this day never were in army and have absolutely no intent). Celebrated by gifting cheap pens and notepads. Not a national holiday AFAIK.
<whitequark> 3. May 8th. International Woman's Day. (Is it actually "international"? I'm not sure.) Basically girls' day, symmetric to the previous one. Equally useless gifts, also flowers.
<whitequark> er, March 8th, of course
<whitequark> 4. May 9th. Day of Victory (in WW2). Celebrated by wearing these bands http://img0.liveinternet.ru/images/attach/c/1//58/652/58652752_5116_1.jpg in places appropriate and not (they'll hang from everywhere for several extra months), saying how all of you are proud of veterans due to whom you're currently alive, and having no respect whatsoever to said veterans. (I wish I was being sarcastic.) Fortunately, soon there won't be any left to obser
<whitequark> ve this shame, and it'll become just another day to drink on. National holiday. Usually clustered with a few more days off, producing a total clusterfuck in calendar where weekdays are arbitrarily shuffled.
<whitequark> (I never understood what logic do they use to reorder days. It is incredibly confusing, and also some institutions suddenly decide they won't live up to a national standard. Like schools.)
<wpwrak> 31st sounds like 24/25th in the west
<wpwrak> except that, at least in the northern hemisphere, people return to work relatively soon thereafter
<wpwrak> in the southern hemisphere, this marks the begining of the summer holiday season
<whitequark> 5. Sep 1th. Day of Knowledge. Celebrated by observing kids on the internet and facepalming. Seriously now: everyone goes to school; kids in primary and middle school bring tons of flowers and chocolate to teachers.
<whitequark> High school, basically the same, less flowers. University: even less flowers.
<wpwrak> day of knowledge sounds sweet :)
<whitequark> well, chocolate and flowers are the default gift for women here
<whitequark> used on all holidays. it's just that teachers, especially in primary/middle school, are mostly women
<whitequark> one can end up with 5-8 packs of chocolate sweets at the end of the day
<wpwrak> useful for fattening up for that harsh russian winter
FrankBlues has joined #qi-hardware
<whitequark> hmm, let me check if I missed something. is looking up holidays of your own country on wikipedia that bad?..
<whitequark> ah, Jan 14th, "Old New Year". Oxymoron intended. Basically you have a week starting at 31th, 7th and 14th to begin drinking and get rid of hangover to prepare for the next one.
<whitequark> Or just do it non-stop.
<whitequark> also calendar-related quirk.
<whitequark> lolwtf, Jan 14th is also Day of Creation of Pipeline Carrier Armed Forces.
<whitequark> Stalin surely had a sense of humor.
<whitequark> Jan 25th, Day of students. Day when MSU was founded. Nothing really interesting.
<wpwrak> as you can see, there's quite a lot of them. some get added during the year.
<whitequark> Feb 14th, you know what it is. Quite a lot of Russian nationalists hate it as being too west-related
<whitequark> wpwrak: yeah, I'm looking through a similar list, but filter obvious nonsense and things that no one knows about (except bureaucrats)
<hozer> anyone got csg324 package libs for KiCad?
<wpwrak> hozer: we have something called "BGA-324", 15x15 mm, 0.8 mm pitch. does that fit ?
<wpwrak> it's in bga.fpd
<hozer> that seems like it
<hozer> yeah, but where can I just 'apt-get install' it from :P
<wpwrak> you check out the repository :)
<hozer> so here's a theory.. say I lay out a board with Kicad, and annotate all the pins
<hozer> no, not yet :)
<hozer> and then I change out a Xilinx FT256 (17mmx17mm, 1.0 pitch), for a CSG324
<wpwrak> and for modules, you also need to convert: check out and install fped (or apt-get install it - it's now in debian), then run "make" in kicad-libs/modules/
<hozer> there should, in theory be some way to generate the part of the constraints file and auto-route the pcb, right?
<wpwrak> huh ? not sure what you mean
<wpwrak> what means "annotate all the pins" ?
<hozer> when you make an fpga bitstream, you have this file that 'constrains' all the signals to physical pins on the fpga part
<wpwrak> and what autorouter to you mean ? freeroute ?
<wpwrak> oh, that. well, kicad knows nothing about that :)
<hozer> I have no idea, I've never actually done this, but this is what I *want* to be able to do
<wpwrak> you could make such a tool. of course, you'd want such tools for a great many other things, too.
<hozer> so if I have a board, with a schematic, and I have an FPGA signal named MGTRXN1, and it's wired to pin5 on a mini-displayport or something
<wpwrak> in the end, everybody does these mappings manually ...
<wpwrak> yes, i understand. and it would be the same for, say, microcontrollers.
<hozer> yep
<wpwrak> i.e., "the gpio that connects to the green led"
<hozer> *exactly*
<hozer> and you type 'make' and the PCB autorouter and the FPGA placer go fight over what pin on the fpga (or micro) it gets
<wpwrak> as far as i know, no tool that lets you work at that level exists
<wpwrak> and we don't have a usable autorouter anyway :)
<hozer> heh, why not ;)
<wpwrak> you can choose between one that's open but doesn't work, and one that does work but is closed
<hozer> so what's the open one that's busted
<wpwrak> the one built into kicad. or at least it was there. may have been dropped since.
<wpwrak> there's also an autoplacer that visually shows how kicad is looking for the worst possible placement. that makes it not only unusable but also incredibly slow.
<wpwrak> i'd consider these critters misguided practical jokes
<wpwrak> besides, an auto-whatever is rarely good enough to get the job done
<wpwrak> interactive routers are much more useful
<hozer> okay, does kicad have that?
<wpwrak> ionly the external web-based and closed "freerouter"
<hozer> so the ideal situation is the interactive router knows that there are X number of possible pins my LED wire can go to on the micro
<wpwrak> yes, something like that
<hozer> this is still really an art, isn't it?
<wpwrak> when push-routing, it could then not only push traces out of the way, but also swap them as suitable
<wpwrak> yes, pretty much
<wpwrak> that sophisticated pattern matching engine we carry around in our skulls is still rather impressive :)
kyak has quit [Ping timeout: 265 seconds]
<whitequark> wpwrak: http://www.calend.ru/holidays/russtate/ the full list
<whitequark> hozer: I recommend to check out topological interactive router, TopoR
<whitequark> http://eda.eremex.com/ this I think
<hozer> source?
<whitequark> proprietary
<hozer> baaaaaaaaahhh humbug
<hozer> it makes some pretty damn cool art
<whitequark> but it's the only autorouter known to me which actually produces very decent results
<whitequark> hozer: also, less crosstalk :)
<hozer> well, I want to use the same damn router for PCB that I use for silicon
<hozer> so I think I'm off on a 10-year Don Quixote quest
<whitequark> hmm
<whitequark> do you route and manufacture silicon? I want to look at it :)
<hozer> not yet. ;)
<hozer> currently I buy 30 year old farm equipment for scrap metal price+10%, and fix it
<whitequark> interesting process. what do you want to achieve?
<whitequark> have you heard of http://opensourceecology.org/ ?
<hozer> so sometime in the next 15 years I'll need to replace undocumented micros from bankrupt companies to get the old farm equipment working
<hozer> I'm amused by them.
<hozer> I love the excitement, but I don't think any of them have ever actually grown enough food to survive for a year
<whitequark> I don't see how this is bad
<whitequark> it's not like, for example, Qi HW is self-sustainable either...
<hozer> they are excited about the 'lifetrac' , but don't seem to have any understanding of the practical reasons why the design of a tractor hasn't fundamentally changed in 30 years
<hozer> what's changed on the tractor is addition of silicon... thus anyone getting into farming *now* will need Qi-HW
<whitequark> hozer: what's wrong with lifetrac?
<hozer> hrrm.
<hozer> it's kinda like trying to use an FPGA on a high-volume production item where power consumption and battery life is critical
<hozer> Lifetrac is basically a skid-loader, and does not work very well at all as a tractor
<hozer> and having it try to do both functions makes it bad at both
<hozer> tractors are designed to pull, thus the big wheels in back, and engine up front
<whitequark> well, it's not like they actually can do mass-production yet. maybe it's better to use an FPGA at this stage.
<whitequark> they seem to do a lot of real, tangible work. I'd love to see what comes out.
<hozer> yeah
<hozer> the thing is I bought a perfectly good tractor for $2500
<hozer> they spend quite a bit more than that fabricating the lifetrac
<hozer> that's not the labor, that's just the materials
<hozer> now, if I could put some open-source GPS receivers and a network on my 30 year old combine, THAT would provide some real productivity gains
<hozer> the best thing the OSE guys are doing is making open-source machine tools
<hozer> so I could make a cold saw from their designs and cut and fabricate replacement parts from a scrap pile
<whitequark> nice
<whitequark> hozer: do you want to achieve self-sustainability for the sake of it? or something else?
<hozer> so, in summary, I like what the OSE guys are doing. But as the guy who got (more than) half his income from corn/soybean sales this year, the *real* civilization starter kit is on #homecmos
<kristianpaul> hozer: what feature you need from an open-source gps receiver implementation?
<kristianpaul> Hi btw
<hozer> centimeter accuracy
<hozer> that's repeatable over a span of 25 years
<hozer> so.. that's going to require some sort of ground-based RTK or whatever the acronym is base station
<kristianpaul> that can be achieved not only by be open source, i meant is not the gps receiver fault at all
<hozer> ground-penetrating radar (or a robot) to figure out if the tile maps are accurate befor digging would be nice too
<kristianpaul> you can mix with glonass
<kristianpaul> add navigation
<hozer> in reality, I probably don't need (or want?) gps at all, I just want 802.11a/b/g with a couple of base stations at the corners of the field that do triangulation
<hozer> if you have to do RF, you might as well transmit/receive usefull data over a standard protocol, right?
<whitequark> hozer: 80211? triangulation?
<hozer> well, why not?
<hozer> if you have a software defined radio, and good timestamps, can't you figure
<hozer> out how far away from the transmitter you are?
<whitequark> oh, you want to measure signal propagation delay
<whitequark> well, if you figure out how to synchronize clocks on such scale... good for you
<hozer> hah
<whitequark> this is going to be very hard IMO
<hozer> well, that might be what gps is good for ;)
<whitequark> wpwrak might know more about it
<whitequark> hozer: gps does not provide the accuracy you need
<hozer> damn I hate google's url obfuscation
<whitequark> hozer: hm
<whitequark> interesting
<hozer> all the precision ag (1cm) applications require some sort of RTK base station
<hozer> actually, now that I think about it a little, line-of-sight laser might be a heck of a lot easier with some cheap robotics
<whitequark> hozer: where do you live?
<hozer> here's another thought: tractor broadcasts a 'ping'
<hozer> base stations (with fpga, or just plain analog) reflect a 'pong'
<hozer> (probably on different frequencies), and some software defined radio magic figures out the distance to each base station
<hozer> Minnesota/Iowa (US)
<kristianpaul> rtk yeap
<kristianpaul> ask lindi- ;-)
<whitequark> wpwrak: haha look what just opened in moscow: http://www.chipdip.ru/about/news/cafe-pripoj.aspx
LunaVorax has joined #qi-hardware
<hozer> are they really combining soldering and food?
<whitequark> hozer: seems so
* hozer looks at his bowl of oatmeal about 15cm from a soldering iron
<whitequark> we all know you shouldn't do that, yet all do it ;)
<LunaVorax> Hi!
<hozer> Hello LunaVorax, what brings you here?
<wpwrak> hmm, i actually keep my food about 1 m from the solder fumes :)
<LunaVorax> Nothing especial hozer, I just enjoy being on IRC
<LunaVorax> And I still can't find my Nanonote :'(
<whitequark> wpwrak: this might be the only way in which lead-free solder is actually beneficial
<wpwrak> i think there's plenty more in there you don't want to ingest
<hozer> heh heh heh
<whitequark> wpwrak: well, you could only get argyria
<whitequark> and copper poisoning
<hozer> it's all about quantity
<whitequark> the first thing is actually beneficial to you, in fact, as you'd never ever get a bacterial infection
<whitequark> if you don't mind being purple, of course.
<wpwrak> whitequark: no copper in the solder
<wpwrak> whitequark: bit the flux should be a delicacy
<wpwrak> s/bit/but/
<qi-bot> wpwrak meant: "whitequark: but the flux should be a delicacy"
<whitequark> wpwrak: isn't lead-free solder Sn-Ag-Cu?
<whitequark> the Cu content is somewhere around 1.5%, IIRC, but it's a heavy metal nevertheless
<wpwrak> ah right, lead-free formulas often have traces of copper
<whitequark> huh, indium solder
<whitequark> isn't In quite rare as it is to waste it on solder?
<wpwrak> hmm, seems that there's no nice way for a process to find out if it has been mlockall'ed
<whitequark> wpwrak: /proc should have that somewhere
<wpwrak> neither /proc/<pid>/maps nor /proc/<pid>/pagemap reveals VM_LOCKED
<wpwrak> must be the one thing that /proc doesn't have :)
<whitequark> The VmLck field of the Linux-specific /proc/PID/status file shows how many kilobytes of memory the process with ID PID has locked using mlock(), mlockall(), and mmap(2) MAP_LOCKED.
<whitequark> let me check how it changes...
<wpwrak> hmm, that could be used as a hint ...
<wpwrak> interesting. one page below VmSize or VmRSS
jekhor has quit [Ping timeout: 265 seconds]
<wpwrak> that'll be good enough. thanks !
Maroni has joined #qi-hardware
<whitequark> wpwrak: have you seen Unicore32?
<whitequark> it seems that it is basically a Chinese clone of ARM ISA
* whitequark sent an SMS 3 seconds prior to midnight. let's see how long will it take for it to arrive...
<whitequark> 1:25. not bad.
<hozer> seems like we need a latency plot of sms messages vs time ;)
<whitequark> hozer: new year. gsm networks were so overloaded at previous years as to go down completely for hours
<hozer> commens on the kicad-libs.. wasn't there a guy that did 3-D modules?
unclouded has joined #qi-hardware
urandom_ has joined #qi-hardware
urandom__ has quit [Ping timeout: 245 seconds]
<whitequark> ha, at 0:27: latency 1:55:00
<wpwrak> two hours ? so it's something like 02:30 at your place ?
<wpwrak> my world time map has most of western russia around 01:30
<wpwrak> anyway, happy new year ! :)
jekhor has joined #qi-hardware
urandom__ has joined #qi-hardware
urandom_ has quit [Ping timeout: 264 seconds]
urandom__ has quit [Ping timeout: 265 seconds]
urandom__ has joined #qi-hardware
urandom__ has quit [Ping timeout: 264 seconds]
urandom__ has joined #qi-hardware
urandom_ has joined #qi-hardware
<rz2k> you now recieve knight status for writing bad APIs and providing zero customer support. http://www.eetimes.com/electronics-news/4403955/Imagination-Technologies-CEO-knighted-
urandom__ has quit [Ping timeout: 260 seconds]
urandom__ has joined #qi-hardware
urandom_ has quit [Ping timeout: 245 seconds]
urandom__ has quit [Ping timeout: 265 seconds]
urandom__ has joined #qi-hardware
urandom_ has joined #qi-hardware
<Jay7> happy new year :)
urandom__ has quit [Ping timeout: 265 seconds]
<wpwrak> rz2k: as well as furthering obscurity
GNUtoo-desktop has joined #qi-hardware
<qi-bot> [commit] Werner Almesberger: libubb/swuart.c: only return error codes or fail silently; don't print messages (master) http://qi-hw.com/p/ben-blinkenlights/5f3828f
<qi-bot> [commit] Werner Almesberger: swuart-chat/chat.c (main): use perror if swuart_open fails (master) http://qi-hw.com/p/ben-blinkenlights/0b81ffa
<qi-bot> [commit] Werner Almesberger: lpc111x-isp/lpc111x.c (start_isp): check for swuart_open failure (master) http://qi-hw.com/p/ben-blinkenlights/6dfaedd
<qi-bot> [commit] Werner Almesberger: libubb/README.SWUART: document the software-implemented UART (master) http://qi-hw.com/p/ben-blinkenlights/9ddc377
urandom_ has quit [Ping timeout: 276 seconds]
urandom_ has joined #qi-hardware
zear has quit [*.net *.split]
kristianpaul has quit [*.net *.split]
wpwrak has quit [*.net *.split]
kristianpaul has joined #qi-hardware
kristianpaul has quit [Changing host]
kristianpaul has joined #qi-hardware
wpwrak has joined #qi-hardware
zear has joined #qi-hardware
Maroni has quit [Ping timeout: 260 seconds]
wej has quit [Ping timeout: 264 seconds]
wej has joined #qi-hardware
superbot has quit [Ping timeout: 245 seconds]
superbot has joined #qi-hardware