[PATCH] qi-fix-nand-noboot-append-disable.patch

Andy Green andy at openmoko.com
Tue Nov 25 09:34:38 CET 2008


Recent addition of append and noboot file checks broke NAND

Reported-by: Micael Henriksson <micael.h at gmail.com>
Signed-off-by: Andy Green <andy at openmoko.com>
---

 src/phase2.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/phase2.c b/src/phase2.c
index 66d9150..30c9b15 100644
--- a/src/phase2.c
+++ b/src/phase2.c
@@ -66,6 +66,9 @@ int read_file(const char * filepath, u8 * destination, int size)
 	case FS_FAT:
 		/* FIXME */
 	case FS_RAW:
+		/* any filename-related request in raw filesystem will fail */
+		if (filepath)
+			return -1;
 		puts("     RAW open: +");
 		printdec(partition_offset_blocks);
 		puts(" 512-byte blocks\n");




More information about the openmoko-kernel mailing list