From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Tue, 24 May 2011 15:22:08 +0200 Subject: [U-Boot] [PATCH 4/4] [v2] cmd_nand: add nand write.trimffs command In-Reply-To: (Ben Gardiner's message of "Thu, 19 May 2011 12:49:25 -0400") References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Ben, > Add another nand write. variant, trimffs. This command will request of > nand_write_skip_bad() that all trailing all-0xff pages will be > dropped from eraseblocks when they are written to flash as-per the > reccommended behaviour of the UBI FAQ [1]. > > The function that implements this timming is the drop_ffs() function > by Artem Bityutskiy, ported from the mtd-utils tree. > > [1] http://www.linux-mtd.infradead.org/doc/ubi.html#L_flasher_algo > > Signed-off-by: Ben Gardiner > CC: Artem Bityutskiy > CC: Detlev Zundel > > --- > > Detlev, > I did not do any erased-state checks since the implicit assumption > in other nand commands is that the user is required to do their > own erasing beforehand. Yes, I have come to the same conclusion. I have another request though - please add the new command to doc/README.nand. Thanks! Cheers Detlev -- Modern technique has made it possible for leisure, within limits, to be not the prerogative of small privileged classes, but a right evenly distributed throughout the community. The morality of work is the morality of slaves, and the modern world has no need of slavery. -- Bertrand Russell -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de