LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2010, 06:36 AM   #1
alishazel
LQ Newbie
 
Registered: Mar 2010
Location: Batu Pahat, Johor, Malaysia
Distribution: Scientific Linux 4.7
Posts: 7

Rep: Reputation: 0
How to activate D-Link DGE530T Ethernet card am using Scientific linux


Hello All,
i am down with lost and confusion due to my newbie status

the NIC was presented there (color highlighted)

[root@cluster2 slcluster2]# /sbin/lspci | grep -i ethernet
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 01)
05:00.0 Ethernet controller: D-Link System Inc DGE-530T Gigabit Ethernet Adapter (rev 11) (rev 11)

But i cant get it Activated...

if i try to install the device

this will show up
Check sk98lin driver availability./install.sh: line 775: lsmod: command not found
(not loaded) [ OK ]
Check kernel header files (not found) [ failed ]
Kernel header not found. Please install the linux header files
development package or crate a symbolic link from the
/usr/src/KERNEL_VERSION directory to linux
Example: ln -s /usr/src/KERNEL_VERSION /usr/src/linux

i also try to ln -s /usr/src/KERNEL_VERSION /usr/src/linux

and i already check

[root@cluster2 DriverInstall]# uname -r
2.6.9-78.0.1.ELsmp
but the file is in /usr/src/kernels

how do i proceed from here?

+Sorry i am not sure where to post this except in newbie section since am a complete new to this... thanks in advance for you guidance
 
Old 03-16-2010, 07:35 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,172

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Your system can not find the module sk98lin. It may not be installed. Most drivers are located in a path like this:

Quote:
/lib/modules/2.6.31.12-desktop-1mnb/kernel/drivers/
This is from my system, so the exact path on your system will be a little different. The third directory will be something with your kernel version in it.

You can have a look with a konsole to see it the driver is there, or not. ( I suspect you will not find it ). The other way to find things, is update the database first; in a root konsole run the command 'updatedb' ( without the quotes ) this will build a data base of files on your system. It takes a while to complete on a system for the first time. After it completes, run the command 'locate sk98lin' and see if anything shows up. If nothing shows, you are going to have to track the driver. If it is there, then the symlink should fix the problem.

Does this version of linux have a package manager? That is the first place to look for the driver.

I don't have that driver installed, not a surprise, I don't have that card. However, I did a 'man sk98lin' and I do have the man page.

Poast back what you can find out, and any specific questions...
 
Old 03-16-2010, 07:44 AM   #3
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
The first error is because your system, or at least the script, cannot find lsmod, and so cannot load the module. Could you give us the output from

Code:
locate lsmod
echo $PATH
Please
 
Old 03-17-2010, 02:41 AM   #4
alishazel
LQ Newbie
 
Registered: Mar 2010
Location: Batu Pahat, Johor, Malaysia
Distribution: Scientific Linux 4.7
Posts: 7

Original Poster
Rep: Reputation: 0
Red face

cammori:
1stly RPM package manager is the only thing i know available in the system
2ndly this is the output from your direction earlier
updatedb
locate sk98lin
/home/slcluster2/Desktop/inst/DriverInstall/common/sk98lin.4
/home/slcluster2/Desktop/inst/DriverInstall/common/sk98lin.htm
/home/slcluster2/Desktop/inst/DriverInstall/common/sk98lin.txt
/home/slcluster2/Desktop/inst/DriverInstall/sk98lin.4
/home/slcluster2/Desktop/inst/DriverInstall/sk98lin.tar.bz2
/usr/share/man/man4/sk98lin.4.gz
/usr/src/kernels/2.6.9-78.0.1.EL-hugemem-i686/drivers/net/sk98lin
/usr/src/kernels/2.6.9-78.0.1.EL-hugemem-i686/drivers/net/sk98lin/Makefile
/usr/src/kernels/2.6.9-78.0.1.EL-hugemem-i686/include/config/sk98lin
/usr/src/kernels/2.6.9-78.0.1.EL-hugemem-i686/include/config/sk98lin/module.h
/usr/src/kernels/2.6.9-78.0.1.EL-smp-i686/drivers/net/sk98lin
/usr/src/kernels/2.6.9-78.0.1.EL-smp-i686/drivers/net/sk98lin/Makefile
/usr/src/kernels/2.6.9-78.0.1.EL-smp-i686/include/config/sk98lin
/usr/src/kernels/2.6.9-78.0.1.EL-smp-i686/include/config/sk98lin/module.h
/usr/src/kernels/2.6.9-78.0.1.EL-i686/drivers/net/sk98lin
/usr/src/kernels/2.6.9-78.0.1.EL-i686/drivers/net/sk98lin/Makefile
/usr/src/kernels/2.6.9-78.0.1.EL-i686/include/config/sk98lin
/usr/src/kernels/2.6.9-78.0.1.EL-i686/include/config/sk98lin/module.h
/lib/modules/2.6.9-78.0.1.ELsmp/kernel/drivers/net/sk98lin
/lib/modules/2.6.9-78.0.1.ELsmp/kernel/drivers/net/sk98lin/sk98lin.ko
/lib/modules/2.6.9-78.0.1.EL/kernel/drivers/net/sk98lin
/lib/modules/2.6.9-78.0.1.EL/kernel/drivers/net/sk98lin/sk98lin.ko

