public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Arif.Abbas@combitechsystems.com
To: ecos-discuss@sources.redhat.com
Subject: RE: [ECOS] changing ethernet driver
Date: Thu, 13 Sep 2001 00:54:00 -0000	[thread overview]
Message-ID: <2253171AF143D21185A60000F8FA748B0379B254@pluto.combitech.se> (raw)

Thanks, Jifl...BUT:

I am still having problems with merging a new "pseudo" driver...
What I did was to add following package in ecos.db:

package CYGPKG_DEVS_ETH_PPP {
	alias 		{ "PPP ethernet driver" ppp0 }
	hardware
	directory	devs/eth/ppp
	script		ppp_eth_driver.cdl
        description     "Ethernet driver for PPP"
}


After this, I created the CDL:

cdl_package CYGPKG_DEVS_ETH_PPP {
    display       "PPP ethernet drivers"

    parent        CYGPKG_IO_ETH_DRIVERS
    active_if     CYGPKG_IO_ETH_DRIVERS

    implements    CYGHWR_NET_DRIVERS
    implements    CYGHWR_NET_DRIVER_ETH0
    include_dir   .
    include_files ; # none _exported_ whatsoever
    description   "Ethernet driver for PPP ."
    compile       -library=libextras.a if_ppp.c

    cdl_component CYGPKG_DEVS_ETH_PPP_OPTIONS {
        display "PPP ethernet driver build options"
        flavor  none
	no_define

    }
}

Finally I created a nano-template with networking in CT, and then 
manaully removed the  

package -hardware CYGPKG_DEVS_ETH_ARM_NANO current ;
package -hardware CYGPKG_DEVS_ETH_INTEL_I82559 current ;

and added

package CYGPKG_DEVS_ETH_PPP current ;

in the .ecc file.

But it seems like the build option does not compile the if_ppp.c file,
because when I add lines like "testing" I don't get parse errors...

I don't know if this is because of the activeif statement...

Or if I have failed to actually connect the PPP to upper layers..
You see, in the if_ppp.c file, I never use the ETH_DRV_SC macro.
Instead, I just use the NETDEVTAB_ENTRY macro, and connect the ppp_sc
structure 
directly to the ifnet structure  (instead of connecting it to eth_drv_sc and
then
letting it connect to ifnet). this should be enough...right?
Maybe this means that I can't use the CYGPKG_IO_ETH_DRIVERS as parent?

I am confused...Can anyone out there give me some hints/help/suggestions?
THANKS!

Best regards,
Arif


             reply	other threads:[~2001-09-13  0:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-13  0:54 Arif.Abbas [this message]
2001-09-13 11:32 ` Jonathan Larmour
  -- strict thread matches above, loose matches on Subject: below --
2001-09-04  2:46 Arif.Abbas
2001-09-07 15:05 ` Jonathan Larmour

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=2253171AF143D21185A60000F8FA748B0379B254@pluto.combitech.se \
    --to=arif.abbas@combitechsystems.com \
    --cc=ecos-discuss@sources.redhat.com \
    /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).