storing hush scripts
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
Quoted 3 lines
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
Quoted 3 lines · 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
Signature · 5 lines
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.
Quoted 5 lines
Quoted 3 lines
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
Quoted 10 lines · On Wed, 15 Nov 2006 12:07:27 +0530 "Ajay Jain" <[email protected]> wrote:
Quoted 5 lines
Quoted 3 lines
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.
Quoted 4 lines · 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
...
Quoted 2 lines
guarantee either. You better know what you are doing here. Note:
overly (ab)use of the default environment is discouraged. Make sure to
^^^^^^^
Quoted 4 lines
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
Signature · 3 lines
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!
Hello!
Quoted 2 lines · cam at sysgo.com
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
Signature · 5 lines
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/
Many thanks to Ajay Jain and Andreas Schweigstill for the very quick anwser. Best regards,
Carlos Mitidieri
Quoted 5 lines
Hello!
Quoted 2 lines · cam at sysgo.com
Is there an alternative to store hush scripts, other than in an environment variable? Could you please give details on how it works?
Quoted 4 lines · cam at sysgo.com
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
Quoted 3 lines · In message <[email protected]> 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
Signature · 6 lines
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"