[U-Boot] Guide to hush shell in u-boot

Lukasz Majewski lukma at denx.de
Sun Jan 28 20:27:15 UTC 2018


Hi Nathan,

> Hi Wolfgang,
> 
> How do people usually learn u-boot command line, scripting, and hush
> shell without any kind of syntax guide?

It is very similar to standard dash, without many "advanced features".

In short - you can count that you will have return value of executed
command, which can be checked.

Also some looping is supported (like iterating through all emmc
devices in boot scripts).

The best approaches:

1. grep the ./include/configs directory to see already working scripts

2. You may want to look into ./boards/samsung/common/bootscript/*.cmd
to see how to create script file (which may be read from e.g. fat
partition)

3. Look into source code - for example the ./cmd/test.c


Best regards,
Ɓukasz Majewski

> 
> -Nate
> 
> Dear Nathan,
> 
> 
> 
> In message <
> DM2PR0801MB074718634A75D114D3D5CD52B3E20 at DM2PR0801MB0747.namprd08.prod.outlook.com>  
> you wrote:
> 
> > This manual http://www.denx.de/wiki/DULG/Manual  
> 
> > is out of date and missing a lot of info.  
> 
> > I have been using it thinking it was the official manual.  
> 
> 
> 
> It is. And it is organized  in the form of a wiki, where each and
> every U-Boot user has the opportnity to contribute, to fix bugs and
> to add missing parts.
> 
> 
> 
> > But then I learned many commands are not listed there.  
> 
> 
> 
> Well, maybe you could help and add what you find is missing?
> 
> 
> 
> > Please take down the manual so that people don't mistakenly use it  
> thinking it is correct.
> 
> 
> 
> This is IMO a stupid request.  Incomplete documentation is still
> better than no documentation at all.  Instead of complaining it would
> be more helpful if you supporteed the community by adding to and
> improving the documentation.
> 
> 
> 
> Thanks.
> 
> 
> 
> Wolfgang Denk
> 
> 
> 




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180128/8ced6f5a/attachment.sig>


More information about the U-Boot mailing list