--- Log opened Wed Oct 19 00:00:03 2016 | ||
olofk | ZipCPU: Do you have the necessary RTL changes to mor1kx-generic as well? | 01:43 |
---|---|---|
olofk | For bringing out the uart? | 01:43 |
SMDhome | olofk: any objections on adding vcd support for verilated fusesoc? | 02:17 |
_franck__ | SMDhome: I think it is already there | 02:32 |
SMDhome | _franck_: I don't see anything inside tb.cpp and --vcd option for verilated simulation is not recognized. | 02:34 |
_franck__ | position of --vcd in the command line might be important here I think | 02:34 |
_franck__ | I'm almost sure --vcd works with verilator | 02:34 |
SMDhome | _franck__: maybe you're right, tried --vcd --elf-load and that seems to work | 02:36 |
_franck__ | great | 02:36 |
SMDhome | _franck__: thanks | 02:37 |
olofk | SMDhome: The code for VCD is in the verilator_tb_utils core | 03:56 |
olofk | Haven't got a clue why the parameter order would be important | 03:56 |
promach | besides mor1kx IP core specification document, any other documents that explains about mor1kx in more details ? | 09:26 |
SMDwrk | promach: I guess besides mor1kx arch specification there is some documentation you could build inside mor1kx source(https://github.com/openrisc/mor1kx/tree/master/doc) and sources themselves | 09:29 |
promach | SMDwrk: I already done make html | 09:35 |
promach | that html is actually the IP core spec | 09:36 |
promach | am I missing something ? | 09:36 |
karussellbremser | \notice olofk hello, it's me again :D | 11:53 |
karussellbremser | ok wrong syntax, whatever | 11:53 |
karussellbremser | in the meantime i used oproscv2 and used linux directly as the bootloader, like in this tutorial: http://openrisclinux.blogspot.de/ | 11:54 |
karussellbremser | the linux ran in the simulator, but when programming the board's spi flash, i got the message "Configuration data download to FPGA was not successful. DONE did not go high" | 11:55 |
karussellbremser | so something went wrong, and i have no idea how to debug this | 11:55 |
karussellbremser | i'm still trying to run linux on the atlys board on some version of the or1200 processor | 11:56 |
karussellbremser | if there's anyone who can provide a brief tutorial i'd be very happy :D | 11:57 |
ZipCPU | karusselbremser: Ahm ... what did you load into the flash? Linux? or an OpenRISC configuration? Or both? | 12:00 |
ZipCPU | The DONE not going high suggests that the configuration (Xilinx/Verilog stuff) within the flash was corrupted. | 12:01 |
karussellbremser | orpsocv2 with linux as bootloader | 12:01 |
karussellbremser | make orpsoc.mcs BOOTLOADER_BIN=vmlinux.bin | 12:01 |
karussellbremser | the orpsoc should be configured for the atlys | 12:01 |
karussellbremser | the linux had no atlys config so i used the default | 12:02 |
karussellbremser | again, this is straight from the tutorial i linked | 12:03 |
karussellbremser | at least the make command | 12:04 |
ZipCPU | Okay, then I'm wondering if the two parts to your flash image (board configuration and Linux) are somehow on top of each other. | 12:07 |
karussellbremser | they should be bundled within the mcs file | 12:08 |
karussellbremser | to my understanding at least | 12:08 |
ZipCPU | They should be. | 12:08 |
karussellbremser | what confused me was that the mcs file is 33.8 mb | 12:09 |
karussellbremser | the tutorial mentions around 15mb | 12:09 |
karussellbremser | probably because i used a different linux version | 12:09 |
karussellbremser | a newer one | 12:09 |
ZipCPU | Ouch. And ... how big is your configuration? or your program? Will they both fit in your flash? | 12:10 |
karussellbremser | what do you mean? | 12:10 |
karussellbremser | i only loaded the mcs file | 12:11 |
karussellbremser | a cfi file was also demanded but it's just a few bytes | 12:11 |
karussellbremser | the mcs should contain all information for the linux to boot, shouldn't it? | 12:11 |
ZipCPU | I'm going to hold off for someone with some more Linux background to join the discussion. ;) | 12:12 |
karussellbremser | np :) again, i'm only using this outdated workflow because i couldn't find instructions for more recent ones. all i want is to run the linux on the or1200 processor so i know the processor is working properly on my board | 12:14 |
karussellbremser | if i'm somehow doing that in a too complicated way, i'm open for suggestions | 12:17 |
karussellbremser | one more thing that just comes to my mind is that when building linux, only the vmlinux file, but not the vmlinux.bin file was produced. i got it with or1k-elf-objcopy -O binary vmlinux vmlinux.bin. could that be a problem as well? | 12:41 |
ZipCPU | Yes. | 13:03 |
ZipCPU | That is, if you then used the '.bin' file in place of a Xilinx configuration file, it would explain everything. | 13:03 |
mor1kx | [mor1kx] skristiansson pushed 1 new commit to master: https://github.com/openrisc/mor1kx/commit/8fd84b4bf11d69b2edfecdd96bedc71e95b5ff60 | 15:21 |
mor1kx | mor1kx/master 8fd84b4 Alex: Introducing PCU | 15:21 |
olofk | karussellbremser: It sounds like you're on the right track. Even though it was long since I used orpsocv2, I guess that makefile should combine a FPGA image and linux | 16:20 |
olofk | And for that you would likely need the .bin version you created | 16:20 |
olofk | But given the error message, it sounds like the FPGA image is broken somehow | 16:21 |
olofk | I think that bandvig (who pops in here from time to time) is booting from Flash on his Atlys board | 16:22 |
olofk | Do you have an external JTAG debugger? That could make things easier, as you could load software through that before you have something in Flash | 16:22 |
olofk | Where did you get your copy of orpsocv2 btw? | 16:25 |
olofk | And do you get any warnings or errors from promgen when you generate the mcs file? | 16:30 |
olofk | Can you program the FPGA successfully if you leave out BOOTLOADER_BIN ? | 16:30 |
promach | besides mor1kx IP core specification document, any other documents that explains about mor1kx in more details ? | 20:35 |
ZipCPU|Laptop | promach: What are you looking for? | 20:52 |
promach | I am now checking through the verilog files. | 20:59 |
promach | does openRISC have a dicumentation regarding the verilog files ? | 20:59 |
promach | or I need to simulate and understand myself using computer architecture knowledge ? | 21:00 |
ZipCPU|Laptop | promach: What documentation are you looking for? What do you want to know about? | 21:04 |
promach | I looked at the ip core spec, seems very little info. | 21:06 |
promach | do we have a block diagram ? | 21:06 |
promach | or an architecture diagram that I could refer to regarding mor1kx | 21:06 |
promach | this could speed up understanding | 21:06 |
ZipCPU|Laptop | Did you find the mor1kx.asciidoc file in the doc directory? | 21:14 |
promach | that is the ip core spec | 21:22 |
ZipCPU|Laptop | Ok, got it. | 21:38 |
promach | which toolchain I should get ? should not be musl-cross, right ? | 22:59 |
ZipCPU|Laptop | Might depend: are you planning on runnung Linux? The toolchain I have is specifically for bare metal. | 23:02 |
promach | es, linux | 23:26 |
promach | yes* | 23:26 |
--- Log closed Thu Oct 20 00:00:05 2016 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!