Page 1 of 1
Qemu
Posted: 24. Mar 2016, 16:15
by Khizar
I need help..I have to emulate ARM Cortex a15 on ubuntu.Someone told me to use Qemu but its very messy and difficult to understand...so can i use VirtualBox to do so??
Re: Qemu
Posted: 24. Mar 2016, 20:03
by mpack
No, VirtualBox is not a CPU emulator. It can only run Intel code and only on Intel processors.
VM platforms (hypervisors) don't emulate the CPU, they emulate the peripheral hardware that the CPU talks to. So, a guest OS sees hardware other than what really exists. When not touching hardware the guest code runs at full speed on the host CPU.
VirtualBox provides emulations of PC peripherals only, so in practice you can only run PC Operating Systems in a VirtualBox VM.
You ARM OS will fail on VirtualBox for two main reasons: first, the host CPU is not an ARM Cortex. Second, I doubt that embedded OS is expecting to find itself running on PC hardware.
As an aside, since VirtualBox still will not do what you need: I hope you are aware than an emulated CPU runs several orders of magnitude slower than the real thing. Emulated CPUs tend to be good for debugging, and not much else. In my personal experience many emulated CPUs are too slow even for debugging. I have written several homebrew CPU simulators over the years, usually with the purpose of discarding the emulation aspects I don't need (such as an accurate cache model), so that I can test lengthy embedded tasks faster.