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?