public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ralph Siemsen <ralph.siemsen@linaro.org>
To: u-boot@lists.denx.de
Subject: command documentation
Date: Wed, 9 Sep 2020 14:53:08 -0400	[thread overview]
Message-ID: <20200909185308.GA10886@maple.netwinder.org> (raw)
In-Reply-To: <CAEf3A6QNjSMJOad6THzF3wEdVVjFaNDZdZXCdoEFdA7exrFg5A@mail.gmail.com>

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

  reply	other threads:[~2020-09-09 18:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-09 17:03 command documentation Jasper van Santen
2020-09-09 18:53 ` Ralph Siemsen [this message]
2020-09-10  9:19   ` Jasper van Santen
2020-09-10 12:36     ` Ralph Siemsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200909185308.GA10886@maple.netwinder.org \
    --to=ralph.siemsen@linaro.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox