litex-hub / linux-on-litex-vexriscv

Linux on LiteX-VexRiscv
BSD 2-Clause "Simplified" License
551 stars 174 forks source link

Boot issue hanging reading core count #315

Closed matsbror closed 1 year ago

matsbror commented 1 year ago

After switching from sdcard to spisdcard fpr the nexys4ddr board, I managed to get it try to boot from an SD-card. I replaced rv32.dtp with nexys4ddr.dtp built when I generated the bitstream. However, the booting hangs:

--============= Liftoff! ===============--

OpenSBI v0.8-2-ga9ce3ad
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name       : LiteX / VexRiscv-SMP
Platform Features   : timer,mfdeleg
Platform HART Count :

Any ideas on how to proceed appreciated!

matsbror commented 1 year ago

I managed after many trials to get it working. I believe the issue was a mismatch various riscv toolchains. I had to install the 32-bit tool-chain and then it did work.