-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arty A7-100T Boot Linux Panic about irqchip. #1976
Comments
Btw, i'm new on fpga, another question is that where the irq number come from ? Is it come from the litex design or rocketchip? |
It could come from litex_json2dts_linux, but doesn't seem to. Maybe it's hard coded in linux-on-litex-rocket? |
On Fri, May 31, 2024 at 07:26:35PM -0700, AndrewD wrote:
Btw, i'm new on fpga, another question is that where the irq number come
from ? Is it come from the litex design or rocketchip?
It could come from litex_json2dts_linux, but doesn't seem to.
Maybe it's hard coded in linux-on-litex-rocket?
IRQs from LiteX devices come from the contents of csr.csv (generated
during build using `--csr-csv ./csr.sv`), and must each be incremented
by 1 when used with a rocket-specific DTS.
I believe litex-json2dts-linux might have been updated to do this for
rocket by now (commit 9156d79).
|
It looks like |
You could test using this repository. |
Thanks for it! I have tried to use My dts have no irq 12 , but booting info shows me that irq 12 nobody cared, i don't know how to think it. Can you give me some suggestion. |
@Comet959 I think you will have more success if you look at the repository mentioned by @trabucayre above. I believe it will build everything needed to run a known working configuration. |
🎉Thanks very much! I have already run the test successfully, all works fine. I definitely couldn't have done it without your help. @trabucayre @AndrewD ![]() |
FWIW, I just updated linux-on-litex-rocket to use "fresh" component commits and opensbi (instead of the old, deprecated BBL). Examples include boards I have available to work with:
It should be relatively straightforward to adapt one of the DTS examples to a new board, and rebuild a dedicated opensbi firmware blob to fit the new bitstream. |
This is really something worth celebrating。 Another thing that puzzles me is about the ISA extension. I want to enable the H-extension when compiling rocketchip, but as you can see in the picture above, isa does not show support for the H extension. I saw this issue also mentioned related issues chipsalliance/rocket-chip#3296 , but I still haven't figured out how to support H extension specifically. Can you explain it to me? |
I want to enable the H-extension when compiling rocketchip
H extension is supported only when using:
```
... --cpu-type rocket --cpu-variant full ...
```
When you build your .dts file, use the core parameters (e.g., isa
string) in one of the `pythondata-cpu-rocket/pythondata_cpu_rocket/verilog/generated-src/freechips.rocketchip.system.LitexConfig_full_*.dts` files as a starting point.
Note that `pythondata-cpu-rocket` is a fair bit behind upstream
rocket-chip: upstream made a set of major changes that make it less
suitable for use with LiteX, and I haven't had time to try again since
#1878 (comment)
|
the issue metioned on:
litex-hub/linux-on-litex-rocket#40 (comment)
i found the arty.dts had a node with interrupts-extended: <&L4 11 >
and my Linux can't get thr irq 11 's handler.
How can i debug this?
The text was updated successfully, but these errors were encountered: