From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16949 invoked by alias); 7 Jun 2007 17:02:52 -0000 Received: (qmail 16661 invoked by uid 22791); 7 Jun 2007 17:02:52 -0000 X-Spam-Check-By: sourceware.org Received: from 85-126-107-146.static.sdsl-line.inode.at (HELO mail.contec.at) (85.126.107.146) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 07 Jun 2007 17:02:47 +0000 Received: from comixs.contec-int.at (unknown [192.168.1.250]) by mail.contec.at (Firewall Mailer Daemon) with ESMTP id 93BFDC087A for ; Thu, 7 Jun 2007 19:02:41 +0200 (CEST) Received: from grma-linux.contec-int.at ([192.168.1.216]) by comixs.contec-int.at with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Jun 2007 19:02:40 +0200 From: Manfred Gruber To: ecos-discuss@ecos.sourceware.org Date: Fri, 08 Jun 2007 09:10:00 -0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706071902.39680.m.gruber@tirol.com> X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Patch not start network device X-SW-Source: 2007-06/txt/msg00087.txt.bz2 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 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss