public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] build error in net directory
@ 2001-01-08  4:48 Doug Fraser
  0 siblings, 0 replies; 9+ messages in thread
From: Doug Fraser @ 2001-01-08  4:48 UTC (permalink / raw)
  To: 'bgat@open-widgets.com', Gary Thomas; +Cc: ecos-discuss

Bill,

Congrats on getting things working.

It is still in too big a state of flux for my product
but I am tracking things anyway. I have a neat little board
here with an MPC850, 8MB flash, 16MB of SDRAM.
It is called QS850, I got it from SNMC < http://www.snmc.com >
My first real goal is to get QNX running on it.
In the background I am going to bring up RedBoot,
which may end up being my startup and IPL of choice.

Doug Fraser
dfraser@photuris.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] build error in net directory
  2001-01-08  8:40   ` Grant Edwards
  2001-01-08  8:43     ` Gary Thomas
@ 2001-01-08 15:16     ` Jonathan Larmour
  1 sibling, 0 replies; 9+ messages in thread
From: Jonathan Larmour @ 2001-01-08 15:16 UTC (permalink / raw)
  To: Grant Edwards; +Cc: Gary Thomas, bgat, ecos-discuss

Grant Edwards wrote:
> 
> On Sun, Jan 07, 2001 at 08:27:34AM -0700, Gary Thomas wrote:
> 
> > Don't do it this way.  The 'net' package is not self sufficient.  What
> > you really want is:
> >   % ecosconfig new mbx net
> >
> > The 'net' template adds both the basic network stack _and_ the ethernet
> > driver framework, which is where 'netdev.h' comes from.
> 
> I've always done it like this:
> 
> ecosconfig new rpsh2
> ecosconfig add CYGPKG_NET CYGPKG_IO_ETH_DRIVERS CYGPKG_DEVS_ETH_ARM_KS32C5000
> 
> Is that method now depricated?

No, just errorprone given a handy alternative :-). Another approach is to
do:

ecosconfig new mbx all
ecosconfig remove uitron libm

or whatever else you _don't_ want :).

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Un cheval, pas du glue. Pas du cheval, beaucoup du glue. || Opinions==mine

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] build error in net directory
  2001-01-08  8:40   ` Grant Edwards
@ 2001-01-08  8:43     ` Gary Thomas
  2001-01-08 15:16     ` Jonathan Larmour
  1 sibling, 0 replies; 9+ messages in thread
From: Gary Thomas @ 2001-01-08  8:43 UTC (permalink / raw)
  To: Grant Edwards; +Cc: ecos-discuss

On 08-Jan-2001 Grant Edwards wrote:
> On Sun, Jan 07, 2001 at 08:27:34AM -0700, Gary Thomas wrote:
> 
>> > ecosconfig new mbx
>> > ecosconfig add net
>> 
>> Don't do it this way.  The 'net' package is not self sufficient.  What
>> you really want is:
>>   % ecosconfig new mbx net
>> 
>> The 'net' template adds both the basic network stack _and_ the ethernet
>> driver framework, which is where 'netdev.h' comes from.
> 
> I've always done it like this:
> 
> ecosconfig new rpsh2
> ecosconfig add CYGPKG_NET CYGPKG_IO_ETH_DRIVERS CYGPKG_DEVS_ETH_ARM_KS32C5000
> 
> Is that method now depricated?

No, this is fine.  I was just pointing out that there is also the "net"
template which does part of this automatically.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] build error in net directory
  2001-01-07  7:27 ` Gary Thomas
  2001-01-07 12:51   ` bgat
@ 2001-01-08  8:40   ` Grant Edwards
  2001-01-08  8:43     ` Gary Thomas
  2001-01-08 15:16     ` Jonathan Larmour
  1 sibling, 2 replies; 9+ messages in thread
From: Grant Edwards @ 2001-01-08  8:40 UTC (permalink / raw)
  To: Gary Thomas; +Cc: bgat, ecos-discuss

On Sun, Jan 07, 2001 at 08:27:34AM -0700, Gary Thomas wrote:

> > ecosconfig new mbx
> > ecosconfig add net
> 
> Don't do it this way.  The 'net' package is not self sufficient.  What
> you really want is:
>   % ecosconfig new mbx net
> 
> The 'net' template adds both the basic network stack _and_ the ethernet
> driver framework, which is where 'netdev.h' comes from.

I've always done it like this:

ecosconfig new rpsh2
ecosconfig add CYGPKG_NET CYGPKG_IO_ETH_DRIVERS CYGPKG_DEVS_ETH_ARM_KS32C5000

Is that method now depricated?

-- 
Grant Edwards
grante@visi.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] build error in net directory
  2001-01-07 18:34     ` Gary Thomas
