public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] USB slave ethernet device driver
@ 2003-04-17 16:56 Doyle, Patrick
  2003-04-17 17:26 ` Bart Veer
  0 siblings, 1 reply; 3+ messages in thread
From: Doyle, Patrick @ 2003-04-17 16:56 UTC (permalink / raw)
  To: ecos-discuss

Before I go digging through this too much, I thought I would toss out the
question...

It appears that the USB slave ethernet driver has not been updated to
reflect the new network stack.  That is, when I attempt to build an ecos (I
picked assabet as a platform, just because it sounded good at the time) with
the "net" template, I get compile errors.  But when I use the "old_net"
template, I don't.

Before I go charging off fixing the compile errors, I just wanted to
check...

Is this to be expected?
Has anybody else fixed this already?
Is it worth fixing?
Does anybody have a list of things that change when switching from "old_net"
to "net"?  (i.e. "don't include "netstuff.h" anymore -- just include
"net.h", or whatever).

--wpd

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] USB slave ethernet device driver
  2003-04-17 16:56 [ECOS] USB slave ethernet device driver Doyle, Patrick
@ 2003-04-17 17:26 ` Bart Veer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Veer @ 2003-04-17 17:26 UTC (permalink / raw)
  To: WPD; +Cc: ecos-discuss

>>>>> "wpd" == Doyle, Patrick <WPD@dtccom.com> writes:

    wpd> Before I go digging through this too much, I thought I would toss out the
    wpd> question...

    wpd> It appears that the USB slave ethernet driver has not been
    wpd> updated to reflect the new network stack. That is, when I
    wpd> attempt to build an ecos (I picked assabet as a platform,
    wpd> just because it sounded good at the time) with the "net"
    wpd> template, I get compile errors. But when I use the "old_net"
    wpd> template, I don't.

    wpd> Before I go charging off fixing the compile errors, I just
    wpd> wanted to check...

    wpd> Is this to be expected?
    wpd> Has anybody else fixed this already?

Try the patch below, which seems to fix the build problem. I have not
actually tried the resulting build. Also note that there are still
some pending patches for the host-side Linux driver.

    wpd> Is it worth fixing?
    wpd> Does anybody have a list of things that change when switching from "old_net"
    wpd> to "net"?  (i.e. "don't include "netstuff.h" anymore -- just include
    wpd> "net.h", or whatever).

The big issue is multicast support. IPv6 requires that, but not all
ethernet drivers implement it.

Bart

Index: io/usb/eth/slave/current/cdl/usbs_eth.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/usb/eth/slave/current/cdl/usbs_eth.cdl,v
retrieving revision 1.5
diff -u -r1.5 usbs_eth.cdl
--- io/usb/eth/slave/current/cdl/usbs_eth.cdl	24 Feb 2003 14:25:32 -0000	1.5
+++ io/usb/eth/slave/current/cdl/usbs_eth.cdl	17 Apr 2003 17:21:35 -0000
@@ -118,5 +119,35 @@
 	    implements    CYGHWR_NET_DRIVER_ETH1
 	    requires      !CYGHWR_NET_DRIVER_ETH1_BOOTP
 	}
+    }
+    
+    cdl_component CYGPKG_IO_USB_SLAVE_ETH_OPTIONS {
+	display     "Build options"
+	flavor      none
+
+	description "
+	    Package-specific build options including control over compiler
+	    flags used only in building this package."
+
+	cdl_option CYGPKG_IO_USB_SLAVE_ETH_CFLAGS_ADD {
+            display "Additional compiler flags"
+            flavor  data
+            no_define
+            default_value { "-D_KERNEL -D__ECOS" }
+            description   "
+                This option modifies the set of compiler flags for
+                building this package. These flags are used in addition
+                to the set of global flags."
+	}
+        cdl_option CYGPKG_IO_USB_SLAVE_ETH_CFLAGS_REMOVE {
+            display "Suppressed compiler flags"
+            flavor  data
+            no_define
+            default_value { "" }
+            description   "
+                This option modifies the set of compiler flags for
+                building this package. These flags are removed from
+                the set of global flags if present."
+        }
     }
 }

-- 
Bart Veer                       eCos Configuration Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* RE: [ECOS] USB slave ethernet device driver
@ 2003-04-17 17:48 Doyle, Patrick
  0 siblings, 0 replies; 3+ messages in thread
From: Doyle, Patrick @ 2003-04-17 17:48 UTC (permalink / raw)
  To: 'Bart Veer'; +Cc: ecos-discuss

Thanks.  As you, no doubt, know, this solves the build problem.  Of course,
since I don't have an assabet board, I cannot test it either -- but I can
now use the resulting code base to start on my own USB driver development.
Thanks for the quick response!

--wpd

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

end of thread, other threads:[~2003-04-17 17:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-17 16:56 [ECOS] USB slave ethernet device driver Doyle, Patrick
2003-04-17 17:26 ` Bart Veer
2003-04-17 17:48 Doyle, Patrick

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