* [ECOS] Setup default script for RedBoot
@ 2011-01-19 7:22 Elad Yosef
2011-01-19 7:27 ` [ECOS] " Elad Yosef
0 siblings, 1 reply; 3+ messages in thread
From: Elad Yosef @ 2011-01-19 7:22 UTC (permalink / raw)
To: ecos-discuss
Hi all,
I'm trying to setup default script for my RedBoot.
Simple script: load() and go()
Where do I specify my script file?
Which language is it?
Does it requires CYGSEN_REDBOOT_FLASH_CONFIG ?
If I'm not using CYGSEN_REDBOOT_FLASH_CONFIG where does the script is
saved ? (in which section text/bss/rodata)
Thanks
Elad
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ECOS] Re: Setup default script for RedBoot
2011-01-19 7:22 [ECOS] Setup default script for RedBoot Elad Yosef
@ 2011-01-19 7:27 ` Elad Yosef
2011-01-19 9:22 ` Sergei Gavrikov
0 siblings, 1 reply; 3+ messages in thread
From: Elad Yosef @ 2011-01-19 7:27 UTC (permalink / raw)
To: ecos-discuss
Hi,
One more thing, How can get the file name the Bootp received from the server ?
I want to load that file from the server into RAM.
Elad
On Wed, Jan 19, 2011 at 9:22 AM, Elad Yosef <elad.yosef@gmail.com> wrote:
> Hi all,
> I'm trying to setup default script for my RedBoot.
> Simple script: load() and go()
>
> Where do I specify my script file?
> Which language is it?
> Does it requires CYGSEN_REDBOOT_FLASH_CONFIG ?
> If I'm not using CYGSEN_REDBOOT_FLASH_CONFIG where does the script is
> saved ? (in which section text/bss/rodata)
>
> Thanks
>
> Elad
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] Re: Setup default script for RedBoot
2011-01-19 7:27 ` [ECOS] " Elad Yosef
@ 2011-01-19 9:22 ` Sergei Gavrikov
0 siblings, 0 replies; 3+ messages in thread
From: Sergei Gavrikov @ 2011-01-19 9:22 UTC (permalink / raw)
To: Elad Yosef; +Cc: ecos-discuss
On Wed, 19 Jan 2011, Elad Yosef writes:
> Hi,
> One more thing, How can get the file name the Bootp received from the
> server ? I want to load that file from the server into RAM.
Hi
I assume that you share the file either with TFTP or HTTP server
load -m tftp path_to_filename [more load opts]
load -m http path_to_filename [more load opts]
For reference: http://ecos.sourceware.org/docs-latest/redboot/download-command.html
> On Wed, Jan 19, 2011 at 9:22 AM, Elad Yosef wrote:
> > I'm trying to setup default script for my RedBoot.
> > Simple script: load() and go()
> >
> > Where do I specify my script file?
* FIS (optional)
* CDL (see CDL option CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT)
NOTE: The second requires rebuild of RedBoot.
> > Which language is it?
RedBoot commands: http://ecos.sourceware.org/docs-latest/redboot/redboot-commands-and-examples.html
> > Does it requires CYGSEN_REDBOOT_FLASH_CONFIG ?
Optional (see above).
> > If I'm not using CYGSEN_REDBOOT_FLASH_CONFIG where does the script
> > is saved ? (in which section text/bss/rodata)
redboot/<version>/include/redboot.h
#ifdef CYGFUN_REDBOOT_BOOT_SCRIPT
EXTERN char *script;
...
redboot/<version>/src/main.c:
#ifdef CYGFUN_REDBOOT_BOOT_SCRIPT
# ifdef CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT
if (!script) {
script = CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT;
}
# endif
...
Elad, start with any simple script or even with unknown for RedBoot
command:
cdl_option CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT {
user_value 1 { "blah\n" }
};
Then you will have
install/include/pkgconf/redboot.h:
...
#define CYGFUN_REDBOOT_BOOT_SCRIPT 1
#define CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT "blah\n"
Yet another useful CDL option
CYGNUM_REDBOOT_BOOT_SCRIPT_DEFAULT_TIMEOUT
HTH
Sergei
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-19 9:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-19 7:22 [ECOS] Setup default script for RedBoot Elad Yosef
2011-01-19 7:27 ` [ECOS] " Elad Yosef
2011-01-19 9:22 ` Sergei Gavrikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).