[tulip] Re: Using tulip.c with 2.4.18 for a 21143 card

Donald Becker becker@scyld.com
Wed Jul 31 20:12:01 2002

On Thu, 1 Aug 2002, Steinar Bang wrote:

> >>>>> Donald Becker <becker@scyld.com>:
> > You need pci-scan.o for all kernel versions.  It provides consistent
> > PCI scanning, hot-swap and power management support across all
> > kernels.
> Which subdirectory of /lib/modules/2.4.18-686/ should it be in?  Or
> doesn't it matter?

It doesn't matter.
The Makefile puts it in the modules/*/net/ directory to avoid touching
multiple directories, but pci-scan.o is actually generic support used by
non-network drivers as well.

>  Could the missing pci-scan.o be the reason the
> kernel didn't find tulip.o on startup?

Yes.  The tulip.o file requires the
pci_drv_register()/pci_drv_unregister() functions from pci-scan.o.

The changes you need to make to standard 2.4 kernels to add the driver
update set is to
   edit the Makefile to use tulip.c instead of the tulip directory
   add pci-scan.c to the build list, and
   add any drivers not included with that kernel version to the Makefile
   and config.in.

Note that newer drivers all have the config.in information embedded in
the source file.  An example is

/* Automatically extracted configuration info:

probe-func: sundance_probe
config-in: tristate 'Sundance ST201 "Alta" PCI Ethernet support' CONFIG_SUNDANCE
c-help-name: Sundance ST201 "Alta" PCI Ethernet support
c-help-symbol: CONFIG_SUNDANCE
c-help: This driver is for the Sundance ST201 "Alta" and Kendin KS8723, as
c-help: used on the D-Link DFE-550 and DFE-580.
c-help: Design information, usage details and updates are available from
c-help: http://www.scyld.com/network/sundance.html


Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993