Skip to contentSkip to conversation

ARM: atmel: boards: use default CONFIG_SYS_PBSIZE

PATCH In review Josh Wu 2 participants 2 messages Sep 2, 2015 – Sep 11, 2015 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore

Josh Wu

author
#0 lore raw

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
index de5f12e..3d6b0ae 100644
@@ -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
index 459b8f9..619f5da 100644
@@ -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
index 9c595f2..4d260e9 100644
@@ -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
index 3eb0154..2f251db 100644
@@ -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
index 2f6a3a5..70eaf1d 100644
@@ -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
index acdd63e..44f821b 100644
@@ -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
index f7a174e..cba927a 100644
@@ -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
index fbb584d..2068e0d 100644
@@ -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
#1 lore raw

Dear Josh Wu,

Quoted 15 lines · Josh Wu

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.

---

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