--- Log opened Tue Oct 20 00:00:34 2015 | ||
cobalt60 | Any recommendation on an FPGA and board? | 01:14 |
---|---|---|
_franck_ | andrzejr: don't know. You can try a smaller memory space to see if it fails again at the end | 04:42 |
GeneralStupid | Hmmmmm | 05:29 |
GeneralStupid | !rst did not work (clkgen) i think last time it worked the pin was not wired... | 05:30 |
GeneralStupid | procramcounter is 100... | 05:42 |
andrzejr | I did an overnight simulation of barebox booting in icarus, dumped waveforms while executing cache_init, and... nothing. It all works in simulation. | 08:14 |
andrzejr | So, it may be something in DDR2 i/f (icarus uses a BFM model of xilinx DDR2 ctrl), an initialization issue, or a HW debug issue. Any other ideas? | 08:17 |
_franck_ | andrzejr: you should use chipscope or https://github.com/skristiansson/diila to see what is happening before you get an unaligned access | 10:16 |
_franck_ | or you could write some logic to save in some registers the instruction value and address and some other signals | 10:18 |
_franck_ | when the unaligned access occurs. Then you dump registers information using openocd | 10:19 |
olofk | ok, so who will look at the or1200 pull request? I promised myself to never touch that code again after fixing the issues yesterday | 13:46 |
_franck_ | olofk: close your eyes and apply the patch | 14:16 |
olofk | :) | 14:27 |
GeneralStupid | hi, what should i try next? the reset signal is ok, if i revert it (Or press the button) i cannot connect to jtag. | 17:43 |
olofk | GeneralStupid: You could try SignalTap and probe some signals in the CPU and the instruction bus | 17:45 |
GeneralStupid | olofk: SignalTap? | 18:08 |
GeneralStupid | olofk: one thing, which openocd version do you use? | 18:24 |
olofk | GeneralStupid: SignalTap is Altera's logic analyzer | 18:42 |
GeneralStupid | olofk: wow | 18:42 |
olofk | I've mostly used openocd 0.8 I think, but now I'm using some 0.9 dev version | 18:43 |
GeneralStupid | olofk: 0.7.0 dev... | 18:44 |
GeneralStupid | olofk: my debian has 0.8.0 but he does not like my tcl fil | 18:49 |
GeneralStupid | e | 18:49 |
olofk | GeneralStupid: I always build it myself. The one in gentoo doesn't have support for all the necessary devices | 18:51 |
GeneralStupid | olofk: i think thats the problem with mine | 18:52 |
olofk | Here's my makefile if you want to try and build it http://7c1e3fe3d3210eb1.paste.se/ | 18:52 |
olofk | (it assumes the source is in a directory called openocd) | 18:53 |
GeneralStupid | olofk: for 0.9? | 18:53 |
olofk | I think it works for both 0.8 an 0.9 | 18:55 |
GeneralStupid | 0.9 dev works fine for you? | 18:55 |
olofk | Yep | 18:55 |
olofk | 0.9.0-dev-00346-g3e1dfdc (2015-03-16-12:03) to be more exact | 18:56 |
olofk | I think that the OpenRISC stuff that _franck_ did was added to 0.8, so 0.7 might not work... but I'm not completely sure | 18:57 |
GeneralStupid | olofk: i remember i had two directories of openocd, one was working, one not. I may just deleted the wrong directory... | 18:58 |
GeneralStupid | olofk: .... loading, waiting... | 19:11 |
GeneralStupid | ohh sourceforge? really? | 19:12 |
olofk | I think their git repo is somewhere else | 19:12 |
andrzejr | I use git://repo.or.cz/openocd.git | 19:14 |
andrzejr | 0.10.0-dev-00002-g79fdeb3 (2015-07-20-18:52) | 19:14 |
GeneralStupid | hmmm your makefile does not work :/ | 19:18 |
GeneralStupid | olofk: everything fine :D | 19:18 |
GeneralStupid | building | 19:22 |
GeneralStupid | do you use altera-dev.tcl? | 19:28 |
_franck_ | GeneralStupid: I use something like this ./src/openocd -f ./tcl/interface/altera-usb-blaster.cfg -f ./tcl/board/or1k_generic.cfg -s ./tcl | 19:31 |
GeneralStupid | _franck_: hmmmm | 19:34 |
GeneralStupid | _franck_: ... runs... wait | 19:35 |
GeneralStupid | ok, seems like jtag was not the problem, OR1200 was not the problem,... | 19:36 |
andrzejr | _franck_, how to access spr registers in new openocd/gdb? I channel logs I found: "LoneTechlooks like recent openocd has an addreg command to register SPRs" | 19:36 |
GeneralStupid | can you told me how the Tagsomething binary is called? | 19:37 |
_franck_ | andrzejr: in openocd just do "reg your_reg" | 19:37 |
_franck_ | in gdb you can print group of regs. Groups can be print with (IFAIR) "maintenance print reggroups" | 19:38 |
_franck_ | then "info registers *your_group*" | 19:39 |
GeneralStupid | okay, if i change the address of the npc register it is changed in openrisc, so its not the reset ... | 19:39 |
_franck_ | andrzejr: I think you can also do "print $your_reg" | 19:40 |
GeneralStupid | can anyone give me a hint how i can get any data out of signaltap? | 19:41 |
andrzejr | does "reg iccr" work for you? It returns "Burst read timed out; Burst read failed; Error while reading spr 0x00002000; iccr (/32): 0x00000000" here | 19:42 |
andrzejr | "reg sr" indeed works | 19:43 |
_franck_ | andrzejr: I don't have a working platform here. But you may have found a problem in openocd. I think you might be the first to read iccr :) | 19:44 |
andrzejr | so far only "sr" worked (all other spr regs I tried failed) | 19:45 |
andrzejr | including vr, upr etc | 19:46 |
_franck_ | oh, weird | 19:47 |
GeneralStupid | is there any already compiled elf file ? | 19:47 |
GeneralStupid | how do you compile? | 19:51 |
GeneralStupid | with -mBOARD Option? | 19:51 |
GeneralStupid | and which version | 19:53 |
olofk | GeneralStupid: I don't usually set -mBOARD. It should probably work without it | 19:57 |
GeneralStupid | olofk: i dont get it... | 19:58 |
GeneralStupid | olofk: it does not work but it should | 19:59 |
olofk | GeneralStupid: You could try this one https://www.dropbox.com/s/5uxiqz0i0l99y39/a.out?dl=0 | 19:59 |
olofk | I haven't tested it on hw, but I'm pretty sure it should work | 19:59 |
GeneralStupid | what does it do? | 20:00 |
GeneralStupid | (correct english? sounds wrong= | 20:00 |
GeneralStupid | ) | 20:00 |
GeneralStupid | should the core be "mor1k" if i switched that? | 20:02 |
GeneralStupid | Chip is or1200.cpu, Endian: big, type: or1k | 20:02 |
GeneralStupid | ok npc does not count | 20:15 |
Lukan27 | Hello. | 20:27 |
olofk | GeneralStupid: It's just a hello world | 20:46 |
Lukan27 | What a warm welcome | 20:47 |
olofk | Lukan27: Hello :) | 20:47 |
Lukan27 | I just discovered OpenRISC | 20:47 |
olofk | GeneralStupid: Can you send over the the .map.rpt file from the build? I would like to rule out any problems with unconnected pins and so on | 20:49 |
Lukan27 | How's the project going? | 20:50 |
olofk | Lukan27: It's going quite well. As with any open source project, there are tons of more things to be done, but it's pretty stable at this point | 20:54 |
Lukan27 | Well, that's good. Any chance we can buy an open source CPU/PC any time soon? ;) | 20:55 |
olofk | Lukan27: I don't think that's ever going to happen. This is mainly for embedded applications | 20:56 |
Lukan27 | Aw, what a shame. | 20:57 |
wbx | i am tyring to play with qemu, but I don't get more than a shell. all forking after the first process is in a endless loop. what is the preferred kernel version and qemu version to use or1k? | 20:57 |
olofk | wbx: I think poke53281 or blueCmd_ might be your best sources for qemu stuff | 21:04 |
wbx | one of them done the musl port? | 21:06 |
olofk | stekern did most of the or1k musl port and dalias is the main author of musl | 21:07 |
dalias | wbx, you need the or1k-qemu: https://github.com/bluecmd/or1k-qemu | 21:08 |
dalias | upstream qemu does not implement the atomics | 21:09 |
wbx | dalias: so you get a working system with that? | 21:09 |
dalias | someone should work to get this merged | 21:09 |
olofk | dalias: We talked a bit about that at orconf | 21:09 |
dalias | i'm not sure. i've only used app-level emu, not system-level | 21:09 |
olofk | blueCmd_, stekern : What was the status with the qemu patches? I already forgot :) | 21:10 |
wbx | i think I already tried this qemu fork without success. but with 1.1.12 i get no panic from init anymore with qemu 2.4.0.1, so may be I should give it a try again | 21:10 |
olofk | oh well. That's it for me. Good night | 21:14 |
andrzejr | _franck_, thank you for the suggestion. I've got diila working and managed to capture waveform causing the exception. | 22:34 |
andrzejr | it looks like it is the memory after all - in one of the bursts it returned data than actually stored. Debug interface returns correct values. | 22:36 |
--- Log closed Wed Oct 21 00:00:35 2015 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!