[U-Boot] [PATCH 1/1] m53evk board config
lothar at denx.de
lothar at denx.de
Fri Sep 6 20:17:17 CEST 2013
From 3fc44426556b98ee4cc022d99ff541682b961d33 Mon Sep 17 00:00:00 2001
From: Lothar Rubusch <lothar at denx.de>
Date: Fri, 6 Sep 2013 15:07:09 +0200
Subject: [PATCH] m53evk board specific configuration for setup with boot
partition (ext) and separate rootfs partition (ext)
Signed-off-by: Lothar Rubusch <lothar at denx.de>
---
include/configs/m53evk.h | 87
++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 85 insertions(+), 2 deletions(-)
diff --git a/include/configs/m53evk.h b/include/configs/m53evk.h
index ccb07e3..3cb9e22 100644
--- a/include/configs/m53evk.h
+++ b/include/configs/m53evk.h
@@ -147,6 +147,7 @@
* Ethernet on SOC (FEC)
*/
#ifdef CONFIG_CMD_NET
+#define CONFIG_ETHPRIME "FEC0"
#define CONFIG_FEC_MXC
#define IMX_FEC_BASE FEC_BASE_ADDR
#define CONFIG_FEC_MXC_PHYADDR 0x0
@@ -210,10 +211,11 @@
#define CONFIG_INITRD_TAG
#define CONFIG_REVISION_TAG
#define CONFIG_SETUP_MEMORY_TAGS
-#define CONFIG_BOOTDELAY 3
-#define CONFIG_BOOTFILE "m53evk/uImage"
+#define CONFIG_BOOTDELAY 5
+#define CONFIG_BOOTFILE "uImage"
#define CONFIG_BOOTARGS "console=ttymxc1,115200"
#define CONFIG_LOADADDR 0x70800000
+#define CONFIG_BOOTCOMMAND "run mmc_mmc"
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
#define CONFIG_OF_LIBFDT
@@ -240,4 +242,85 @@
#define CONFIG_SYS_NAND_SIZE (256 * 1024 * 1024)
#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
+/*
+ * Extra Environments
+ */
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "fdtfile=imx53-m53evk.dtb\0" \
+ "consdev=ttymxc1\0" \
+ "baudrate=115200\0" \
+ "bootdev=/dev/mmcblk0p1\0" \
+ "rootdev=/dev/mmcblk0p2\0" \
+ "ethact=FEC0\0" \
+ "netdev=eth0\0" \
+ "hostname=m53evk\0" \
+ "rootpath=/opt/eldk-5.3/armv7a-hf/rootfs-qte-sdk\0" \
+ "kernel_addr_r=0x72000000\0" \
+ "fdt_addr_r=0x71000000\0" \
+ "addcons=" \
+ "setenv bootargs ${bootargs} " \
+ "console=${consdev},${baudrate}\0" \
+ "addip=" \
+ "setenv bootargs ${bootargs} " \
+ "ip=${ipaddr}:${serverip}:${gatewayip}:" \
+ "${netmask}:${hostname}:${netdev}:off\0" \
+ "addmisc=" \
+ "setenv bootargs ${bootargs} ${miscargs}\0" \
+ "adddfltmtd=" \
+ "if test \"x${mtdparts}\" == \"x\" ; " \
+ "then mtdparts default ; fi\0" \
+ "addmtd=" \
+ "run adddfltmtd ; " \
+ "setenv bootargs ${bootargs} ${mtdparts}\0" \
+ "addargs=run addcons addmtd addmisc\0" \
+ "kernel_mmcload=" \
+ "mmc rescan ; " \
+ "ext2load mmc 0:1 ${kernel_addr_r} ${bootfile}\0" \
+ "kernel_nandload=nand read ${kernel_addr_r} kernel\0" \
+ "kernel_netload=tftp ${kernel_addr_r} ${bootfile}\0" \
+ "fdt_mmcload=" \
+ "mmc rescan ; " \
+ "ext2load mmc 0:1 ${fdt_addr_r} ${fdtfile}\0" \
+ "fdt_nandload=nand read ${fdt_addr_r} fdt\0" \
+ "fdt_netload=tftp ${fdt_addr_r} ${fdtfile}\0" \
+ "miscargs=nohlt panic=1\0" \
+ "mmcargs=setenv bootargs root=${rootdev} rw rootwait\0" \
+ "nandargs=" \
+ "setenv bootargs ubi.mtd=6 " \
+ "root=ubi0:rootfs rootfstype=ubifs\0" \
+ "nfsargs=" \
+ "setenv bootargs root=/dev/nfs rw " \
+ "nfsroot=${serverip}:${rootpath},v3,tcp\0" \
+ "mmcload=run kernel_mmcload fdt_mmcload\0" \
+ "nandload=run kernel_nandload fdt_nandload\0" \
+ "netload=run kernel_netload fdt_netload\0" \
+ "mmc_nfs=" \
+ "run mmcload nfsargs addip addargs ; " \
+ "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
+ "mmc_mmc=" \
+ "run mmcload mmcargs addargs ; " \
+ "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
+ "mmc_nand=" \
+ "run mmcload nandargs addargs ; " \
+ "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
+ "nand_mmc=" \
+ "run nandload mmcargs addargs ; " \
+ "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
+ "nand_nfs=" \
+ "run nandload nfsargs addip addargs ; " \
+ "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
+ "nand_nand=" \
+ "run nandload nandargs addargs ; " \
+ "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
+ "net_mmc=" \
+ "run netload mmcargs addargs ; " \
+ "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
+ "net_nfs=" \
+ "run netload nfsargs addip addargs ; " \
+ "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
+ "net_nand=" \
+ "run netload nandargs addargs ; " \
+ "bootm ${kernel_addr_r} - ${fdt_addr_r}\0"
+
+
#endif /* __M53EVK_CONFIG_H__ */
--
1.7.11.7
More information about the U-Boot
mailing list