From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from qnap.com.tw (unknown [211.75.85.27]) by ozlabs.org (Postfix) with SMTP id 3C2DC68061 for ; Thu, 25 Aug 2005 12:59:56 +1000 (EST) From: "JohnsonCheng" To: "'Alex Zeffertt'" Date: Thu, 25 Aug 2005 10:59:15 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: <20050824094955.21977185.ajz@cambridgebroadband.com> Message-Id: <20050825025956.3C2DC68061@ozlabs.org> Cc: linuxppc-embedded@ozlabs.org Subject: RE: Linux Kernel MTD question List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Good idea. It works well. The latest version of mtd utility for erase flash is flash_eraseall. Thank you very much, Johnson Cheng -----Original Message----- From: Alex Zeffertt [mailto:ajz@cambridgebroadband.com] Sent: Wednesday, August 24, 2005 4:50 PM To: JohnsonCheng Cc: linuxppc-embedded@ozlabs.org Subject: Re: Linux Kernel MTD question Before doing a write to /dev/mtd1 try running ~# eraseall /dev/mtd1 (eraseall is from the mtd-utils package.) Alex On Wed, 24 Aug 2005 13:02:31 +0800 "JohnsonCheng" wrote: > Dear Ricardo and Wolfgang, > > Very thanks for your kindly support. > I am sorry I made a mistake. > Before you mount /dev/mtdblock4, you have to use mke2fs to format it. > Now I think my MTD function is almost ready, except write. > When I run "dd if=/dev/mtd1 of=kernel.img", it's OK. > But when I run "dd if=kernel.img of=/dev/mtd1", it's failed. No error > message printed, and the process time is shortly, cause Bad CRC. > > Thanks, > Johnson Cheng > > -----Original Message----- > From: linuxppc-embedded-bounces@ozlabs.org > [mailto:linuxppc-embedded-bounces@ozlabs.org] On Behalf Of Ricardo Scop > Sent: Wednesday, August 24, 2005 3:17 AM > To: JohnsonCheng; 'Robert P. J. Day' > Cc: linuxppc-embedded@ozlabs.org > Subject: Re: Linux Kernel MTD question > > Hi Johnson, > > On Tuesday 23 August 2005 02:31, JohnsonCheng wrote: > > It doesn't work, too. > > Error message: Invalid argument. > Well, do you have an mtdblock4 entry in /dev? > > Also, you should specify your filesystem type to mount, like in: > > mount -t jffs2 /dev/mtdblock4 /mnt > > BTW, -t jffs2 is just an example. > > HTH, > > -Scop. > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded