From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26474 invoked by alias); 8 Oct 2007 08:30:39 -0000 Received: (qmail 26460 invoked by uid 22791); 8 Oct 2007 08:30:36 -0000 X-Spam-Check-By: sourceware.org Received: from d5152C2DE.access.telenet.be (HELO lx-dmz.televic.com) (81.82.194.222) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 08 Oct 2007 08:30:31 +0000 Received: (qmail 8358 invoked from network); 8 Oct 2007 08:30:28 -0000 Received: from nt-email.televic.com (10.0.0.9) by lx-dmz.televic.com with SMTP; 8 Oct 2007 08:30:28 -0000 Received: from [10.0.56.4] ([10.0.56.4]) by nt-email.TELEVIC.COM with Microsoft SMTPSVC(6.0.3790.1830); Mon, 8 Oct 2007 10:30:28 +0200 Message-ID: <4709EAA1.3080305@televic.com> Date: Mon, 08 Oct 2007 08:30:00 -0000 From: =?UTF-8?B?SsO8cmdlbiBMYW1icmVjaHQ=?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.13) Gecko/20060414 MIME-Version: 1.0 To: Gokoen CC: ecos-discuss@ecos.sourceware.org References: <000b01c8074a$de0764e0$242a24db@masahiro> In-Reply-To: <000b01c8074a$de0764e0$242a24db@masahiro> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: Re: [ECOS] Ethernet driver question X-SW-Source: 2007-10/txt/msg00039.txt.bz2 I think the problem could be that your hardware driver has not been compiled. If you are using an existing board supported by eCos, and are using the net template of the board, then it must be something else. Can you better discribe all of it. First try to make RedBoot running. Enable all networking debugging and check it at the serial output. To see all network options, look through your ecos.ecc file made at compilation: - CYGPKG_NET_FREEBSD_LOGGING, CYGPKG_NET_DEBUG, CYGDBG_NET_SHOW_MBUFS; for debugging in general: CYGPKG_INFRA_DEBUG, CYGDBG_INFRA_DEBUG_TRACE_ASSERT_FANCY - in redboot you can enable network debugging as an option with fconfig Success, Jürgen Lambrecht R&D Engineer Televic Transport Systems http://www.televic.com Televic NV / SA (main office) Leo Bekaertlaan 1 B-8870 Izegem Tel: +32 (0)51 303045 Fax: +32 (0)51 310670 Gokoen wrote: > Hello, > > I am a newcomer to eCos. > > I am trying to run LAN91C111 driver using "net" template,but I am > encountered what I cannot understand. > > My target board is implemented with SH7709S CPU and SMSC LAN91C111 > ethernet controller. > > Looks like doing nothing,so > I checked attach routine. > > I discovered attach is executed at > /packages/net/bsd_tcpip/current/src/sys/net/if_ethersubr.c > ether_ifattach(ifp, bpf) function's last part. > > if (ng_ether_attach_p != NULL) > (*ng_ether_attach_p)(ifp); > > But I discovered that because ng_ether_attach_p == NULL, > it skipped over (*ng_ether_attach_p)(ifp). > > ng_ether_attach_p is defined in > /packages/net/bsd_tcpip/current/include/sys/param.h > #define ng_ether_attach_p cyg_ng_ether_attach_p > but cyg_ng_ether_attach_p == NULL. > > eCos version is CVS downloaded current version. > > I do not know why this happens. > Would you please teach me what shoud I do ? > > I would appreciate your help. > > Gokoen > > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss