From: "ariga masahiro" <ariga@link-lab.co.jp>
To: <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] How to correctly run SMSC LAN91C111 Driver by interrupt
Date: Tue, 29 May 2007 05:07:00 -0000 [thread overview]
Message-ID: <002f01c7a1ac$d34379d0$1c0110ac@ariga> (raw)
Hi everyone,
Someone please help me.
I am trying to run SMSC LAN91C111 Ethernet Driver by interrupt
on own board.
I studied source if_lan91cxx.c and found next switching context
#ifndef CYGPKG_IO_ETH_DRIVERS_STAND_ALONE,
and concluded I must make CYGPKG_IO_ETH_DRIVERS_STAND_ALONE '0'
in order to regisiter ISR etc.
I registered ISR into Vector Table.
When I Built,I confronted next errors.
/ecos-c/cygwin/home/LINK/inserter20070529-1_interrupt/untitled_install/lib/extras.o:
In function `do_exec':
/opt/ecos/ecos-2.0/packages/hal/sh/arch/v2_0/src/redboot_linux_exec.c:114:
undefined reference to `_eth_drv_dsr'
/opt/ecos/ecos-2.0/packages/hal/sh/arch/v2_0/src/redboot_linux_exec.c:83:
undefined reference to `_eth_drv_funs'
I infered they are concerned with eth_drv.c,and found eth_drv.c was included
in next three directotries in eCos source tree.
C:/cygwin/opt/ecos/ecos-2.0/packages/io\eth/v2_0/src/lwip/eth_drv.c
C:/cygwin/opt\ecos/ecos-2.0/packages/io\eth/v2_0/src/net/eth_drv.c
C:/cygwin/opt/ecos/ecos-2.0/packages/io\eth/v2_0/src/stand_alone/eth_drv.c
I am convinced that because I did not compile stand_alone,I confronted the
errors.
So,first I tried to include /net/eth_drv.c.
I found in order to include /net/eth_drv.c I must make CYGPKG_NET available.
Then I was stuck in the mud.
I confronted Conflicting Errors continuously and couldn't even build
redboot.
I abandoned.
Then, I next tried to include /lwip/eth_drv.c.
In order to do that,I changed option parameter a bit.
I commented "active_if" line.
cdl_component CYGPKG_IO_ETH_DRIVERS_LWIP
## active_if CYGPKG_NET_LWIP
Then I could include /lwip/eth_drv.c,
but confronted next errors.
src/lwip/io_eth_eth_drv.o
/opt/ecos/ecos-2.0/packages/io/eth/v2_0/src/lwip/eth_drv.c
/opt/ecos/ecos-2.0/packages/io/eth/v2_0/src/lwip/eth_drv.c:70:29:
cyg/kernel/kapi.h: No such file or directory
/opt/ecos/ecos-2.0/packages/io/eth/v2_0/src/lwip/eth_drv.c:89: parse error
before "delivery"
/opt/ecos/ecos-2.0/packages/io/eth/v2_0/src/lwip/eth_drv.c:89: warning: type
defaults to `int' in declaration of `delivery'
I am in predicament.
Please enlighten me what is correct way to run SMSC LAN91C111 Ethernet
Driver by interrupt.
Masahiro Ariga
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next reply other threads:[~2007-05-29 4:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-29 5:07 ariga masahiro [this message]
2007-05-29 14:43 ` Gary Thomas
2007-05-30 4:53 ` ariga masahiro
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='002f01c7a1ac$d34379d0$1c0110ac@ariga' \
--to=ariga@link-lab.co.jp \
--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).