command documentation

Ralph Siemsen ralph.siemsen at linaro.org
Wed Sep 9 20:53:08 CEST 2020


Hi Jasper,

On Wed, Sep 09, 2020 at 07:03:58PM +0200, Jasper van Santen wrote:
>
>I am sorry to ask such a basic question, but i really can't find any
>documentation on the commands possible in scripting.
>Documentation of Hush and its commands i can't find.

The hush shell gives you the ability to do loops/conditionals. It uses 
the same syntax as most Linux/unix shells, such as ash/bash/dash. You 
will find many tutorials/documents online for these. Some examples:
https://www.xilinx.com/video/soc/u-boot-hush-shell-scripting.html
https://www.man7.org/linux/man-pages/man1/dash.1.html
Keep in mind that some more fancy features may not be supported in the
u-boot hush shell.

As far as official documentation, I am only aware of brief mention 
in https://github.com/u-boot/u-boot/blob/master/README#L3530

The other aspect is the commands which can be run. This depends on how 
you configure your u-boot, eg. the CONFIG_CMD_* parameters. You can get 
a brief overview of commands by typing "help" at the u-boot prompt. And 
somewhat more help by typing "help <cmdname>".

Hope this helps,
Ralph


More information about the U-Boot mailing list