qemu-system-riscv64 -m 4096M -smp 2 -nographic \
-bios /usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf \
-kernel /root/riscv/kernel \
-drive file=/dev/zvol/data/vm/rv0,format=raw,id=hd0 \
-device virtio-blk-device,drive=hd0 \
-machine virt
上述挺正常的。
用u-boot的uefi方式导入不起来。能进到u-boot界面,下面就不会了。
先用fatload加载boot1.efi,再用 bootefi启动,显示有点乱
qemu-system-riscv64 -m 4096M -smp 2 -nographic \
-bios /usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf \
-kernel /usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin \
-drive file=/dev/zvol/data/vm/rv0,format=raw,id=hd0 \
-device virtio-blk-device,drive=hd0 \
-netdev tap,ifname=tap0,script=no,id=net0 \
-device virtio-net-device,netdev=net0 \
-machine virt
-bios /usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf \
-kernel /root/riscv/kernel \
-drive file=/dev/zvol/data/vm/rv0,format=raw,id=hd0 \
-device virtio-blk-device,drive=hd0 \
-machine virt
上述挺正常的。
用u-boot的uefi方式导入不起来。能进到u-boot界面,下面就不会了。
先用fatload加载boot1.efi,再用 bootefi启动,显示有点乱
qemu-system-riscv64 -m 4096M -smp 2 -nographic \
-bios /usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf \
-kernel /usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin \
-drive file=/dev/zvol/data/vm/rv0,format=raw,id=hd0 \
-device virtio-blk-device,drive=hd0 \
-netdev tap,ifname=tap0,script=no,id=net0 \
-device virtio-net-device,netdev=net0 \
-machine virt