litex-hub / linux-on-litex-rocket

Run 64-bit Linux on LiteX + RocketChip
BSD 2-Clause "Simplified" License
181 stars 18 forks source link

Arty A7-100T Boot Linux Panic about irqchip. #40

Closed Jerryy959 closed 3 months ago

Jerryy959 commented 3 months ago

I'm using ArtyA7-100T to boot rocketchip linux.

litex-boards/litex_boards/targets/digilent_arty.py --build --load \
   --cpu-type rocket --cpu-variant full --sys-clk-freq 50e6 \
   --with-ethernet --variant=a7-100

All works fine, but when booting the linux , i reach the followning error something about plic_irqchip:

截屏2024-05-30 15 05 53

Things like that when claim the irq 11 , the handler->hart_base == 0, which makes the claim==0x4, leads to error.

Then i check the irpchip's probe function, as following behind, the irq_set_chained_handler doesn't return correctly, so that the code about handler->present = true not excute, how can i debug it ?

截屏2024-05-30 15 09 57 截屏2024-05-30 15 11 08
Jerryy959 commented 3 months ago

This problem has solved on here: https://github.com/enjoy-digital/litex/issues/1976#issue-2324919065. it can be closed.