Re: [U-Boot] [PATCH 2/6] sandbox: init cli for -c

2014-11-01 Thread Simon Glass
On 29 October 2014 16:21, Rabin Vincent wrote: > > sandbox crashes if a variable is set in the -c command, because > hush's top_vars is not allocated. Call cli_init() from sandbox > to ensure this is done before we execute the -c command. > > $ ./u-boot -c 'a=1' > ... > Segmentation fault (cor

[U-Boot] [PATCH 2/6] sandbox: init cli for -c

2014-10-29 Thread Rabin Vincent
sandbox crashes if a variable is set in the -c command, because hush's top_vars is not allocated. Call cli_init() from sandbox to ensure this is done before we execute the -c command. $ ./u-boot -c 'a=1' ... Segmentation fault (core dumped) Signed-off-by: Rabin Vincent --- arch/sandbox/cpu/