Skip to contentSkip to conversation

i.MX6: mx6qsabrelite: allow use with Freescale 2.6.38 kernels

PATCH New Eric Nelson 2 participants 6 messages Mar 4, 2012 – Mar 15, 2012

lore
Share & tools
lore
#0 lore raw

v2 cover 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

#1 lore raw

PATCH v2 1/3 i.MX6: mx6q_sabrelite: add CONFIG_REVISION_TAG to allow use with Freescale kernels

---
 board/freescale/mx6qsabrelite/mx6qsabrelite.c |    7 +++++++
 include/configs/mx6qsabrelite.h               |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)
board/freescale/mx6qsabrelite/mx6qsabrelite.c +7 -0
index db1bea9..590030b 100644
@@ -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 */
include/configs/mx6qsabrelite.h +1 -0
index 93000f0..85f6f7a 100644
@@ -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)
Signature · 1 line
1.7.9
#2 lore raw

PATCH v2 2/3 i.MX6: mx6qsabrelite: add MACH_TYPE_MX6Q_SABRELITE

In reply to Eric Nelson

Allow non-dt kernels to boot

---
 include/configs/mx6qsabrelite.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/configs/mx6qsabrelite.h +2 -0
index 85f6f7a..381b3a7 100644
@@ -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
Signature · 1 line
1.7.9
#5 lore raw

PATCH v2 3/3 i.MX6: mx6qsabrelite: add ext2 support

In reply to Eric Nelson
---
 include/configs/mx6qsabrelite.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/configs/mx6qsabrelite.h +1 -0
index 381b3a7..8bc8a83 100644
@@ -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
 
Signature · 1 line
1.7.9
#3 lore raw

PATCH v2 2/3 i.MX6: mx6qsabrelite: add MACH_TYPE_MX6Q_SABRELITE

In reply to Eric Nelson
Quoted 12 lines · Eric Nelson

Allow non-dt kernels to boot

---
  include/configs/mx6qsabrelite.h |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)
include/configs/mx6qsabrelite.h +0 -0
index 85f6f7a..381b3a7 100644

include/configs/mx6qsabrelite.h line 35

Quoted 8 lines
include/configs/mx6qsabrelite.h +2 -0
@@ -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?

#4 lore raw

PATCH v2 2/3 i.MX6: mx6qsabrelite: add MACH_TYPE_MX6Q_SABRELITE

In reply to Eric Nelson

include/configs/mx6qsabrelite.h

Quoted 10 lines · Eric Nelson

Allow non-dt kernels to boot

---
 include/configs/mx6qsabrelite.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/configs/mx6qsabrelite.h +0 -1
index 85f6f7a..381b3a7 100644
--- a/include/configs/mx6qsabrelite.h

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================