Skip to content
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

Run time failure, hang after the welcome message #6

Open
mongsim opened this issue Oct 27, 2024 · 5 comments
Open

Run time failure, hang after the welcome message #6

mongsim opened this issue Oct 27, 2024 · 5 comments

Comments

@mongsim
Copy link

mongsim commented Oct 27, 2024

./riscv_em -f fw_payload.bin -d riscv_em.dtb

or

./riscv_em -f fw_payload.bin -d riscv_em.dtb -i myfilesys.img // ext3

Both have the same error and hang there forever!
Please advise. Thank you.

mounting tmpfs on /[ 6.657184] random: dd: uninitialized urandom read (512 bytes read)
dev/shm failed
Welcome

@franzflasch
Copy link
Owner

How did you build your image?

@mongsim
Copy link
Author

mongsim commented Oct 28, 2024

I used this command to compile Linux.

./riscv_em_rv32_mmu_linux.sh

@mongsim mongsim closed this as completed Oct 28, 2024
@mongsim mongsim reopened this Oct 29, 2024
@mongsim
Copy link
Author

mongsim commented Oct 29, 2024

I have an older version that does not have the—i option, and it runs well with the Linux image. It looks like it is not the Linux image issue by the riscv_em. Any suggestion?

@franzflasch
Copy link
Owner

franzflasch commented Oct 29, 2024

The ramdisk feature was introduced by @redhog, and I haven't personally tested it. There may be a problem with the way you've built your ramdisk.

Edit: Sorry mabye I misunderstood. So with the latest master the emulator also does not even work with the initramfs?

@mongsim
Copy link
Author

mongsim commented Oct 30, 2024

But without the -i it also failed at the same spot. The ext3 image is created uses this:

dd if=/dev/zero of=myfs.img count=204800
sudo mke2fs -t ext3 myfs.img

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants