litex-hub / linux-on-litex-vexriscv

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

Error at ./sim.py in "Running litex simulation" #204

Closed jhu960213 closed 3 years ago

jhu960213 commented 3 years ago

Hello,

Each step of the: https://github.com/litex-hub/linux-on-litex-vexriscv works fine up until when I run: ./sim.py. Running the litex simulation of the linux kernel gave me these outputs. Please see attached outputs.

Screenshot from 2021-03-04 18-27-32 Screenshot from 2021-03-04 17-41-23 Screenshot from 2021-03-04 18-41-52

I've looked into the source code and apparently in the "linux-on-litex-vexriscv/images" folder was missing 3 files: 1) Image 2) rootfs.cpio 3) opensbi.bin

However, rv32.dtb is there. The branch where I cloned the project was from the master branch if that matters.

I'm not sure if those 3 files are supposed to be there or not but when I created dummy ones the error during compilation is gone then I get stuck at the "Lift-Off!" part:

Screenshot from 2021-03-04 18-47-00

I'm running ubuntu 20.04.2 LTS if this helps

Thanks!

Best, J.H

geertu commented 3 years ago

Please find prebuilt images in #164.

jhu960213 commented 3 years ago

@geertu I figure that was the issue and I pulled those files into the Images directory but now its getting stuck at: Screenshot from 2021-03-05 14-15-00 Does it usually take a long time to build?

enjoy-digital commented 3 years ago

@jhu960213: Booting the simulation up to the Linux prompt can take some time yes, between 5-10 min depending your computer, unpacking initramfs is indeed a long step.

hasheddan commented 3 years ago

@jhu960213 confirmed initramfs takes quite a while locally but should eventually pass if not showing any errors

enjoy-digital commented 3 years ago

I think we can now close this, the error reporting in get_mem_data has been improved a bit with https://github.com/enjoy-digital/litex/commit/a81d1da98008e450cb8b11a4c9b9c379c1124fcd.