This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
How to make Stand_Alone void in "net" pachage ?
- From: "ariga masahiro" <ariga at link-lab dot co dot jp>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 27 Aug 2007 16:21:04 +0900
- Subject: [ECOS] How to make Stand_Alone void in "net" pachage ?
Hi everyone,
I am sorry,I feel dumb about this,
I am permanently in predicament.
Would you please teach me patiently ?
I made ecos.lib by using "net" package.
I liked to use interrupt,so I made CYGPKG_IO_ETH_DRIVERS_STAND_ALONE void
by inserting "default_value 0".
I succeeded building ecos.lib,
but when I linked with nc_test_slave.c
error appeared.
Looks wrongly included,
/opt/ecos/gnutools/sh-elf/sh-elf/include
whereas at good time(i.e. CYGPKG_IO_ETH_DRIVERS_STAND_ALONE=1)
/cygwin/home/LINK/inserter20070827-for-nc_test_slave-net/untitled1_instal
l/include.
/LINK/inserter20070827-for-nc_test_slave-net is ecos.lib's work directory.
How should I do correctry to make CYGPKG_IO_ETH_DRIVERS_STAND_ALONE=0
in "net" package ?
Or samely,how do I make it possible to use interrupt in Ethernet ?
--below succesful making log(i.e. CYGPKG_IO_ETH_DRIVERS_STAND_ALONE=1)
$ make
sh-elf-gcc -c -o
nc_test_slave.o -g -Wall -I/ecos-c/cygwin/home/LINK/inserter200
70827-for-nc_test_slave-net/untitled1_install/include -ffunction-sections -fdata
-sections nc_test_slave.c
In file included from
/ecos-c/cygwin/home/LINK/inserter20070827-for-nc_test_slav
e-net/untitled1_install/include/pkgconf/hal.h:17,
from
/ecos-c/cygwin/home/LINK/inserter20070827-for-nc_test_slav
e-net/untitled1_install/include/pkgconf/kernel.h:13,
from
/ecos-c/cygwin/home/LINK/inserter20070827-for-nc_test_slav
e-net/untitled1_install/include/cyg/posix/muttypes.h:60,
from
/ecos-c/cygwin/home/LINK/inserter20070827-for-nc_test_slav
e-net/untitled1_install/include/sys/types.h:97,
from
/ecos-c/cygwin/home/LINK/inserter20070827-for-nc_test_slav
e-net/untitled1_install/include/sys/param.h:719,
from nc_test_framework.h:39,
from nc_test_slave.c:34:
/ecos-c/cygwin/home/LINK/inserter20070827-for-nc_test_slave-net/untitled1_instal
l/include/pkgconf/hal_sh_sh77x9_inserter.h:41:1: warning:
"CYG_HAL_STARTUP_RAM"
redefined
In file included from
/ecos-c/cygwin/home/LINK/inserter20070827-for-nc_test_slav
e-net/untitled1_install/include/pkgconf/net.h:11,
from
/ecos-c/cygwin/home/LINK/inserter20070827-for-nc_test_slav
e-net/untitled1_install/include/sys/param.h:707,
from nc_test_framework.h:39,
from nc_test_slave.c:34:
/ecos-c/cygwin/home/LINK/inserter20070827-for-nc_test_slave-net/untitled1_instal
l/include/pkgconf/system.h:33:1: warning: this is the location of the
previous d
efinition
sh-elf-gcc -nostartfiles -L/ecos-c/cygwin/home/LINK/inserter20070827-for-nc_test
_slave-net/untitled1_install/lib -Wl,--gc-sections -Wl,--Map -Wl,nc_test_slave.m
ap -o nc_test_slave nc_test_slave.o -Ttarget.ld -nostdlib
-- below is error making log(i.e. CYGPKG_IO_ETH_DRIVERS_STAND_ALONE=0)
$ make
sh-elf-gcc -c -o
nc_test_slave.o -g -Wall -I/ecos-c/cygwin/home/LINK/inserter200
70827-for-nc_test_slave-net-standalone-0/untitled1_install/include -ffunction-se
ctions -fdata-sections nc_test_slave.c
In file included from nc_test_framework.h:39,
from nc_test_slave.c:34:
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/param.h:97:28:
sys/simplelock.h: No
such file or directory
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/param.h:344:27:
machine/param.h: No
such file or directory
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/param.h:345:28:
machine/limits.h: N
o such file or directory
In file included from nc_test_framework.h:40,
from nc_test_slave.c:34:
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:171: parse error
before "u
_int8_t"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:174: parse error
before '}
' token
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:189: parse error
before "u
_int8_t"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:192: parse error
before "_
_ss_pad2"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:194: parse error
before '}
' token
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:344: parse error
before "s
ocklen_t"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:348: parse error
before "m
sg_controllen"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:350: parse error
before '}
' token
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:370: parse error
before "s
ocklen_t"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:374: parse error
before '}
' token
In file included from
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:425,
from nc_test_framework.h:40,
from nc_test_slave.c:34:
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/cdefs.h:85:27: machine/cdefs.h:
No
such file or directory
In file included from nc_test_framework.h:40,
from nc_test_slave.c:34:
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:428: parse error
before "s
ocklen_t"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:429: parse error
before "s
ocklen_t"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:430: parse error
before "s
ocklen_t"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:431: parse error
before "s
ocklen_t"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:432: parse error
before "s
ocklen_t"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:433: parse error
before "s
ocklen_t"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:436: parse error
before "s
ocklen_t"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:440: parse error
before "s
ocklen_t"
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/socket.h:442: parse error
before "s
ocklen_t"
In file included from nc_test_framework.h:41,
from nc_test_slave.c:34:
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/ioctl.h:80:24: sys/ttycom.h: No
suc
h file or directory
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/ioctl.h:100:22: sys/dkio.h: No
such
file or directory
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/ioctl.h:101:23: sys/filio.h: No
suc
h file or directory
In file included from nc_test_framework.h:43,
from nc_test_slave.c:34:
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/time.h:187: field `it_interval'
has
incomplete type
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/time.h:188: field `it_value'
has in
complete type
/opt/ecos/gnutools/sh-elf/sh-elf/include/sys/time.h:189: confused by earlier
err
ors, bailing out
make: *** [nc_test_slave.o] Error 1
My target's template definition in ecod.db is below.
target mytarget {
alias { "mytarget board" }
packages { CYGPKG_HAL_SH
CYGPKG_HAL_SH_SH3
CYGPKG_HAL_SH_SH77X9_mytarget
CYGPKG_IO_FLASH
CYGPKG_DEVS_FLASH_SH_mytarget
CYGPKG_DEVS_FLASH_AMD_AM29XXXXX
CYGPKG_DEVS_ETH_SMSC_LAN91CXX
CYGPKG_DEVS_ETH_SH_mytarget
CYGPKG_IO_SERIAL_SH_mytarget
CYGPKG_IO_SERIAL_SH_SCIF
CYGPKG_IO_ETH_DRIVERS
}
description "
The mytarget provides the packages needed to run
eCos on a mytarget board."
}
I would appreciate your help.
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