[oe-commits] Koen Kooi : x-load git: patch beagleboard MLO to be less stupid searching for FAT partitions

git version control git at git.openembedded.org
Tue Apr 13 20:39:24 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: d6db3a4a170fbaae39d77243b5831e72f7642916
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d6db3a4a170fbaae39d77243b5831e72f7642916

Author: Koen Kooi <koen at openembedded.org>
Date:   Tue Apr 13 22:36:49 2010 +0200

x-load git: patch beagleboard MLO to be less stupid searching for FAT partitions

---

 .../bb8547fcbc54ecc7a75f9ad45a31042a04d8a2ce.patch |   35 ++++++++++++++++++++
 recipes/x-load/x-load_git.bb                       |    3 +-
 2 files changed, 37 insertions(+), 1 deletions(-)

diff --git a/recipes/x-load/x-load-git/beagleboard/bb8547fcbc54ecc7a75f9ad45a31042a04d8a2ce.patch b/recipes/x-load/x-load-git/beagleboard/bb8547fcbc54ecc7a75f9ad45a31042a04d8a2ce.patch
new file mode 100644
index 0000000..d447fd0
--- /dev/null
+++ b/recipes/x-load/x-load-git/beagleboard/bb8547fcbc54ecc7a75f9ad45a31042a04d8a2ce.patch
@@ -0,0 +1,35 @@
+From bb8547fcbc54ecc7a75f9ad45a31042a04d8a2ce Mon Sep 17 00:00:00 2001
+From: Laine Walker-Avina <lwalkera at ieee.org>
+Date: Tue, 13 Apr 2010 13:27:31 -0700
+Subject: [PATCH] FAT: Find the start of the first partition in a non-hardcoded way
+
+---
+ fs/fat/fat.c |   12 +++++-------
+ 1 files changed, 5 insertions(+), 7 deletions(-)
+
+diff --git a/fs/fat/fat.c b/fs/fat/fat.c
+index eb754c0..c6bdb13 100644
+--- a/fs/fat/fat.c
++++ b/fs/fat/fat.c
+@@ -145,13 +145,11 @@ fat_register_device(block_dev_desc_t *dev_desc, int part_no)
+ 			return -1;
+ 		}
+ #else
+-		/* FIXME we need to determine the start block of the
+-		 * partition where the DOS FS resides. This can be done
+-		 * by using the get_partition_info routine. For this
+-		 * purpose the libpart must be included.
+-		 */
+-		part_offset=63;
+-		//part_offset=0;
++		part_offset = buffer[DOS_PART_TBL_OFFSET+8]      |
++		              buffer[DOS_PART_TBL_OFFSET+9] <<8  |
++		              buffer[DOS_PART_TBL_OFFSET+10]<<16 |
++		              buffer[DOS_PART_TBL_OFFSET+11]<<24;
++
+ 		cur_part = 1;
+ #endif
+ 	}
+-- 
+1.6.1
+
diff --git a/recipes/x-load/x-load_git.bb b/recipes/x-load/x-load_git.bb
index 68fc10a..d5b9c1d 100644
--- a/recipes/x-load/x-load_git.bb
+++ b/recipes/x-load/x-load_git.bb
@@ -10,13 +10,14 @@ SRCREV_beagleboard = "1c9276af4d6a5b7014a7630a1abeddf3b3177563"
 
 PV = "1.42+${PR}+gitr${SRCREV}"
 PV_beagleboard = "1.44+${PR}+gitr${SRCREV}"
-PR ="r9"
+PR ="r10"
 PE = "1"
 
 SRC_URI = "git://gitorious.org/x-load-omap3/mainline.git;branch=master;protocol=git"
 
 SRC_URI_append_beagleboard = " \
                               file://name.patch;patch=1 \
+                              file://bb8547fcbc54ecc7a75f9ad45a31042a04d8a2ce.patch;patch=1 \
                              "
 
 SRC_URI_append_omap3-touchbook = " \





More information about the Openembedded-commits mailing list