public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: DrEagle <dreagle@doukki.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 8/8] arm kirkwood update sheevaplug defaults config
Date: Mon, 08 Jul 2013 01:49:19 +0200	[thread overview]
Message-ID: <51D9FE7F.9080404@doukki.net> (raw)
In-Reply-To: <20130705230848.457e1e24@lilith>

    - update defaults sheevaplug config

    Signed-off-by: drEagle <uboot@doukki.net>

 include/configs/mv-common.h                    |
 include/configs/sheevaplug.h                   |

diff --git a/include/configs/mv-common.h b/include/configs/mv-common.h
index 405a842..e917e6f 100644
--- a/include/configs/mv-common.h
+++ b/include/configs/mv-common.h
@@ -72,7 +72,10 @@
 #define CONFIG_BAUDRATE			115200
 #define CONFIG_SYS_BAUDRATE_TABLE	{ 9600, 19200, 38400, 57600, \
 					  115200,230400, 460800, 921600 }
-/* auto boot */
+/*
+ * Miscellaneous configurable options
+ */
+#define CONFIG_ENV_OVERWRITE
 #define CONFIG_BOOTDELAY	3	/* default enable autoboot */
 
 /*
@@ -98,6 +101,7 @@
  * Other required minimal configurations
  */
 #define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_HUSH_PARSER		/* use "hush" command parser */
 #define CONFIG_AUTO_COMPLETE
 #define CONFIG_CMDLINE_EDITING
 #define CONFIG_CONSOLE_INFO_QUIET	/* some code reduction */
diff --git a/include/configs/sheevaplug.h b/include/configs/sheevaplug.h
index 83dd8ff..270fd56 100644
--- a/include/configs/sheevaplug.h
+++ b/include/configs/sheevaplug.h
@@ -28,7 +28,8 @@
 /*
  * Version number information
  */
-#define CONFIG_IDENT_STRING	"\nMarvell-Sheevaplug"
+
+#define CONFIG_IDENT_STRING	"\nMarvell-Sheevaplug - eSATA - SD/MMC"
 
 /*
  * High Level Configuration Options (easy to change)
@@ -39,17 +40,24 @@
 #define CONFIG_MACH_SHEEVAPLUG	/* Machine type */
 #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
 
+#define CONFIG_ARCH_DEV_ID	1
+
 /*
  * Commands configuration
  */
+
 #define CONFIG_SYS_NO_FLASH		/* Declare no flash (NOR/SPI) */
+#define CONFIG_SYS_MVFS
 #include <config_cmd_default.h>
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_ENV
 #define CONFIG_CMD_IDE
 #define CONFIG_CMD_MII
 #define CONFIG_CMD_MMC
 #define CONFIG_CMD_NAND
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_USB
+
 /*
  * mv-common.h should be defined after CMD configs since it used them
  * to enable certain macros
@@ -57,6 +65,11 @@
 #include "mv-common.h"
 
 /*
+ * Miscellaneous configurable options
+ */
+#undef CONFIG_CONSOLE_INFO_QUIET
+
+/*
  *  Environment variables configurations
  */
 #ifdef CONFIG_CMD_NAND
@@ -65,29 +78,56 @@
 #else
 #define CONFIG_ENV_IS_NOWHERE		1	/* if env in SDRAM */
 #endif
+
 /*
  * max 4k env size is enough, but in case of nand
  * it has to be rounded to sector size
  */
 #define CONFIG_ENV_SIZE			0x20000	/* 128k */
-#define CONFIG_ENV_ADDR			0x60000
-#define CONFIG_ENV_OFFSET		0x60000	/* env starts here */
+#define CONFIG_ENV_ADDR			0x80000
+#define CONFIG_ENV_OFFSET		0x80000	/* env starts here */
 
 /*
  * Default environment variables
  */
-#define CONFIG_BOOTCOMMAND		"${x_bootcmd_kernel}; "	\
-	"setenv bootargs ${x_bootargs} ${x_bootargs_root}; "	\
-	"${x_bootcmd_usb}; bootm 0x6400000;"
+#define CONFIG_BOOTCOMMAND \
+	"run x_bootcmd; run z_bootstrap; reset;"
 
-#define CONFIG_MTDPARTS		"orion_nand:512k(uboot),"	\
-	"3m at 1m(kernel),1m at 4m(psm),13m at 5m(rootfs) rw\0"
+#define CONFIG_MTDPARTS						\
+	"mtdparts=orion_nand:"					\
+	"768k(uboot),256k(uboot_env),"				\
+	"11m at 1m(kernel),- at 12m(rootfs)\0"
 
