--- Log opened Tue Mar 08 00:00:24 2016 | ||
stekern | http://www.theguardian.com/commentisfree/2016/feb/29/brewdogs-open-source-revolution-is-at-the-vanguard-of-postcapitalism | 02:31 |
---|---|---|
stekern | our favourite beer just went open source | 02:32 |
shorne | stekern: so I tried to or1ksim and my kernel boots and I can telnet fine, also I confirmed my de0_nano image is using the mor1kx core | 05:27 |
shorne | but I was thinking, maybe it has something do do with how I am reseting. because sometimes I get serial output and a crash (stack dumps) sometimes I get no serial output. | 05:28 |
shorne | is there a special way to reset when I am running on a board? i.e. I see kernel boot resets the general registers and flushes tlb | 05:29 |
stekern | did you confirm the r3 thing too? | 05:29 |
shorne | I can double check | 05:30 |
shorne | from gdb, I am connected to a machine already in a bad state | 05:31 |
shorne | I will do a load, b *0x100, j *0x100 | 05:31 |
shorne | then set r3 0x0 | 05:31 |
shorne | set a breakpoint at *0x384100 immu enable l.mtspr r0,r30,0x11 | 05:38 |
shorne | it didnt get there | 05:38 |
shorne | trying again | 05:38 |
shorne | it was in a die() loop | 05:39 |
shorne | Do I need to send reset through openocd telnet session? | 05:42 |
shorne | so, somehow its getting lost in flush tlb | 05:48 |
shorne | going to single step that | 05:48 |
p1oooop | meanwhile, I'm still sitting here wondering how I got it to work the first time... | 05:50 |
p1oooop | (albeit, I did use other peoples' linux images and such) | 05:50 |
p1oooop | Is it harmful if I see "WARN: plusargs section is deprecated and will not be parsed by FuseSoC. Please migrate to parameters in %s" | 05:52 |
shorne | I dont think so | 05:56 |
shorne | so, the tlb flushing seems to work, stepping it though and its counting down from 128 | 05:59 |
shorne | which is expected | 06:00 |
shorne | stekern: one interesting thing in boot_itlb_miss_handler. I am seeing now, maybe something wrong with my hardware | 06:06 |
shorne | after | 06:07 |
shorne | LOAD_SYMBOL_2_GPR(r6,0x0fffffff) | 06:07 |
shorne | l.sfgeu r6,r4 | 06:07 |
shorne | r4 0s 0x035c104 | 06:07 |
shorne | r6 is 0xfffffff | 06:07 |
shorne | but it still is doing tophys() on the Effective Address | 06:10 |
shorne | if I unplugg my board and replug and reprogram | 06:10 |
shorne | let me see | 06:10 |
shorne | Is there something I need to do in GDB to get it to understand the 0xc0000000 offset? | 06:20 |
shorne | if I dissassemble 0x0004bc8, I can see instructions, but PC is 0xc004bc8, so gdb thinks there are no instructions on the current pc line | 06:21 |
stekern | gdb always read physical addresses | 06:31 |
-!- knz_ is now known as knz | 06:53 | |
mor1kx | [mor1kx] bandvig pushed 1 new commit to master: https://github.com/openrisc/mor1kx/commit/15a8a24755e900ba03b38115baaf3813a22b5f24 | 11:09 |
mor1kx | mor1kx/master 15a8a24 Andrey Bacherov: (1) Fix bug. Prevent decode_rf_wb for FP32 comparisons. (2) Set default mask (if masked FPU flags extension is used) for FPU flags to zero in according with discussion in http://opencores.org/or1k/Architecture_Specification#FPCSR_Extension | 11:09 |
-!- kaalia is now known as kaaliakahn | 12:46 | |
shorne | does anyone know the purpose of the line 567 'l.ori r4,r0,0x0', in kernel/head.S | 16:35 |
poke53281 | OpenRISC does not have a mov instruction. | 16:54 |
mithro | Random question, has anyone gotten the or1k running on the icestorm stuff? Is there even enough resources in the supported devices to do anything non-trivial? | 16:54 |
poke53281 | you have to use addi or ori | 16:54 |
shorne | poke53281: but all that does is clear r4, which is already clear. not asking what it does, asking why? | 17:29 |
shorne | I was thinking maybe to clear flags, but I dont think or clears flags as per spec | 17:29 |
shorne | https://github.com/openrisc/linux/blob/master/arch/openrisc/kernel/head.S#L568 | 17:35 |
shorne | for reference | 17:35 |
poke53281 | forget flags when you work with OpenRISC | 18:04 |
poke53281 | I don't know what it does | 18:08 |
poke53281 | Yes r4 seems to be set to zero | 18:08 |
poke53281 | before | 18:10 |
poke53281 | Might be an unecessary instruction then. | 18:10 |
--- Log closed Wed Mar 09 00:00:26 2016 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!