qqgnoe466263 / rv32-emu

A RISCV32IMAC Emulator
3 stars 0 forks source link

Failed to launch OpenSBI/Linux image #1

Open jserv opened 2 years ago

jserv commented 2 years ago

I attempted to launch the prebuilt image files:

./rv_emu --bios linux5.4/fw_jump.bin --kernel linux5.4/Image --rootfs linux5.4/busybox.bin --dts dts/riscv_em.dtb

OpenSBI appears as following:

OpenSBI v1.1-39-gcbaa9b0
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name             : rv32-emu

However, it soon encountered Floating point exception and thus had no progress.

qqgnoe466263 commented 2 years ago

Hi jserv,

Thanks for your test, I rollback to previous commit and the prebuilt binary is available.

[    3.752944] EXT4-fs (vda): mounted filesystem without journal. Opts: (null)
[    3.755033] VFS: Mounted root (ext2 filesystem) on device 254:0.
[    3.759676] devtmpfs: mounted
[    3.767466] Freeing unused kernel memory: 192K
[    3.768366] This architecture does not have kernel memory protection.
[    3.769517] Run /sbin/init as init process
Hello, RISC-V

Please try again. Thanks.

jserv commented 2 years ago

My git HEAD is 742f2e6c71a3bfaef40baf5356ca6d7764f63530 After running ./rv_emu --bios linux5.4/fw_jump.bin --kernel linux5.4/Image --rootfs linux5.4/busybox.bin --dts dts/riscv_em.dtb, I still encountered the same FPE. Shall I re-generate linux5.4/fw_jump.bin?

qqgnoe466263 commented 2 years ago

Maybe try to re-compile.

$ make clean
$ make