Skip to contentSkip to conversation

re-introduce nand read.oob / write.oob

PATCH New Harald Welte 2 participants 2 messages Dec 19, 2007 – Jan 9, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 re-introduce nand read.oob / write.oob

Hi!

I've posted this patch first in February 2007 in message <[email protected]> to this list. However, it never received any feedback, neither positive nor negative. Could you please consider reviewing/merging it? Thanks!

********

Re-introduce the 'nand read.oob' and 'nand write.oob' commands that used to exist with the legacy NAND code

common/cmd_nand.c +8 -0
Index: u-boot/common/cmd_nand.c
===================================================================
@@ -343,6 +343,14 @@
 				opts.quiet      = quiet;
 				ret = nand_write_opts(nand, &opts);
 			}
+		} else if (s != NULL && !strcmp(s, ".oob")) {
+			/* read out-of-band data */
+			if (read)
+				ret = nand->read_oob(nand, off, size, &size,
+						     (u_char *) addr);
+			else
+				ret = nand->write_oob(nand, off, size, &size, 
+						      (u_char *) addr);
 		} else {
 			if (read)
 				ret = nand_read(nand, off, &size, (u_char *)addr);
Signature · 3 lines
- Harald Welte <[email protected]>          	        http://openmoko.org/
============================================================================
Software for the world's first truly open Free Software mobile phone
#1 lore raw

PATCH 1/1 re-introduce nand read.oob / write.oob

Quoted 6 lines · In message <[email protected]> you wrote:

I've posted this patch first in February 2007 in message <[email protected]> to this list. However, it never received any feedback, neither positive nor negative. Could you please consider reviewing/merging it? Thanks!

Quoted 6 lines

********

Re-introduce the 'nand read.oob' and 'nand write.oob' commands that used to exist with the legacy NAND code

Merged, thanks.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Is a computer language with goto's totally Wirth-less?