qemu-system-arm using flash on integratorcp
Posted: Wed Jun 10, 2015 7:48 am
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:
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?
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
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?