Skip to contentSkip to conversation

omap3_igep00x0.h: Drop SPL MMC support on BOOT_NAND

PATCH New Tom Rini 2 participants 5 messages Apr 25, 2016 – Apr 26, 2016

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 omap3_igep00x0.h: Drop SPL MMC support on BOOT_NAND

In the case of booting from NAND on these boards, remove MMC support from SPL so that we can continue to fit into the safest partitioning of the available SRAM.

---
 include/configs/omap3_igep00x0.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/configs/omap3_igep00x0.h +10 -0
index 5e33845..3cdee02 100644
@@ -20,6 +20,16 @@
 #include <asm/mach-types.h>
 
 /*
+ * Remove non-NAND boot modes.
+ */
+#ifdef CONFIG_BOOT_NAND
+#undef CONFIG_SPL_LIBDISK_SUPPORT
+#undef CONFIG_SPL_MMC_SUPPORT
+#undef CONFIG_SPL_FAT_SUPPORT
+#undef CONFIG_SPL_EXT_SUPPORT
+#endif
+
+/*
  * Display CPU and Board information
  */
 #define CONFIG_DISPLAY_CPUINFO		1
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 omap3_igep00x0.h: Drop SPL MMC support on BOOT_NAND

Hi Tom,

2016-04-25 16:44 GMT+02:00 Tom Rini <[email protected]>:

Quoted 18 lines

In the case of booting from NAND on these boards, remove MMC support from SPL so that we can continue to fit into the safest partitioning of the available SRAM.

---
 include/configs/omap3_igep00x0.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/configs/omap3_igep00x0.h +0 -0
index 5e33845..3cdee02 100644
@@ -20,6 +20,16 @@
 #include <asm/mach-types.h>
 

include/configs/omap3_igep00x0.h line 31

Quoted 10 lines
include/configs/omap3_igep00x0.h +9 -0
 /*
+ * Remove non-NAND boot modes.
+ */
+#ifdef CONFIG_BOOT_NAND
+#undef CONFIG_SPL_LIBDISK_SUPPORT
+#undef CONFIG_SPL_MMC_SUPPORT
+#undef CONFIG_SPL_FAT_SUPPORT
+#undef CONFIG_SPL_EXT_SUPPORT
+#endif
+

Hmm, this will break boot from a sdcard, on IGEP the same SPL binary is used to boot from flash or sdcard. The reason why we have two defconfigs is to select if the board has a ONENAND (igep00xx_defconfig) or a NAND (igep00xx_nand_defconfig) but both must have support for MMC.

Quoted 7 lines
include/configs/omap3_igep00x0.h +1 -1
+/*
  * Display CPU and Board information
  */
 #define CONFIG_DISPLAY_CPUINFO         1
--

1.9.1

author
#2 lore raw

PATCH 1/1 omap3_igep00x0.h: Drop SPL MMC support on BOOT_NAND

Quoted 21 lines · Enric Balletbo Serra

Hi Tom,

2016-04-25 16:44 GMT+02:00 Tom Rini <[email protected]>:

Quoted 18 lines

In the case of booting from NAND on these boards, remove MMC support from SPL so that we can continue to fit into the safest partitioning of the available SRAM.

---
 include/configs/omap3_igep00x0.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/configs/omap3_igep00x0.h +0 -0
index 5e33845..3cdee02 100644
@@ -20,6 +20,16 @@
 #include <asm/mach-types.h>
 
Quoted 16 lines

include/configs/omap3_igep00x0.h line 31

Quoted 10 lines
include/configs/omap3_igep00x0.h +9 -0
 /*
+ * Remove non-NAND boot modes.
+ */
+#ifdef CONFIG_BOOT_NAND
+#undef CONFIG_SPL_LIBDISK_SUPPORT
+#undef CONFIG_SPL_MMC_SUPPORT
+#undef CONFIG_SPL_FAT_SUPPORT
+#undef CONFIG_SPL_EXT_SUPPORT
+#endif
+

Hmm, this will break boot from a sdcard, on IGEP the same SPL binary is used to boot from flash or sdcard. The reason why we have two defconfigs is to select if the board has a ONENAND (igep00xx_defconfig) or a NAND (igep00xx_nand_defconfig) but both must have support for MMC.

Ah, OK. So the next thing to do is see about changing CONFIG_SPL_MAX_SIZE. Or if you don't use SPL EXT2/4 support already, perhaps drop that?

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160425/94d24de7/attachment.sig>
#3 lore raw

PATCH 1/1 omap3_igep00x0.h: Drop SPL MMC support on BOOT_NAND

