LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-21-2007, 09:31 PM   #1
rtmex
LQ Newbie
 
Registered: Apr 2007
Location: Puebla, Mexico
Distribution: Debian
Posts: 13

Rep: Reputation: 1
Etch continue loading old network card driver after new driver installation


Hi, I downloaded a new version (3.5.17) for my network card (the file is called e100), I compiled the module and added using modprobe e100 and still, everytime the PC starts Debian loads the old driver version (3.5.10), I see that doing a dmesg.
And if I do a lsmod cuz the size of the modules are different, the new version is bigger

If a remove that module (the old version) with modprobe -r e100 and load the newone (with modprobe e100) the new module is loaded, but when I restart the PC, Debian loads the old driver version again.

I even deleted the old e100.ko file from /lib/modules/2.6.18-custom/kernel/drivers/net cuz the new e100.ko file got installed at /lib/modules/2.6.18-custom/kernel/drivers/net/e100

Does anyone know what should I do?

Thanks in advance
 
Old 11-23-2007, 12:56 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
modprobe only loads and unloads modules from the currently running kernel, it does not make any changes to the actual system configuration.

To replace the old module with the new one, you first need to delete the old module from the proper directory under /lib/modules. Use uname -r to determine the kernel release you are running and therefore figure out which directory you need to go into. After you have deleted the proper .ko, replace it with the new .ko, and run "depmod -a". This will cause the system to rebuild it's database of kernel modules, which should then cause it to load the new module properly.
 
Old 11-26-2007, 03:29 PM   #3
rtmex
LQ Newbie
 
Registered: Apr 2007
Location: Puebla, Mexico
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: 1
Unhappy Already did it

Hi

As I said in the first post, I already did that, remove the e100.ko old file and Debian is still loading the old driver

This is the output I get after the make install, I hope this help you to figure out what's hapennig

make -C /lib/modules/2.6.18-custom/build SUBDIRS=/home/salomon/nic_driver/e100-3.5.17/src modules
make[1]: Entering directory `/usr/src/linux-source-2.6.18'
CC [M] /home/salomon/nic_driver/e100-3.5.17/src/e100.o
Building modules, stage 2.
MODPOST
CC /home/salomon/nic_driver/e100-3.5.17/src/e100.mod.o
LD [M] /home/salomon/nic_driver/e100-3.5.17/src/e100.ko
make[1]: Leaving directory `/usr/src/linux-source-2.6.18'
# remove all old versions of the driver
find /lib/modules/2.6.18-custom -name e100.ko -exec rm -f {} \; || true
find /lib/modules/2.6.18-custom -name e100.ko.gz -exec rm -f {} \; || true
install -D -m 644 e100.ko /lib/modules/2.6.18-custom/kernel/drivers/net/e100/e100.ko
/sbin/depmod -a || true
install -D -m 644 e100.7.gz /usr/share/man/man7/e100.7.gz
man -c -P'cat > /dev/null' e100 || true
man:
cannot write to /var/cache/man/cat7/e100.7.gz in catman mode
e100.


I also add to the /etc/modules.conf file the next line

alias eth0 e100

but did not work, Debian is still loading hte old driver version every time the PC starts
 
Old 11-27-2007, 07:07 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
Try this:

modprobe -r e100
insmod /lib/modules/2.6.18-custom/kernel/drivers/net/e100.ko (not sure of the format, could be without the .ko)
dpkg-reconfigure linux-image-`uname -r`

Probably that your initramfs still contains the old driver, so it needs to be regenerated.
When reconfiguring the linux kernel, I expect that it will call mkinitramfs which should copy your running configuration to the udev one.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network driver and Video card driver sniperbooger Linux - Software 2 11-10-2005 10:39 PM
ethernet card driver loading emrehan Linux - Hardware 0 10-21-2005 08:04 AM
Loading 3D-card driver hylke Linux - Newbie 2 12-27-2004 03:27 AM
D-Link PCI Network Card driver installation help Kaiser Linux - Networking 9 09-09-2003 04:44 PM
Network driver not loading NightShade737 Linux - Networking 3 06-24-2003 03:41 PM


All times are GMT -5. The time now is 10:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration