[U-Boot] [RFCv2 3/3] omap3evm: Add quick boot configurations

Sanjeev Premi premi at ti.com
Fri Oct 29 18:06:13 CEST 2010


This patch adds 2 configurations for quick boot
on the omap3evm - based on chosen boot media.

Signed-off-by: Sanjeev Premi <premi at ti.com>
---
 boards.cfg                             |    2 +
 include/configs/omap3_evm_quick_mmc.h  |   53 ++++++++++++++++++++++++++++++++
 include/configs/omap3_evm_quick_nand.h |   48 +++++++++++++++++++++++++++++
 3 files changed, 103 insertions(+), 0 deletions(-)
 create mode 100644 include/configs/omap3_evm_quick_mmc.h
 create mode 100644 include/configs/omap3_evm_quick_nand.h

diff --git a/boards.cfg b/boards.cfg
index 6c2a667..e976afb 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -387,6 +387,8 @@ omap3_zoom1	arm	armv7		zoom1		logicpd		omap3
 omap3_zoom2	arm	armv7		zoom2		logicpd		omap3
 omap3_beagle	arm	armv7		beagle		ti		omap3
 omap3_evm	arm	armv7		evm		ti		omap3
+omap3_evm_quick_mmc	arm	armv7		evm		ti		omap3
+omap3_evm_quick_nand	arm	armv7		evm		ti		omap3
 omap3_sdp3430	arm	armv7		sdp3430		ti		omap3
 igep0020	arm	armv7		igep0020	isee		omap3
 igep0030	arm	armv7		igep0030	isee		omap3
diff --git a/include/configs/omap3_evm_quick_mmc.h b/include/configs/omap3_evm_quick_mmc.h
new file mode 100644
index 0000000..e760e90
--- /dev/null
+++ b/include/configs/omap3_evm_quick_mmc.h
@@ -0,0 +1,53 @@
+/*
+ * Configuration settings for quick boot on OMAP3 EVM.
+ *
+ * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * Author :
+ *	Sanjeev Premi <premi at ti.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
+ * kind, whether express or implied; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __OMAP3_EVM_QUICK_MMC_H
+#define __OMAP3_EVM_QUICK_MMC_H
+
+#include "omap3_evm_common.h"
+
+/*
+ * Generic config options
+ */
+#define CONFIG_SILENT_CONSOLE	1
+#define CONFIG_ENV_IS_NOWHERE	1
+
+#define CONFIG_EXTRA_ENV_SETTINGS \
+	"verify=no\0" \
+	"bootfile=uImage\0"
+
+/*
+ * Environment and boot command
+ */
+#define CONFIG_BOOTDELAY	0
+
+#define CONFIG_BOOTCOMMAND			\
+	"mmc init; "				\
+	"fatload mmc 0 0x80000000 uImage; "	\
+	"bootm 0x80000000;"
+
+#define CONFIG_BOOTARGS			\
+	"console=ttyS0,115200n8 "	\
+	"mem=128M quiet noinitrd"	\
+	"root=/dev/mmcblk0p2 rw "	\
+	"rootfstype=ext3 rootwait "
+
+#endif /* __OMAP3_EVM_QUICK_MMC_H */
+
+
diff --git a/include/configs/omap3_evm_quick_nand.h b/include/configs/omap3_evm_quick_nand.h
new file mode 100644
index 0000000..dccf67f
--- /dev/null
+++ b/include/configs/omap3_evm_quick_nand.h
@@ -0,0 +1,48 @@
+/*
+ * Configuration settings for quick boot on OMAP3 EVM.
+ *
+ * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * Author :
+ *	Sanjeev Premi <premi at ti.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
+ * kind, whether express or implied; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __OMAP3_EVM_QUICK_NAND_H
+#define __OMAP3_EVM_QUICK_NAND_H
+
+#include "omap3_evm_common.h"
+
+/*
+ * Generic config options
+ */
+#define CONFIG_SILENT_CONSOLE	1
+#define CONFIG_ENV_IS_NOWHERE	1
+
+/*
+ * Environment and boot command
+ */
+#define CONFIG_BOOTDELAY	0
+
+#define CONFIG_BOOTCOMMAND		\
+	"nand read.i 0x80000000 280000 500000; " \
+	"bootm 0x80000000;"
+
+#define CONFIG_BOOTARGS			\
+	"console=ttyS0,115200n8 "	\
+	"mem=128M quiet noinitrd"	\
+	"root=/dev/mtdblock4 rw "	\
+	"rootfstype=jffs2 "
+
+#endif /* __OMAP3_EVM_QUICK_NAND_H */
+
+
-- 
1.7.2.2



More information about the U-Boot mailing list