Skip to contentSkip to conversation

igep00x0: UBI everywhere but SPL

RFC New Ladislav Michl 1 participant 1 message Dec 30, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

RFC 1/1 igep00x0: UBI everywhere but SPL

This patch converts IGEP board to use UBI volumes for environment, u-boot, kernel... With exception of first four sectors with SPL loaded by SoC boot ROM whole NAND is UBI managed. I misused BOOT_DEVICE_BOARD, which is probably not briliant idea, but works well enough. Also code it too big, so I dropped CONFIG_SPL_EXT_SUPPORT to make it fit. It is meant more likely as a test of Thomas' patch, so more people can play with that.
Thanks to Marek Vasut for pointing me to Thomas' work and arguing so well towards UBI that I had no other choice than giving it a try.

---

arch/arm/include/asm/arch-omap3/spl.h +2 -1
index a31b4ea..ebac396 100644
@@ -14,9 +14,10 @@
 #define BOOT_DEVICE_MMC2	0x05
 #define BOOT_DEVICE_MMC1	0x06
 #define BOOT_DEVICE_XIPWAIT	0x07
-#define BOOT_DEVICE_MMC2_2      0x08
+#define BOOT_DEVICE_MMC2_2	0x08
 #define BOOT_DEVICE_UART	0x10
 #define BOOT_DEVICE_USB		0x11
+#define BOOT_DEVICE_BOARD	0xffffffff
 
 #define MMC_BOOT_DEVICES_START	BOOT_DEVICE_MMC2
 #define MMC_BOOT_DEVICES_END	BOOT_DEVICE_MMC1
board/isee/igep00x0/igep00x0.c +64 -0

73 lines not on this page · raw message

common/spl/spl_nand.c +8 -0
index 3e2c074..f55be5f 100644
@@ -10,6 +10,13 @@
 #include <asm/io.h>
 #include <nand.h>
 
+#ifdef CONFIG_SPL_BOARD_LOAD_IMAGE
+int spl_nand_load_image(void)
+{
+	return -EINVAL;
+}
+#else
+
 #if defined(CONFIG_SPL_NAND_RAW_ONLY)
 int spl_nand_load_image(void)
 {
@@ -102,3 +109,4 @@ int spl_nand_load_image(void)
 	return err;
 }
 #endif
+#endif
include/configs/omap3_igep00x0.h +31 -35

105 lines not on this page · raw message