is this a good sign? what is the next step? thanks in advance

jamescondron:
This is the output you needed from me
locate lsmod
/usr/share/man/man8/lsmod.8.gz
/sbin/lsmod
echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/slcluster2/bin


thanks in advance
 
Old 03-17-2010, 07:21 AM   #5
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,172

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
It appears the correct module is installed. Here it is...

Quote:
/lib/modules/2.6.9-78.0.1.ELsmp/kernel/drivers/net/sk98lin/sk98lin.ko
/lib/modules/2.6.9-78.0.1.EL/kernel/drivers/net/sk98lin
/lib/modules/2.6.9-78.0.1.EL/kernel/drivers/net/sk98lin/sk98lin.ko
If the system has rpm package manager, you are in good shape. There should be repos you can install software form.

Your PATH for a normal user looks O.K. There is no pre-set path to /sbin for a normal user. Could you use the 'su' command, you'll be prompted for the root password, and check to see if /sbin is included for root? It should be.

You do have the lsmod command, it is in /sbin , same on my system. So as root, try the command 'modprobe sk98lin' and see what happens. If you get no output, that is good. If you get some output, cut and paste it here.

No output means the command worked. At that point you will have the driver loaded. If it loads, then you can try a command of 'ifconfig eth0 up' ( post the results ).
 
Old 03-18-2010, 05:54 AM   #6
alishazel
LQ Newbie
 
Registered: Mar 2010
Location: Batu Pahat, Johor, Malaysia
Distribution: Scientific Linux 4.7
Posts: 7

Original Poster
Rep: Reputation: 0
Hey Cliff,
Thanks for your quick reply... anyway i did the command
and
[root@cluster2 DriverInstall]# /sbin/modprobe sk98lin
[root@cluster2 DriverInstall]#

is it suppose to be wrote like that? if so there is no reply... (sorry am really new to this)

can you explain to me about loading the driver? (installation?)

p.s additional info

<this is eth0-and already up>
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 01)
<this is the one we working on>05:00.0 Ethernet controller: D-Link System Inc DGE-530T Gigabit Ethernet Adapter (rev 11) (rev 11)

is it have anything to do with the lsmod location?

thanks in advance all,
alish
 
Old 03-18-2010, 09:09 AM   #7
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,172

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Quote:
can you explain to me about loading the driver?
Modprobe is the command to load a kernel module. It checks for pre-req's and will give you error information if it doesn't work. The module sk98lin is on your system, modprobe found it, and loaded it. Since there was no error information, the command worked. You now have the driver loaded. In this case, no news is good news.

Quote:
is it have anything to do with the lsmod location?
Not necessarliy. The only strange thing was when you ran the command, you got 'command not found'. That is normal for a non root user, on most systems. The root user should find it. If you do a 'su' and enter the root password, you can try the lsmod command ( list modules ). The command should work as the root user. You should get a list of all loaded modules. sk98lin should show up now.

The only other thing you may have to do is configure the ethernet card. If you have a DHCP server, you may not have to do anything, other than use the the card with your system.
 
Old 03-20-2010, 11:55 PM   #8
alishazel
LQ Newbie
 
Registered: Mar 2010
Location: Batu Pahat, Johor, Malaysia
Distribution: Scientific Linux 4.7
Posts: 7

Original Poster
Rep: Reputation: 0
uh.... i am not sure what is wrong. i on su all the time even to do ifconfig i need to /sbin/ifconfig....

the mob probe is doing fine
kernel is there
db is up dated...

