public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Rahanesh <rahanesh@tataelxsi.co.in>
To: linux-mtd@lists.infradead.org
Subject: Mounting Entire Flash
Date: Thu, 24 Sep 2009 15:44:37 +0530	[thread overview]
Message-ID: <4ABB468D.9050009@tataelxsi.co.in> (raw)

Hi All,

Currently I have 4 mtd partitions in Flash. They are all seen under /dev 
directory as mtd0 mtd1 mtd2 and mtd3.

mtd0-> Uboot + Itz Environment
mtd1-> JFFS
mtd2-> Config files
mtd3-> Not used

I am currently trying to implement Image upgradation.

I will need to update JFFS, uboot and Config files from Linux.

I am currently achieving this through  flash_eraseall and dd  command .

To Update U-boot First i will do a

flash_eraseall /dev/mtd0 and then
dd if=uboot.bin of=/dev/mtd0 count=size;

and similarly for all individual partitions.

But If i have a combined image as combined.bin  how do i update the 
entire flash .

Is it possible to see entire flash as /dev/mtd  . i can very well 
extract individual images from combined image and reflash to respective 
partitions.

But it would be generic if  we are able write to entire flash not to 
individual partitions.

Is it possible to Write to entire flash as such.

Thanks
Rahanesh
 

             reply	other threads:[~2009-09-24 10:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-24 10:14 Rahanesh [this message]
2009-09-24 13:05 ` Mounting Entire Flash Dennis McLeod
2009-09-29  5:00   ` Rahanesh
2009-09-30  8:13     ` zheng shi

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=4ABB468D.9050009@tataelxsi.co.in \
    --to=rahanesh@tataelxsi.co.in \
    --cc=linux-mtd@lists.infradead.org \
    /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