On 29/05/2015 21:27, Liviu Ionescu wrote: >> If the flash is persistent, it should be tied to either "-pflash" >> (NOR) or "-mtd" (NAND). Just using a different image then >> results in resizing the flash. > > I did not try the resizing mechanism, but I don't think it is > appropriate, one of my use cases is to start QEMU as GDB server, > without any image specified on the command line, and in this case the > flash size needs to be known in advance, I doubt the it can resize > when the image is loaded by the GDB client.
You can use -drive if=mtd,snapshot=on,file=null-co://,file.size=128K to start QEMU with a zero 128K NOR flash. Paolo