public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "ariga masahiro" <ariga@link-lab.co.jp>
To: <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] How to make Stand_Alone void in "net" pachage ?
Date: Mon, 27 Aug 2007 07:21:00 -0000	[thread overview]
Message-ID: <000501c7e87a$d433fee0$1c0110ac@ariga> (raw)

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

             reply	other threads:[~2007-08-27  7:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-27  7:21 ariga masahiro [this message]
2007-08-27  7:38 ` Andrew Lunn

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='000501c7e87a$d433fee0$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).