ARM: atmel: boards: use default CONFIG_SYS_PBSIZE
PATCH 1/1 ARM: atmel: boards: use default CONFIG_SYS_PBSIZE
From: Bo Shen <[email protected]>
Entering the maximum number of characters defined by CONFIG_SYS_CBSIZE into the console and hitting enter afterwards, causes a hang in the system because CONFIG_SYS_PBSIZE is not capable of storing the extra characters of the error message:
"Unknown command '' - try 'help'".
Use the default CONFIG_SYS_PBSIZE definition from config_fallbacks.h to solve this problem.
---
include/configs/at91-sama5_common.h | 2 -- include/configs/at91sam9260ek.h | 1 - include/configs/at91sam9261ek.h | 1 - include/configs/at91sam9263ek.h | 1 - include/configs/at91sam9m10g45ek.h | 1 - include/configs/at91sam9n12ek.h | 2 -- include/configs/at91sam9rlek.h | 1 - include/configs/at91sam9x5ek.h | 2 -- 8 files changed, 11 deletions(-)
include/configs/at91-sama5_common.h +0 -2
@@ -105,8 +105,6 @@#define CONFIG_SYS_CBSIZE 256#define CONFIG_SYS_MAXARGS 16 -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ - sizeof(CONFIG_SYS_PROMPT) + 16)#define CONFIG_SYS_LONGHELP #define CONFIG_CMDLINE_EDITING #define CONFIG_AUTO_COMPLETE
include/configs/at91sam9260ek.h +0 -1
@@ -256,7 +256,6 @@#define CONFIG_SYS_CBSIZE 256#define CONFIG_SYS_MAXARGS 16 -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)#define CONFIG_SYS_LONGHELP 1#define CONFIG_CMDLINE_EDITING 1#define CONFIG_AUTO_COMPLETE
include/configs/at91sam9261ek.h +0 -1
@@ -203,7 +203,6 @@#define CONFIG_SYS_CBSIZE 256#define CONFIG_SYS_MAXARGS 16 -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)#define CONFIG_SYS_LONGHELP #define CONFIG_CMDLINE_EDITING #define CONFIG_AUTO_COMPLETE
include/configs/at91sam9263ek.h +0 -1
@@ -332,7 +332,6 @@#define CONFIG_SYS_CBSIZE 256#define CONFIG_SYS_MAXARGS 16 -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)#define CONFIG_SYS_LONGHELP 1#define CONFIG_CMDLINE_EDITING 1#define CONFIG_AUTO_COMPLETE
include/configs/at91sam9m10g45ek.h +0 -1
@@ -183,7 +183,6 @@#define CONFIG_SYS_CBSIZE 256#define CONFIG_SYS_MAXARGS 16 -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)#define CONFIG_SYS_LONGHELP #define CONFIG_CMDLINE_EDITING #define CONFIG_AUTO_COMPLETE
include/configs/at91sam9n12ek.h +0 -2
@@ -223,8 +223,6 @@#define CONFIG_SYS_CBSIZE 256#define CONFIG_SYS_MAXARGS 16 -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) \ - + 16)#define CONFIG_SYS_LONGHELP #define CONFIG_CMDLINE_EDITING #define CONFIG_AUTO_COMPLETE
include/configs/at91sam9rlek.h +0 -1
@@ -186,7 +186,6 @@#define CONFIG_SYS_CBSIZE 256#define CONFIG_SYS_MAXARGS 16 -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)#define CONFIG_SYS_LONGHELP 1#define CONFIG_CMDLINE_EDITING 1#define CONFIG_AUTO_COMPLETE
include/configs/at91sam9x5ek.h +0 -2
@@ -225,8 +225,6 @@#define CONFIG_SYS_CBSIZE 256#define CONFIG_SYS_MAXARGS 16 -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) \ - + 16)#define CONFIG_SYS_LONGHELP #define CONFIG_CMDLINE_EDITING #define CONFIG_AUTO_COMPLETE
Signature · 1 line
1.9.1
Dear Josh Wu,
Quoted 15 lines · Josh Wu
From: Bo Shen <[email protected]>
Entering the maximum number of characters defined by
CONFIG_SYS_CBSIZEinto the console and hitting enter afterwards, causes a hang in the system becauseCONFIG_SYS_PBSIZEis not capable of storing the extra characters of the error message:
"Unknown command '' - try 'help'".Use the default
CONFIG_SYS_PBSIZEdefinition fromconfig_fallbacks.hto solve this problem.Signed-off-by Bo Shen <[email protected]>Signed-off-by Josh Wu <[email protected]>---
Quoted 9 lines
include/configs/at91-sama5_common.h | 2 -- include/configs/at91sam9260ek.h | 1 - include/configs/at91sam9261ek.h | 1 - include/configs/at91sam9263ek.h | 1 - include/configs/at91sam9m10g45ek.h | 1 - include/configs/at91sam9n12ek.h | 2 -- include/configs/at91sam9rlek.h | 1 - include/configs/at91sam9x5ek.h | 2 -- 8 files changed, 11 deletions(-)
applied to u-boot-atmel/master, thanks!
Best regards,
Andreas Bie?mann