[uboot-tools] add patch so the MLO detects fat16 partitions correctly

Dennis Gilmore ausil at fedoraproject.org
Tue Jun 26 03:49:25 UTC 2012


commit d0f2c1d65762fb83275e29451271d0759212313d
Author: Dennis Gilmore <dennis at ausil.us>
Date:   Mon Jun 25 22:49:16 2012 -0500

    add patch so the MLO detects fat16 partitions correctly

 u-boot-fat.patch |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/u-boot-fat.patch b/u-boot-fat.patch
new file mode 100644
index 0000000..a9cefe9
--- /dev/null
+++ b/u-boot-fat.patch
@@ -0,0 +1,12 @@
+diff -uNr u-boot-2012.04.01.orig/fs/fat/fat.c u-boot-2012.04.01/fs/fat/fat.c
+--- u-boot-2012.04.01.orig/fs/fat/fat.c	2012-04-25 08:22:50.000000000 -0500
++++ u-boot-2012.04.01/fs/fat/fat.c	2012-06-19 14:06:16.605337811 -0500
+@@ -114,7 +114,7 @@
+ 	/* Check for FAT12/FAT16/FAT32 filesystem */
+ 	if (!memcmp(buffer + DOS_FS_TYPE_OFFSET, "FAT", 3))
+ 		return 0;
+-	if (!memcmp(buffer + DOS_FS32_TYPE_OFFSET, "FAT32", 5))
++	if (!memcmp(buffer + DOS_FS32_TYPE_OFFSET, "FAT", 3))
+ 		return 0;
+ 
+ 	cur_dev = NULL;


More information about the scm-commits mailing list