* [U-Boot-Users] storing hush scripts
@ 2006-11-14 11:27 cam at sysgo.com
2006-11-14 12:00 ` Ajay Jain
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: cam at sysgo.com @ 2006-11-14 11:27 UTC (permalink / raw)
To: u-boot
Hello,
Is there an alternative to store hush scripts, other than in an environment
variable? Could you please give details on how it works?
regards,
Carlos Mitidieri
^ permalink raw reply [flat|nested] 10+ messages in thread* [U-Boot-Users] storing hush scripts
2006-11-14 11:27 [U-Boot-Users] storing hush scripts cam at sysgo.com
@ 2006-11-14 12:00 ` Ajay Jain
2006-11-14 21:22 ` Wolfgang Denk
2006-11-14 12:01 ` Andreas Schweigstill
` (2 subsequent siblings)
3 siblings, 1 reply; 10+ messages in thread
From: Ajay Jain @ 2006-11-14 12:00 UTC (permalink / raw)
To: u-boot
> Is there an alternative to store hush scripts, other than in
> an environment variable? Could you please give details on how it
works?
Infact, use (abuse) of environment variables to store the scripts is
strongly discouraged. Yes, you can download the script at run time using
UART/TFTP. The script needs a valid header to work, for details see the
'mkimage' utility present in the 'tools' directory. You will have to add
header to the script using this utility and then download it. Also,
refer to the details of 'autoscr' command.
--
Ajay
^ permalink raw reply [flat|nested] 10+ messages in thread* [U-Boot-Users] storing hush scripts
2006-11-14 12:00 ` Ajay Jain
@ 2006-11-14 21:22 ` Wolfgang Denk
2006-11-15 6:37 ` Ajay Jain
0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Denk @ 2006-11-14 21:22 UTC (permalink / raw)
To: u-boot
In message <040401c707e4$90921860$561fa8c0@pcajain> you wrote:
>
> Infact, use (abuse) of environment variables to store the scripts is
> strongly discouraged.
Who says so? I strongly disagree.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The day-to-day travails of the IBM programmer are so amusing to most
of us who are fortunate enough never to have been one - like watching
Charlie Chaplin trying to cook a shoe.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] storing hush scripts
2006-11-14 21:22 ` Wolfgang Denk
@ 2006-11-15 6:37 ` Ajay Jain
2006-11-16 7:34 ` Andrew
2006-11-17 6:04 ` Wolfgang Denk
0 siblings, 2 replies; 10+ messages in thread
From: Ajay Jain @ 2006-11-15 6:37 UTC (permalink / raw)
To: u-boot
> > Infact, use (abuse) of environment variables to store the scripts is
> > strongly discouraged.
>
> Who says so? I strongly disagree.
Refering to the text below:
CONFIG_EXTRA_ENV_SETTINGS: Define this to contain any number of null
terminated strings (variable = value pairs) that will be part of the
default environment compiled into the boot image. Warning: This method
is based on knowledge about the internal format how the environment is
stored by the U-Boot code. This is NOT an official, exported interface!
Although it is unlikely that this format will change soon, there is no
guarantee either. You better know what you are doing here. Note:
overly (ab)use of the default environment is discouraged. Make sure to
check other ways to preset the environment like the autoscript function
or the boot command first.
Therfore, can we not interptet that use (abuse) is discouraged?
--
Ajay
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] storing hush scripts
2006-11-15 6:37 ` Ajay Jain
@ 2006-11-16 7:34 ` Andrew
2006-11-17 6:04 ` Wolfgang Denk
1 sibling, 0 replies; 10+ messages in thread
From: Andrew @ 2006-11-16 7:34 UTC (permalink / raw)
To: u-boot
On Wed, 15 Nov 2006 12:07:27 +0530
"Ajay Jain" <ajay050@gmail.com> wrote:
>
> > > Infact, use (abuse) of environment variables to store the scripts
> > > is strongly discouraged.
> >
> > Who says so? I strongly disagree.
>
> Refering to the text below:
>
> here. Note: overly (ab)use of the default environment is
> discouraged. Make sure to check other ways to preset the environment
The key word here is ....... ^default^.
The comment is for the specific C macro to setup the default env in the
compiled image. I used it to create some standard scripts for a
standard devel setup on many boards at once.
To create and run "saveenv" to store any scripts you want on a specific
board is just fine.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] storing hush scripts
2006-11-15 6:37 ` Ajay Jain
2006-11-16 7:34 ` Andrew
@ 2006-11-17 6:04 ` Wolfgang Denk
1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Denk @ 2006-11-17 6:04 UTC (permalink / raw)
To: u-boot
In message <04fe01c70880$88987f40$561fa8c0@pcajain> you wrote:
>
> Refering to the text below:
>
> CONFIG_EXTRA_ENV_SETTINGS: Define this to contain any number of null
...
> guarantee either. You better know what you are doing here. Note:
> overly (ab)use of the default environment is discouraged. Make sure to
^^^^^^^
> check other ways to preset the environment like the autoscript function
> or the boot command first.
>
> Therfore, can we not interptet that use (abuse) is discouraged?
The text only warns not to overload trhe DEFAULT environment.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Boykottiert Microsoft - Kauft Eure Fenster bei OBI!
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] storing hush scripts
2006-11-14 11:27 [U-Boot-Users] storing hush scripts cam at sysgo.com
2006-11-14 12:00 ` Ajay Jain
@ 2006-11-14 12:01 ` Andreas Schweigstill
2006-11-14 13:21 ` cam at sysgo.com
2006-11-14 17:17 ` Tolunay Orkun
2006-11-14 21:22 ` Wolfgang Denk
3 siblings, 1 reply; 10+ messages in thread
From: Andreas Schweigstill @ 2006-11-14 12:01 UTC (permalink / raw)
To: u-boot
Hello!
cam at sysgo.com schrieb:
> Is there an alternative to store hush scripts, other than in an environment
> variable? Could you please give details on how it works?
mkimage (on development host) and autoscr (on U-Boot target) are your
friendd.
With best regards
Andreas Schweigstill
--
Dipl.-Phys. Andreas Schweigstill
Schweigstill IT | Embedded Systems
Schauenburgerstra?e 116, D-24118 Kiel, Germany
Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436
Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] storing hush scripts
2006-11-14 11:27 [U-Boot-Users] storing hush scripts cam at sysgo.com
2006-11-14 12:00 ` Ajay Jain
2006-11-14 12:01 ` Andreas Schweigstill
@ 2006-11-14 17:17 ` Tolunay Orkun
2006-11-14 21:22 ` Wolfgang Denk
3 siblings, 0 replies; 10+ messages in thread
From: Tolunay Orkun @ 2006-11-14 17:17 UTC (permalink / raw)
To: u-boot
cam at sysgo.com wrote:
> Hello,
>
> Is there an alternative to store hush scripts, other than in an environment
> variable? Could you please give details on how it works?
Take a look at autoscr command. You can execute scripts stored in flash
in U-Image format.
Best regards,
Tolunay
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] storing hush scripts
2006-11-14 11:27 [U-Boot-Users] storing hush scripts cam at sysgo.com
` (2 preceding siblings ...)
2006-11-14 17:17 ` Tolunay Orkun
@ 2006-11-14 21:22 ` Wolfgang Denk
3 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Denk @ 2006-11-14 21:22 UTC (permalink / raw)
To: u-boot
In message <1163503648.4559a820a36b6@www.sysgo.com> you wrote:
>
> Is there an alternative to store hush scripts, other than in an environment
> variable? Could you please give details on how it works?
Use a script image. Please RTFM.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
All repairs tend to destroy the structure, to increase the entropy
and disorder of the system. Less and less effort is spent on fixing
original design flaws; more and more is spent on fixing flaws intro-
duced by earlier fixes. - Fred Brooks, "The Mythical Man Month"
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-11-17 6:04 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-14 11:27 [U-Boot-Users] storing hush scripts cam at sysgo.com
2006-11-14 12:00 ` Ajay Jain
2006-11-14 21:22 ` Wolfgang Denk
2006-11-15 6:37 ` Ajay Jain
2006-11-16 7:34 ` Andrew
2006-11-17 6:04 ` Wolfgang Denk
2006-11-14 12:01 ` Andreas Schweigstill
2006-11-14 13:21 ` cam at sysgo.com
2006-11-14 17:17 ` Tolunay Orkun
2006-11-14 21:22 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox