From e68e569ce742da8a33c07be55c5dde865581fe71 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Wed, 3 Dec 2014 15:44:45 -0200 Subject: [PATCH] u-boot-cubox-i: Fix SD offset to align with mainline value The intended value was 69K but the sector number was wrong, fix it to proper value as it aligns it with U-Boot mainline. Signed-off-by: Otavio Salvador --- ...-offset-to-align-with-mainline-value.patch | 32 +++++++++++++++++++ recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-cubox-i/0001-imx6-Fix-SD-offset-to-align-with-mainline-value.patch diff --git a/recipes-bsp/u-boot/u-boot-cubox-i/0001-imx6-Fix-SD-offset-to-align-with-mainline-value.patch b/recipes-bsp/u-boot/u-boot-cubox-i/0001-imx6-Fix-SD-offset-to-align-with-mainline-value.patch new file mode 100644 index 0000000..b5ed489 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-cubox-i/0001-imx6-Fix-SD-offset-to-align-with-mainline-value.patch @@ -0,0 +1,32 @@ +From 64aa2dafcde88f3bdeabe7a8c335b05587b5db5e Mon Sep 17 00:00:00 2001 +From: Otavio Salvador +Date: Wed, 3 Dec 2014 14:47:09 -0200 +Subject: [PATCH] imx6: Fix SD offset to align with mainline value +Organization: O.S. Systems Software LTDA. + +The intended value was 69K but the sector number was wrong, fix it to +proper value as it aligns it with U-Boot mainline. + +Upstream-Status: Pending + +Signed-off-by: Otavio Salvador +--- + include/configs/imx6_spl.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/configs/imx6_spl.h b/include/configs/imx6_spl.h +index 4f8efd3..f2ad031 100644 +--- a/include/configs/imx6_spl.h ++++ b/include/configs/imx6_spl.h +@@ -40,7 +40,7 @@ + /* #define CONFIG_SPL_SATA_SUPPORT */ + + #define CONFIG_SPL_MMC_SUPPORT +-#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 84 /* offset 69KB */ ++#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 138 /* offset 69KB */ + #define CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR 0 /* offset 69KB */ + #define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0 /* offset 69KB */ + #define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS 0 /* offset 69KB */ +-- +2.1.1 + diff --git a/recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb b/recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb index 3713062..f572867 100644 --- a/recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb +++ b/recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb @@ -10,6 +10,7 @@ PV = "v2013.10+git${SRCPV}" SRCREV = "a06fada55acffacfc9ea174a6980b5bce76a2aeb" SRC_URI = " \ git://github.com/SolidRun/u-boot-imx6.git;branch=imx6 \ + file://0001-imx6-Fix-SD-offset-to-align-with-mainline-value.patch \ file://uEnv.txt \ "