litex-hub / linux-on-litex-vexriscv

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

OSError: Unable to find images/Image memory content file. #279

Closed Ankelih closed 2 years ago

Ankelih commented 2 years ago

Hello,

When I tried to run ./sim.py I get the following error.

make: Leaving directory '/home/deniz/linux-on-litex-vexriscv/build/sim/software/bios' INFO:SoC:Initializing ROM rom with contents (Size: 0x5350). INFO:SoC:Auto-Resizing ROM rom from 0x10000 to 0x5350. Traceback (most recent call last): File "./sim.py", line 177, in main() File "./sim.py", line 161, in main sdram_verbosity = int(args.sdram_verbosity) File "./sim.py", line 87, in init ram_init = get_mem_data("images/boot.json", endianness="little", offset=0x40000000) File "/home/deniz/litex/litex/soc/integration/common.py", line 50, in get_mem_data raise OSError(f"Unable to find {filename} memory content file.") OSError: Unable to find images/Image memory content file.

How can I solve this problem?

Ankelih commented 2 years ago

I don't know whether it is correct or not but I downloaded prebuilt Linux/OpenSBI images and copied the files to images directory. After that I can successfully run sim.py