From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-boot] shell script syntax
Date: Mon, 22 Jul 2013 13:29:41 +0200 [thread overview]
Message-ID: <20130722132941.1d0c0f95@lilith> (raw)
In-Reply-To: <FE7ADED5C2218B4786C09CD97DC4C49F99D8B5@exchbj02.viatech.com.bj>
Hi TigerLiu at viatech.com.cn,
On Mon, 22 Jul 2013 19:06:33 +0800, <TigerLiu@viatech.com.cn> wrote:
> Hi, Albert:
> >See the Denx U-Boot documentation, more precisely:
> >http://www.denx.de/wiki/view/DULG/CommandLineParsing#Section_14.2.17.
> From this web page, it seems hush-shell support "for" iteration.
> So, i wrote a simple script as below:
> for(i=1;i<10;i++)
> do
> echo "lion-0722"
> done
>
> Then, i used mkimage tool to produce a script.
> Then, i load it to dram, and run it with autoscr cmd.
> But failed, the log message is:
> LION # fatload mmc 0:1 0 scriptcmd0722
> reading scriptcmd0722
> 120 bytes read
> LION # autoscr 0
> ## Executing script at 00000000
> Unknown command 'for(i=1' - try 'help'
> Unknown command 'i<10' - try 'help'
> Unknown command 'i++)' - try 'help'
> syntax error
> syntax error
> ... ...
Did you try the commands live in your U-Boot console?
Did you make sure hush shell is enabled in your U-boot?
> Best wishes,
Amicalement,
--
Albert.
next prev parent reply other threads:[~2013-07-22 11:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-22 9:46 [U-Boot] [U-boot] shell script syntax TigerLiu at viatech.com.cn
2013-07-22 10:24 ` Albert ARIBAUD
2013-07-22 11:06 ` TigerLiu at viatech.com.cn
2013-07-22 11:29 ` Albert ARIBAUD [this message]
2013-07-22 11:44 ` TigerLiu at viatech.com.cn
2013-07-22 12:05 ` Albert ARIBAUD
2013-07-22 13:10 ` James Chargin
2013-07-25 5:16 ` TigerLiu at viatech.com.cn
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=20130722132941.1d0c0f95@lilith \
--to=albert.u.boot@aribaud.net \
--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