2011-04-11 00:07 whitequark: could be either, depending on the board's complexity. maybe we can just call it "heroic" ? ;-) 2011-04-11 00:14 around of 15 smd components there, with .016" width wires 2011-04-11 00:15 16 mil ? so ... power electronics. are you designing a board to bridge the 50 Hz and the 60 Hz net in japan ? :) 2011-04-11 00:19 well, i have a board with 30 mil traces and i think i also managed to break one ... that was with a bit too much haste on the acid, though 2011-04-11 00:19 the flip side is that i had it etched in something like ten seconds ;-) 2011-04-11 00:23 [commit] Werner Almesberger: f10/Makefile (brd): funny, the "brd" target never worked http://qi-hw.com/p/wernermisc/3b04bf0 2011-04-11 00:29 wpwrak: not power at all. and they look a bit too thin, anyway 2011-04-11 00:31 and when I place the photonegative above the board, there is no visible gap between the image and the actual wires on board 2011-04-11 00:32 I'll post a photo tomorrow, I think 2011-04-11 00:32 (maybe my design is crappy, and someone will tell me that. that would be very good, actually) 2011-04-11 00:34 whitequark: (no gap) does that mean that the traces are the same width as the design or that they're no wider than the design ? 2011-04-11 00:36 wpwrak: they're the same width, through they do not look so (probably due to an optical illusion. white on black looks wider than copper on PCB) 2011-04-11 00:37 the .016 trace looks a bit too narrow near 0805 components, through I usually lay out digital lines with .012 2011-04-11 00:38 whitequark: (15 components) that's simple than atusb, 150% of the complexity of atben. both are 8 mil designs. atben has trace failure ratio of about 25%, or less. did you check for problems before etching ? 2011-04-11 00:39 (illusions) yeah, you can never tell ;-) 2011-04-11 00:39 8 mil!!! 2011-04-11 00:40 now I feel myself like an idiot. 2011-04-11 00:40 welcome to the wonderful world of toner transfer ;-) 2011-04-11 00:41 do we both use same mils? 2011-04-11 00:41 truth be told, i don't think my traces are really 8 mil. most likely, they're ~10 mil. otherwise, i wouldn't have so many shorts in zones with (nominally) 8 mil clearance. 2011-04-11 00:42 hmm. 2011-04-11 00:42 I didn't really tried 8mil traces at all 2011-04-11 00:42 of course, shorts are easy to remove. all they take is one swift cut :) 2011-04-11 00:43 you're using a photochemical process, right ? 2011-04-11 00:43 yeah 2011-04-11 00:43 dry film photoresist 2011-04-11 00:43 it works WAY better than toner transfer (for me) 2011-04-11 00:43 that should give you even better accuracy than toner transfer, yes 2011-04-11 00:43 at least it is repetitive, i.e. I get exactly the same crap each time 2011-04-11 00:44 and the failure rate is maybe 10 or 50 times less than with toner transfer. I was not able to do a single board without errors with the latter 2011-04-11 00:44 for toner transfer, all the magic is in the paper. plus, you have to be either very steady at ironing, or automate the proces 2011-04-11 00:45 (errors) easily fixed errors or real problems ? 2011-04-11 00:45 for the toner transfer, they often were serious 2011-04-11 00:45 for the photoresist, they are often fixed by a cut or a small piece of thin wire 2011-04-11 00:46 I use laminator to attach the photoresistive film to the board, anyway 2011-04-11 00:46 thin wire is level 3 ;-) a scratch / a bit of acid resist pen before etching would be level 1. a cut or a solder bridge after etching would be level 2 2011-04-11 00:47 ah yes, acid resist pen. cd marker works somehow for that 2011-04-11 00:48 i almost always have level 1 problems. some of them may not be very serious, though. 2011-04-11 00:48 I think that my worst problem is with etching itself 2011-04-11 00:48 what acid ? 2011-04-11 00:48 I use FeCl3 for that 2011-04-11 00:49 should be "friendly", although a mess 2011-04-11 00:49 do you reuse it a lot ? 2011-04-11 00:49 yes 2011-04-11 00:49 that may be the problem 2011-04-11 00:49 I think no. if you leave it exposed to air, it eventually oxidizes all the copper 2011-04-11 00:50 and, furtherly, FeCl2 converts itself to FeCl3 2011-04-11 00:50 erm, how long to you leave your boards in the acid ? 2011-04-11 00:50 I check them regularily, and remove when all copper not covered by the resist is etched 2011-04-11 00:50 ~20-30mins at room temp. 2011-04-11 00:50 okay. 30 min is still okay. 2011-04-11 00:51 (oxidizing trick) for that to work, you need to add 35% HCl to it sometimes 2011-04-11 00:51 you're moving the board around while etching ? 2011-04-11 00:51 yes, several times 2011-04-11 00:51 like, all the time ? :) 2011-04-11 00:51 otherwise it'll stall at some point 2011-04-11 00:51 no, 2 or 3 times maybe 2011-04-11 00:52 oh no, it won't stall. it will just surprise you ;-) 2011-04-11 00:52 hmmm 2011-04-11 00:52 what kind of surprise? 2011-04-11 00:52 uneven etching. stops in some areas (because it's blocked by byproducts) yet happily etches on in others. 2011-04-11 00:53 it's basically the same as with an excessively aggressive acid. also there, you can't control the distribution. 2011-04-11 00:54 well, my problem, as I understand it, is: it should etch the unneeded copper from top to bottom, and it should not etch the traces from sides. but it still does 2011-04-11 00:54 you have to move it around a bit more 2011-04-11 00:54 sounds reasonably, I'll try that with next board 2011-04-11 00:54 thanks 2011-04-11 00:55 also, FeCl3 is supposed to be warmed up. it's a mess, though. 2011-04-11 00:55 grhm, warming it up isn't easy at all 2011-04-11 00:56 if you have acceptable ventilation, i would recommend giving HCl+H2O2 a try. that acid doesn't last very long (hours, not days), but it's so incredibly cheap that you usually don't care. 2011-04-11 00:57 I should either get some equipment, or convince my parents that the spots of FeCl3 all over the kitchen is an acceptable byproduct of etching... 2011-04-11 00:57 it works at room temperature and is transparent. its downside is that the Cl evaporates. so if you leave it inside, it will attack its surroundings. 2011-04-11 00:58 FeCl3 is a pig ;-) 2011-04-11 00:58 when it is cold, I manage to not leave traces anywhere 2011-04-11 00:58 (HCl+H2O2) there is a terribly small problem. you can't freely buy acids (and more than ~3% H2O2) in russia 2011-04-11 00:58 cold FeCl3 is also the one that doesn't work very well ;-) 2011-04-11 00:59 they're regulated by some idiotic act written to prevent illegal drug manufacturing or something like that 2011-04-11 00:59 HCl, H2SO4, H2O2, benzene, phenol, even KMnO4 2011-04-11 01:00 one nice thing about HCl+H2O2 is that, if you let it evaporate, it produces nice crystals. you can sweep them up and throw them away with solid waste. (that may not be entirely according to the rules, but there shouldn't really be any danger in this) 2011-04-11 01:01 HCl ? that's used all over the place. 2011-04-11 01:01 H2O2 is used to desinfect wounds. 2011-04-11 01:01 (at low concentrations. at higher concentrations, it's more like causing them ...) 2011-04-11 01:02 (H2O2) yeah, low concentrated one can be bought freely 2011-04-11 01:03 but anything more ~10% is not available 2011-04-11 01:03 10% should be plenty ;-) 2011-04-11 01:03 HCl too 2011-04-11 01:04 for etching PCBs, the usual concentration is 5%. it does mean that you can't easily reoxidize your acid, though. but hey, it's cheap. just mix some new. 2011-04-11 01:05 MCl .. hmm, maybe you have to look at places for professional/industrial supplies. in general, even ~35% should be in very common use. 2011-04-11 01:07 well, the singke place where I've found some HCl was my university. technically, teachers aren't allowed to give students more than needed for labs, but they can sometimes look the other way (especially if you ask him)... 2011-04-11 01:07 *single 2011-04-11 01:07 the HCl only gets really nasty if you give it a lot of oxygen. so mix 30+% HCl and 30+% peroxide, toss some copper into it, and watch the fun ;-) (preferably from a safe distance) 2011-04-11 01:07 industrial suppliers require a company to work with, not an invividual 2011-04-11 01:08 same with professional ones AFAIK 2011-04-11 01:08 maybe HCl is know under some other name. in english and spanish, it's "muriatic" acid. it's a very old chemical, so it may have many "strange" names. 2011-04-11 01:08 don't you have hardware stores in russia ? 2011-04-11 01:09 (construction/plumbing/etc. supplies) 2011-04-11 01:10 (about name) well, maybe I'm not a chemistry genius, but I cannot know it THAT bad :/ 2011-04-11 01:10 HCl is also used for swimming pools. of course, that may be something that's not so popular in russia :) 2011-04-11 01:11 (name) you may be surprised ;-) maybe ask someone who works in the field. 2011-04-11 01:12 (pools) I think they use not the HCl itself, but Cl2 gas. it decomposes to HCl+HOCl in water, with the latter giving all the effect 2011-04-11 01:12 (name) I sure I know how it is called, really. that's so basic knowledge 2011-04-11 01:13 (stores) hmm, I never thought (and never heard) that I may find HCl there. may be a place to check 2011-04-11 01:14 whitequark: (pools) it's used to control the pH level. a quick google find (alas, with imperial units): http://www.deh.enr.state.nc.us/ehs/quality/wph.htm 2011-04-11 01:15 wpwrak: hmm... maybe it's not controlled here? at least I never heard of that 2011-04-11 01:16 whitequark: (uncontrolled pH level) well, have fun with your pool then ;-)) 2011-04-11 01:17 "Metal fittings, pump impeller, heater core may corrode", "Plaster walls are etched", "Eye irritation may occur", ... 2011-04-11 01:17 uh-oh 2011-04-11 01:18 and there's also the very subtle "Chlorine activity is slowed and inefficient". in other words, the chemicals won't get you, but the bugs will ;-) 2011-04-11 01:18 well, a quick googling (in russian) reveals a lot of pool tools sellers, so probably I'm wrong 2011-04-11 01:18 didn't knew that managing a pool is so hard, hm 2011-04-11 01:20 seems to be pretty sophisticated, yes. i wonder how many pool owners know all this ;-) 2011-04-11 01:21 but yes, pool supplies shops may be a good place to ask for HCl. they may sell it by the barrel :) 2011-04-11 01:21 I don't know anyone with a personal pool anyway 2011-04-11 01:21 heh 2011-04-11 01:22 the construction market is another good place 2011-04-11 01:22 other places would be shops with plumbing supplies. i'm not quite sure that the plumbers use it for, but at the local hardware supermarket, they keep HCl in bottles of 5 l (or maybe more) in the plumbing section. 2011-04-11 01:22 yeah 2011-04-11 01:22 it's also used for cleaning, concrete and other things 2011-04-11 01:23 just don't use it on those dainty marble surfaces :) 2011-04-11 01:24 ahh, carbonates... 2011-04-11 01:25 yes, could be for lime/scale removal 2011-04-11 01:29 whitequark: anyway, for HCl+H2O2, you want to use some sort of balcony. not necessarily for the etching itself, but for placing the acid after use, to let it quietly evaporate 2011-04-11 01:29 I think that warming FeCl3 is less difficult, currently 2011-04-11 01:29 but I'll record your method, thanks 2011-04-11 01:30 btw, it's 5:30AM here and I'll go to bed :) 2011-04-11 01:30 warming FeCl3 also has its traps ;-) 2011-04-11 01:30 a good time for some rest. just before the evil day star rises ;-) 2011-04-11 01:31 yeah. night is the best time for work 2011-04-11 01:34 whitequark: couldn't agree more ;-) 2011-04-11 03:34 http://michelebavaro.blogspot.com/2011/04/benefit-of-glonass.html 2011-04-11 05:22 wpwrak: hm. so, what are the traps of warm FeCl3? 2011-04-11 06:22 [commit] Xiangfu Liu: add variable for FLICKERNOISE http://qi-hw.com/p/m1s/158f7bc 2011-04-11 06:22 [commit] Xiangfu Liu:  merge compile-rtems to compile-flickernoise http://qi-hw.com/p/m1s/50c6081 2011-04-11 06:22 [commit] Xiangfu Liu: update git address http://qi-hw.com/p/m1s/5b6b261 2011-04-11 06:50 [commit] Xiangfu Liu: remove autotest-m1.git, fix the wallpaper name http://qi-hw.com/p/m1s/81466a9 2011-04-11 09:11 wolfspraul: i don't like to get excited too early, but today i will visit my post office and pick up Ben :) 2011-04-11 09:12 they sent me a notification that it has arrived 2011-04-11 09:12 he 2011-04-11 09:12 let's wait until you open the box, it boots, etc. 2011-04-11 09:12 today is exactly one month 2011-04-11 09:12 yeah 2011-04-11 09:12 first let's wait until we have the real bottom line, then it's time for a conclusion... 2011-04-11 09:13 right 2011-04-11 09:22 [commit] Xiangfu Liu: using cat create the flash.batch file http://qi-hw.com/p/m1s/f085a92 2011-04-11 09:30 [commit] Xiangfu Liu: using mktemp for create tmp file http://qi-hw.com/p/m1s/bc7f29b 2011-04-11 09:38 whitequark: (traps) risk of the outer container breaking due to heat stress. risk of overheating. limited choice of locations (e.g., the kitchen oven may be less convenient and less spill-tolerant than, say, the balcony) 2011-04-11 09:41 wpwrak: it's quite cold at the balcony now (not to say it is... eh... cluttered up) 2011-04-11 09:42 and no wall sockets there, so I'd leave the door open etc. 2011-04-11 09:42 hm. 2011-04-11 09:46 whitequark: yeah, an open door will do, too. just have some air flow. the issue is more finding a place where a) nobody will bump into your setup, and b) where spill can be tolerated. of course, you can use temporal separation instead of or complementing spacial separation :) 2011-04-11 09:47 kristianpaul: those pictures make a lot more sense once you realize they're from the UK ;-) 2011-04-11 10:06 wpwrak: what about ammonia (or ammonium?) persulphate? 2011-04-11 10:06 it is cheap, easily obtained and does not have color 2011-04-11 10:09 whitequark: i tried it once, briefly, and got uneven etching. but yes, it could be an option. 2011-04-11 10:24 wonders what happened with the panelized gerbers. it's been a while since that order went out ... 2011-04-11 10:31 wpwrak: can two atben's communicate between each other? or two atusb's? 2011-04-11 10:31 kyak: sure 2011-04-11 10:32 so they are absolutely the same, basically it's just the form factor that is differenet? 2011-04-11 10:32 kyak: atusb = atben+usb_to_spi (more or less) 2011-04-11 10:32 ah, ok 2011-04-11 10:33 i wonder if they are going to be sold in pairs 2011-04-11 10:33 i.e. atben+atusb 2011-04-11 10:33 kyak: thet're not absolutely identical: atben doesn't use the transceiver's clock output while atusb used it to clock the cpu. furthermore, atben doesn't have a reset input (so you have to power-cycle it) while atusb does. 2011-04-11 10:34 kyak: dunno what tuxbrain has decided on 2011-04-11 10:37 wpwrak: so the atben cpu is running on internal clock? 2011-04-11 10:38 kyak: the atben transceiver has its own crystal, yes. there's no "CPU" on atben, just the RF chip 2011-04-11 10:38 but these are two same RF chips on atben/atusb? 2011-04-11 10:39 atben and atusb use the same RF chip. atusb also has an ATmega32U2 to interface the transceiver (SPI) with USB 2011-04-11 10:39 "transceiver" = "RF chip" 2011-04-11 10:40 did you decide not to use the external clock for atben to save space? 2011-04-11 10:42 kyak: i tried to use the ben's system clock to clock the transceiver, which would have eliminated the crystal. unfortunately, the ben's clock is too noisy for this. 2011-04-11 10:44 just trying to understand, it seems that atben is "worse" than atusb? 2011-04-11 10:44 kyak: atusb saves one crystal (the avr would typically also have one) by re-using the transceiver clock. 2011-04-11 10:44 kyak: atben is simpler and cheaper than atusb. 2011-04-11 10:45 do you have any idea what the price could be for both of them? 2011-04-11 10:45 kyak: here you can see what's on them: http://downloads.qi-hardware.com/people/werner/wpan/tmp/2boards-20110305.jpg 2011-04-11 10:45 magnified: http://downloads.qi-hardware.com/people/werner/wpan/tmp/2boards-20110305-full.jpg 2011-04-11 10:47 kyak: tuxbrain once mentioned an estimate of EUR 25 for atben and EUR 35 for atusb, but i don't know if these are still current. 2011-04-11 10:48 wpwrak: is there going to be a casing for them? 2011-04-11 10:49 kyak: that's still under investigation :) 2011-04-11 10:49 kyak: one idea is to ship them with a bit of silicone, so can you make your own casing. 2011-04-11 10:50 wpwrak: seems there are no LEDs, too? My eye is not trained, i couldn't see it even on magnified picture 2011-04-11 10:51 kyak: but there are still a few unknown parameters, such as whether the material is easy enough to handle, what quantity is needed, and how it affects RF performance. wouldn't be so good if it absorbed or reflected 90% of the signal ;-) 2011-04-11 10:51 kyak: atusb has one LED 2011-04-11 10:51 wpwrak: silicone hasn't done any harm to anyone, ever ;) 2011-04-11 10:54 wpwrak: i think it should be posible to attached one atben to my linksys router (maybe i'll have to revert the SDIO card mod) and turn my linksys router into a WPAN-capable device :) 2011-04-11 10:54 that would be cool 2011-04-11 10:54 sounds like a fun project :) 2011-04-11 10:55 note that atben requires the ability to cycle the voltage supply (for reset) 2011-04-11 10:56 well, in theory, you don't need that, but it's safer if you have that ability 2011-04-11 10:58 i can cycle the router itself, or come up with an idea how to detach atben from the router 2011-04-11 10:59 wpwrak: do you think there could be some problems with 2.4 kernel? 2011-04-11 11:00 kyak: well yes, 2.4 doesn't have any in-kernel support for IEEE 802.15.4 2011-04-11 11:01 luckily, i should be able to use 2.6 with wrt54gl.. 2011-04-11 11:01 good :) 2011-04-11 11:21 kyak: do you have wrt54gl? :) 2011-04-11 11:22 whitequark: yeah :) 2011-04-11 11:32 kyak: one of worst routers I've seen. slow CPU, 100M switch and costs too much 2011-04-11 11:37 whitequark: it's a router, what kind of CPU do you expect? :) It' sdoing it's job fine, and i don't even have 1Gb network card to complain about 100 Mb switch 2011-04-11 11:37 costs too much? i doubt it is still sold 2011-04-11 11:38 moreover, it was a present and back in those days (around 5 years ago) it was maybe the first home router running Linux 2011-04-11 11:41 wpwrak: could you correct me if i'm wrong: i need to find at least 4 GPIOs to be able to communicate with atben. The 4 GPIOs are already used for SDIO mode, and i would need to find other spare GPIOs (there is no option to share GPIOs?) 2011-04-11 11:43 kyak: you need at least one more, for the interrupt (that is, unless you want to poll) 2011-04-11 11:44 kyak: there's also another signal that can be useful to have (to enter sleep mode and to precisely trigger a transmission). but it's less important than the others. 2011-04-11 11:45 all right, so it counts to 5-6 GPIOs.. I'll check if wrt54gl has those 2011-04-11 11:46 there must be other spare GPIOs, at least those controlling LEDs: http://www.hendlsofen.de/WRT54GL/eng/WRT54GL_SDMod.html 2011-04-11 11:47 6 LEDs in a row, conveniently :) 2011-04-11 11:51 kyak: you'll probably need to cut traces to leds then. I doubt they can work simultaneously with atben 2011-04-11 11:53 kyak: oh yes, 5 years ago it was a very good router. it is still sold, yeah, but it is nothing compared to e.g. last tplink model. 1gbit, fast cpu and usb for the same cost 2011-04-11 11:55 whitequark: hmm, having a look at GPIO7, which they took from LED, seems that it was not necessary to cut the traces? 2011-04-11 11:55 whitequark: sure, it's not a modern router :) 2011-04-11 11:55 i wish i had USB, too 2011-04-11 12:00 kyak: 3k RUR for gigabit wireless-n router with excellent linux support isn't a lot at all :) 2011-04-11 12:02 whitequark: let me finish beating the crap out of my old good linksys before you persuade me to go and buy a new router :) 2011-04-11 12:05 kyak: if you'd follow my advice, at the time you'll brick and/or fry your old router you'd already have a replacement ;) 2011-04-11 12:10 tries to extrapolate whitequark's advice to womenfolks 2011-04-11 12:15 kyak: in the cpu world, that's called pipelining. I like to apply this technology to various human activites 2011-04-11 12:17 consider, for example, eating icecream. by the time the first one has melted completely, you'd eat a half of second and buy third 2011-04-11 12:21 whitequark: and if you had concentrated on just the first one, you'd have eaten it before it melted in your fingers ;-) 2011-04-11 12:22 plus you would spend three times less money :) 2011-04-11 12:22 damn is it hard to find schematics for that router.. 2011-04-11 12:44 wpwrak: yeah, that's the essence of pipelining 2011-04-11 12:44 kyak: openwrt folks have good docs for it 2011-04-11 12:46 kyak: here: http://wiki.openwrt.org/oldwiki/port.gpio 2011-04-11 12:49 whitequark: oh yeah, thanks 2011-04-11 12:54 it definitely lacks GPIOs to manage both SDIO and atben at the same time 2011-04-11 13:05 wpwrak: labsurlab related pics? 2011-04-11 13:05 kristianpaul: hmm ? 2011-04-11 13:05 04:44 < wpwrak> kristianpaul: those pictures make a lot more sense once you realize they're from the UK ;-) 2011-04-11 13:06 brb (breakfast) 2011-04-11 13:06 kristianpaul: i meant this one: http://michelebavaro.blogspot.com/2011/04/benefit-of-glonass.html 2011-04-11 13:08 kristianpaul: the last one looks weird until you realize that it's from the UK where they drive on the wrong side of the street (it's fun to ride in someone's car in front there. at each intersection, you think they're about to commit suicide :) 2011-04-11 13:27 wpwrak: ah, yes :-) 2011-04-11 13:27 kyak: the sd card is bitbanged too 2011-04-11 13:28 whitequark: right, so?.. 2011-04-11 13:30 kyak: well, it's not SDIO then. just plain SPI 2011-04-11 13:33 shrugs 2011-04-11 13:37 whitequark: could be any of the three modes :) 4-bit SDIO, 1-bit SDIO, SPI. 2011-04-11 13:39 is there 1-bit SDIO? 2011-04-11 13:41 apparently there is 2011-04-11 13:41 sure 2011-04-11 13:42 larsc: i actually didn't check ... but there's certainly 1-bit SD 2011-04-11 13:42 SIE have 1-bit SDIO i remenber 2011-04-11 13:42 although it uses an additional pin for IRQs 2011-04-11 13:43 ah, "1 bit" is the bus width. still has a lot of signals. 2011-04-11 13:44 (lot of signals) thats the fun part ;-) 2011-04-11 13:46 wpwrak: is there any code for proprietary sd protocol in linux core for bitbanging? 2011-04-11 13:46 [commit] Werner Almesberger: tools/lib/: atnet now works (tried atrf-txrx send and receive, atrf-rssi) http://qi-hw.com/p/ben-wpan/4246535 2011-04-11 13:46 I think no 2011-04-11 13:47 anyway, it would not be useful at all, as the SDIO has one main advantage over SPI, speed, and that's low anyway with bitbanging 2011-04-11 13:49 sdio won't work with bitbanging 2011-04-11 13:49 at least not with the current linux drivers 2011-04-11 13:49 mmc bitbanging is done in mmc spi mode 2011-04-11 13:50 whitequark: i don't see any bit-banging driver. it wouldn't be useless, because you still have the wider bus (in case of 4-bit SD(IO)) 2011-04-11 13:50 larsc: why wouldn't it work ? 2011-04-11 13:50 wpwrak: and, given the gpio framework, you'd call slow bitbanging functions a lot more. that's a C function call per bit 2011-04-11 13:50 wpwrak: because there is no support 2011-04-11 13:51 whitequark: i didn't say it would be blindingly fast ;-) 2011-04-11 13:51 larsc: okay, but one could write a driver :) 2011-04-11 13:51 maybe 2011-04-11 13:52 wpwrak: then, what are advantages of wider bus? more gpio pins doing useless work? 2011-04-11 13:52 the good thing about linux is that "that's not possible" hardly exists, it's usually "nobody has gotten around to doing it yet" ;-) 2011-04-11 13:52 whitequark: they would make it a bit faster than just spi 2011-04-11 13:53 wpwrak: (linux) more "only you in the whole universe need that, and every other man who tried to do thatis dead" 2011-04-11 13:53 whitequark: spi: 2.5 toggles per bit. 4-bit sdio: 4 toggles per 4 bits 2011-04-11 13:54 (on average) 2011-04-11 13:54 wpwrak: 2.5 toggles? 2011-04-11 13:54 sdio does have clock, too 2011-04-11 13:55 whitequark: set data if it changed = 0.5, raise clock = 1, drop clock = 1 2011-04-11 13:55 and a read, too 2011-04-11 13:55 it has the same cost as write 2011-04-11 13:55 for tx ? 2011-04-11 13:55 ah yes. 2011-04-11 13:55 read may actually be even more expensive 2011-04-11 13:56 on controllers where gpio bitbanging is worth implenting, it is a cpu-accessible register read (or write for toggles) 2011-04-11 13:56 and you need to change direction 2011-04-11 13:57 btw, on the ben, i can poll a gpio at about 10 MHz. (that was a loop that counts cycles until a pin changes) 2011-04-11 13:57 wpwrak: with gpio_get_value() or direct register access? 2011-04-11 13:58 larsc: if you alternate tx and rx, which fortunately doesn't happen so much in block transfers :) 2011-04-11 13:58 wpwrak: that's 33 cycles per poll, right? 2011-04-11 13:58 larsc: direct access 2011-04-11 13:59 whitequark: in that order, yes. maybe the rate was actually a bit higher, could have been 12 MHz. (i didn't measure the true pulse length) 2011-04-11 14:00 reading from the register alone should probably kill a few cycles 2011-04-11 14:00 wpwrak: what was your statement? while(SOMEGPIOREG & (1 << bit)) i++; ? 2011-04-11 14:01 whitequark: (on controllers where gpio bitbanging is worth implenting) do yo uhave cpus where the gpio registers are inaccessible ? ;-) 2011-04-11 14:01 wpwrak: sometimes i2c expanders are used, when there are not a lot of gpios on cpu itself 2011-04-11 14:01 wpwrak: this is especially the case on PDAs 2011-04-11 14:02 do i--; while (!(*pdpin & 0x1000)); 2011-04-11 14:02 whitequark: okay, via i2c, it would be indeed evil ;-) bitbang i2c, then bitbang the gpios on i2c ;-) 2011-04-11 14:07 wpwrak: that translates to ~15 mips instructions 2011-04-11 14:08 http://dpaste.com/530902/ 2011-04-11 14:09 12, to be precise 2011-04-11 14:09 whitequark: did you set -O9 ? :) 2011-04-11 14:09 aha 2011-04-11 14:09 now it's better 2011-04-11 14:09 ;-) 2011-04-11 14:10 http://dpaste.com/530903/ 2011-04-11 14:10 the percentage of nops became much higher ;) 2011-04-11 14:10 8 instructions 2011-04-11 14:11 with one pipeline flush, it'd be 16 cycles per poll 2011-04-11 14:11 whitequark: did you compile for mips32? 2011-04-11 14:12 whitequark: you should use "i" somewhere. it was optimized out. 2011-04-11 14:12 larsc: no. with -march=mips32 it removes all the load delay slots 2011-04-11 14:12 whitequark: thought so 2011-04-11 14:13 http://dpaste.com/530907/ 2011-04-11 14:13 wpwrak: the --i goes into the branch delay slot 2011-04-11 14:14 larsc: yup ;-) 2011-04-11 14:14 the return with delay slot is just _weird_ 2011-04-11 14:15 larsc: is the jz4720/40 "mips32" ? from what i saw, it's not "mips2". 2011-04-11 14:15 wpwrak: it is 2011-04-11 14:16 wpwrak: it's R4k-compatible, and that is AFAIK mips32 2011-04-11 14:16 btw. the peripheral bus is clocked at 82 Mhz 2011-04-11 14:16 iirc 2011-04-11 14:17 remembers the day where he was proud to have an SGI with a 12 MHz R2000 on his desk ;-) 2011-04-11 14:17 larsc: it's divided by 3 in 4750, but I don't know what's in 4720 2011-04-11 14:18 whitequark: iirc 4 2011-04-11 14:18 but could be 3 as well 2011-04-11 14:19 larsc: also, I have had a strange feeling that registers are accessed through AHB after reading manuals, however that may be grossly wrong 2011-04-11 14:21 something in the clock generation unit made me think so, through I don't quite remember what it was 2011-04-11 14:23 i think it is clocked at the same rate 2011-04-11 14:24 yeah, no performance improvement between default architecture and mips32. i.e. the one delay slot has no cost. 2011-04-11 14:25 larsc: the AHB? yes. then, peripheral register accesses won't impose any additional delay 2011-04-11 14:30 i doubt that you can access mmio access without any delay 2011-04-11 14:33 why not? 2011-04-11 14:38 because that would mean they would be as fast as normal cpu registers 2011-04-11 14:38 larsc: I'd say 'as fast as normal memory 2011-04-11 14:38 and that sounds perfectly fine for me 2011-04-11 14:44 my 'feelings' tell me it's not the case. 2011-04-11 14:44 but i can't give you hard numbers 2011-04-11 14:45 hm 2011-04-11 14:47 but Arned Bergmann told me once that mmio could easily take 100 cycles or more 2011-04-11 14:47 https://lkml.org/lkml/2011/1/19/89 2011-04-11 15:04 whitequark: ping 2011-04-11 15:04 whitequark: about tplink 2011-04-11 15:04 whitequark: what model you suggests to be able to reflash with something self-build with openwrt e.g.? :) 2011-04-11 15:05 have old enough WR543g here 2011-04-11 15:05 Jay7: the latest model, TL-WR1043ND, is very good and cheap enough ($100 here) 2011-04-11 15:05 and supports openwrt very good 2011-04-11 15:06 (or vice-versa) 2011-04-11 15:06 nice 2011-04-11 15:06 I'll consider :) 2011-04-11 15:07 it is also somewhat hackable. the case is easily disassembled (well... after some practice:) and you have at least uart with uboot 2011-04-11 15:07 usb2.0 is good, too 2011-04-11 15:08 the usb chip on the nanonote can only act as a gadget right? 2011-04-11 15:08 yes 2011-04-11 15:09 pity :) 2011-04-11 15:52 i has been told on #mips-linux that mips32 does not require delay slots at all 2011-04-11 15:52 *load delay slots 2011-04-11 18:34 uh-oh 2011-04-11 18:34 my flux is a bit weird 2011-04-11 18:35 is it normal for a neutral flux-gel to eat all the oxide layer in a ~minute after distributing it all over the board? 2011-04-11 18:35 there are branch delay slots, but I never heard about load delay slots 2011-04-11 18:36 mth: check See MIPS Run, they have all that stuff described nicely 2011-04-11 21:30 wpwrak: The M36 chip in the phone, MT6223CA, is based on ARM7EJ-S. 2011-04-11 21:31 It would be sweet if linux could run on it, but it is very likely not possible heh 2011-04-11 21:31 found this project though http://opensrc.sec.samsung.com/profile.html which "intends to support almost full 2.6 kernel features on MMU-less ARM architectures" 2011-04-11 21:33 The M36L0T7050T3ZAQ chip turned out to be NOR flash memory: "NOR Density: 128Mb RAM Density: 32Mb" 2011-04-11 21:34 I found out all sort of stuff about the phone though 2011-04-11 21:35 It most likely runs "MTK OS" 2011-04-11 21:36 I found it interesting that the M36 chip can run 3 LCD modules at the same time 2011-04-11 21:54 jesperj: (3 LCD) wow ;-) 2011-04-11 21:54 jesperj: 32 Mb is only 4 MB. if that's all the RAM in the system, linux won't be very happy 2011-04-11 21:57 jesperj: (3 LCD) wow ;-) < sarcasm? 2011-04-11 21:58 uuuugh... damn MegaBIT 2011-04-11 21:58 :( 2011-04-11 21:58 I read that as MB 2011-04-11 21:58 grr 2011-04-11 22:01 Thanks for pointing it out though 2011-04-11 22:01 i'm sure marketing would *love* an even smaller unit than a bit ;-) 2011-04-11 22:02 maybe a "hunch", 1/100 bit ? then you'd have 3.2 Gigahunches ! 2011-04-11 22:05 wpwrak: They'd love it even better if they could make it look like MB/GB/TB... "It has a stunning 2* TerraBite hdd! (* Don't read this but that equals about 20 MB)" 2011-04-11 22:06 "Bite" seems like a good candidate 2011-04-11 22:12 ah yes, Bite would be good. or l6 TB, with l6 = 2^-22 2011-04-11 22:15 uhmmm 2011-04-11 22:15 not sure they could do import that in france, since the word is vulgar there 2011-04-11 22:16 if they do it would be very problematic....lol 2011-04-11 22:21 GNUtoo: reminds me of that spanish girl who shouted encouragements ("vite ! vite !") to someone, while others looked in disbelief :) 2011-04-11 22:23 http://fr.wiktionary.org/wiki/bite 2011-04-11 22:23 look in the vulgar section 2011-04-11 22:23 but maybe you don't speak french 2011-04-11 22:25 GNUtoo: oh, i know it. et oui, j'ai vecu pour huit ans a Lausanne ;-) 2011-04-11 22:25 ok 2011-04-11 22:26 GNUtoo: (which is where the aforementioned incident occurred - in spanish, the pronunciation of "v" and "b" is considered interchangeable ;-) 2011-04-11 22:29 ahh 2011-04-11 22:29 now I understand 2011-04-11 22:29 lol 2011-04-11 22:47 jesperj: you can still very well use some RTOS on that chip, it'd be enough for telephony stack to run (if you manage to assemble one) 2011-04-11 22:58 whitequark: cool