Hi Tom,

2016-04-25 17:16 GMT+02:00 Tom Rini <[email protected]>:

Quoted 39 lines · Enric Balletbo Serra
Quoted 21 lines

Hi Tom,

2016-04-25 16:44 GMT+02:00 Tom Rini <[email protected]>:

Quoted 18 lines

In the case of booting from NAND on these boards, remove MMC support from SPL so that we can continue to fit into the safest partitioning of the available SRAM.

---
 include/configs/omap3_igep00x0.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/configs/omap3_igep00x0.h +0 -0
index 5e33845..3cdee02 100644
@@ -20,6 +20,16 @@
 #include <asm/mach-types.h>
 
Quoted 16 lines

include/configs/omap3_igep00x0.h line 31

Quoted 10 lines
include/configs/omap3_igep00x0.h +9 -0
 /*
+ * Remove non-NAND boot modes.
+ */
+#ifdef CONFIG_BOOT_NAND
+#undef CONFIG_SPL_LIBDISK_SUPPORT
+#undef CONFIG_SPL_MMC_SUPPORT
+#undef CONFIG_SPL_FAT_SUPPORT
+#undef CONFIG_SPL_EXT_SUPPORT
+#endif
+

Hmm, this will break boot from a sdcard, on IGEP the same SPL binary is used to boot from flash or sdcard. The reason why we have two defconfigs is to select if the board has a ONENAND (igep00xx_defconfig) or a NAND (igep00xx_nand_defconfig) but both must have support for MMC.

Quoted 4 lines

Ah, OK. So the next thing to do is see about changing CONFIG_SPL_MAX_SIZE. Or if you don't use SPL EXT2/4 support already, perhaps drop that?

We're really close to the limit, current size with my compiler is 57312. I saw that SPL_MAX_SIZE is set 54K in include/configs/ti_omap3_common.h, maybe we can grow a bit more the max SPL size?

I will take a look what I'm not using but indeed EXT2/4 is not used at the moment in SPL.

Regards,
- Enric

Quoted 2 lines

--
Tom

author
#4 lore raw

PATCH 1/1 omap3_igep00x0.h: Drop SPL MMC support on BOOT_NAND

Quoted 47 lines · Enric Balletbo Serra

Hi Tom,

2016-04-25 17:16 GMT+02:00 Tom Rini <[email protected]>:

Quoted 39 lines · Enric Balletbo Serra
Quoted 21 lines

Hi Tom,

2016-04-25 16:44 GMT+02:00 Tom Rini <[email protected]>:

Quoted 18 lines

In the case of booting from NAND on these boards, remove MMC support from SPL so that we can continue to fit into the safest partitioning of the available SRAM.

---
 include/configs/omap3_igep00x0.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/configs/omap3_igep00x0.h +0 -0
index 5e33845..3cdee02 100644
@@ -20,6 +20,16 @@
 #include <asm/mach-types.h>
 
Quoted 16 lines

include/configs/omap3_igep00x0.h line 31

Quoted 10 lines
include/configs/omap3_igep00x0.h +9 -0
 /*
+ * Remove non-NAND boot modes.
+ */
+#ifdef CONFIG_BOOT_NAND
+#undef CONFIG_SPL_LIBDISK_SUPPORT
+#undef CONFIG_SPL_MMC_SUPPORT
+#undef CONFIG_SPL_FAT_SUPPORT
+#undef CONFIG_SPL_EXT_SUPPORT
+#endif
+

Hmm, this will break boot from a sdcard, on IGEP the same SPL binary is used to boot from flash or sdcard. The reason why we have two defconfigs is to select if the board has a ONENAND (igep00xx_defconfig) or a NAND (igep00xx_nand_defconfig) but both must have support for MMC.

Quoted 4 lines

Ah, OK. So the next thing to do is see about changing CONFIG_SPL_MAX_SIZE. Or if you don't use SPL EXT2/4 support already, perhaps drop that?

Quoted 7 lines

We're really close to the limit, current size with my compiler is 57312. I saw that SPL_MAX_SIZE is set 54K in include/configs/ti_omap3_common.h, maybe we can grow a bit more the max SPL size?

I will take a look what I'm not using but indeed EXT2/4 is not used at the moment in SPL.

So, the quick math I did said that if we also move stack into DDR once it is enabled, we should probably be fine using 59392 bytes of memory (0xF000-0x800) and ~4kb stack. But the thing in doc/README.SPL about counting stack should be done at least once to be sure. If you're happy about making the change just for your boards for this release, that's OK with me.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160426/a5b07ce9/attachment.sig>