@ 2001-01-08  4:16       ` Hugo Tyson
  0 siblings, 0 replies; 9+ messages in thread
From: Hugo Tyson @ 2001-01-08  4:16 UTC (permalink / raw)
  To: ecos-discuss


Gary Thomas <gthomas@redhat.com> writes:
> On 07-Jan-2001 bgat@open-widgets.com wrote:

> > Thanks for the help.  It also applies to snmp, I presume?
> 
> No, I don't think so.  I'm pretty sure that SNMP can be added, and be
> sufficient, all by itself.

Indeed, so long as you have a working networked build, you can just add the
two (NB, two, snmplib and snmpagent) SNMP packages with "ecosconfig add ..."

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] build error in net directory
  2001-01-07 12:51   ` bgat
@ 2001-01-07 18:34     ` Gary Thomas
  2001-01-08  4:16       ` Hugo Tyson
  0 siblings, 1 reply; 9+ messages in thread
From: Gary Thomas @ 2001-01-07 18:34 UTC (permalink / raw)
  To: bgat; +Cc: ecos-discuss

[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]

On 07-Jan-2001 bgat@open-widgets.com wrote:
> Gary:
> 
> 
> You know, I bet one of these days I'm going to need to RTFM.  :^)
> 
> Thanks for the help.  It also applies to snmp, I presume?

No, I don't think so.  I'm pretty sure that SNMP can be added, and be
sufficient, all by itself.

