[eepro100] Compiling pci-scan and merging into source tree

Dave Worthy dave_worthy@hp.com
Thu May 23 23:13:00 2002


I found that if you do the following, the pci-scan will compile in to a
'make modules' as well as show up in a 'make menuconfig'......it won't
allow you to toggle the pci-scan, but will show it and more importantly
compile it:

*NOTE* very important that the variables for PCI_SCAN has an "_" and not
a dash "-".  This will result in an #undef warning from autoconf.h

1.)  in /usr/src/linux/drivers/net/Makefile,

After this line:
obj-$(CONFIG_EEPRO100) += eepro100.o

Add this line  here:
obj-$(CONFIG_PCI_SCAN) += pci-scan.o


2.)  in /usr/src/linux/drivers/net/Config.in,

After this line:
      dep_tristate '    EtherExpressPro/100 support' CONFIG_EEPRO100
$CONFIG_PCI

Add this line:
      dep_tristate '         PCI Scan Hack for eepro100' CONFIG_PCI_SCAN
$CONFIG_EEPRO100 $CONFIG_PCI

(all one line)

This Makes pci-scan dependent on pci and the eepro100 being configured.

3.)  Look at your current .config file:

#:) grep -i pci_scan .config
#:) grep -i eepro .config
CONFIG_EEPRO100=m

Only eepro100 is a module:

4.)  cd /usr/src/linux and run 'make menuconfig':

Select 'Network Device Support'
Select 'Ethernet (10 or 100 Mbit)'
Page down to where 'EtherExpressPro/100 support' is, select it as a
module and you should see "PCI Scan Hack for eepro100"
Select the PCI_SCAN

5.) Save the .config file upon exit and do a grep to see if the .config
file now knows of pci-scan:

#:) grep -i eepro .config
CONFIG_EEPRO100=m
#:) grep -i pci_scan .config
CONFIG_PCI_SCAN=m

6.) make dep; make clean; make modules; make modules_install

7.) note that the eepro100 and pci-scan modules show up in the
/lib/modules/<version>/kernel/drivers/net directory

fyi...

I've compiled the modules this way and manually just in case it is
botched up with this hack and am testing it....it booted and loaded
fine.   Time will be the indicator......

Any feedback would be great.
Thanks!