From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5926 invoked by alias); 5 Oct 2007 12:24:10 -0000 Received: (qmail 5917 invoked by uid 22791); 5 Oct 2007 12:24:09 -0000 X-Spam-Check-By: sourceware.org Received: from ybbsmtp10.mail.ogk.yahoo.co.jp (HELO ybbsmtp10.mail.ogk.yahoo.co.jp) (124.83.153.130) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 05 Oct 2007 12:24:05 +0000 Received: (qmail 49037 invoked by alias); 5 Oct 2007 12:24:03 -0000 Received: from unknown (HELO masahiro) (219.36.42.36 with poptime) by ybbsmtp10.mail.ogk.yahoo.co.jp with SMTP; 5 Oct 2007 12:24:02 -0000 X-Apparently-From: Message-ID: <000b01c8074a$de0764e0$242a24db@masahiro> From: "Gokoen" To: Date: Fri, 05 Oct 2007 12:24:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.3138 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] Ethernet driver question X-SW-Source: 2007-10/txt/msg00033.txt.bz2 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