All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manuel Sahm <Manuel.Sahm@feig.de>
To: Ricard Wanderlof <ricard.wanderlof@axis.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Binary Nandwrite/read to Flash
Date: Thu, 13 Mar 2008 15:22:57 +0100	[thread overview]
Message-ID: <47D938C1.6040804@feig.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0803131448330.6032@lnxricardw.se.axis.com>



Ricard Wanderlof schrieb:
>
> On Thu, 13 Mar 2008, Manuel Sahm wrote:
>
>> Thank you,
>>
>> could you tell me the exact call:
>>
>> I have a NAND-Flash with PAGESSIZE = 0x800 and ERASEBLOCKSIZE=0x20000
>>
>> I want to write a file maybe called "test.txt" at adress 0x02000000 
>> of the NAND flash.
>
> Something like
>
> nandwrite -s 0x02000000 -p /dev/mtd0 test.txt
>
> (mtd0 depending on which device your nandflash is)
>
> (Note: you don't have to specify the padding size, nandwrite figures 
> it out by querying mtd).
>
>> And read it back to a file "test2.txt" afterwards.
>
> Something like
>
> nanddump -o -b -s 0x02000000 -l <filesize> -f test2.txt /dev/mtd0
>
> where <filesize> is the size of your file.
>
> /Ricard
> -- 
> Ricard Wolf Wanderlöf                           ricardw(at)axis.com
> Axis Communications AB, Lund, Sweden            www.axis.com
> Phone +46 46 272 2016                           Fax +46 46 13 61 30
Thank you very much....

Is it possible to write/read to the NAND flash "directly" without an 
partition ?(/dev/mtdX) ?

Best regards 

Manuel Sahm	

  reply	other threads:[~2008-03-13 14:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-13 12:18 Binary Nandwrite/read to Flash Manuel Sahm
2008-03-13 12:47 ` Ricard Wanderlof
     [not found]   ` <47D92581.1030007@feig.de>
2008-03-13 13:53     ` Ricard Wanderlof
2008-03-13 14:22       ` Manuel Sahm [this message]
2008-03-13 14:26         ` Ricard Wanderlof
2008-03-13 15:12           ` Manuel Sahm
2008-03-14  7:41             ` Ricard Wanderlof
2008-03-13 14:27   ` Matthieu CASTET

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=47D938C1.6040804@feig.de \
    --to=manuel.sahm@feig.de \
    --cc=linux-mtd@lists.infradead.org \
    --cc=ricard.wanderlof@axis.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.