diff options
| author | Ilya Yanok <yanok@emcraft.com> | 2009-02-05 04:08:20 +0100 | 
|---|---|---|
| committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-02-18 04:24:35 +0100 | 
| commit | b4e85d0f37b5b924fbf834867ad6d0b31b86f667 (patch) | |
| tree | 6fc8f80d1ef341bd97e0cd8f5bf0faa6c7d76956 | |
| parent | 0d19f6c8cbe71b9e6d8c6bd6742ed2551e918870 (diff) | |
| download | olio-uboot-2014.01-b4e85d0f37b5b924fbf834867ad6d0b31b86f667.tar.xz olio-uboot-2014.01-b4e85d0f37b5b924fbf834867ad6d0b31b86f667.zip | |
qong: changes to Dave/DENX Qong configuration
1. Changes to the default environment:
  - "bootcmd" defined as "run flash_self"
  - "saveenv" command removed from "update"
  - "uboot" changed to "u-boot" (also in "load")
  - "addmtd" variable defined (and added to all boot commands)
2. CONFIG_CMD_JFFS2 defined to enable "mtdparts" command
3. MTDIDS_DEFAULT and MTDPARTS_DEFAULT defined
4. CONFIG_SYS_CBSIZE changed from 256 to 512. That solves the problem
with truncated "bootargs" environment variable.
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
| -rw-r--r-- | include/configs/qong.h | 22 | 
1 files changed, 14 insertions, 8 deletions
| diff --git a/include/configs/qong.h b/include/configs/qong.h index fc6e33aa9..ccc262513 100644 --- a/include/configs/qong.h +++ b/include/configs/qong.h @@ -84,6 +84,7 @@  #define CONFIG_CMD_DHCP  #define CONFIG_CMD_NET  #define CONFIG_CMD_MII +#define CONFIG_CMD_JFFS2  /*   * You can compile in a MAC address and your custom net settings by using @@ -113,28 +114,29 @@  		":${hostname}:${netdev}:off panic=1\0"			\  	"addtty=setenv bootargs ${bootargs}"				\  		" console=ttymxc0,${baudrate}\0"			\ +	"addmtd=setenv bootargs ${bootargs} ${mtdparts}\0"		\  	"addmisc=setenv bootargs ${bootargs}\0"				\  	"uboot_addr=a0000000\0"						\  	"kernel_addr=a0080000\0"					\  	"ramdisk_addr=a0300000\0"					\ -	"uboot=qong/u-boot.bin\0"					\ +	"u-boot=qong/u-boot.bin\0"					\  	"kernel_addr_r=80800000\0"					\  	"hostname=qong\0"						\  	"bootfile=qong/uImage\0"					\  	"rootpath=/opt/eldk-4.2-arm/armVFP\0"				\ -	"flash_self=run ramargs addip addtty addmisc;"			\ +	"flash_self=run ramargs addip addtty addmtd addmisc;"		\  		"bootm ${kernel_addr} ${ramdisk_addr}\0"		\ -	"flash_nfs=run nfsargs addip addtty addmisc;"			\ +	"flash_nfs=run nfsargs addip addtty addmtd addmisc;"		\  		"bootm ${kernel_addr}\0"				\  	"net_nfs=tftp ${kernel_addr_r} ${bootfile};"			\ -		"run nfsargs addip addtty addmisc;"			\ +		"run nfsargs addip addtty addmtd addmisc;"		\  		"bootm\0"						\ -	"load=tftp ${loadaddr} ${uboot}\0"				\ +	"bootcmd=run flash_self\0"					\ +	"load=tftp ${loadaddr} ${u-boot}\0"				\  	"update=protect off " xstr(CONFIG_SYS_MONITOR_BASE)		\  		" +${filesize};era " xstr(CONFIG_SYS_MONITOR_BASE)	\  		" +${filesize};cp.b ${fileaddr} "			\ -		xstr(CONFIG_SYS_MONITOR_BASE) " ${filesize};"		\ -		"setenv filesize;saveenv\0"				\ +		xstr(CONFIG_SYS_MONITOR_BASE) " ${filesize}\0"		\  	"upd=run load update\0"						\  /* @@ -142,7 +144,7 @@   */  #define CONFIG_SYS_LONGHELP		/* undef to save memory */  #define CONFIG_SYS_PROMPT		"=> " -#define CONFIG_SYS_CBSIZE		256	/* Console I/O Buffer Size */ +#define CONFIG_SYS_CBSIZE		512	/* Console I/O Buffer Size */  /* Print Buffer Size */  #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + \  		sizeof(CONFIG_SYS_PROMPT) + 16) @@ -211,5 +213,9 @@   * JFFS2 partitions   */  #define CONFIG_JFFS2_CMDLINE +#define MTDIDS_DEFAULT		"nor0=physmap-flash.0" +#define MTDPARTS_DEFAULT	\ +	"mtdparts=physmap-flash.0:256k(U-Boot),128k(env1),"	\ +	"128k(env2),2560k(kernel),13m(ramdisk),-(user)"  #endif /* __CONFIG_H */ |