From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bittware.com ([208.82.132.157] helo=olympus.corp.bittware.com) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1Mqo0n-0003Yx-Nc for linux-mtd@lists.infradead.org; Thu, 24 Sep 2009 13:05:34 +0000 Subject: Re: Mounting Entire Flash From: Dennis McLeod To: Rahanesh In-Reply-To: <4ABB468D.9050009@tataelxsi.co.in> References: <4ABB468D.9050009@tataelxsi.co.in> Date: Thu, 24 Sep 2009 09:05:15 -0400 Message-Id: <1253797515.3722.3.camel@lusitania> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Cc: linux-mtd@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2009-09-24 at 15:44 +0530, Rahanesh wrote: > 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 I always set up a partition that spans the entire flash chip.. mtd0 -> 0:ENTIRE_SIZE mtd1 -> 0:+10M mtd2 -> 10M:22M ... - =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= = Dennis McLeod = = Software Engineer = = BittWare, Inc. = = 603.226.0404 ext 514 = =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ** BittWare Celebrates 20 Years Delivering COTS Signal Processing Solutions 1989 - 2009 **