[U-Boot] [PATCH V3 1/3] imx-common/cmd_resetmode.c: add imx resetmode command
Stefano Babic
sbabic at denx.de
Sat Aug 11 19:44:02 CEST 2012
On 10/08/2012 03:09, Eric Nelson wrote:
>> How difficult would it be for someone to implement a general "alias"
>> command ?
>> ie. 'alias bootto "resetmode $1 && reset"'
>>
>
> It's usually a customer that asks the "How hard would it be?" question,
> but you can almost get there like this:
>
> U-Boot> set mynewcommand "echo Hello"
> U-Boot> $mynewcommand
> Hello
> U-Boot> $mynewcommand World
> Hello World
This does not work: you should issue "run $mynewcommand World"
And this let me slowly remember at:
http://www.denx.de/wiki/U-Boot/TaskHandleVarsLikeCommands
I completely forgotten this issue, and I have never update the status of
my patch. Is ther estill some interest on this or have I missed
something and now is the behavior in shell as in your example ?
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the U-Boot
mailing list