* [U-Boot-Users] Conditional 'hush' script examples anyone?
@ 2003-09-11 6:08 Robin Gilks
2003-09-11 9:11 ` Wolfgang Denk
0 siblings, 1 reply; 15+ messages in thread
From: Robin Gilks @ 2003-09-11 6:08 UTC (permalink / raw)
To: u-boot
Greetings
I've RTFM'd and I've FAQ'd but I still can't find a single example of
the use of conditionals with the u-boot hush shell command line.
I assume its only usable with an autoscript or can environmental
variables hold complete conditional blocks. Most interested in this so
that I can make sensible decisions about what to do if an image CRC is
bad for example (or when to boot a different image after an upgrade).
Examples, examples, examples is what I'm looking for rather than a dry
explanation about hush (which I can get close to from any book that
documents bash!!)
Many thanks
--
Robin Gilks
Senior Design Engineer Phone: (+64)(3) 357 1569
Tait Electronics Fax : (+64)(3) 359 4632
PO Box 1645 Christchurch Email : robin.gilks at tait.co.nz
New Zealand
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-11 6:08 [U-Boot-Users] Conditional 'hush' script examples anyone? Robin Gilks
@ 2003-09-11 9:11 ` Wolfgang Denk
2003-09-12 1:50 ` Robin Gilks
0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Denk @ 2003-09-11 9:11 UTC (permalink / raw)
To: u-boot
Dear Robin,
in message <3F601160.5050803@tait.co.nz> you wrote:
>
> I've RTFM'd and I've FAQ'd but I still can't find a single example of
> the use of conditionals with the u-boot hush shell command line.
man sh :-)
> I assume its only usable with an autoscript or can environmental
What makes you think so?
> variables hold complete conditional blocks. Most interested in this so
> that I can make sensible decisions about what to do if an image CRC is
> bad for example (or when to boot a different image after an upgrade).
You can use conditionals everywhere: in interactive input, in
environment variables, in scripts ....
> Examples, examples, examples is what I'm looking for rather than a dry
> explanation about hush (which I can get close to from any book that
> documents bash!!)
See http://www.denx.de/twiki/bin/view/DULG/CommandLineParsing#Section_12.1.7.3.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Was hei?t Windows auf Indianisch? - "Wei?er Mann, der auf Sanduhr
wartet!"
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-11 9:11 ` Wolfgang Denk
@ 2003-09-12 1:50 ` Robin Gilks
2003-09-12 9:06 ` Wolfgang Denk
0 siblings, 1 reply; 15+ messages in thread
From: Robin Gilks @ 2003-09-12 1:50 UTC (permalink / raw)
To: u-boot
Many thanks for that Wolfgang - most appreciated.
The only thing I find a bit odd is that on my system (0.4.0) setenv is
set for 6 significant characters in the command table but presumably the
example you give was with a system using only 3 characters significant
(unless the 'set' command is not the same as the 'setenv' command).
I'll be parsing the command tables to remove all the commands that
return "Sorry, but the xxxxx command has not been implemented" such as
'spiinfo' since they should either work or be conditionally compiled out
if the user hasn't requested them. That being the case I'll send in a
patch against 0.4.0 when I've tidied up these anomalies
Wolfgang Denk wrote:
>
> See http://www.denx.de/twiki/bin/view/DULG/CommandLineParsing#Section_12.1.7.3.
>
--
Robin Gilks
Senior Design Engineer Phone: (+64)(3) 357 1569
Tait Electronics Fax : (+64)(3) 359 4632
PO Box 1645 Christchurch Email : robin.gilks at tait.co.nz
New Zealand
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-12 1:50 ` Robin Gilks
@ 2003-09-12 9:06 ` Wolfgang Denk
2003-09-14 21:41 ` Robin Gilks
0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Denk @ 2003-09-12 9:06 UTC (permalink / raw)
To: u-boot
Dear Robin,
in message <3F612652.1060909@tait.co.nz> you wrote:
>
> The only thing I find a bit odd is that on my system (0.4.0) setenv is
> set for 6 significant characters in the command table but presumably the
> example you give was with a system using only 3 characters significant
> (unless the 'set' command is not the same as the 'setenv' command).
It's the same; the whole command lookup code was completely rewritten
in U-Boot 0.4.1 - the behavious changes slightly, and is now more
consistent.
> I'll be parsing the command tables to remove all the commands that
> return "Sorry, but the xxxxx command has not been implemented" such as
> 'spiinfo' since they should either work or be conditionally compiled out
> if the user hasn't requested them. That being the case I'll send in a
> patch against 0.4.0 when I've tidied up these anomalies
Thanks in advance, but please send a patch against a RECENT version
of U-Boot. 0.4.0 is very old. A patch against 0.4.0 may be difficult
to merge.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
The White Rabbit put on his spectacles. "Where shall I begin, please
your Majesty ?" he asked.
"Begin at the beginning,", the King said, very gravely, "and go on
till you come to the end: then stop." -- Lewis Carroll
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-12 9:06 ` Wolfgang Denk
@ 2003-09-14 21:41 ` Robin Gilks
2003-09-14 21:50 ` Robert Schwebel
2003-09-14 21:59 ` [U-Boot-Users] Conditional 'hush' script examples anyone? Wolfgang Denk
0 siblings, 2 replies; 15+ messages in thread
From: Robin Gilks @ 2003-09-14 21:41 UTC (permalink / raw)
To: u-boot
Wolfgang Denk wrote:
> Thanks in advance, but please send a patch against a RECENT version
> of U-Boot. 0.4.0 is very old. A patch against 0.4.0 may be difficult
> to merge.
>
According to sourceforge, 0.4.0 is the latest stable release and less
than 3 months old. Not ancient (compared to say the kernel update cycle)
but the only thing that many people would consider using rather than an
unstable* version from CVS - assuming of course they can get anything
from sf CVS!!
Perhaps its time for another stable release that is easier to
patch/merge against if nothing else :-))
* a matter of definition - but if its not stable it _must_ necessarily
be unstable :-((
--
Robin Gilks
Senior Design Engineer Phone: (+64)(3) 357 1569
Tait Electronics Fax : (+64)(3) 359 4632
PO Box 1645 Christchurch Email : robin.gilks at tait.co.nz
New Zealand
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-14 21:41 ` Robin Gilks
@ 2003-09-14 21:50 ` Robert Schwebel
2003-09-14 22:09 ` Wolfgang Denk
2003-09-14 21:59 ` [U-Boot-Users] Conditional 'hush' script examples anyone? Wolfgang Denk
1 sibling, 1 reply; 15+ messages in thread
From: Robert Schwebel @ 2003-09-14 21:50 UTC (permalink / raw)
To: u-boot
On Mon, Sep 15, 2003 at 09:41:01AM +1200, Robin Gilks wrote:
> According to sourceforge, 0.4.0 is the latest stable release and less
> than 3 months old.
Look at ftp.denx.de, there are newer versions available.
Wolfgang, could you make an announcement from time to time on this list
when you make a release? I noticed it almost by accident recently.
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hornemannstra?e 12, 31137 Hildesheim, Germany
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-14 21:41 ` Robin Gilks
2003-09-14 21:50 ` Robert Schwebel
@ 2003-09-14 21:59 ` Wolfgang Denk
1 sibling, 0 replies; 15+ messages in thread
From: Wolfgang Denk @ 2003-09-14 21:59 UTC (permalink / raw)
To: u-boot
Dear Robin,
in message <3F64E06D.6000500@tait.co.nz> you wrote:
>
> According to sourceforge, 0.4.0 is the latest stable release and less
> than 3 months old. Not ancient (compared to say the kernel update cycle)
Development of U-Boot happens pretty fast. _Many_ people contribute,
and DENX is running quite a lot of projects, too.
> but the only thing that many people would consider using rather than an
> unstable* version from CVS - assuming of course they can get anything
There has never been a forma declaration of whatis stable and what
not. Normally you can consider each version tagges with a
U-Boot-X_Y_Z label as "stable".
> from sf CVS!!
I am aware of this problem. There is little I can do about it. But I
regularly put tarballs of the "minor releases" on our FTP server; see
ftp://ftp.denx.de/pub/u-boot/
> Perhaps its time for another stable release that is easier to
> patch/merge against if nothing else :-))
Well, we're preparing for something, but it will take a little more
time.
> * a matter of definition - but if its not stable it _must_ necessarily
> be unstable :-((
Has there ever been any "stable" software? Isn't "stable software" an
oxymoron per se?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Real programmers don't comment their code. It was hard to write, it
should be hard to understand.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-14 21:50 ` Robert Schwebel
@ 2003-09-14 22:09 ` Wolfgang Denk
2003-09-15 13:46 ` Mark Brown
2003-09-15 20:15 ` [U-Boot-Users] u-boot - Booting Linux from JFFS2 in Flash Rupesh S
0 siblings, 2 replies; 15+ messages in thread
From: Wolfgang Denk @ 2003-09-14 22:09 UTC (permalink / raw)
To: u-boot
Dear Robert,
in message <20030914215029.GB17921@pengutronix.de> you wrote:
>
> Wolfgang, could you make an announcement from time to time on this list
> when you make a release? I noticed it almost by accident recently.
Releases, i. e. increments of X or Y in the U-Boot-X_Y_Z CVS tags,
have always been announced here, and will be. The "minor" releases on
our FTP server are merely snapshots to help work around the access
and delay problems to SF's CVS server.
I think there is two groups of people on this mailing list: users and
developers. For users, the "major releases" are perfectly OK to use.
Developers usually can use the top-of-tree version from CVS. Except
for a very few cases I always run a certain set of tests before ever
checking in code to the public CVS server. This is good enough for
99% of all developers. If you feel unsafe with that, you can use a
tagged version; if you need even more reliability you can use one of
the "minor releases" tagged as U-Boot-X_Y_Z (with snapshots on our
FTP server).
If you're interested in the development, watch the CVS. I don't
intend to announce each and every check-in. If you like, you can, for
example, "cvs watch add CHANGELOG".
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
He had been eight years upon a project for extracting sunbeams out of
cucumbers, which were to be put in vials hermetically sealed, and let
out to warm the air in raw inclement summers. - Jonathan Swift
_Gulliver's Travels_ ``A Voyage to Laputa, etc.'' ch. 5
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-14 22:09 ` Wolfgang Denk
@ 2003-09-15 13:46 ` Mark Brown
2003-09-15 14:04 ` Wolfgang Denk
2003-09-15 20:15 ` [U-Boot-Users] u-boot - Booting Linux from JFFS2 in Flash Rupesh S
1 sibling, 1 reply; 15+ messages in thread
From: Mark Brown @ 2003-09-15 13:46 UTC (permalink / raw)
To: u-boot
On Mon, Sep 15, 2003 at 12:09:15AM +0200, Wolfgang Denk wrote:
> If you're interested in the development, watch the CVS. I don't
> intend to announce each and every check-in. If you like, you can, for
> example, "cvs watch add CHANGELOG".
Perhaps a CVS commits mailing list that automatically got the changelogs
(and possibly diffs) committed to CVS would be of use?
--
"You grabbed my hand and we fell into it, like a daydream - or a fever."
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-15 13:46 ` Mark Brown
@ 2003-09-15 14:04 ` Wolfgang Denk
2003-09-15 15:17 ` Mark Brown
0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Denk @ 2003-09-15 14:04 UTC (permalink / raw)
To: u-boot
In message <20030915134610.GA27694@projectcolo.org.uk> you wrote:
>
> Perhaps a CVS commits mailing list that automatically got the changelogs
> (and possibly diffs) committed to CVS would be of use?
Sounds like a LOT of overkill to me.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
You have the capacity to learn from mistakes. You'll learn a lot
today.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-15 14:04 ` Wolfgang Denk
@ 2003-09-15 15:17 ` Mark Brown
2003-09-16 6:45 ` Robert Schwebel
0 siblings, 1 reply; 15+ messages in thread
From: Mark Brown @ 2003-09-15 15:17 UTC (permalink / raw)
To: u-boot
On Mon, Sep 15, 2003 at 04:04:33PM +0200, Wolfgang Denk wrote:
> In message <20030915134610.GA27694@projectcolo.org.uk> you wrote:
> > Perhaps a CVS commits mailing list that automatically got the changelogs
> > (and possibly diffs) committed to CVS would be of use?
> Sounds like a LOT of overkill to me.
It's something that a lot of projects provide and it would seem to
provide a way of helping with this. If people aren't interested they
can always just not subscribe to the list.
--
"You grabbed my hand and we fell into it, like a daydream - or a fever."
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] u-boot - Booting Linux from JFFS2 in Flash
2003-09-14 22:09 ` Wolfgang Denk
2003-09-15 13:46 ` Mark Brown
@ 2003-09-15 20:15 ` Rupesh S
1 sibling, 0 replies; 15+ messages in thread
From: Rupesh S @ 2003-09-15 20:15 UTC (permalink / raw)
To: u-boot
Hi ,
How to configure u-boot to load my Linux kernel image (/boot/image.bin) from
*JFFS2 FLASH partition* ?
- -
rupesh
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-15 15:17 ` Mark Brown
@ 2003-09-16 6:45 ` Robert Schwebel
2003-09-16 7:14 ` Wolfgang Denk
0 siblings, 1 reply; 15+ messages in thread
From: Robert Schwebel @ 2003-09-16 6:45 UTC (permalink / raw)
To: u-boot
On Mon, Sep 15, 2003 at 04:17:32PM +0100, Mark Brown wrote:
> It's something that a lot of projects provide and it would seem to
> provide a way of helping with this. If people aren't interested they
> can always just not subscribe to the list.
Ack. Would be much easier for board maintainers to see if things have
changed for them.
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hornemannstra?e 12, 31137 Hildesheim, Germany
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-16 6:45 ` Robert Schwebel
@ 2003-09-16 7:14 ` Wolfgang Denk
2003-09-16 7:22 ` Robert Schwebel
0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Denk @ 2003-09-16 7:14 UTC (permalink / raw)
To: u-boot
Robert,
in message <20030916064503.GI8367@pengutronix.de> you wrote:
>
> Ack. Would be much easier for board maintainers to see if things have
> changed for them.
Why do you use "would"? I think you already subscribed to the list??
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Q: Do you know what the death rate around here is?
A: One per person.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] Conditional 'hush' script examples anyone?
2003-09-16 7:14 ` Wolfgang Denk
@ 2003-09-16 7:22 ` Robert Schwebel
0 siblings, 0 replies; 15+ messages in thread
From: Robert Schwebel @ 2003-09-16 7:22 UTC (permalink / raw)
To: u-boot
On Tue, Sep 16, 2003 at 09:14:46AM +0200, Wolfgang Denk wrote:
> Why do you use "would"? I think you already subscribed to the list??
FIFO reordering error: I replied before I found your announcement mail
further down ;)
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hornemannstra?e 12, 31137 Hildesheim, Germany
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2003-09-16 7:22 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-11 6:08 [U-Boot-Users] Conditional 'hush' script examples anyone? Robin Gilks
2003-09-11 9:11 ` Wolfgang Denk
2003-09-12 1:50 ` Robin Gilks
2003-09-12 9:06 ` Wolfgang Denk
2003-09-14 21:41 ` Robin Gilks
2003-09-14 21:50 ` Robert Schwebel
2003-09-14 22:09 ` Wolfgang Denk
2003-09-15 13:46 ` Mark Brown
2003-09-15 14:04 ` Wolfgang Denk
2003-09-15 15:17 ` Mark Brown
2003-09-16 6:45 ` Robert Schwebel
2003-09-16 7:14 ` Wolfgang Denk
2003-09-16 7:22 ` Robert Schwebel
2003-09-15 20:15 ` [U-Boot-Users] u-boot - Booting Linux from JFFS2 in Flash Rupesh S
2003-09-14 21:59 ` [U-Boot-Users] Conditional 'hush' script examples anyone? Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox