Page 1 of 1

qemu-system-arm using flash on integratorcp

Posted: Wed Jun 10, 2015 7:48 am
by wiggum
Hello guys I'm developing a kernel for arm integratorcp boards.

Currently I try to work with flash images but i have no idea on how to get qemu to get the flash mountet in its address space.

I'm using -drive file=flash.img,if=pflash,format=raw to get the flash loaded from qemu. but it does not get mapped in the address space.
additionally qemu puts the following warning:

Code: Select all

warning: ophaned drive without device: id=pflash,file=flash.img,if=pflash,bus=0,unit=0
the integrator cp manual says that the flash is mounted on addresses starting from 0x20000000 and expands on the size of the flash.

I wrote something on the flash and located some bytes with hexdump -C and searched for them in my kernel on the address space where it should be. but it was not there.
Generally the whole space where the flash should be is zero.

someone has another idea on how to get the flash mounted in its address space where it should be?

Re: qemu-system-arm using flash on integratorcp

Posted: Wed Jun 10, 2015 1:45 pm
by jnc100
Flash support doesn't seem to be implemented for the Integrator CP emulation in qemu (link). There are some instructions for adding it to the Versatile PB emulation at elinux.org.

Regards,
John.

Re: qemu-system-arm using flash on integratorcp

Posted: Wed Jun 10, 2015 3:35 pm
by wiggum
i allready read about the flash support for versatilepb. by the way that patch was allready included in the main development branch of qemu.

i guess i'm starting porting my kernel to versatilepb..