From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wy0-f177.google.com ([74.125.82.177]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q5Zjg-0002u6-Rb for linux-mtd@lists.infradead.org; Fri, 01 Apr 2011 08:29:41 +0000 Received: by wyb28 with SMTP id 28so3340579wyb.36 for ; Fri, 01 Apr 2011 01:29:39 -0700 (PDT) Subject: Re: How to write to nand with an image containing oob data, including ECC? From: Artem Bityutskiy To: Ricard Wanderlof In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Fri, 01 Apr 2011 11:27:16 +0300 Message-ID: <1301646436.2789.28.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Linux mtd Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2011-03-29 at 17:30 +0200, Ricard Wanderlof wrote: > Hi, > > In order to test an ECC algorithm (BCH in this case, as I recently posted > about), i want to write an image to a nand flash which contains bit > errors. I just tried to look at this, and realized that nandwrite and whole this oob modes stuff is such a mess that I won't have time to deal with this anyway, sorry. If you could figure out what is going on and fix this - that would be great. -- Best Regards, Artem Bityutskiy (Артём Битюцкий)