Sincerely,
Scott D. Barrish
PCMICA or regular NIC ?
MODEL # ?
Usually it is just using the right module and placing the right line in
/etc/modules.conf or conf.modules depending which your system uses. With
a line like this.
alias eth0 modulename
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
"David" <thunde...@netscape.net> wrote in message news:3CC9B5FB...@netscape.net...
Ok I think you can do it like this and then move it to the
/lib/modules/kernel-version/net directory. Then run "depmod -a" to
update the modules and add a line to the /etc/modules.conf file to point
to that module. Be sure to use the proper case for it.
alias eth0 Pegasus
You should be able to compile it with this.
mkdir /usr/src/net
cp /path/to/module.c /usr/src/net
cd /usr/src/net
# Be sure to use the correct letter case in the lines below.
# For a single processor this all goes on one line:
gcc -DMODULE -D__KERNEL__ -I/usr/src/net -Wall -Wstrict-prototypes -O6
-c Pegasus.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`
For a Dual processor system this all goes on one line.
gcc -D__SMP__ -DMODULE -D__KERNEL__ -I/usr/src/net -Wall
-Wstrict-prototypes -O6 -c Pegasus.c `[ -f
/usr/include/linux/modversions.h ] && echo -DMODVERSIONS`
mv Pegasus.o /lib/modules/kernel-version/net/
# add line to modules.conf
alias eth0 Pegasus
# Run depmod
depmod -a
# If you want to check it prior to restarting the network, you can issue
the command below and then check /var/log/messages for any errors.
modprobe tulip.o
The module is installed correctly, if no errors appear in the logs.
If you tested the install you need to unload it from the kernel with the
command and then restart the network:
rmmod tulip.o
# Restart the network (this is for a redhat system) so commands may vary.
/etc/rc.d/init.d/network restart
When done you can remove the /usr/src/net directory with:
rm -rf /usr/src/net
Hope this helps.
> # If you want to check it prior to restarting the network, you can issue
> the command below and then check /var/log/messages for any errors.
>
> modprobe tulip.o
>
> The module is installed correctly, if no errors appear in the logs.
>
> If you tested the install you need to unload it from the kernel with the
> command and then restart the network:
>
> rmmod tulip.o
>
Ooops!! That should have been:
modprobe Pegasus.o
and
rmmod Pegasus.o
The -O is the capital letter O not the number 0. You may possibly need
to change the 6 to a 3 also.
Not sure about the usb.h file. I don't have any usb devices.