This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
R: Halting RedBoot
- From: Stefano Mora <smora at eos dot pr dot it>
- To: 'Gary Thomas' <gary at mlbassoc dot com>, "'S. Z.'" <stzari at yahoo dot com>
- Cc: "'ecos-discuss at ecos dot sourceware dot org'" <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 1 Apr 2010 17:14:21 +0200
- Subject: [ECOS] R: [ECOS] Halting RedBoot
- References: <341430.55099.qm@web23804.mail.ird.yahoo.com> <4BB4AEAA.8050402@mlbassoc.com>
Yes !
It works!!
Thanks a lot, Gary & S.Z.
________________________________
Ing. Stefano Mora
> -----Messaggio originale-----
> Da: Gary Thomas [mailto:gary@mlbassoc.com]
> Inviato: giovedì 1 aprile 2010 16:33
> A: S. Z.
> Cc: Stefano Mora; ecos-discuss@ecos.sourceware.org
> Oggetto: Re: [ECOS] Halting RedBoot
>
> On 04/01/2010 08:26 AM, S. Z. wrote:
> > Hi,
> >
> > I had the same problem. I solved it by using the following
> code in packages/redboot/src/main.c :
> >
> > while (script_timeout_ms>=
> CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT) {
> > #if 1
> > if(_rb_break(CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT)){
> > res = _GETS_CTRLC;
> > break;
> > } else {
> > res = _GETS_TIMEOUT;
> > }
> > #else
> > res = _rb_gets(line, sizeof(line),
> CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT);
> > if (res>= _GETS_OK) {
> > diag_printf("== Executing boot script in
> %d.%03d seconds - enter ^C to abort\n",
> > script_timeout_ms/1000,
> script_timeout_ms%1000);
> > continue; // Ignore anything but ^C
> > }
> > if (res != _GETS_TIMEOUT) break;
> > #endif
> > script_timeout_ms -= CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT;
> > }
> >
> > HTH
> > Stamatis
>
> Yes, that does look like it will work.
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss