qemu-system-arm using flash on integratorcp

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
wiggum
Posts: 2
Joined: Wed Jun 10, 2015 7:29 am

qemu-system-arm using flash on integratorcp

Post 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?
jnc100
Member
Member
Posts: 775
Joined: Mon Apr 09, 2007 12:10 pm
Location: London, UK
Contact:

Re: qemu-system-arm using flash on integratorcp

Post 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.
wiggum
Posts: 2
Joined: Wed Jun 10, 2015 7:29 am

Re: qemu-system-arm using flash on integratorcp

Post 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..
Post Reply