Commit 31cc2c85dc38429e2558dbf1a42e18480e8e9ba6

Authored by Fabio Estevam
Committed by Stefano Babic
1 parent daa12e3f22

config_fallbacks: Add a default entry for CONFIG_SYS_PBSIZE

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 characters of the error message:
"Unknown command '' - try 'help'".

Provide a default size for CONFIG_SYS_PBSIZE so that it can store the error
message and allows the error message to be printed correctly with no hang.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

include/config_fallbacks.h
... ... @@ -79,6 +79,10 @@
79 79 #define CONFIG_SYS_PROMPT "=> "
80 80 #endif
81 81  
  82 +#ifndef CONFIG_SYS_PBSIZE
  83 +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + 128)
  84 +#endif
  85 +
82 86 #ifndef CONFIG_FIT_SIGNATURE
83 87 #define CONFIG_IMAGE_FORMAT_LEGACY
84 88 #endif