[U-Boot] [PATCH V2 0/3] i.MX6: mx6qsabrelite: allow use with Freescale 2.6.38 kernels

This series of patches is needed to allow main-line U-Boot to be used with Freescale's Linux 2.6.38 non-DT kernel releases.
These releases currently require at least the machine type and revision atag entries and are configured to load boot scripts from the ext3 filesystem.
V2 just simplifies patch 2/3 to use CONFIG_MACH_TYPE instead of updating mach-types.h and filling things in during boot.
Three new declarations in the board-specific header and one new routine in the board-specific file seem like a low cost to add a "U" (Universal) to main-line U-Boot.
Eric Nelson (3): i.MX6: mx6q_sabrelite: add CONFIG_REVISION_TAG to allow use with Freescale kernels i.MX6: mx6qsabrelite: add MACH_TYPE_MX6Q_SABRELITE i.MX6: mx6qsabrelite: add ext2 support
board/freescale/mx6qsabrelite/mx6qsabrelite.c | 7 +++++++ include/configs/mx6qsabrelite.h | 4 ++++ 2 files changed, 11 insertions(+), 0 deletions(-)
In-Reply-To: http://lists.denx.de/pipermail/u-boot/2012-March/thread.html#119206

--- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 7 +++++++ include/configs/mx6qsabrelite.h | 1 + 2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/board/freescale/mx6qsabrelite/mx6qsabrelite.c b/board/freescale/mx6qsabrelite/mx6qsabrelite.c index db1bea9..590030b 100644 --- a/board/freescale/mx6qsabrelite/mx6qsabrelite.c +++ b/board/freescale/mx6qsabrelite/mx6qsabrelite.c @@ -215,6 +215,13 @@ int board_mmc_init(bd_t *bis) } #endif
+#ifdef CONFIG_REVISION_TAG +u32 get_board_rev(void) +{ + return 0x63000 ; +} +#endif + #ifdef CONFIG_MXC_SPI iomux_v3_cfg_t ecspi1_pads[] = { /* SS1 */ diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index 93000f0..85f6f7a 100644 --- a/include/configs/mx6qsabrelite.h +++ b/include/configs/mx6qsabrelite.h @@ -33,6 +33,7 @@ #define CONFIG_CMDLINE_TAG #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_INITRD_TAG +#define CONFIG_REVISION_TAG
/* Size of malloc() pool */ #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 1024 * 1024)

Allow non-dt kernels to boot
Signed-off-by: Troy Kisky troy.kisky@boundarydevices.com --- include/configs/mx6qsabrelite.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index 85f6f7a..381b3a7 100644 --- a/include/configs/mx6qsabrelite.h +++ b/include/configs/mx6qsabrelite.h @@ -28,6 +28,8 @@ #define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_BOARDINFO
+#define CONFIG_MACH_TYPE 3769 + #include <asm/arch/imx-regs.h>
#define CONFIG_CMDLINE_TAG

On 03/04/2012 01:51 PM, Eric Nelson wrote:
Allow non-dt kernels to boot
Signed-off-by: Troy Kiskytroy.kisky@boundarydevices.com
include/configs/mx6qsabrelite.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index 85f6f7a..381b3a7 100644 --- a/include/configs/mx6qsabrelite.h +++ b/include/configs/mx6qsabrelite.h @@ -28,6 +28,8 @@ #define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_BOARDINFO
+#define CONFIG_MACH_TYPE 3769
#include<asm/arch/imx-regs.h>
#define CONFIG_CMDLINE_TAG
Any comment on this patch?

On 04/03/2012 21:51, Eric Nelson wrote:
Allow non-dt kernels to boot
Signed-off-by: Troy Kisky troy.kisky@boundarydevices.com
include/configs/mx6qsabrelite.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index 85f6f7a..381b3a7 100644 --- a/include/configs/mx6qsabrelite.h
Applied to u-boot-imx, thanks.
Best regards, Stefano Babic

--- include/configs/mx6qsabrelite.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index 381b3a7..8bc8a83 100644 --- a/include/configs/mx6qsabrelite.h +++ b/include/configs/mx6qsabrelite.h @@ -67,6 +67,7 @@ #define CONFIG_MMC #define CONFIG_CMD_MMC #define CONFIG_GENERIC_MMC +#define CONFIG_CMD_EXT2 #define CONFIG_CMD_FAT #define CONFIG_DOS_PARTITION
participants (2)
-
Eric Nelson
-
Stefano Babic