qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: /dev/mtd emulation


From: Jan Kiszka
Subject: [Qemu-devel] Re: /dev/mtd emulation
Date: Wed, 09 Feb 2011 09:46:36 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

On 2011-02-09 09:13, Stefan Hajnoczi wrote:
> On Wed, Feb 9, 2011 at 7:18 AM, Anton L. Vinokurov <address@hidden> wrote:
>> ~ # dmesg | grep mtd
>>
>> ~ #
> 
> Have you tried qemu -drive if=mtd,file=/path/to/firmware?
> 
> QEMU has some flash emulation code in
> hw/{nand.c,onenand.c,pflash_cfi01.c,pflash_cfi02.c}.  I've never used
> them but perhaps someone else can help if you provide more details
> about the hardware you are trying to emulate.

You also need to wire up that flash device on board init, i.e. add some
pflash_*_register to pc_init1. Check some embedded board for the precise
pattern.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]