summaryrefslogtreecommitdiff
path: root/include/configs/mx6q_sabreauto.h
diff options
context:
space:
mode:
authorEric Sun <jian.sun@freescale.com>2012-08-07 16:41:13 +0800
committerEric Sun <jian.sun@freescale.com>2012-08-07 16:41:13 +0800
commit7140562bb1bfeef8761c510f59eb7e31006e465e (patch)
tree6c2465f2d1f0b975f5a1ae75d7cde9278d7aa03a /include/configs/mx6q_sabreauto.h
parente590a6d2fbd9f6a3e64e96b9acfc62d8dbb6c324 (diff)
downloadu-boot-imx-7140562bb1bfeef8761c510f59eb7e31006e465e.zip
u-boot-imx-7140562bb1bfeef8761c510f59eb7e31006e465e.tar.gz
u-boot-imx-7140562bb1bfeef8761c510f59eb7e31006e465e.tar.bz2
ENGR00219636 MX6 UBOOT : Enlarge command line buffer size
There is a problem that a too long command line parameter in U-Boot console will actually be truncated and not properly truncated to the kernel. The root cause is that the command line in the U-Boot console is read into a buffer --- console_buffer[CONFIG_SYS_CBSIZE]. Currently the CONFIG_SYS_CBSIZE is set as 256. Command line parameter larger than it will not be recorded. On the other hand, max length of boot parameter of linux kernel is set to 1024, which means it can accept parameter size as large as 1024. So we need to align these 2 values. Enlarge CONFIG_SYS_CBSIZE to 1024 as well. Signed-off-by: Eric Sun <jian.sun@freescale.com>
Diffstat (limited to 'include/configs/mx6q_sabreauto.h')
-rw-r--r--include/configs/mx6q_sabreauto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/configs/mx6q_sabreauto.h b/include/configs/mx6q_sabreauto.h
index 0a5f291..7685218 100644
--- a/include/configs/mx6q_sabreauto.h
+++ b/include/configs/mx6q_sabreauto.h
@@ -140,7 +140,7 @@
#define CONFIG_SYS_LONGHELP /* undef to save memory */
#define CONFIG_SYS_PROMPT "MX6Q SABREAUTO U-Boot > "
#define CONFIG_AUTO_COMPLETE
-#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
/* Print Buffer Size */
#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
#define CONFIG_SYS_MAXARGS 16 /* max number of command args */