From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ralph Siemsen Date: Wed, 9 Sep 2020 14:53:08 -0400 Subject: command documentation In-Reply-To: References: Message-ID: <20200909185308.GA10886@maple.netwinder.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 ". Hope this helps, Ralph