[ECOS] Halting RedBoot

S. Z. stzari@yahoo.com
Thu Apr 1 14:26:00 GMT 2010


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

__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list