From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Scott Date: Fri, 24 Oct 2014 11:45:31 -0700 Subject: [U-Boot] [PATCH] ARM: tegra: increase buffer size and sys args num Message-ID: <1414176331-16951-1-git-send-email-hashcode0f@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Bryan Wu Tegra kernel booting needs a long bootargs command line. Default value of CONFIG_SYS_CBSIZE is too small to printf out the long command line and will cause system panic. Default value of CONFIG_SYS_MAXARGS is too small to setenv bootargs as the long command line, then kernel won't boot without the complete bootargs. Increase this 2 config options solve this problem. Signed-off-by: Bryan Wu Signed-off-by: Michael Scott Cc: Tom Warren Cc: Stephen Warren Cc: Bryan Wu --- include/configs/tegra-common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h index 5d2b12a..a6d7bf1 100644 --- a/include/configs/tegra-common.h +++ b/include/configs/tegra-common.h @@ -107,11 +107,11 @@ * Increasing the size of the IO buffer as default nfsargs size is more * than 256 and so it is not possible to edit it */ -#define CONFIG_SYS_CBSIZE (256 * 2) /* Console I/O Buffer Size */ +#define CONFIG_SYS_CBSIZE (1024 * 2) /* 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 */ +#define CONFIG_SYS_MAXARGS 64 /* max number of command args */ /* Boot Argument Buffer Size */ #define CONFIG_SYS_BARGSIZE (CONFIG_SYS_CBSIZE) -- 1.9.1