-#define CONFIG_EXTRA_ENV_SETTINGS	"x_bootargs=console"	\
-	"=ttyS0,115200 mtdparts="CONFIG_MTDPARTS	\
-	"x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
-	"x_bootcmd_usb=usb start\0" \
-	"x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
+#define CONFIG_EXTRA_ENV_SETTINGS					\
+	"console=console=ttyS0,115200n8\0"				\
+	"mtdids=nand0=orion_nand\0"					\
+	"mtdparts="CONFIG_MTDPARTS					\
+	"kerneladdr=0x00800000\0"					\
+	"kernelfile=/boot/uImage.bin\0"					\
+	"scriptaddr=0x00800000\0"					\
+	"scriptfile=/boot/boot.scr\0"					\
+	"x_bootargs=console=ttyS0,115200n8 "CONFIG_MTDPARTS		\
+	"x_bootargs_root=root=LABEL=plug-rootfs rw rootwait panic=5\0"	\
+	"x_bootcmd=${x_bootcmd_kernel}; setenv bootargs ${x_bootargs}"	\
+	" ${x_bootargs_root}; run z_bootinit;\0"			\
+	"x_bootcmd_kernel=echo ====== BootStrap start ======\0"		\
+	"x_bootstrap_scr=for device in \"mmc usb ide\"; do for fs in"	\
+	" \"ext2 fat\"; do setenv loadcmd \"${fs}load ${device} 0:1\";"	\
+	" if ${loadcmd} ${scriptaddr} ${scriptfile}; then;"		\
+	" run z_bootscr; fi; done; done;\0"				\
+	"x_bootstrap_cmd=for device in \"mmc usb ide\"; do for fs in"	\
+	" \"ext2 fat\"; do setenv loadcmd \"${fs}load ${device} 0:1\";"	\
+	" if ${loadcmd} ${kerneladdr} ${kernelfile}; then;"		\
+	" run z_bootcmd; fi; done; done;\0"				\
+	"x_bootcmd_mtd=nand read.e ${kerneladdr} kernel 0x00b00000;\0"	\
+	"z_bootinit=mmc rescan; usb reset; ide reset;\0"		\
+	"z_bootcmd=if imi ${kerneladdr}; then; bootm ${kerneladdr};"	\
+	" else; echo --- next bootcmd device try ---; fi;\0"		\
+	"z_bootscr=if imi ${scriptaddr}; then; autoscr ${scriptaddr};"	\
+	" else; echo --- next bootscr device try ---; fi;\0"		\
+	"z_bootstrap=run z_bootinit; run x_bootstrap_scr;"		\
+	" run x_bootstrap_cmd; run x_bootcmd_mtd; run z_bootfail;\0"	\
+	"z_bootfail=echo ====== BootStrap end ======\0"
 
 /*
  * Ethernet Driver configuration
@@ -98,17 +138,20 @@
 #endif /* CONFIG_CMD_NET */
 
 /*
- * File system
+ * RTC driver configuration
+ */
+#ifdef CONFIG_CMD_DATE
+#define CONFIG_RTC_MV
+#endif /* CONFIG_CMD_DATE */
+
+/*
+ * SDIO/MMC Card Configuration
  */
-#define CONFIG_CMD_EXT2
-#define CONFIG_CMD_FAT
-#define CONFIG_CMD_JFFS2
-#define CONFIG_CMD_UBI
-#define CONFIG_CMD_UBIFS
-#define CONFIG_RBTREE
-#define CONFIG_MTD_DEVICE               /* needed for mtdparts commands */
-#define CONFIG_MTD_PARTITIONS
-#define CONFIG_CMD_MTDPARTS
-#define CONFIG_LZO
+#ifdef CONFIG_CMD_MMC
+#define CONFIG_MMC
+#define CONFIG_GENERIC_MMC
+#define CONFIG_MRVL_MMC
+#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
+#endif /* CONFIG_CMD_MMC */
 
 #endif /* _CONFIG_SHEEVAPLUG_H */

      parent reply	other threads:[~2013-07-07 23:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-02 21:17 [U-Boot] Marvell SheevaPlug v2013.04 Refresh (ask for review) DrEagle
2013-07-05 21:08 ` Albert ARIBAUD
2013-07-07 23:41   ` DrEagle
2013-07-08  9:46     ` Albert ARIBAUD
2013-07-07 23:43   ` [U-Boot] [PATCH 0/8] arm kirkwood - sheevaplug refresh DrEagle
2013-07-07 23:44   ` [U-Boot] [PATCH 1/8] arm kirkwood - add kirkwood_id DrEagle
2013-07-07 23:44   ` [U-Boot] [PATCH 2/8] arm kirkwood update supported devices and revisions DrEagle
2013-07-07 23:45   ` [U-Boot] [PATCH 3/8] arm kirkwood add kw88f6282 support DrEagle
2013-07-07 23:46   ` [U-Boot] [PATCH 4/8] arm kirkwood add MVSDIO driver v3 DrEagle
2013-07-07 23:47   ` [U-Boot] [PATCH 5/8] arm kirkwood add MVSDIO kirkwood support DrEagle
2013-07-07 23:47   ` [U-Boot] [PATCH 6/8] arm kirkwood add MVSDIO sheevaplug support DrEagle
2013-07-07 23:48   ` [U-Boot] [PATCH 7/8] arm kirkwood add MVSATA " DrEagle
2013-07-07 23:49   ` DrEagle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51D9FE7F.9080404@doukki.net \
    --to=dreagle@doukki.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox