LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to activate D-Link DGE530T Ethernet card am using Scientific linux (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-activate-d-link-dge530t-ethernet-card-am-using-scientific-linux-795739/)

alishazel 03-16-2010 05:36 AM

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

camorri 03-16-2010 06:35 AM

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...

jamescondron 03-16-2010 06:44 AM

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

alishazel 03-17-2010 01:41 AM

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

camorri 03-17-2010 06:21 AM

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 ).

alishazel 03-18-2010 04:54 AM

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

camorri 03-18-2010 08:09 AM

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.

alishazel 03-20-2010 10:55 PM

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

camorri 03-21-2010 06:35 AM

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?

alishazel 03-22-2010 04:52 AM

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]#

camorri 03-22-2010 08:58 AM

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.

alishazel 03-23-2010 10:07 PM

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

camorri 03-24-2010 09:20 AM

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?

alishazel 03-24-2010 10:04 PM

I've done everything state above. I also follow the patch instruction

camorri 03-25-2010 09:03 AM

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


All times are GMT -5. The time now is 06:17 AM.