is there anyway to solve this.... i wanted to tell my boss the possibility

thanks for your help
 
Old 03-21-2010, 07:35 AM   #9
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,172

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Quote:
i am not sure what is wrong. i on su all the time even to do ifconfig i need to /sbin/ifconfig....
This is what you posted earlier for 'echo $PATH'
Quote:
echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/slcluster2/bin
If this was su'ed to root, then /sbin is not being searched. You need to update the PATH variable to include /sbin. Here is a link that tells you how to update $PATH.

http://www.linuxheadquarters.com/howto/basic/path.shtml This works only for the current session. To make it permanent, here is an example -

http://www.mediacollege.com/linux/re...-variable.html

As far as the second ethernet interface, can you post what you see to the '/sbin/ifconfig' command? Or is this interface now working?

Last edited by camorri; 03-21-2010 at 08:02 AM. Reason: Added a link to a how to
 
Old 03-22-2010, 05:52 AM   #10
alishazel
LQ Newbie
 
Registered: Mar 2010
Location: Batu Pahat, Johor, Malaysia
Distribution: Scientific Linux 4.7
Posts: 7

Original Poster
Rep: Reputation: 0
hey Cliff,

this is the out put as you see only eth is up
[root@cluster2 slcluster2]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:24:21:11:C3:
inet addr:10.*.*.* Bcast:10.9.167.255 Mask:255.255.252.0
inet6 addr: fe80::224:21ff:fe11:c3f4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:136242 errors:0 dropped:0 overruns:0 frame:0
TX packets:7423 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15651932 (14.9 MiB) TX bytes:1704625 (1.6 MiB)
Interrupt:169 Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4087 errors:0 dropped:0 overruns:0 frame:0
TX packets:4087 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6216986 (5.9 MiB) TX bytes:6216986 (5.9 MiB)

[root@cluster2 slcluster2]#

Last edited by alishazel; 03-24-2010 at 11:02 PM.
 
Old 03-22-2010, 09:58 AM   #11
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,172

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Eth 1 is not showing up. Have you done anything to configure it? Could you run the command '/sbin/lsmod | grep sk98lin' and post the results. This should verify the driver is loaded. Did you do an 'ifconfig eth1 up' ? If not, give it a try, and post the results.
 
Old 03-23-2010, 11:07 PM   #12
alishazel
LQ Newbie
 
Registered: Mar 2010
Location: Batu Pahat, Johor, Malaysia
Distribution: Scientific Linux 4.7
Posts: 7

Original Poster
Rep: Reputation: 0
Dear Cliff,

So far this if what happen

[root@cluster2 slcluster2]# /sbin/ifconfig eth1 up
eth1: unknown interface: No such device
[root@cluster2 slcluster2]# /sbin/lsmod | grep sk98lin
[root@cluster2 slcluster2]#

if i
./install.sh

the problem still persist
Check kernel header files (not found) [ failed ]
Kernel header not found. Please install the linux header files
development package or crate a symbolic link from the
/usr/src/KERNEL_VERSION directory to linux
Example: ln -s /usr/src/KERNEL_VERSION /usr/src/linux
Thanks for your help.... not sure what to do with this now
 
Old 03-24-2010, 10:20 AM   #13
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,172

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Did you download and compile this driver? If yes, then there is a problem. You do need the header files to compile the driver.

On the other hand, if you did not compile the driver, you must have installed it from a package. Then all you should need to do is modprobe the module. Can you clarify which it is?
 
Old 03-24-2010, 11:04 PM   #14
alishazel
LQ Newbie
 
Registered: Mar 2010
Location: Batu Pahat, Johor, Malaysia
Distribution: Scientific Linux 4.7
Posts: 7

Original Poster
Rep: Reputation: 0
I've done everything state above. I also follow the patch instruction
 
Old 03-25-2010, 10:03 AM   #15
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,172

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
You have to install kernel headers that match your kernel. They should be available through yum.
 
  


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
getting ethernet card to activate on boot hindenbergbaby Linux - Newbie 3 07-24-2004 07:08 AM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 01:33 AM
Ethernet card will not activate tatham Linux - Hardware 2 10-05-2003 08:09 PM
D-Link DE220 ethernet card -Linux 6.0 Riru Linux - Networking 0 09-24-2003 06:43 AM
does my D-Link ethernet card support Linux? Chooco Linux - Networking 6 06-03-2002 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:36 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration