public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition
@ 2014-11-08 22:14 Paul Kocialkowski
  2014-11-08 22:14 ` [U-Boot] [PATCH 1/2] MMC SD fs boot partition config coding style and proper description Paul Kocialkowski
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Paul Kocialkowski @ 2014-11-08 22:14 UTC (permalink / raw)
  To: u-boot

This is a first attempt at adding support for U-Boot image load from raw
partitions. It does not support OS boot as I cannot test it on my current
setup.

This is going to be useful for the Optimus Black port (please do not consider
this as dead code because no board is using it right now, there will be one
soon)! On the Optimus Black, the second stage bootloader (U-Boot in our case)
is stored on the second partition of the internal EMMC. This patch allows
reading from that partition without the need of providing the U-Boot config
with a sector address, but with the partition address.

It makes sense as there is already code to read partition tables, so it would
be a shame to hardcode the sector address while it can be obtained dynamically.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 1/2] MMC SD fs boot partition config coding style and proper description
  2014-11-08 22:14 [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition Paul Kocialkowski
@ 2014-11-08 22:14 ` Paul Kocialkowski
  2014-11-10 18:46   ` Tom Rini
  2014-12-08 21:41   ` [U-Boot] [U-Boot, " Tom Rini
  2014-11-08 22:14 ` [U-Boot] [PATCH 2/2] spl: MMC U-Boot image load from raw partition Paul Kocialkowski
  2014-11-08 22:19 ` [U-Boot] [PATCH 0/2] " Albert ARIBAUD
  2 siblings, 2 replies; 16+ messages in thread
From: Paul Kocialkowski @ 2014-11-08 22:14 UTC (permalink / raw)
  To: u-boot

CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION ought to be called
CONFIG_SYS_MMCSD_FS_BOOT_PARTITION to keep it consistent with other config
options such as: CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR.

In addition, it is not related to raw mode booting but to fs mode instead.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 README                                 |    7 +++++--
 common/spl/spl_mmc.c                   |    8 ++++----
 include/configs/am3517_crane.h         |    2 +-
 include/configs/am3517_evm.h           |    2 +-
 include/configs/cm_t35.h               |    2 +-
 include/configs/devkit8000.h           |    2 +-
 include/configs/imx6_spl.h             |    2 +-
 include/configs/mcx.h                  |    2 +-
 include/configs/omap3_evm.h            |    2 +-
 include/configs/omap3_evm_quick_mmc.h  |    2 +-
 include/configs/sama5d3_xplained.h     |    2 +-
 include/configs/sama5d3xek.h           |    2 +-
 include/configs/siemens-am33x-common.h |    2 +-
 include/configs/tao3530.h              |    2 +-
 include/configs/ti814x_evm.h           |    2 +-
 include/configs/ti816x_evm.h           |    2 +-
 include/configs/ti_armv7_common.h      |    2 +-
 include/configs/tricorder.h            |    2 +-
 include/configs/zynq-common.h          |    2 +-
 19 files changed, 26 insertions(+), 23 deletions(-)

diff --git a/README b/README
index 7b5538e..0b5fad9 100644
--- a/README
+++ b/README
@@ -3547,8 +3547,7 @@ FIT uImage format:
 
 		CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR,
 		CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS,
-		CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION
-		Address, size and partition on the MMC to load U-Boot from
+		Address and partition on the MMC to load U-Boot from
 		when the MMC is being used in raw mode.
 
 		CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR
@@ -3561,6 +3560,10 @@ FIT uImage format:
 		parameters from when MMC is being used in raw mode
 		(for falcon mode)
 
+		CONFIG_SYS_MMCSD_FS_BOOT_PARTITION
+		Partition on the MMC to load U-Boot from when the MMC is being
+		used in fs mode
+
 		CONFIG_SPL_FAT_SUPPORT
 		Support for fs/fat/libfat.o in SPL binary
 
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index ee71f79..f9c3851 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -106,10 +106,10 @@ void spl_mmc_load_image(void)
 #ifdef CONFIG_SPL_FAT_SUPPORT
 #ifdef CONFIG_SPL_OS_BOOT
 		if (spl_start_uboot() || spl_load_image_fat_os(&mmc->block_dev,
-								CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION))
+								CONFIG_SYS_MMCSD_FS_BOOT_PARTITION))
 #endif
 		err = spl_load_image_fat(&mmc->block_dev,
-					CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION,
+					CONFIG_SYS_MMCSD_FS_BOOT_PARTITION,
 					CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
 		if(err)
 #endif /* CONFIG_SPL_FAT_SUPPORT */
@@ -117,10 +117,10 @@ void spl_mmc_load_image(void)
 #ifdef CONFIG_SPL_EXT_SUPPORT
 #ifdef CONFIG_SPL_OS_BOOT
 		if (spl_start_uboot() || spl_load_image_ext_os(&mmc->block_dev,
-								CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION))
+								CONFIG_SYS_MMCSD_FS_BOOT_PARTITION))
 #endif
 		err = spl_load_image_ext(&mmc->block_dev,
-					CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION,
+					CONFIG_SYS_MMCSD_FS_BOOT_PARTITION,
 					CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
 #endif /* CONFIG_SPL_EXT_SUPPORT */
 		}
diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index 0fbfa3f..09ee10c 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -304,7 +304,7 @@
 
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	0x300 /* address 0x60000 */
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS	0x200 /* 256 KB */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION	1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
 
 #define CONFIG_SPL_LIBCOMMON_SUPPORT
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index 8719f76..190ef0e 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -313,7 +313,7 @@
 
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	0x300 /* address 0x60000 */
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS	0x200 /* 256 KB */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION	1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
 
 #define CONFIG_SPL_LIBCOMMON_SUPPORT
diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
index 1919cde..ccd9b88 100644
--- a/include/configs/cm_t35.h
+++ b/include/configs/cm_t35.h
@@ -321,7 +321,7 @@
 
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	0x300 /* address 0x60000 */
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS	0x200 /* 256 KB */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION	1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
 
 #define CONFIG_SPL_BOARD_INIT
diff --git a/include/configs/devkit8000.h b/include/configs/devkit8000.h
index ca62461..930b08e 100644
--- a/include/configs/devkit8000.h
+++ b/include/configs/devkit8000.h
@@ -299,7 +299,7 @@
 #define CONFIG_SPL_FAT_SUPPORT
 #define CONFIG_SPL_LDSCRIPT		"$(CPUDIR)/omap-common/u-boot-spl.lds"
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME        "u-boot.img"
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION    1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION     1
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
 
 #define CONFIG_SPL_TEXT_BASE		0x40200000 /*CONFIG_SYS_SRAM_START*/
diff --git a/include/configs/imx6_spl.h b/include/configs/imx6_spl.h
index 308e520..8c3eff1 100644
--- a/include/configs/imx6_spl.h
+++ b/include/configs/imx6_spl.h
@@ -46,7 +46,7 @@
 #if defined(CONFIG_SPL_MMC_SUPPORT)
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	138 /* offset 69KB */
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS	800 /* 400 KB */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION	1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SYS_MONITOR_LEN  (CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS/2*1024)
 #endif
 
diff --git a/include/configs/mcx.h b/include/configs/mcx.h
index b775ebd..26eb220 100644
--- a/include/configs/mcx.h
+++ b/include/configs/mcx.h
@@ -369,7 +369,7 @@
 #define CONFIG_SPL_BSS_MAX_SIZE		0x80000
 
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	0x300 /* address 0x60000 */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION	1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
 
 /* NAND boot config */
diff --git a/include/configs/omap3_evm.h b/include/configs/omap3_evm.h
index 27bf89c..8bdc08f 100644
--- a/include/configs/omap3_evm.h
+++ b/include/configs/omap3_evm.h
@@ -75,7 +75,7 @@
 #define CONFIG_SPL_FAT_SUPPORT
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	0x300 /* address 0x60000 */
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS	0x200 /* 256 KB */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION	1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
 
 /* Partition tables */
diff --git a/include/configs/omap3_evm_quick_mmc.h b/include/configs/omap3_evm_quick_mmc.h
index 2daf13c..1185f42 100644
--- a/include/configs/omap3_evm_quick_mmc.h
+++ b/include/configs/omap3_evm_quick_mmc.h
@@ -87,7 +87,7 @@
 #define CONFIG_SPL_FAT_SUPPORT
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	0x300 /* address 0x60000 */
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS	0x200 /* 256 KB */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION	1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
 
 #endif /* __OMAP3_EVM_QUICK_MMC_H */
diff --git a/include/configs/sama5d3_xplained.h b/include/configs/sama5d3_xplained.h
index 5b77db2..d5588b1 100644
--- a/include/configs/sama5d3_xplained.h
+++ b/include/configs/sama5d3_xplained.h
@@ -230,7 +230,7 @@
 #define CONFIG_SPL_MMC_SUPPORT
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS	0x400
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x200
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION	1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
 #define CONFIG_SPL_FAT_SUPPORT
 #define CONFIG_SPL_LIBDISK_SUPPORT
diff --git a/include/configs/sama5d3xek.h b/include/configs/sama5d3xek.h
index dfbf3cb..f2849d7 100644
--- a/include/configs/sama5d3xek.h
+++ b/include/configs/sama5d3xek.h
@@ -276,7 +276,7 @@
 #define CONFIG_SPL_MMC_SUPPORT
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS	0x400
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x200
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION	1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
 #define CONFIG_SPL_FAT_SUPPORT
 #define CONFIG_SPL_LIBDISK_SUPPORT
diff --git a/include/configs/siemens-am33x-common.h b/include/configs/siemens-am33x-common.h
index 0d5dba1..21e13e5 100644
--- a/include/configs/siemens-am33x-common.h
+++ b/include/configs/siemens-am33x-common.h
@@ -148,7 +148,7 @@
 #define CONFIG_SPL_BSS_MAX_SIZE		0x80000		/* 512 KB */
 
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	0x300 /* address 0x60000 */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION	1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
 #define CONFIG_SPL_MMC_SUPPORT
 #define CONFIG_SPL_FAT_SUPPORT
diff --git a/include/configs/tao3530.h b/include/configs/tao3530.h
index d687717..139be0b 100644
--- a/include/configs/tao3530.h
+++ b/include/configs/tao3530.h
@@ -305,7 +305,7 @@
 
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	0x300 /* address 0x60000 */
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS	0x200 /* 256 KB */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION	1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
 
 #define CONFIG_SPL_BOARD_INIT
diff --git a/include/configs/ti814x_evm.h b/include/configs/ti814x_evm.h
index 2fddef3..deb6bb2 100644
--- a/include/configs/ti814x_evm.h
+++ b/include/configs/ti814x_evm.h
@@ -178,7 +178,7 @@
 
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS      0x200 /* 256 KB */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION    1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION     1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME        "u-boot.img"
 #define CONFIG_SPL_MMC_SUPPORT
 #define CONFIG_SPL_FAT_SUPPORT
diff --git a/include/configs/ti816x_evm.h b/include/configs/ti816x_evm.h
index aeabb1b..87a4efc 100644
--- a/include/configs/ti816x_evm.h
+++ b/include/configs/ti816x_evm.h
@@ -144,7 +144,7 @@
 
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS      0x200 /* 256 KB */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION    1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION     1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME        "u-boot.img"
 #define CONFIG_SPL_MMC_SUPPORT
 #define CONFIG_SPL_FAT_SUPPORT
diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h
index a8790c2..bc75172 100644
--- a/include/configs/ti_armv7_common.h
+++ b/include/configs/ti_armv7_common.h
@@ -233,7 +233,7 @@
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS	0x200 /* 256 KB */
 
 /* FAT sd card locations. */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION	1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
 
 #ifdef CONFIG_SPL_OS_BOOT
