public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Guide to hush shell in u-boot
@ 2018-01-24 17:02 Nathan Holder
  2018-01-27 19:57 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Nathan Holder @ 2018-01-24 17:02 UTC (permalink / raw)
  To: u-boot

Anyone know where a guide to hush shell in u-boot would be?
-Nate

This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. If you have received this email in error, please immediately notify the Network Administrator by telephone at 336.615.8555. You will be reimbursed for reasonable costs incurred in notifying us.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] Guide to hush shell in u-boot
  2018-01-24 17:02 Nathan Holder
@ 2018-01-27 19:57 ` Wolfgang Denk
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2018-01-27 19:57 UTC (permalink / raw)
  To: u-boot

Dear Nathan,

In message <DM2PR0801MB074714EDE8C3FE14EC26A019B3E20@DM2PR0801MB0747.namprd08.prod.outlook.com> you wrote:
>
> Anyone know where a guide to hush shell in u-boot would be?

There is none.  The hush shell was copied from the busybox project
(and I have to admit that I don't know where they got it from).
Bysybox does not document it's use either...

> This email and any files transmitted with it are confidential and
> are intended solely for the use of the individual or entity to
> whom they are addressed...

This is a silly note when posting to a public mailing list,  Please
switch this off.  If this is not possible from the account you are
using, then please consider using a free account without such
nonsense footers when posting to public lists.

Thanks.

Best regards,

Wolfgang Denk

-- 
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
Applying computer technology is simply finding the  right  wrench  to
pound in the correct screw.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] Guide to hush shell in u-boot
@ 2018-01-27 22:52 Nathan Holder
  2018-01-28 20:27 ` Lukasz Majewski
  2018-01-28 21:59 ` Wolfgang Denk
  0 siblings, 2 replies; 5+ messages in thread
From: Nathan Holder @ 2018-01-27 22:52 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,

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

-Nate

Dear Nathan,



In message <
DM2PR0801MB074718634A75D114D3D5CD52B3E20@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



-- 

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 If
you can't explain it to a six year old, you  don't  understand  it

yourself.                                           - Albert Einstein

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] Guide to hush shell in u-boot
  2018-01-27 22:52 [U-Boot] Guide to hush shell in u-boot Nathan Holder
@ 2018-01-28 20:27 ` Lukasz Majewski
  2018-01-28 21:59 ` Wolfgang Denk
  1 sibling, 0 replies; 5+ messages in thread
From: Lukasz Majewski @ 2018-01-28 20:27 UTC (permalink / raw)
  To: u-boot

[-- 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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] Guide to hush shell in u-boot
  2018-01-27 22:52 [U-Boot] Guide to hush shell in u-boot Nathan Holder
  2018-01-28 20:27 ` Lukasz Majewski
@ 2018-01-28 21:59 ` Wolfgang Denk
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2018-01-28 21:59 UTC (permalink / raw)
  To: u-boot

Dear Nathan,

In message <CAGdamPC_zgEmkmT9+HfJTXo13f17OtbB1ar7bHUGz7GzHh_Uiw@mail.gmail.com> you wrote:
> 
> How do people usually learn u-boot command line, scripting, and hush shell
> without any kind of syntax guide?

Well, it's mostly just a POSIX compatible shell with a number of
restrictions and warts. Usually one starts writing scripts like you
would do in any other POSIX shell.  You will quickly see what is not
supported.

Best regards,

Wolfgang Denk

-- 
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
It is common sense to take a method and try it. If it fails, admit it
frankly and try another. But above all, try something.
                                              - Franklin D. Roosevelt

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-28 21:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-27 22:52 [U-Boot] Guide to hush shell in u-boot Nathan Holder
2018-01-28 20:27 ` Lukasz Majewski
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox