How to compile driver for Realtek 8168 ethernet controller in Mepis 7.0 64 release?
MEPISThis forum is for the discussion of MEPIS Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to compile driver for Realtek 8168 ethernet controller in Mepis 7.0 64 release?
I am unable to get the onboard ethernet card in my in Asus M3A78-EMH HDMI motherboard to work. Mepis 7.0 64 smp installs the r8169. I gather from the web that this card needs the r8168 driver. I have downloaded the linux drivers from the Asus website. When I try to follow the instructions to complie the r8168 driver I get an error that there is no module rule. See readme file below. Any help anyone could offer would be greatly appreciated.
Thanks
Mike
Readme file:
<Linux device driver for Realtek Ethernet controllers>
This is the Linux device driver released for RealTek RTL8168B/8111B
and RTL8168C/8111C, Gigabit Ethernet controllers with PCI-Express
interface.
<Requirements>
- kernel source tree (supported Linux kernel 2.6.x)
- compiler/binutils for kernel compilation
<Quick install with proper kernel settings>
Unpack the tarball :
# tar vjxf r8168-8.aaa.bb.tar.bz2
Change to the directory:
# cd r8168-8.aaa.bb
If you are running the target kernel, then you should be able to do :
# make clean modules (as root or with sudo)
# make
# make install
# depmod -a
# insmod ./src/r8168.ko
You can check whether the driver is loaded by using following commands.
# lsmod | grep r8168
# ifconfig -a
If there is a device name, ethX, shown on the monitor, the linux
driver is loaded. Then, you can use the following command to activate
the ethX.
# ifconfig ethX up
,where X=0,1,2,...
<Set the network related information>
1. Set manually
a. Set the IP address of your machine.
# ifconfig ethX "the IP address of your machine"
b. Set the IP address of DNS.
Insert the following configuration in /etc/resolv.conf.
nameserver "the IP address of DNS"
c. Set the IP address of gateway.
# route add default gw "the IP address of gateway"
2. Set by doing configurations in /etc/sysconfig/network-scripts
/ifcfg-ethX for Redhat and Fedora, or /etc/sysconfig/network
/ifcfg-ethX for SuSE. There are two examples to set network
configurations.
a. Fix IP address:
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
TYPE=ethernet
NETMASK=255.255.255.0
IPADDR=192.168.1.1
GATEWAY=192.168.1.254
BROADCAST=192.168.1.255
b. DHCP:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
<Modify the MAC address>
There are two ways to modify the MAC address of the NIC.
1. Use ifconfig:
# ifconfig ethX hw ether YY:YY:YY:YY:YY:YY
,where X is the device number assigned by Linux kernel, and
YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Skip the first make modules clean command and start with the second and go from there. I am not sure what the error means at the moment. Just wondering if the make which will build the new module off the kernel source which is located in /usr/src/2.6.22-1-mepis64-smp. Does that directory exist for the kernel source?
Skip the first make modules clean command and start with the second and go from there. I am not sure what the error means at the moment. Just wondering if the make which will build the new module off the kernel source which is located in /usr/src/2.6.22-1-mepis64-smp. Does that directory exist for the kernel source?
Brian
Brian,
The folder /usr/src/2.6.22-1-mepis64-smp doesn't exist. The linux-source-2.6.22.tar.bz2 file is in the folder /usr/src.
There is a folder 2.6.22-1-mepis64-smp in /lib/modules/. That folder contains a bunch of files with names like modules.ccwmap, modules.pcimap and so on that suggest to me that they may be needed to build different types of modules. This in turn suggests that the necessary files may be on my computer, just not where the make file is looking for them. Assuming this is right, can you tell me how to point the make command to the correct locations?
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
I don't know anything about Mepis but in fedora kernel version naming must be exact. So to me the 2.6.22-1 is not the same as 2.6.22 as in /usr/src. I wonder if you have updated the kernel and do not have the source for the newer kernel.
I don't know anything about Mepis but in fedora kernel version naming must be exact. So to me the 2.6.22-1 is not the same as 2.6.22 as in /usr/src. I wonder if you have updated the kernel and do not have the source for the newer kernel.
Brian
The 2.6.22-1 kernel is the one that shipped on the live/installation CD. The only kernel source files I can find in the repos are linux-tree-2.6.22 and linux-tree-2.6.18. The linux-tree-2.6.22 fails to download with the message:
linux-tree-2.6.22:
Depends: linux-patch-debian-2.6.22 (=2.6.22-18mepis1) but it is not installable
If you have dual boot with Windows try Wake up on LAN - Enable.
No blinking lamp on the LAN port after boot up indicates mostly this issue.
see this link. ubuntuforums.org/showthread.php?t=538448&page=4
This worked for me for RTL8111 LAN chip with Gigabyte motherboard and just works with module 8139 .No need to compile new driver.
unable to compile realtek 8168 package on kernel 2.6.9-34.ELsmp
Has anybody tried to compile the realtek 8168 driver package on linux kernel 2.6.9-34.ELsmp. make tried to cd into lib/modules/2.6.9-34.ELsmp/build....this build directory does not exist. I am not sure what the contents are in the build directory but when I cd lib/modules/2.6.9-34.ELsmp I dont see a build directory there.
Any ideas..
[root@localhost r8168-8.011.00]# make
make -C src/ clean
make[1]: Entering directory `/home/mylvarab/r8168-8.011.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers *.order
make[1]: Leaving directory `/home/mylvarab/r8168-8.011.00/src'
make -C src/ modules
make[1]: Entering directory `/home/mylvarab/r8168-8.011.00/src'
make -C /lib/modules/2.6.9-34.ELsmp/build SUBDIRS=/home/mylvarab/r8168-8.011.00/src modules
make: *** /lib/modules/2.6.9-34.ELsmp/build: No such file or directory. Stop.
make: Entering an unknown directorymake: Leaving an unknown directorymake[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/mylvarab/r8168-8.011.00/src'
make: *** [modules] Error 2
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.