[PATCH] fix-data-abort-from-sd-ombug799.patch

Mike Montour mail at mmontour.net
Wed Jul 16 06:42:31 CEST 2008

This patch has been in the OE repository for a while, but was not in the
u-boot git repository. It is a workaround that allows u-boot to access
ext2/ext3 filesystems, removing the need for a dedicated FAT partition
to hold the kernel when booting from SD. I have only tested it on GTA01.

Signed-off-by: Mike Montour <mail at mmontour.net>

diff --git a/fs/ext2/ext2fs.c b/fs/ext2/ext2fs.c
index 7833551..fc2e150 100644
--- a/fs/ext2/ext2fs.c
+++ b/fs/ext2/ext2fs.c
@@ -472,7 +472,7 @@ static int ext2fs_iterate_dir (ext2fs_node_t dir, 
char *name, ext2fs_node_t * fn
  			return (0);
  		if (dirent.namelen != 0) {
-			char filename[dirent.namelen + 1];
+			char filename[256];
  			ext2fs_node_t fdiro;
  			int type = FILETYPE_UNKNOWN;


More information about the openmoko-kernel mailing list