diff options
Diffstat (limited to 'meta/conf/machine/include/loongarch/qemuloongarch.inc')
| -rw-r--r-- | meta/conf/machine/include/loongarch/qemuloongarch.inc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/conf/machine/include/loongarch/qemuloongarch.inc b/meta/conf/machine/include/loongarch/qemuloongarch.inc new file mode 100644 index 0000000000..77245ff85d --- /dev/null +++ b/meta/conf/machine/include/loongarch/qemuloongarch.inc | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot" | ||
| 2 | |||
| 3 | require conf/machine/include/qemu.inc | ||
| 4 | require conf/machine/include/loongarch/tune-loongarch.inc | ||
| 5 | |||
| 6 | MACHINE_FEATURES = "screen keyboard ext2 ext3 serial" | ||
| 7 | |||
| 8 | KERNEL_IMAGETYPE = "vmlinuz" | ||
| 9 | KERNEL_IMAGETYPES += "vmlinuz" | ||
| 10 | KEEPUIMAGE = "no" | ||
| 11 | |||
| 12 | SERIAL_CONSOLES ?= "115200;ttyS0 115200;hvc0" | ||
| 13 | |||
| 14 | IMAGE_FSTYPES += "ext4 wic.qcow2" | ||
| 15 | |||
| 16 | WKS_FILE ?= "qemuloongarch.wks" | ||
| 17 | |||
| 18 | MACHINE_EXTRA_RRECOMMENDS += " kernel-modules" | ||
| 19 | |||
| 20 | #EXTRA_IMAGEDEPENDS += "opensbi" | ||
| 21 | |||
| 22 | UBOOT_ENTRYPOINT_loongarch32 = "0x80400000" | ||
| 23 | UBOOT_ENTRYPOINT_loongarch64 = "0x80200000" | ||
| 24 | |||
| 25 | # qemuboot options | ||
| 26 | QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi" | ||
| 27 | QB_MACHINE = "-machine virt" | ||
| 28 | QB_DEFAULT_BIOS = "fw_jump.elf" | ||
| 29 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" | ||
| 30 | QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" | ||
| 31 | QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0" | ||
| 32 | QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon" | ||
| 33 | QB_TCPSERIAL_OPT = " -device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon" | ||
| 34 | # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy | ||
| 35 | QB_OPT_APPEND = " -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-device,rng=rng0" | ||
