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

Tom Rini trini at ti.com
Mon Nov 10 22:26:52 CET 2014


On Wed, Oct 29, 2014 at 11:21:38PM +0100, 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 (core dumped)
> 
> Signed-off-by: Rabin Vincent <rabin at rab.in>
> Acked-by: Simon Glass <sjg at chromium.org)
> Tested-by: Simon Glass <sjg at chromium.org)

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141110/42776ac9/attachment.pgp>


More information about the U-Boot mailing list