public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Manfred Gruber <m.gruber@tirol.com>
To: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Patch not start network device
Date: Fri, 08 Jun 2007 12:56:00 -0000	[thread overview]
Message-ID: <200706081110.11731.m.gruber@tirol.com> (raw)
In-Reply-To: <200706071902.39680.m.gruber@tirol.com>

Hi !

Ok I found out it is better to do such things in the network driver, not 
generic..

regards manfred

Am Donnerstag, 7. Juni 2007 19:02 schrieb Manfred Gruber:
> Hi !
>
> I have done a small patch to not switch on ethernet if ip is 0.0.0.0 and
> bootp is false in redboot. This speeds up my boot process.
>
> Index: ecos/packages/redboot/current/src/net/net_io.c
> ===================================================================
> --- ecos.orig/packages/redboot/current/src/net/net_io.c
> +++ ecos/packages/redboot/current/src/net/net_io.c
> @@ -701,6 +701,12 @@ net_init(void)
>  #endif
>      }
>  #endif
> +    /* not start network if ip address is set to 0.0.0.0 and bootp is
> switched off */
> +    if (__local_ip_addr[0] == 0 && __local_ip_addr[1] == 0 &&
> +       __local_ip_addr[2] == 0 && __local_ip_addr[3] == 0 && (use_bootp ==
> false)) {
> +        diag_printf("Not starting network, bootp is false and IP is
> 0.0.0.0! \n");
> +        return;
> +    }
>  # ifdef CYGDBG_IO_ETH_DRIVERS_DEBUG
>      // Don't override if the user has deliberately set something more
>      // verbose.
>
> what do you think about that, the patch is against flash_v2 branch ?
>
> regards
> --
> 	Manfred Gruber

-- 
mfg
	Manfred Gruber

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

  reply	other threads:[~2007-06-08  9:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-08  9:10 Manfred Gruber
2007-06-08 12:56 ` Manfred Gruber [this message]
2007-06-08 13:17   ` Gary Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200706081110.11731.m.gruber@tirol.com \
    --to=m.gruber@tirol.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).