[gnome-build-meta.wiki] Create risc v



commit 7fab6be53319f733c59690ebe70c68beb930a678
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Sep 29 23:07:28 2021 +0000

    Create risc v

 risc-v.md | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
---
diff --git a/risc-v.md b/risc-v.md
new file mode 100644
index 0000000..46ab76a
--- /dev/null
+++ b/risc-v.md
@@ -0,0 +1,29 @@
+### Build
+
+```
+bst -o arch riscv64 build iso/image.bst freedesktop-sdk.bst:components/opensbi-u-boot.bst
+bst -o arch riscv64 checkout iso/image.bst iso
+bst -o arch riscv64 checkout freedesktop-sdk.bst:components/opensbi-u-boot.bst firmware
+```
+
+### Install
+
+```
+qemu-img create -f qcow2 disk.qcow2 50G
+qemu-system-riscv64 -M virt -m 16G -smp 8 -bios 
firmware/usr/share/opensbi/lp64/generic/firmware/fw_payload.elf -drive 
file=iso/installer.iso,format=raw,media=cdrom,if=virtio -drive file=disk.qcow2,format=qcow2,if=virtio 
-display spice-app,gl=on -device virtio-gpu,xres=1920,yres=1080 -device usb-ehci -device usb-kbd -device 
usb-tablet -netdev user,id=n1 -device virtio-net-pci,netdev=n1 -soundhw hda
+```
+
+### Alternative to installation
+
+```
+bst -o arch riscv64 checkout vm/image.bst vm
+unxz vm/disk.img.xz
+qemu-img convert vm/disk.img -O qcow2 disk.qcow2
+qemu-img resize disk.qcow2 50G
+```
+
+### Run
+
+```
+qemu-system-riscv64 -M virt -m 16G -smp 8 -bios 
firmware/usr/share/opensbi/lp64/generic/firmware/fw_payload.elf -drive file=disk.qcow2,format=qcow2,if=virtio 
-display spice-app,gl=on -device virtio-gpu,xres=1920,yres=1080 -device usb-ehci -device usb-kbd -device 
usb-tablet -netdev user,id=n1 -device virtio-net-pci,netdev=n1 -soundhw hda
+```
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]