qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Using QCOW2 with nand flashes.
@ 2015-07-07  6:51 sai pavan
  2015-07-07  6:54 ` [Qemu-devel] Fwd: " sai pavan
  0 siblings, 1 reply; 4+ messages in thread
From: sai pavan @ 2015-07-07  6:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: balrog

[-- Attachment #1: Type: text/plain, Size: 623 bytes --]

Hi,

I am trying to implement fake disk images for emulating nand flashes.
I see the spares files are formed when the content is zeros. But for nand
flashes the content is all one's initially. It is difficult for me make a
sparse file with all ones.

Do any one have suggestions for this problem.

I am thinking of creating an nand flash file with all zeros and negating
the data at receiving end in qemu. So the input file will be null, but the
concept of all 1's be intact. But this will be confusing if some one likes
to compare the output bin files after a write. One should read the data
negating.

Regards,
Sai Pavan

[-- Attachment #2: Type: text/html, Size: 792 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel] Fwd: Using QCOW2 with nand flashes.
  2015-07-07  6:51 [Qemu-devel] Using QCOW2 with nand flashes sai pavan
@ 2015-07-07  6:54 ` sai pavan
  2015-07-07  8:41   ` Peter Crosthwaite
  0 siblings, 1 reply; 4+ messages in thread
From: sai pavan @ 2015-07-07  6:54 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 623 bytes --]

Hi,

I am trying to implement fake disk images for emulating nand flashes.
I see the spares files are formed when the content is zeros. But for nand
flashes the content is all one's initially. It is difficult for me make a
sparse file with all ones.

Do any one have suggestions for this problem.

I am thinking of creating an nand flash file with all zeros and negating
the data at receiving end in qemu. So the input file will be null, but the
concept of all 1's be intact. But this will be confusing if some one likes
to compare the output bin files after a write. One should read the data
negating.

Regards,
Sai Pavan

[-- Attachment #2: Type: text/html, Size: 885 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Fwd: Using QCOW2 with nand flashes.
  2015-07-07  6:54 ` [Qemu-devel] Fwd: " sai pavan
@ 2015-07-07  8:41   ` Peter Crosthwaite
  2015-07-07  9:09     ` sai pavan
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Crosthwaite @ 2015-07-07  8:41 UTC (permalink / raw)
  To: sai pavan, Kevin Wolf; +Cc: qemu-devel@nongnu.org Developers

On Mon, Jul 6, 2015 at 11:54 PM, sai pavan <saipavanboddu@gmail.com> wrote:
>
> Hi,
>
> I am trying to implement fake disk images for emulating nand flashes.
> I see the spares files are formed when the content is zeros. But for nand
> flashes the content is all one's initially. It is difficult for me make a
> sparse file with all ones.
>
> Do any one have suggestions for this problem.
>
> I am thinking of creating an nand flash file with all zeros and negating the
> data at receiving end in qemu.

Could this be a feature of qcow or some other file format rather than
a NAND specific thing? It probably applies to other flash media.

Regards,
Peter

> So the input file will be null, but the
> concept of all 1's be intact. But this will be confusing if some one likes
> to compare the output bin files after a write. One should read the data
> negating.
>
> Regards,
> Sai Pavan
>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Fwd: Using QCOW2 with nand flashes.
  2015-07-07  8:41   ` Peter Crosthwaite
@ 2015-07-07  9:09     ` sai pavan
  0 siblings, 0 replies; 4+ messages in thread
From: sai pavan @ 2015-07-07  9:09 UTC (permalink / raw)
  To: Peter Crosthwaite; +Cc: Kevin Wolf, qemu-devel@nongnu.org Developers

On Tue, Jul 7, 2015 at 2:11 PM, Peter Crosthwaite
<peter.crosthwaite@xilinx.com> wrote:
> On Mon, Jul 6, 2015 at 11:54 PM, sai pavan <saipavanboddu@gmail.com> wrote:
>>
>> Hi,
>>
>> I am trying to implement fake disk images for emulating nand flashes.
>> I see the spares files are formed when the content is zeros. But for nand
>> flashes the content is all one's initially. It is difficult for me make a
>> sparse file with all ones.
>>
>> Do any one have suggestions for this problem.
>>
>> I am thinking of creating an nand flash file with all zeros and negating the
>> data at receiving end in qemu.
>
> Could this be a feature of qcow or some other file format rather than
> a NAND specific thing? It probably applies to other flash media.
Yeah, its for all flash devices. Could be useful to emulate a bigger
spi flash too.
Let me know if qemu has any similar implantation in blockdev.

Thanks,
Sai Pavan.
>
> Regards,
> Peter
>
>> So the input file will be null, but the
>> concept of all 1's be intact. But this will be confusing if some one likes
>> to compare the output bin files after a write. One should read the data
>> negating.
>>
>> Regards,
>> Sai Pavan
>>
>>
>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-07  9:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07  6:51 [Qemu-devel] Using QCOW2 with nand flashes sai pavan
2015-07-07  6:54 ` [Qemu-devel] Fwd: " sai pavan
2015-07-07  8:41   ` Peter Crosthwaite
2015-07-07  9:09     ` sai pavan

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).