diff --git a/include/configs/tricorder.h b/include/configs/tricorder.h
index 6e7a7fb..36621a5 100644
--- a/include/configs/tricorder.h
+++ b/include/configs/tricorder.h
@@ -349,7 +349,7 @@
 #define CONFIG_SPL_FAT_SUPPORT
 #define CONFIG_SPL_LDSCRIPT		"$(CPUDIR)/omap-common/u-boot-spl.lds"
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME        "u-boot.img"
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION    1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION     1
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
 
 #define CONFIG_SPL_TEXT_BASE		0x40200000 /*CONFIG_SYS_SRAM_START*/
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index 2bc1562..b775220 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -268,7 +268,7 @@
 #define CONFIG_SPL_MMC_SUPPORT
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS      0x200 /* 256 KB */
-#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION    1
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION     1
 #define CONFIG_SPL_LIBDISK_SUPPORT
 #define CONFIG_SPL_FAT_SUPPORT
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME     "u-boot-dtb.img"
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 2/2] spl: MMC U-Boot image load from raw partition
  2014-11-08 22:14 [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition Paul Kocialkowski
  2014-11-08 22:14 ` [U-Boot] [PATCH 1/2] MMC SD fs boot partition config coding style and proper description Paul Kocialkowski
@ 2014-11-08 22:14 ` Paul Kocialkowski
  2014-11-10 18:46   ` Tom Rini
  2014-12-08 21:41   ` [U-Boot] [U-Boot, " Tom Rini
  2014-11-08 22:19 ` [U-Boot] [PATCH 0/2] " Albert ARIBAUD
  2 siblings, 2 replies; 16+ messages in thread
From: Paul Kocialkowski @ 2014-11-08 22:14 UTC (permalink / raw)
  To: u-boot

Raw images of U-Boot can be stored inside MMC partitions, so it makes sense to
read the partition table, looking for a partition number instead of using
a fixed sector address.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 README               |    4 ++++
 common/spl/spl_mmc.c |   26 +++++++++++++++++++++++---
 2 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/README b/README
index 0b5fad9..5444b2e 100644
--- a/README
+++ b/README
@@ -3550,6 +3550,10 @@ FIT uImage format:
 		Address and partition on the MMC to load U-Boot from
 		when the MMC is being used in raw mode.
 
+		CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
+		Partition on the MMC to load U-Boot from when the MMC is being
+		used in raw mode
+
 		CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR
 		Sector to load kernel uImage from when MMC is being
 		used in raw mode (for Falcon mode)
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index f9c3851..31ddcdc 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -15,7 +15,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static int mmc_load_image_raw(struct mmc *mmc, unsigned long sector)
+static int mmc_load_image_raw_sector(struct mmc *mmc, unsigned long sector)
 {
 	unsigned long err;
 	u32 image_size_sectors;
@@ -51,6 +51,20 @@ end:
 	return (err == 0);
 }
 
+static int mmc_load_image_raw_partition(struct mmc *mmc, int partition)
+{
+	disk_partition_t info;
+
+	if (get_partition_info(&mmc->block_dev, partition, &info)) {
+#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
+		printf("spl: partition error\n");
+#endif
+		return -1;
+	}
+
+	return mmc_load_image_raw_sector(mmc, info.start);
+}
+
 #ifdef CONFIG_SPL_OS_BOOT
 static int mmc_load_image_raw_os(struct mmc *mmc)
 {
@@ -64,7 +78,8 @@ static int mmc_load_image_raw_os(struct mmc *mmc)
 		return -1;
 	}
 
-	return mmc_load_image_raw(mmc, CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR);
+	return mmc_load_image_raw_sector(mmc,
+						CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR);
 }
 #endif
 
@@ -98,8 +113,13 @@ void spl_mmc_load_image(void)
 #ifdef CONFIG_SPL_OS_BOOT
 		if (spl_start_uboot() || mmc_load_image_raw_os(mmc))
 #endif
-		err = mmc_load_image_raw(mmc,
+#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
+		err = mmc_load_image_raw_partition(mmc,
+			CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION);
+#else
+		err = mmc_load_image_raw_sector(mmc,
 			CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR);
+#endif
 #if defined(CONFIG_SPL_FAT_SUPPORT) || defined(CONFIG_SPL_EXT_SUPPORT)
 	} else if (boot_mode == MMCSD_MODE_FS) {
 		debug("boot mode - FS\n");
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition
  2014-11-08 22:14 [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition Paul Kocialkowski
  2014-11-08 22:14 ` [U-Boot] [PATCH 1/2] MMC SD fs boot partition config coding style and proper description Paul Kocialkowski
  2014-11-08 22:14 ` [U-Boot] [PATCH 2/2] spl: MMC U-Boot image load from raw partition Paul Kocialkowski
@ 2014-11-08 22:19 ` Albert ARIBAUD
  2014-11-08 22:23   ` Paul Kocialkowski
  2014-11-10 18:46   ` Tom Rini
  2 siblings, 2 replies; 16+ messages in thread
From: Albert ARIBAUD @ 2014-11-08 22:19 UTC (permalink / raw)
  To: u-boot

Hello Paul,

On Sat,  8 Nov 2014 23:14:54 +0100, Paul Kocialkowski
<contact@paulk.fr> wrote:
> This is a first attempt at adding support for U-Boot image load from raw
> partitions. It does not support OS boot as I cannot test it on my current
> setup.
> 
> This is going to be useful for the Optimus Black port (please do not consider
> this as dead code because no board is using it right now, there will be one
> soon)!

Well... Why don't you just post these two patches a little later, as
part of the upcoming series which will add support for the Optimus
Black?

> On the Optimus Black, the second stage bootloader (U-Boot in our case)
> is stored on the second partition of the internal EMMC. This patch allows
> reading from that partition without the need of providing the U-Boot config
> with a sector address, but with the partition address.
> 
> It makes sense as there is already code to read partition tables, so it would
> be a shame to hardcode the sector address while it can be obtained dynamically.
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot



Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition
  2014-11-08 22:19 ` [U-Boot] [PATCH 0/2] " Albert ARIBAUD
@ 2014-11-08 22:23   ` Paul Kocialkowski
  2014-11-09  0:12     ` Albert ARIBAUD
  2014-11-10 18:46   ` Tom Rini
  1 sibling, 1 reply; 16+ messages in thread
From: Paul Kocialkowski @ 2014-11-08 22:23 UTC (permalink / raw)
  To: u-boot

Le samedi 08 novembre 2014 ? 23:19 +0100, Albert ARIBAUD a ?crit :
> Hello Paul,
> 
> On Sat,  8 Nov 2014 23:14:54 +0100, Paul Kocialkowski
> <contact@paulk.fr> wrote:
> > This is a first attempt at adding support for U-Boot image load from raw
> > partitions. It does not support OS boot as I cannot test it on my current
> > setup.
> > 
> > This is going to be useful for the Optimus Black port (please do not consider
> > this as dead code because no board is using it right now, there will be one
> > soon)!
> 
> Well... Why don't you just post these two patches a little later, as
> part of the upcoming series which will add support for the Optimus
> Black?

The honest answer here is that I don't think I'll have time to handle
having the patches reviewed all at once and that I prefer to do things
step by step, week after week (work on the next thing when the previous
piece is ready or nearly so). Things are independent enough for this to
work.

> > On the Optimus Black, the second stage bootloader (U-Boot in our case)
> > is stored on the second partition of the internal EMMC. This patch allows
> > reading from that partition without the need of providing the U-Boot config
> > with a sector address, but with the partition address.
> > 
> > It makes sense as there is already code to read partition tables, so it would
> > be a shame to hardcode the sector address while it can be obtained dynamically.
> > 
> > _______________________________________________
> > U-Boot mailing list
> > U-Boot at lists.denx.de
> > http://lists.denx.de/mailman/listinfo/u-boot
> 
> 
> 
> Amicalement,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141108/1acbb108/attachment.pgp>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition
  2014-11-08 22:23   ` Paul Kocialkowski
@ 2014-11-09  0:12     ` Albert ARIBAUD
  0 siblings, 0 replies; 16+ messages in thread
From: Albert ARIBAUD @ 2014-11-09  0:12 UTC (permalink / raw)
  To: u-boot

Hello Paul,

On Sat, 08 Nov 2014 23:23:04 +0100, Paul Kocialkowski
<contact@paulk.fr> wrote:
> Le samedi 08 novembre 2014 ? 23:19 +0100, Albert ARIBAUD a ?crit :
> > Hello Paul,
> > 
> > On Sat,  8 Nov 2014 23:14:54 +0100, Paul Kocialkowski
> > <contact@paulk.fr> wrote:
> > > This is a first attempt at adding support for U-Boot image load
> > > from raw partitions. It does not support OS boot as I cannot test
> > > it on my current setup.
> > > 
> > > This is going to be useful for the Optimus Black port (please do
> > > not consider this as dead code because no board is using it right
> > > now, there will be one soon)!
> > 
> > Well... Why don't you just post these two patches a little later, as
> > part of the upcoming series which will add support for the Optimus
> > Black?
> 
> The honest answer here is that I don't think I'll have time to handle
> having the patches reviewed all at once and that I prefer to do things
> step by step, week after week (work on the next thing when the
> previous piece is ready or nearly so). Things are independent enough
> for this to work.

My own honest answer in turn is that potential reviewers of your code
may not think they'll have time to look at code which they cannot
assess because they don't know how it is (going to be) called.

If you feel you cannot handle reviews of the whole set all at once,
then it seems to me the problem is yours to solve: post the whole
series, let the whole review happen, and then just look at the comments
for each patch in turn at your own pace.

This way you avoid posting dead code *and* you get to handle patch
reviews piecewise as you would like.

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 1/2] MMC SD fs boot partition config coding style and proper description
  2014-11-08 22:14 ` [U-Boot] [PATCH 1/2] MMC SD fs boot partition config coding style and proper description Paul Kocialkowski
@ 2014-11-10 18:46   ` Tom Rini
  2014-12-08 21:41   ` [U-Boot] [U-Boot, " Tom Rini
  1 sibling, 0 replies; 16+ messages in thread
From: Tom Rini @ 2014-11-10 18:46 UTC (permalink / raw)
  To: u-boot

On Sat, Nov 08, 2014 at 11:14:55PM +0100, Paul Kocialkowski wrote:

> CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION ought to be called
> CONFIG_SYS_MMCSD_FS_BOOT_PARTITION to keep it consistent with other config
> options such as: CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR.
> 
> In addition, it is not related to raw mode booting but to fs mode instead.
> 
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>

Reviewed-by: Tom Rini <trini@ti.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141110/fa65c008/attachment.pgp>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition
  2014-11-08 22:19 ` [U-Boot] [PATCH 0/2] " Albert ARIBAUD
  2014-11-08 22:23   ` Paul Kocialkowski
@ 2014-11-10 18:46   ` Tom Rini
  2014-11-13 11:16     ` Albert ARIBAUD
  1 sibling, 1 reply; 16+ messages in thread
From: Tom Rini @ 2014-11-10 18:46 UTC (permalink / raw)
  To: u-boot

On Sat, Nov 08, 2014 at 11:19:23PM +0100, Albert ARIBAUD wrote:
> Hello Paul,
> 
> On Sat,  8 Nov 2014 23:14:54 +0100, Paul Kocialkowski
> <contact@paulk.fr> wrote:
> > This is a first attempt at adding support for U-Boot image load from raw
> > partitions. It does not support OS boot as I cannot test it on my current
> > setup.
> > 
> > This is going to be useful for the Optimus Black port (please do not consider
> > this as dead code because no board is using it right now, there will be one
> > soon)!
> 
> Well... Why don't you just post these two patches a little later, as
> part of the upcoming series which will add support for the Optimus
> Black?

So to me the "dead code" thing is starting to get a lot more ambiguous
since with Kconfig we'll need need every single possible choice enabled
in some defconfig, just some way to turn it on, on a possibly relevant
board.  In this case, any OMAP3+ board would be a fine place to try this
out, IFF it's done as a Kconfig choice.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141110/cfa23725/attachment.pgp>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 2/2] spl: MMC U-Boot image load from raw partition
  2014-11-08 22:14 ` [U-Boot] [PATCH 2/2] spl: MMC U-Boot image load from raw partition Paul Kocialkowski
@ 2014-11-10 18:46   ` Tom Rini
  2014-12-08 21:41   ` [U-Boot] [U-Boot, " Tom Rini
  1 sibling, 0 replies; 16+ messages in thread
From: Tom Rini @ 2014-11-10 18:46 UTC (permalink / raw)
  To: u-boot

On Sat, Nov 08, 2014 at 11:14:56PM +0100, Paul Kocialkowski wrote:
> Raw images of U-Boot can be stored inside MMC partitions, so it makes sense to
> read the partition table, looking for a partition number instead of using
> a fixed sector address.
> 
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>

Reviewed-by: Tom Rini <trini@ti.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141110/6aa74c9b/attachment.pgp>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition
  2014-11-10 18:46   ` Tom Rini
@ 2014-11-13 11:16     ` Albert ARIBAUD
  2014-11-13 22:16       ` Paul Kocialkowski
  0 siblings, 1 reply; 16+ messages in thread
From: Albert ARIBAUD @ 2014-11-13 11:16 UTC (permalink / raw)
  To: u-boot

Hello Tom,

On Mon, 10 Nov 2014 13:46:09 -0500, Tom Rini <trini@ti.com> wrote:
> On Sat, Nov 08, 2014 at 11:19:23PM +0100, Albert ARIBAUD wrote:
> > Hello Paul,
> > 
> > On Sat,  8 Nov 2014 23:14:54 +0100, Paul Kocialkowski
> > <contact@paulk.fr> wrote:
> > > This is a first attempt at adding support for U-Boot image load from raw
> > > partitions. It does not support OS boot as I cannot test it on my current
> > > setup.
> > > 
> > > This is going to be useful for the Optimus Black port (please do not consider
> > > this as dead code because no board is using it right now, there will be one
> > > soon)!
> > 
> > Well... Why don't you just post these two patches a little later, as
> > part of the upcoming series which will add support for the Optimus
> > Black?
> 
> So to me the "dead code" thing is starting to get a lot more ambiguous
> since with Kconfig we'll need need every single possible choice enabled
> in some defconfig, just some way to turn it on, on a possibly relevant
> board.  In this case, any OMAP3+ board would be a fine place to try this
> out, IFF it's done as a Kconfig choice.

Not sure I'm understanding you right, but it seems to me we're in sync:
as long as the code is enabled somewhere on some target, it is not dead
code. I'm precisely asking that the code here be submitted along with
the target that uses it. Or did I miss something?

> Tom

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition
  2014-11-13 11:16     ` Albert ARIBAUD
@ 2014-11-13 22:16       ` Paul Kocialkowski
  2014-11-15 20:27         ` Albert ARIBAUD
  0 siblings, 1 reply; 16+ messages in thread
From: Paul Kocialkowski @ 2014-11-13 22:16 UTC (permalink / raw)
  To: u-boot

Le jeudi 13 novembre 2014 ? 12:16 +0100, Albert ARIBAUD a ?crit :
> Hello Tom,
> 
> On Mon, 10 Nov 2014 13:46:09 -0500, Tom Rini <trini@ti.com> wrote:
> > On Sat, Nov 08, 2014 at 11:19:23PM +0100, Albert ARIBAUD wrote:
> > > Hello Paul,
> > > 
> > > On Sat,  8 Nov 2014 23:14:54 +0100, Paul Kocialkowski
> > > <contact@paulk.fr> wrote:
> > > > This is a first attempt at adding support for U-Boot image load from raw
> > > > partitions. It does not support OS boot as I cannot test it on my current
> > > > setup.
> > > > 
> > > > This is going to be useful for the Optimus Black port (please do not consider
> > > > this as dead code because no board is using it right now, there will be one
> > > > soon)!
> > > 
> > > Well... Why don't you just post these two patches a little later, as
> > > part of the upcoming series which will add support for the Optimus
> > > Black?
> > 
> > So to me the "dead code" thing is starting to get a lot more ambiguous
> > since with Kconfig we'll need need every single possible choice enabled
> > in some defconfig, just some way to turn it on, on a possibly relevant
> > board.  In this case, any OMAP3+ board would be a fine place to try this
> > out, IFF it's done as a Kconfig choice.
> 
> Not sure I'm understanding you right, but it seems to me we're in sync:
> as long as the code is enabled somewhere on some target, it is not dead
> code. I'm precisely asking that the code here be submitted along with
> the target that uses it. Or did I miss something?

Well I think it makes sense to not call this dead code as long as it
*can be* enabled and used on another supported board (for that matter,
any OMAP3+ board will indeed do).

This is very different from e.g. the regulator code that I submitted,
which is only relevant for devices with that particular piece of
hardware (so far, none supported by U-Boot). So it makes sense to submit
that regulator patch only along with support for a board that uses it.

-- 
Paul Kocialkowski, Replicant developer

Replicant is a fully free Android distribution

Website: http://www.replicant.us/
Blog: http://blog.replicant.us/
Wiki/tracker/forums: http://redmine.replicant.us/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141113/f8b2014c/attachment.pgp>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition
  2014-11-13 22:16       ` Paul Kocialkowski
@ 2014-11-15 20:27         ` Albert ARIBAUD
  2014-11-18 13:52           ` Tom Rini
  0 siblings, 1 reply; 16+ messages in thread
From: Albert ARIBAUD @ 2014-11-15 20:27 UTC (permalink / raw)
  To: u-boot

Hello Paul,

On Thu, 13 Nov 2014 23:16:09 +0100, Paul Kocialkowski
<contact@paulk.fr> wrote:
> Le jeudi 13 novembre 2014 ? 12:16 +0100, Albert ARIBAUD a ?crit :
> > Hello Tom,
> > 
> > On Mon, 10 Nov 2014 13:46:09 -0500, Tom Rini <trini@ti.com> wrote:
> > > On Sat, Nov 08, 2014 at 11:19:23PM +0100, Albert ARIBAUD wrote:
> > > > Hello Paul,
> > > > 
> > > > On Sat,  8 Nov 2014 23:14:54 +0100, Paul Kocialkowski
> > > > <contact@paulk.fr> wrote:
> > > > > This is a first attempt at adding support for U-Boot image load from raw
> > > > > partitions. It does not support OS boot as I cannot test it on my current
> > > > > setup.
> > > > > 
> > > > > This is going to be useful for the Optimus Black port (please do not consider
> > > > > this as dead code because no board is using it right now, there will be one
> > > > > soon)!
> > > > 
> > > > Well... Why don't you just post these two patches a little later, as
> > > > part of the upcoming series which will add support for the Optimus
> > > > Black?
> > > 
> > > So to me the "dead code" thing is starting to get a lot more ambiguous
> > > since with Kconfig we'll need need every single possible choice enabled
> > > in some defconfig, just some way to turn it on, on a possibly relevant
> > > board.  In this case, any OMAP3+ board would be a fine place to try this
> > > out, IFF it's done as a Kconfig choice.
> > 
> > Not sure I'm understanding you right, but it seems to me we're in sync:
> > as long as the code is enabled somewhere on some target, it is not dead
> > code. I'm precisely asking that the code here be submitted along with
> > the target that uses it. Or did I miss something?
> 
> Well I think it makes sense to not call this dead code as long as it
> *can be* enabled and used on another supported board (for that matter,
> any OMAP3+ board will indeed do).

If no board is calling this code right now, that is because none needs
it. If none needs it, then it has no reason to be added. The day some
board needs this code, the patch to add this code can be submitted
along with the patch that calls this code.

> This is very different from e.g. the regulator code that I submitted,
> which is only relevant for devices with that particular piece of
> hardware (so far, none supported by U-Boot). So it makes sense to submit
> that regulator patch only along with support for a board that uses it.

I don't see the difference.

> Paul Kocialkowski, Replicant developer
> 
> Replicant is a fully free Android distribution
> 
> Website: http://www.replicant.us/
> Blog: http://blog.replicant.us/
> Wiki/tracker/forums: http://redmine.replicant.us/

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition
  2014-11-15 20:27         ` Albert ARIBAUD
@ 2014-11-18 13:52           ` Tom Rini
  2014-11-18 20:34             ` Albert ARIBAUD
  0 siblings, 1 reply; 16+ messages in thread
From: Tom Rini @ 2014-11-18 13:52 UTC (permalink / raw)
  To: u-boot

On Sat, Nov 15, 2014 at 09:27:20PM +0100, Albert ARIBAUD wrote:
> Hello Paul,
> 
> On Thu, 13 Nov 2014 23:16:09 +0100, Paul Kocialkowski
> <contact@paulk.fr> wrote:
[snip]
> > Well I think it makes sense to not call this dead code as long as it
> > *can be* enabled and used on another supported board (for that matter,
> > any OMAP3+ board will indeed do).
> 
> If no board is calling this code right now, that is because none needs
> it. If none needs it, then it has no reason to be added. The day some
> board needs this code, the patch to add this code can be submitted
> along with the patch that calls this code.
> 
> > This is very different from e.g. the regulator code that I submitted,
> > which is only relevant for devices with that particular piece of
> > hardware (so far, none supported by U-Boot). So it makes sense to submit
> > that regulator patch only along with support for a board that uses it.
> 
> I don't see the difference.

But this is where I see a difference, "tomorrow".  Setting this, or not
setting this new behavior is a Kconfig "choice" (in Kconfig-speak).  We
do not need a defconfig in-tree for every single possible choice since
at some point we'll do like other Kconfig-based projects and have
randconfig builds possible to cover "odd" choices, along with
allyesconfig and allnoconfig to cover the things which people clearly
need _somewhere_ (and feel the (good!) need to post them in public to
help others) but may not be able to post the whole board port (not the
case here per-se but see the various RTC drivers that get posted from
time to time).

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141118/2085f454/attachment.pgp>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition
  2014-11-18 13:52           ` Tom Rini
@ 2014-11-18 20:34             ` Albert ARIBAUD
  0 siblings, 0 replies; 16+ messages in thread
From: Albert ARIBAUD @ 2014-11-18 20:34 UTC (permalink / raw)
  To: u-boot

Hello Tom,

On Tue, 18 Nov 2014 08:52:37 -0500, Tom Rini <trini@ti.com> wrote:
> On Sat, Nov 15, 2014 at 09:27:20PM +0100, Albert ARIBAUD wrote:
> > Hello Paul,
> > 
> > On Thu, 13 Nov 2014 23:16:09 +0100, Paul Kocialkowski
> > <contact@paulk.fr> wrote:
> [snip]
> > > Well I think it makes sense to not call this dead code as long as it
> > > *can be* enabled and used on another supported board (for that matter,
> > > any OMAP3+ board will indeed do).
> > 
> > If no board is calling this code right now, that is because none needs
> > it. If none needs it, then it has no reason to be added. The day some
> > board needs this code, the patch to add this code can be submitted
> > along with the patch that calls this code.
> > 
> > > This is very different from e.g. the regulator code that I submitted,
> > > which is only relevant for devices with that particular piece of
> > > hardware (so far, none supported by U-Boot). So it makes sense to submit
> > > that regulator patch only along with support for a board that uses it.
> > 
> > I don't see the difference.
> 
> But this is where I see a difference, "tomorrow".  Setting this, or not
> setting this new behavior is a Kconfig "choice" (in Kconfig-speak).  We
> do not need a defconfig in-tree for every single possible choice since
> at some point we'll do like other Kconfig-based projects and have
> randconfig builds possible to cover "odd" choices, along with
> allyesconfig and allnoconfig to cover the things which people clearly
> need _somewhere_ (and feel the (good!) need to post them in public to
> help others) but may not be able to post the whole board port (not the
> case here per-se but see the various RTC drivers that get posted from
> time to time).

I still don't agree, as a Kconfig option is no different from any
other addition, so I consider that we should only introduce a Kconfig
choice because/when it is needed, not just because it could be needed;
but you're the boss.

> -- 
> Tom

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [U-Boot, 1/2] MMC SD fs boot partition config coding style and proper description
  2014-11-08 22:14 ` [U-Boot] [PATCH 1/2] MMC SD fs boot partition config coding style and proper description Paul Kocialkowski
  2014-11-10 18:46   ` Tom Rini
@ 2014-12-08 21:41   ` Tom Rini
  1 sibling, 0 replies; 16+ messages in thread
From: Tom Rini @ 2014-12-08 21:41 UTC (permalink / raw)
  To: u-boot

On Sat, Nov 08, 2014 at 11:14:55PM +0100, Paul Kocialkowski wrote:

> CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION ought to be called
> CONFIG_SYS_MMCSD_FS_BOOT_PARTITION to keep it consistent with other config
> options such as: CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR.
> 
> In addition, it is not related to raw mode booting but to fs mode instead.
> 
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> Reviewed-by: Tom Rini <trini@ti.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141208/dc7903bd/attachment.pgp>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [U-Boot, 2/2] spl: MMC U-Boot image load from raw partition
  2014-11-08 22:14 ` [U-Boot] [PATCH 2/2] spl: MMC U-Boot image load from raw partition Paul Kocialkowski
  2014-11-10 18:46   ` Tom Rini
@ 2014-12-08 21:41   ` Tom Rini
  1 sibling, 0 replies; 16+ messages in thread
From: Tom Rini @ 2014-12-08 21:41 UTC (permalink / raw)
  To: u-boot

On Sat, Nov 08, 2014 at 11:14:56PM +0100, Paul Kocialkowski wrote:

> Raw images of U-Boot can be stored inside MMC partitions, so it makes sense to
> read the partition table, looking for a partition number instead of using
> a fixed sector address.
> 
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> Reviewed-by: Tom Rini <trini@ti.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141208/c1274c4d/attachment.pgp>

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-12-08 21:41 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-08 22:14 [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition Paul Kocialkowski
2014-11-08 22:14 ` [U-Boot] [PATCH 1/2] MMC SD fs boot partition config coding style and proper description Paul Kocialkowski
2014-11-10 18:46   ` Tom Rini
2014-12-08 21:41   ` [U-Boot] [U-Boot, " Tom Rini
2014-11-08 22:14 ` [U-Boot] [PATCH 2/2] spl: MMC U-Boot image load from raw partition Paul Kocialkowski
2014-11-10 18:46   ` Tom Rini
2014-12-08 21:41   ` [U-Boot] [U-Boot, " Tom Rini
2014-11-08 22:19 ` [U-Boot] [PATCH 0/2] " Albert ARIBAUD
2014-11-08 22:23   ` Paul Kocialkowski
2014-11-09  0:12     ` Albert ARIBAUD
2014-11-10 18:46   ` Tom Rini
2014-11-13 11:16     ` Albert ARIBAUD
2014-11-13 22:16       ` Paul Kocialkowski
2014-11-15 20:27         ` Albert ARIBAUD
2014-11-18 13:52           ` Tom Rini
2014-11-18 20:34             ` Albert ARIBAUD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox