IRC #olimex 2013-03-15

[00:07:07] <vivi_> because I want something dedicated, and a PC is much more expensive
[00:08:52] <Toneloc> vivi_- you could dedicate an old pc someone is throwing out, or buy a new pc for yourself and dedicate your old one
[00:09:30] <vivi_> I guess I could
[00:10:22] <vivi_> but among the olimex boards, do you know if they would be sufficiently powerful for this?
[00:14:37] <Toneloc> yes, I do indeed
[00:14:52] <Toneloc> you could make a sega emulator no problem
[00:15:21] <Toneloc> snes would be harder, but msme I don't know about
[00:26:49] <tkoskine> http://olimex.wordpress.com/2013/03/13/mame4droid-is-running-on-a13-olinuxino/
[09:24:02] <hehopmajieh_> Morning
[11:19:26] <Tsvetan> Allwinner just sent me AXI, AHB, APB clock recommended initializations for max performance: https://www.olimex.com/forum/index.php?topic=812.msg5114#msg5114
[11:19:55] <Tsvetan> mnemoc can you patch this to linux-sunxi kernel so we can check how this will change GPIO toggle speed?
[11:20:12] <mnemoc> Turl: -----^
[11:20:17] <mnemoc> he is the clock master :)
[11:20:43] <Tsvetan> ok :)
[11:24:04] <mnemoc> btw, I've pushed lichee/a13-dev and lichee/a10s-dev branches up to feb 2013 to my github. for letting people review their changes and merge the good parts
[11:25:00] <mnemoc> sanitized variants will take a bit longer, some of the commits and merges they did are way too messy
[11:25:38] <mnemoc> but the code is free and that's what matters most
[11:26:50] <mnemoc> (annonymous source liberator, not "official" release)
[11:28:29] <Tsvetan> another e-mail from Allwinner arrived: https://www.olimex.com/forum/index.php?topic=812.msg5115#msg5115
[11:28:48] <Tsvetan> seems there should be some time plls/clocks to settle when the change is big
[11:29:01] <Tsvetan> and they recommend clock changes to be made in steps
[11:29:21] <Tsvetan> but forgot to tell how much time to wait clocks to settle :)
[11:36:32] <sanoj> Tsvetan: so you have the kernel installed now, but need it activated: do "aptitude install u-boot-tools" to get the tool mkimage - and then figure out (from kernel sources, as I understand it - or maybe you guys know from somewhere else) what argument to pass to mkimage to get the correct image generated
[11:38:05] <sanoj> this is only a short-term need for fumbling: There is a package "flash-kernel" automating this but it does not yet have the knowledge for this hardware specifically
[11:39:49] <sanoj> short term: run mkimage. Mid term: zumbi and I create a custom flash-kernel package for debian.olimex.com to get automatic install/upgrade of kernels. Long term: customizations get adopted into official Debian flash-kernel package
[11:41:43] <zumbi> o/
[11:41:55] <zumbi> sounds fine sanoj
[11:42:13] <sanoj> zumbi: thanks for confirming
[11:42:19] <sanoj> much appreciated!
[11:42:50] <sanoj> Tsvetan: ...and similar for a13 kernels, obviously
[11:42:52] <Tsvetan> sanoj: thanks we will do these steps to see what happen next :)
[11:44:42] <sanoj> ACTION is looking forward to a time when people in this channel are discussing the *Olimex* hardware, not compilation of unusual but mainline Linux drivers, which really belong elsewhere IMO
[11:45:36] <sanoj> this channel _and_ the forum _and_ the blog comments _and_ you Olimex guys in blog entries themselves, I mean
[11:49:46] <mnemoc> sanoj: you mean because my comment about the lichee/ branches? that is directly related to olimex hardware as there is a10s and a13 olinuxinos and these include the sources of the GPL violating SDK tsvetan usually receives
[11:49:54] <Turl> hi Tsvetan, what is the problem with clocks you guys are having?
[11:51:15] <sanoj> mnemoc: nope, I was rehashing a dialogue with Tsvetan from yesterday - only relation with your comments was that they indicated that Tsvetan was online :-)
[11:51:25] <mnemoc> :)
[11:53:33] <sanoj> Tsvetan: great if you guys could dig out the needed mkimage arguments for each type of hardware - then we can try educate flash-kernel about them
[11:55:26] <sanoj> ...or if *anyone* now succesfully compiling kernels for the hardware could dig out those mkimage details - possible just a matter of carefully reading build logs
[12:00:11] <Turl> AXI=1008/2=504MHZ,AHB=504/2=252MHZ,APB0=252/2=126MHZ
[12:00:20] <Turl> looks like too high to me
[12:01:10] <Turl> but it may work if you just use pio
[12:02:08] <zumbi> sanoj: it should be in the source.. zreladdr
[12:02:57] <zumbi> sanoj: mach-mxs/Makefile.boot:1:zreladdr-y += 0x40008000
[12:03:28] <zumbi> that address for the mx23 platform
[12:03:32] <sanoj> zumbi: then why don't flash-kernel extract the data from there?
[12:03:58] <zumbi> because we do not have kernel src available
[12:04:26] <zumbi> sanoj: it is hard coded in a database, http://anonscm.debian.org/gitweb/?p=d-i/flash-kernel.git;a=blob;f=db/all.db
[12:04:47] <zumbi> mach-sunxi/Makefile.boot:1:zreladdr-$(CONFIG_ARCH_SUNXI) += 0x40008000
[12:04:51] <sanoj> I know it is hardcoded - that is what I question
[12:05:25] <zumbi> sanoj: how do you envision it?
[12:05:47] <zumbi> linux source is not available, so.. not sure if we can do anything?
[12:06:15] <sanoj> uhm, maybe my question is silly, but I imagine flash-kernel could build-depend on kernel source and generate its database at build time
[12:06:34] <sanoj> isn't imx source part of mainline Linux kernel nowadays?
[12:07:06] <zumbi> yes, maybe is doable, but there are extra debian-only variables coded in the database
[12:13:49] <Tsvetan> Turl: no problems just GPIO toggle with dev/mem works twice faster on Allwinners Android kernel compared to Linux-Sunxi build kernel
[12:14:48] <Tsvetan> and if you look at xenomai thread in the forum, increasing bus speed improves xenomai performance as well
[12:15:07] <Tsvetan> I asked Allwinner what is safe to be used and posted their reply
[12:16:45] <Turl> Tsvetan: did you compare with performance governor on both?
[12:17:44] <Tsvetan> I lost you with this goernor
[12:17:47] <Tsvetan> what is this
[12:17:55] <Turl> cpufreq governor
[12:18:23] <Turl> the stuff that controls the cpu and bus clocks to save power
[12:18:25] <Tsvetan> what we do is running simple loop forever GPIO = 1 GPIO = 0 and check with scope the GPIO pin
[12:19:33] <Turl> Tsvetan: can you repeat the test on linux-sunxi with a config change?
[12:19:47] <Tsvetan> ok, tell me what to change
[12:21:20] <Turl> make menuconfig, go to cpu power management, cpu freq scaling, tick performance governor and choose 'default cpufreq governor' = performance
[12:22:02] <Tsvetan> ok, will do this
[12:22:43] <Tsvetan> ACTION is going to lunch now
[12:23:39] <Turl> :)
[12:23:52] <Turl> ACTION is having a 7AM coffee
[12:40:21] <mnemoc> Turl: it would have been easier to ask thim to change the governor via sysfs :p
[12:41:27] <sanoj> mnemoc: I totally agree - but that requires the governor to be enabled in the first place, and loaded if compiled as module, etc.
[12:42:01] <mnemoc> good point
[12:42:18] <sanoj> hint hint: a good example of how using Debian-compiled kernels would help
[12:42:58] <mnemoc> http://packages.linux-sunxi.org/debian/ feels lonely :<
[12:45:21] <zumbi> indeed
[12:45:28] <zumbi> we need to do something
[12:45:46] <sanoj> agreed
[12:45:56] <zumbi> mnemoc: do you work on sunxi stuff, just wondering how do you have so much time for it
[12:46:07] <zumbi> by work I mean paid work
[12:47:44] <mnemoc> i waste more time on irc than on more productinve sunxi related tasks :<
[12:48:24] <zumbi> ah.. hehe.. that happens
[12:49:28] <mnemoc> otoh I need irc to compensate my almost null human interaction and keep the sanity
[12:49:50] <zumbi> where are you based?
[12:50:26] <mnemoc> coruña, but $working$ from home for a US based company
[12:51:13] <zumbi> I was born there.. very nice place.. you should go out to eat some pulpo and find some human interaction
[12:51:20] <mnemoc> :)
[12:52:20] <mnemoc> sunny day today, looks nice out there
[12:54:52] <zumbi> it's been freezen here, but it's nicer today as well
[12:57:33] <sanoj> it has been snowing here for the last couple of days
[13:35:43] <madze> here (germany, bavarian forest) it is sunny but very cold
[14:05:30] <Skaag> same here in NYC. Sunny and Cold.
[17:41:28] <Marex> madze: it was snowing in munich toda :S
[17:41:39] <Marex> *today
[17:41:50] <madze> madze: here too a litle bit
[17:42:45] <Marex> yea ... the white crap is all around the highway too
[17:42:54] <Marex> I'm headed for prague now
[17:43:17] <madze> Marex: by the car?
[17:43:59] <Marex> yea right ... I'd be chatting with you if I went by car ;-)
[17:44:13] <Marex> nah, the DB expressbus
[17:45:54] <madze> ah much better
[17:47:56] <Marex> madze: did I meet you at the EW in the end or not ?
[17:48:16] <Marex> I think my memory failed miserably in there ... probably due to the amount of people I met
[17:49:05] <madze> no, at your work we had so much to do so cant go away
[17:49:45] <Marex> errr ... pardon ?
[17:50:07] <Marex> cant parse this
[17:54:45] <madze> at my mork
[17:55:02] <madze> we had such much to so, so cant leave it for a visit of the EW
[18:07:46] <Marex> madze: ah ... you tell me, I spent this week in germany as a workhorse
[18:07:53] <Marex> madze: I'm completel exhausted
[18:08:32] <Marex> hm damn ... looks like the letter 'y' on my lenovo is starting to give up
[18:34:26] <madze> Marex: you live in prague?
[18:48:11] <madze> Marex: the lawnmower prject is going on
[19:47:26] <madze> need to go, cu