* [U-Boot] [PATCH] qong: changes to Dave/DENX Qong configuration
@ 2009-02-17 8:29 Wolfgang Denk
2009-02-18 3:27 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2009-02-17 8:29 UTC (permalink / raw)
To: u-boot
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] qong: changes to Dave/DENX Qong configuration
2009-02-17 8:29 [U-Boot] [PATCH] qong: changes to Dave/DENX Qong configuration Wolfgang Denk
@ 2009-02-18 3:27 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-02-18 3:27 UTC (permalink / raw)
To: u-boot
On 09:29 Tue 17 Feb , Wolfgang Denk wrote:
> >From db8b5a7ed751fde815ec1a7a9e8751d64abeef91 Thu Feb 05 04:08:20 2009
> From: Ilya Yanok <yanok@emcraft.com>
> Date: Thu, 5 Feb 2009 04:08:20 +0100
> Subject: [PATCH] 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>
> ---
> include/configs/qong.h | 22 ++++++++++++++--------
> 1 files changed, 14 insertions(+), 8 deletions(-)
Applied
Best Regards,
J.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] qong: changes to Dave/DENX Qong configuration
@ 2009-02-26 18:52 Ilya Yanok
0 siblings, 0 replies; 3+ messages in thread
From: Ilya Yanok @ 2009-02-26 18:52 UTC (permalink / raw)
To: u-boot
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>
---
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 fc6e33a..ccc2625 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 */
--
1.6.0.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-26 18:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-17 8:29 [U-Boot] [PATCH] qong: changes to Dave/DENX Qong configuration Wolfgang Denk
2009-02-18 3:27 ` Jean-Christophe PLAGNIOL-VILLARD
-- strict thread matches above, loose matches on Subject: below --
2009-02-26 18:52 Ilya Yanok
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox