We do not have i.MX 8M Plus board, so I'd like to ask if qemu can emulate i.MX 8M Plus?
I'd like to run qemu Linux based on i.MX 8M Plus.
Can the qemu Linux run applications compiled by XTENSA, like the SOF project?
Thank anyone who can give any information.
I run the qemu setup command:
qemu-system-aarch64 \
-machine imx8mp-evk \
-cpu cortex-a53 \
-m 2G \
-smp 4 \
-kernel ./imx-image-full-imx8mpevk/boot/Image \
-drive file=imx-image-full-imx8mpevk.qcow2,format=qcow2,id=disk,if=none \
-append "root=/dev/vda console=ttyAMA0"
the system can't be loaded successfully.Can you help me check the command, the argument -kernel is right?
Finally,I run the qemu command:
I solved the issue. QEMU’s i.MX8MP emulation already creates its own USB controllers (DWC3/XHCI). I was adding a separate EHCI USB controller using the command -device usb-ehci,id=ehci, and these two controllers were working independently. The device I attached to the EHCI controller couldn’t communicate with the i.MX8MP’s actual USB bus. I removed the EHCI controller and instead used the board’s built-in USB controller, and that allowed me to successfully connect the camera to the board.
Here’s the working command:
Hello mm2021,
The qemu-system-aarch64 binary supports all the 32-bit CPUs and boards, in the same way that qemu-system-x86_64 lets you run a 32-bit x86 CPU guest, which is why the list is so long and full of 32-bit boards. You cannot just try to use a 32-bit board with a -cpu cortex-a53, since is 64 bits.
Regards
Thank you for the reply.
Could I ask for another question about qemu + i.MX 8M Plus?
I'd like to know qemu + i.MX 8M Plus supports emulating xtensa dsp core?
How to run a xtensa application under qemu + i.MX 8M Plus?
no, Xtensa is not supported by qemu.