--- Log closed Mon Dec 12 00:18:06 2011 | ||
--- Log opened Mon Dec 12 00:18:44 2011 | ||
-!- Irssi: #openrisc: Total of 3 nicks [0 ops, 0 halfops, 0 voices, 3 normal] | 00:18 | |
-!- Irssi: Join to #openrisc was synced in 18 secs | 00:18 | |
elec4fun | hello, anyone here ? | 23:02 |
---|---|---|
Franck__ | hello anyone ? | 23:07 |
juliusb | hi | 23:10 |
juliusb | how are you? | 23:10 |
juliusb | did you post on the newsgroups? | 23:10 |
juliusb | err, the mailing list i mean? | 23:10 |
Franck__ | yes I did | 23:11 |
Franck__ | hi | 23:11 |
Franck__ | I'm new to openrisc and I think it'll be my new toy for some times :) | 23:12 |
Franck__ | I'm currently porting barebox to or1k | 23:12 |
juliusb | nice one | 23:13 |
juliusb | barebox? | 23:13 |
Franck__ | barebox aka uboot v2 | 23:13 |
Franck__ | it is a bootloader | 23:14 |
juliusb | cool | 23:14 |
juliusb | we have u-boot | 23:14 |
juliusb | check openrisc.net | 23:14 |
juliusb | the git repos | 23:14 |
juliusb | stekern: has one | 23:14 |
Franck__ | take a look at the barebox.org website | 23:14 |
Franck__ | yes tried it | 23:15 |
Franck__ | works perfectly with the sim | 23:15 |
Franck__ | can I ask you a question about the tick timer ? | 23:16 |
stekern | ask away ;) | 23:18 |
Franck__ | :) | 23:18 |
stekern | barebox port sounds cool btw | 23:18 |
Franck__ | when I configure it as a free running counter, mtspr(SPR_TTMR, SPR_TTMR_CR) | 23:19 |
Franck__ | it doesn"t start unless I set the timer period to something | 23:19 |
Franck__ | is that a feature ? | 23:19 |
juliusb | this is in the simulator? | 23:21 |
Franck__ | yes | 23:21 |
juliusb | and you set the timer running bit | 23:21 |
Franck__ | which one ? :) | 23:21 |
Franck__ | "The Tick Timer facility is enabled with TTMR[M]." | 23:22 |
juliusb | mmm i guess all you should need to do set the mode to continuous | 23:22 |
Franck__ | I set M to "11" | 23:22 |
juliusb | and it should just go | 23:22 |
Franck__ | static uint64_t openrisc_clocksource_read(void) { printf("%lx\n", mfspr(SPR_TTCR)); return (uint64_t)(mfspr(SPR_TTCR)); } static struct clocksource cs = { .read= openrisc_clocksource_read, .mask= 0xffffffff, .shift= 12, }; static int clocksource_init(void) { mtspr(SPR_TTMR, SPR_TTMR_CR); cs.mult = clocksource_hz2mult(OPENRISC_TIMER_FREQ, cs.shift); init_clock(&cs); return 0; } | 23:23 |
Franck__ | arf | 23:23 |
Franck__ | paste doesnt works well | 23:24 |
juliusb | pastebin it | 23:24 |
Franck__ | ? | 23:24 |
Franck__ | I'm on the web interface | 23:24 |
Franck__ | I'm switching to irc client (i'm not sure it works, I'll be back) | 23:25 |
Franck__ | here ? | 23:26 |
Franck__ | bla | 23:26 |
Franck__ | bla | 23:26 |
Franck__ | did you see my "bla" ? | 23:28 |
juliusb | yep | 23:28 |
juliusb | can se you | 23:28 |
juliusb | see | 23:28 |
Franck__ | I'm back to the web interface (anyway....) | 23:29 |
Franck__ | I checked again and if I use mtspr(SPR_TTMR, SPR_TTMR_CR | 0xFFFFFF); timer is running | 23:30 |
Franck__ | mtspr(SPR_TTMR, SPR_TTMR_CR) it's not | 23:30 |
Franck__ | it's not a big deal..... | 23:30 |
juliusb | it doesn't seem right, though | 23:31 |
juliusb | TTCR should really be running if TTMR_M is set to continuous | 23:31 |
juliusb | i just read the brief description of barebox | 23:50 |
juliusb | looks cool | 23:50 |
Franck__ | I did port it to nios2 already works like a charm | 23:50 |
juliusb | nice one | 23:50 |
Franck__ | but nobody uses it as far as I know :) | 23:50 |
juliusb | ah i bet they do | 23:53 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!