Intel® Business Client Software Development
Support for Intel® vPro™ software development and technologies associated with Intel vPro platforms.

How to run the QEMU instance on arria10 board

Anuradha_Tamilarasan
664 Views

I am using arria10 SX660 Som + custom development carrier card. Booting binary has generated by standalone source code compilation + yocto rootfs. when lauch the QEMU instance by qemu_x86-64 machine i can able to launch the QEMU emulator and able to load till rootfs , same i has tried my custom build binaries but it hang in mid after running QEMU command.  I want to launch the QEMU instance for the custom design board. Could you please provide the steps to generate the qemu launch environment and validate the same on arria10 board. 
For reference i given QEMU bootlog, please look into it.

user@user-OptiPlex-7060:~/yocto/source_code/build$ runqemu "machine name" tmp/deploy/images/"machine name"/core-image-minimal-"machine name"-20230518124759.rootfs.ext4 tmp/deploy/images/"machine name"/zImage--5.4.124-lts+git0+85d7cb2626-r0-"machine name"-20230518100436.bin nogrphic
runqemu - ERROR - Can't handle two unknown args: "machine name" nogrphic
Try 'runqemu help' on how to use it
runqemu - INFO - Cleaning up
user@user-OptiPlex-7060:~/yocto/source_code/build$ runqemu "machine name" tmp/deploy/images/"machine name"/core-image-minimal-"machine name"-20230518124759.rootfs.ext4 tmp/deploy/images/"machine name"/zImage--5.4.124-lts+git0+85d7cb2626-r0-"machine name"-20230518100436.bin nographic
runqemu - INFO - Running MACHINE="machine name" bitbake -e...
runqemu - INFO - Continuing with the following parameters:

KERNEL: [/home/user/yocto/source_code/build/tmp/deploy/images/"machine name"/zImage--5.4.124-lts+git0+85d7cb2626-r0-"machine name"-20230518100436.bin]
MACHINE: ["machine name"]
FSTYPE: [ext4]
ROOTFS: [/home/user/yocto/source_code/build/tmp/deploy/images/"machine name"/core-image-minimal-"machine name"-20230518124759.rootfs.ext4]
CONFFILE: [/home/user/yocto/source_code/build/tmp/deploy/images/"machine name"/core-image-minimal-"machine name"-20230518124759.qemuboot.conf]

runqemu - INFO - Setting up tap interface under sudo
[sudo] password for user:
runqemu - INFO - Network configuration: 192.168.7.2::192.168.7.1:255.255.255.0
runqemu - INFO - Running /home/user/yocto/source_code/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-aarch64 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -drive file=/home/user/yocto/source_code/build/tmp/deploy/images/"machine name"/core-image-minimal-"machine name"-20230518124759.rootfs.ext4,if=virtio,format=raw -show-cursor -nographic -machine virt -m 256 -serial mon:stdio -serial null -kernel /home/user/yocto/source_code/build/tmp/deploy/images/"machine name"/zImage--5.4.124-lts+git0+85d7cb2626-r0-"machine name"-20230518100436.bin -append 'root=/dev/vda rw highres=off console=ttyS0 mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 '

0 Kudos
0 Replies
Reply