Skip to contentSkip to conversation

qemu arm with non-linux image

Qemu-devel Nathan Fain 3 participants 3 messages Oct 21, 2010

lore
Share & tools
lore
#0 lore raw

Is it possible to use qemu with a arm raw image from an embedded device? The device does not use linux. Any links to documentation or general knowledge I can search with appreciated.

thanks

#1 lore raw
Quoted 3 lines · Nathan Fain

Is it possible to use qemu with a arm raw image from an embedded device? The device does not use linux. Any links to documentation or general knowledge I can search with appreciated.

I just humbly think it is likely possible...after all, Qemu never said it is just for Linux based platform.....except for user mode emulation.

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
#2 lore raw
In reply to Nathan Fain

Am 21.10.2010 03:34, schrieb Nathan Fain:

Quoted 3 lines

Is it possible to use qemu with a arm raw image from an embedded device? The device does not use linux. Any links to documentation or general knowledge I can search with appreciated.

thanks

Maybe. It depends on the emulated arm platform (qemu supports several of them) load address and other factors.

The code is the documentation. Images are loaded from code in hw/arm_boot.c. There you can see that qemu supports elf, u-boot and raw images. Raw images are assumed to be linux images. That's the image loaded by the "-kernel" parameter.

Depending on the platform, it is also possible to load (boot) roms.

Try parameter "-d in_asm" to see (in file /tmp/qemu) what qemu does with your raw code.

If you are a programmer and willing to spend (a lot of) time, the answer to your question is yes.

Cheers,
Stefan Weil