From: Artyom Tarasenko <atar4qemu@gmail.com>
To: "Anton L. Vinokurov" <anton@netams.com>
Cc: Stefan Hajnoczi <stefanha@gmail.com>,
"jan.kiszka@web.de" <jan.kiszka@web.de>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] RE: /dev/mtd emulation
Date: Wed, 9 Feb 2011 18:15:06 +0100 [thread overview]
Message-ID: <AANLkTinPCVG9WxEvHdtTr=734a86odqSf2BcEE+xn1rj@mail.gmail.com> (raw)
In-Reply-To: <2F734DBCC05CAB4DAA198E581D746C1A05AB08A9@exh1.main.inorg.chem.msu.ru>
On Wed, Feb 9, 2011 at 4:34 PM, Anton L. Vinokurov <anton@netams.com> wrote:
> Jan, Stefan,
>
> I've tried indeed but with no luck:
> (qemu) info block
> ide0-hd0: type=hd removable=0 file=vimage.dat ro=0 drv=raw encrypted=0
> mtd0: type=hd removable=0 file=firmware.bin ro=0 drv=raw encrypted=0
> floppy0: type=floppy removable=1 locked=0 [not inserted]
> sd0: type=floppy removable=1 locked=0 [not inserted]
>
> but same time:
> ~ # cat /dev/mtd0
> cat: /dev/mtd0: No such device
> ~ # cat /dev/mtdblock0
> cat: /dev/mtdblock0: No such device or address
Looks like your guest kernel expects some other type of flash, or
looks for it not where you wired it up?
Maybe there are some hints in the dmesg output?
> Guest /dev/mtd0 is character device but QEMU thinks mtd0 is block.
>
> My hardware is a network module (like NME-CUE, NME-APPRE, NME-WAE) for Cisco ISR routers: 1GHz Celeron CPU, CompactFlash disk, 1Gb DRAM, 1 FastEthernet, ... Flash memory chip is STM M50FW080 8Mbit NVRAM.
>
> Regards,
>
> Anton.
>
>
> -----Original Message-----
> From: jan.kiszka@web.de [mailto:jan.kiszka@web.de]
> Sent: Wednesday, February 09, 2011 11:47 AM
> To: Stefan Hajnoczi
> Cc: Anton L. Vinokurov; qemu-devel@nongnu.org
> Subject: Re: /dev/mtd emulation
>
> On 2011-02-09 09:13, Stefan Hajnoczi wrote:
>> On Wed, Feb 9, 2011 at 7:18 AM, Anton L. Vinokurov <anton@netams.com> 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
>
>
>
--
Regards,
Artyom Tarasenko
solaris/sparc under qemu blog: http://tyom.blogspot.com/
prev parent reply other threads:[~2011-02-09 17:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-09 7:18 [Qemu-devel] /dev/mtd emulation Anton L. Vinokurov
2011-02-09 8:13 ` Stefan Hajnoczi
2011-02-09 8:46 ` [Qemu-devel] " Jan Kiszka
2011-02-09 15:34 ` [Qemu-devel] " Anton L. Vinokurov
2011-02-09 17:15 ` Artyom Tarasenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTinPCVG9WxEvHdtTr=734a86odqSf2BcEE+xn1rj@mail.gmail.com' \
--to=atar4qemu@gmail.com \
--cc=anton@netams.com \
--cc=jan.kiszka@web.de \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).