From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Guide to hush shell in u-boot
Date: Sun, 28 Jan 2018 21:27:15 +0100 [thread overview]
Message-ID: <20180128212715.050d590f@jawa> (raw)
In-Reply-To: <CAGdamPC_zgEmkmT9+HfJTXo13f17OtbB1ar7bHUGz7GzHh_Uiw@mail.gmail.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1254", Size: 2313 bytes --]
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>
next prev parent reply other threads:[~2018-01-28 20:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-27 22:52 [U-Boot] Guide to hush shell in u-boot Nathan Holder
2018-01-28 20:27 ` Lukasz Majewski [this message]
2018-01-28 21:59 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2018-01-24 17:02 Nathan Holder
2018-01-27 19:57 ` Wolfgang Denk
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=20180128212715.050d590f@jawa \
--to=lukma@denx.de \
--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