Skip to main content
Visitor II
August 4, 2023
Question

QEMU on stm32mp157

  • August 4, 2023
  • 1 reply
  • 3047 views

I want to emulate the stm32mp157 on qemu. I have been taking the kernel image and initrd from yocto build, but it is not loading the kernel. using the following command

qemu-system-arm \
-M virt -smp 8,sockets=1,cores=4,threads=2 -m 4G \
-cpu cortex-a7 \
-device virtio-tablet-pci \
-device virtio-keyboard-pci \
-device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 \
-device virtio-gpu-pci \
-device virtio-rng-pci,rng=rng0 \
-netdev tap,id=net0,ifname=$TAP,script=no,downscript=no \
-object rng-random,filename=/dev/urandom,id=rng0 \
-serial mon:stdio -serial null -nographic \
-initrd senecos-image-stm32mp1-ems-c2-faa1-20230803140050.rootfs.cpio.gz \
-kernel Image \
-append 'root=/dev/ram0 rw debugshell ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8 console=ttyAMA0 console=hvc0 '
    This topic has been closed for replies.

    1 reply

    Graduate II
    August 4, 2023

    I found this reference, I don't know if it helps in your case:

    (2021-06-28) STM does not provide direct support for qemu, many STM32MP1 boards exist that makes the use of QEMU not relevant.

    However it should be possible by setting the right Yocto machine : https://docs.yoctoproject.org/dev-manual/qemu.html

    https://community.st.com/t5/embedded-software-mpus/does-stm-provide-yocto-qemu-support-for-stm32mp1-family/td-p/198838