As for the manual, this point might have been hard to find there :-(
The problem is that the 'net' package, while mostly self contained in terms
of compilation, etc, needs additional packages such as the ethernet
driver framework to be complete.  It would be good [I'll look into this]
for the code which requires additional packages to make sure that they
are available and issue a more useful diagnostic when they are not.

In fact, the attached patch goes a long way towards this goal.

> 
> b.g.
> 
> 
> On Sun, Jan 07, 2001 at 08:27:34AM -0700, Gary Thomas wrote:
>>  
>> On 06-Jan-2001 bgat@open-widgets.com wrote:
>> > Guys:
>> > 
>> > 
>> > I just updated to the latest CVS and tried to build as follows:
>> > 
>> > 
>> > ecosconfig new mbx
>> > ecosconfig add net
>> 
>> Don't do it this way.  The 'net' package is not self sufficient.  What
>> you really want is:
>>   % ecosconfig new mbx net
>> 
>> The 'net' template adds both the basic network stack _and_ the ethernet
>> driver framework, which is where 'netdev.h' comes from.
>> 
> 
> -- 
> Bill Gatliff
> bgat@open-widgets.com

[-- Attachment #2: diffs --]
[-- Type: text/x-diff, Size: 2744 bytes --]

Index: io/eth/current/cdl/eth_drivers.cdl
===================================================================
RCS file: /home/cvs/ecc/ecc/io/eth/current/cdl/eth_drivers.cdl,v
retrieving revision 1.6
diff -u -5 -p -r1.6 eth_drivers.cdl
--- io/eth/current/cdl/eth_drivers.cdl	2000/10/17 15:45:50	1.6
+++ io/eth/current/cdl/eth_drivers.cdl	2001/01/08 02:26:11
@@ -44,10 +44,12 @@ cdl_package CYGPKG_IO_ETH_DRIVERS {
     display       "Common ethernet support"
     include_dir   .
     parent        CYGPKG_IO
     description   "Platform independent ethernet drivers"
 
+    implements    CYGPKG_NET_DRIVER_FRAMEWORK
+
     cdl_component CYGPKG_IO_ETH_DRIVERS_NET {
         display       "Support for standard eCos TCP/IP stack."
         flavor        bool
         active_if     CYGPKG_NET
         no_define
Index: net/tcpip/current/cdl/net.cdl
===================================================================
RCS file: /home/cvs/ecc/ecc/net/tcpip/current/cdl/net.cdl,v
retrieving revision 1.32
diff -u -5 -p -r1.32 net.cdl
--- net/tcpip/current/cdl/net.cdl	2000/09/14 16:13:30	1.32
+++ net/tcpip/current/cdl/net.cdl	2001/01/07 21:34:17
@@ -49,10 +49,17 @@ cdl_package CYGPKG_NET {
     requires      CYGPKG_LIBC_TIME
     requires      CYGPKG_ERROR
     requires      CYGPKG_MEMALLOC
     description   "Basic networking support, including TCP/IP."
 
+    cdl_interface     CYGPKG_NET_DRIVER_FRAMEWORK {
+        display   "Suitable driver framework interface, used by network package"
+        description "
+          In order to decouple the network stack from driver specifics, the
+          driver framework must be defined in a separate package."
+    }
+
     # Export our types to <sys/types.h>
     implements    CYGINT_ISO_BSDTYPES
     requires      { CYGBLD_ISO_BSDTYPES_HEADER == "<sys/bsdtypes.h>" }
     
     compile ecos/support.c \
Index: net/tcpip/current/src/ecos/support.c
===================================================================
RCS file: /home/cvs/ecc/ecc/net/tcpip/current/src/ecos/support.c,v
retrieving revision 1.23
diff -u -5 -p -r1.23 support.c
--- net/tcpip/current/src/ecos/support.c	2000/11/10 18:30:14	1.23
+++ net/tcpip/current/src/ecos/support.c	2001/01/08 02:30:09
@@ -79,10 +79,13 @@
 #include <cyg/hal/hal_intr.h>
 #include <cyg/kernel/kapi.h>
 
 #include <cyg/infra/cyg_ass.h>
 
+#if !CYGPKG_NET_DRIVER_FRAMEWORK
+#error At least one network driver framework must be defined!
+#else
 #include <netdev.h>
 
 // Define table boundaries
 CYG_HAL_TABLE_BEGIN( __NETDEVTAB__, netdev );
 CYG_HAL_TABLE_END( __NETDEVTAB_END__, netdev );
@@ -615,7 +618,9 @@ cyg_net_init(void)
     domaininit();
 
     // Done
     _init = true;
 }
+
+#endif // CYGPKG_NET_DRIVER_FRAMEWORK
 
 // EOF support.c

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] build error in net directory
  2001-01-07  7:27 ` Gary Thomas
@ 2001-01-07 12:51   ` bgat
  2001-01-07 18:34     ` Gary Thomas
  2001-01-08  8:40   ` Grant Edwards
  1 sibling, 1 reply; 9+ messages in thread
From: bgat @ 2001-01-07 12:51 UTC (permalink / raw)
  To: Gary Thomas; +Cc: bgat, ecos-discuss

Gary:


You know, I bet one of these days I'm going to need to RTFM.  :^)

Thanks for the help.  It also applies to snmp, I presume?

b.g.


On Sun, Jan 07, 2001 at 08:27:34AM -0700, Gary Thomas wrote:
>  
> On 06-Jan-2001 bgat@open-widgets.com wrote:
> > Guys:
> > 
> > 
> > I just updated to the latest CVS and tried to build as follows:
> > 
> > 
> > ecosconfig new mbx
> > ecosconfig add net
> 
> Don't do it this way.  The 'net' package is not self sufficient.  What
> you really want is:
>   % ecosconfig new mbx net
> 
> The 'net' template adds both the basic network stack _and_ the ethernet
> driver framework, which is where 'netdev.h' comes from.
> 

-- 
Bill Gatliff
bgat@open-widgets.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [ECOS] build error in net directory
  2001-01-06  8:27 bgat
@ 2001-01-07  7:27 ` Gary Thomas
  2001-01-07 12:51   ` bgat
  2001-01-08  8:40   ` Grant Edwards
  0 siblings, 2 replies; 9+ messages in thread
From: Gary Thomas @ 2001-01-07  7:27 UTC (permalink / raw)
  To: bgat; +Cc: ecos-discuss

 
On 06-Jan-2001 bgat@open-widgets.com wrote:
> Guys:
> 
> 
> I just updated to the latest CVS and tried to build as follows:
> 
> 
> ecosconfig new mbx
> ecosconfig add net

Don't do it this way.  The 'net' package is not self sufficient.  What
you really want is:
  % ecosconfig new mbx net

The 'net' template adds both the basic network stack _and_ the ethernet
driver framework, which is where 'netdev.h' comes from.

> ecosconfig add snmplib
> ecosconfig add snmpagent
> ecosconfig tree
> make
> 
> 
> 
> Here's where I ended up:
> 
> [snip]
> 
> make[1]: Entering directory `/home/bgat/ecos/build-packages/net/tcpip/current'
> powerpc-eabi-gcc -c  -I/home/bgat/ecos/build-packages/install/include
> -I/home/bgat/ecos/packages/net/tcpip/current -I/home/bgat/ecos/packages/net/tcpip/current/src
> -I/home/bgat/ecos/packages/net/tcpip/current/tests -I. -I/home/bgat/ecos/packages/net/tcpip/curren
> t/src/ecos/ -msoft-float -mcpu=860 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef
> -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions
> -fvtable-gc -finit-priority -D_KERNEL -D__ECOS -Wp,-MD,src/ecos/support.tmp -o
> src/ecos/net_tcpip_support.o /home/bgat/ecos/packages/net/tcpip/current/src/ecos/support.c
> /home/bgat/ecos/packages/net/tcpip/current/src/ecos/support.c:84: netdev.h: No such file or
> directory
> make[1]: *** [src/ecos/support.o.d] Error 1
> make[1]: Leaving directory `/home/bgat/ecos/build-packages/net/tcpip/current'
> make: *** [build] Error 2
> 
> 
> I added -I<path-to-ecos>/packages/io/eth/current/include to the
> include path in build-packages/net/tcpip/current/makefile, and I had
> to do the same thing for
> build-packages/net/snmp/agent/current/makefile.  I haven't run any
> tests yet, but the build finishes, which I'll take to be a good
> sign...  :^)
> 
> 
> My main concern is that my setup is somehow broken, i.e. I haven't
> used ecosconfig properly (I'm an ecos newbie).  If it's just a bug in
> the build scripts, however, then here's a workaround.
> 
> 
> Thanks!
> 
> 
> b.g.
> -- 
> Bill Gatliff
> bgat@open-widgets.com
> 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ECOS] build error in net directory
@ 2001-01-06  8:27 bgat
  2001-01-07  7:27 ` Gary Thomas
  0 siblings, 1 reply; 9+ messages in thread
From: bgat @ 2001-01-06  8:27 UTC (permalink / raw)
  To: ecos-discuss

Guys:


I just updated to the latest CVS and tried to build as follows:


ecosconfig new mbx
ecosconfig add net
ecosconfig add snmplib
ecosconfig add snmpagent
ecosconfig tree
make



Here's where I ended up:

[snip]

make[1]: Entering directory `/home/bgat/ecos/build-packages/net/tcpip/current'
powerpc-eabi-gcc -c  -I/home/bgat/ecos/build-packages/install/include -I/home/bgat/ecos/packages/net/tcpip/current -I/home/bgat/ecos/packages/net/tcpip/current/src -I/home/bgat/ecos/packages/net/tcpip/current/tests -I. -I/home/bgat/ecos/packages/net/tcpip/current/src/ecos/ -msoft-float -mcpu=860 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -D_KERNEL -D__ECOS -Wp,-MD,src/ecos/support.tmp -o src/ecos/net_tcpip_support.o /home/bgat/ecos/packages/net/tcpip/current/src/ecos/support.c
/home/bgat/ecos/packages/net/tcpip/current/src/ecos/support.c:84: netdev.h: No such file or directory
make[1]: *** [src/ecos/support.o.d] Error 1
make[1]: Leaving directory `/home/bgat/ecos/build-packages/net/tcpip/current'
make: *** [build] Error 2


I added -I<path-to-ecos>/packages/io/eth/current/include to the
include path in build-packages/net/tcpip/current/makefile, and I had
to do the same thing for
build-packages/net/snmp/agent/current/makefile.  I haven't run any
tests yet, but the build finishes, which I'll take to be a good
sign...  :^)


My main concern is that my setup is somehow broken, i.e. I haven't
used ecosconfig properly (I'm an ecos newbie).  If it's just a bug in
the build scripts, however, then here's a workaround.


Thanks!


b.g.
-- 
Bill Gatliff
bgat@open-widgets.com






^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-01-08 15:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-08  4:48 [ECOS] build error in net directory Doug Fraser
  -- strict thread matches above, loose matches on Subject: below --
2001-01-06  8:27 bgat
2001-01-07  7:27 ` Gary Thomas
2001-01-07 12:51   ` bgat
2001-01-07 18:34     ` Gary Thomas
2001-01-08  4:16       ` Hugo Tyson
2001-01-08  8:40   ` Grant Edwards
2001-01-08  8:43     ` Gary Thomas
2001-01-08 15:16     ` Jonathan Larmour

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).