Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
openeuler_risc-v_qemu_install [2022/03/01 06:54] – [Others] misaka00251 | openeuler_risc-v_qemu_install [2023/04/28 02:32] – Add macOS & fix links misaka00251 | ||
---|---|---|---|
Line 3: | Line 3: | ||
不要忘记安装最新版的 [[https:// | 不要忘记安装最新版的 [[https:// | ||
- | 去 [[https:// | + | 去 [[https:// |
- | * fw_payload_oe.elf | + | * fw_payload_oe.elf |
* openEuler-preview.riscv64.qcow2 | * openEuler-preview.riscv64.qcow2 | ||
Line 26: | Line 26: | ||
-append ' | -append ' | ||
-bios none | -bios none | ||
+ | </ | ||
+ | |||
+ | macOS 下启动: | ||
+ | |||
+ | <file powershell run.sh> | ||
+ | cmd=" | ||
+ | -machine virt -nographic \ | ||
+ | -display cocoa, | ||
+ | -smp " | ||
+ | -audiodev coreaudio, | ||
+ | -bios " | ||
+ | -drive file=" | ||
+ | -object rng-random, | ||
+ | -device virtio-vga \ | ||
+ | -device virtio-rng-device, | ||
+ | -device virtio-blk-device, | ||
+ | -device virtio-net-device, | ||
+ | -netdev user, | ||
+ | -device qemu-xhci -usb -device usb-kbd -device usb-tablet -device usb-audio, | ||
+ | |||
+ | eval $cmd | ||
</ | </ | ||
Line 33: | Line 54: | ||
qemu-system-riscv64 ` | qemu-system-riscv64 ` | ||
-nographic -machine virt ` | -nographic -machine virt ` | ||
- | -smp 2 -m 4G ` | + | -smp 8 -m 16G ` |
- | -kernel | + | -display sdl ` |
- | -drive file=openEuler-preview.riscv64.qcow2, | + | -kernel |
+ | -bios none ` | ||
+ | -drive file=openEuler-22.03-V2-xfce-qemu-preview.qcow2, | ||
+ | -device virtio-vga | ||
-device virtio-blk-device, | -device virtio-blk-device, | ||
-device virtio-net-device, | -device virtio-net-device, | ||
- | -netdev user, | + | -netdev user, |
- | -append ' | + | -device qemu-xhci -usb -device usb-kbd -device usb-tablet |
- | -bios none | + | -append ' |
</ | </ | ||
Line 128: | Line 152: | ||
$ cd qemu | $ cd qemu | ||
$ git checkout stable-6.1 | $ git checkout stable-6.1 | ||
- | $ ./configure --target-list=riscv64-softmmu, | + | $ ./configure --target-list=riscv64-softmmu, |
$ make | $ make | ||
$ make install | $ make install | ||
Line 142: | Line 166: | ||
</ | </ | ||
- | 随后 '' | + | 随后 '' |
+ | |||
+ | :!: 公共机器上无需再去 openEuler 官方下载相关文件,Wechat@nil 准备了一份放在了 / | ||
+ | |||
+ | ==== 我的虚拟环境没空间了 ==== | ||
+ | |||
+ | 这我还真在编译 openjdk 的时候遇到了。 | ||
+ | |||
+ | 首先关机,然后使用 '' | ||
+ | |||
+ | 然后使用 '' | ||
+ | |||
+ | 接下来,进入系统并安装 '' | ||
+ | |||
+ | 然后输入 '' |