From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyQh8-00043T-3f for qemu-devel@nongnu.org; Fri, 29 May 2015 16:15:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyQh4-000202-S9 for qemu-devel@nongnu.org; Fri, 29 May 2015 16:15:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyQh4-0001z3-8V for qemu-devel@nongnu.org; Fri, 29 May 2015 16:15:50 -0400 Message-ID: <5568C8F2.6010702@redhat.com> Date: Fri, 29 May 2015 22:15:46 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <2816EEF2-0256-4B49-8811-74EFB3016CD4@livius.net> <556848A3.6010905@redhat.com> <5568BEF5.8020501@redhat.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] extensions to the -m memory option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liviu Ionescu Cc: qemu-devel@nongnu.org On 29/05/2015 22:13, Liviu Ionescu wrote: >>> You can use -drive >>> if=mtd,snapshot=on,file=null-co://,file.size=128K to start QEMU >>> with a zero 128K NOR flash. > did someone else have a faint thought that: > > - the above syntax might be a bit too complicated or non intuitive? Sure, this can be a problem. But then in the common case I suspect you want your flash to be non-zero at startup? > - specifying NOR flash might not be appropriate for defining the > internal flash for all Cortex-M MCUs? In what sense? Are there other kinds of flash than just NOR and NAND? (By the way, NOR would be if=pflash; mtd is NAND. I just picked a random one). Paolo > I know that this is mainly a linux shop, using large application > processors, but perhaps we can find a simpler way to accommodate the > slightly different MCU world.