1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
ClearOS 6.2 modprobe
(1 viewing) 1 Guest
Go to bottomPage: 1
TOPIC: ClearOS 6.2 modprobe
#43222
ClearOS 6.2 modprobe 10 Months, 3 Weeks ago  
Hi

I have just finished installing 6.2. I have 2 NICS: R8168 and R8101.

Like in 5.2 SP1 those NICs need updated drivers, otherwise they are really slow. So I have downloaded and installed new kmods R8168 and R8101 from Tims FTP for 6.2.

The problem is there is no modprobe.conf in /etc folder. Tried to locate it - could not.

So right now I'm really confused and I don't know how to activate them.

Is there a file I have to edit? How to activate those mods?

eth0 - R8101
eth2 - R8168

Thx
tomas
Expert Boarder
Posts: 127
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43224
Re: ClearOS 6.2 modprobe 10 Months, 3 Weeks ago  
Create a file in /etc/modprobe.d called anything.conf and put your aliases in there:
Code:

alias eth0 r8101
alias eth2 r8168

If you then reboot (its the easiest option) check that each driver is loaded correctly for each card with:
Code:

ethtool -i eth0
ethtool -i eth2

Nick Howitt
Platinum Boarder
Posts: 4137
graphgraph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#43226
Re: ClearOS 6.2 modprobe 10 Months, 3 Weeks ago  
Thx Nick.

I was wrong - I don't know which one is which - both have R8169 loaded at the moment.

How do I check it?
tomas
Expert Boarder
Posts: 127
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43227
Re: ClearOS 6.2 modprobe 10 Months, 3 Weeks ago  
That was a silly question:

sorted by

Code:


 lspci -v | grep Eth
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)




One more time thx
tomas
Expert Boarder
Posts: 127
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43228
Re: ClearOS 6.2 modprobe 10 Months, 3 Weeks ago  
Not all devices/drivers support the ethtool command, but you can can query the loaded modules by running 'lspci -k' which will list the available and module actually in use
Tim Burgess
Moderator
Posts: 5800
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43230
Re: ClearOS 6.2 modprobe 10 Months, 3 Weeks ago  
So I have created a file called drivers.conf in /etc/modprobe.d folder with permission to be extecuted.
Code:


alias eth0 r8101
alias eth1 r8168



modinfo r8168
Code:


filename:       /lib/modules/2.6.32-220.23.1.v6.i686/weak-updates/r8168/r8168.ko
version:        8.027.00-NAPI
license:        GPL
description:    RealTek RTL-8168 Gigabit Ethernet driver
author:         Realtek and the Linux r8168 crew <netdev@vger.kernel.org>
srcversion:     3267B1158882BBE6760509F
alias:          pci:v00001186d00004300sv00001186sd00004B10bc*sc*i*
alias:          pci:v000010ECd00008168sv*sd*bc*sc*i*
depends:
vermagic:       2.6.32-220.2.1.el6.i686 SMP mod_unload modversions 686
parm:           eee_enable:int
parm:           speed:force phy operation. Deprecated by ethtool (8). (array of                                      int)
parm:           duplex:force phy operation. Deprecated by ethtool (8). (array of                                      int)
parm:           autoneg:force phy operation. Deprecated by ethtool (8). (array o                                     f int)
parm:           rx_copybreak:Copy breakpoint for copy-only-tiny-frames (int)
parm:           use_dac:Enable PCI DAC. Unsafe on 32 bit PCI slot. (int)
parm:           debug:Debug verbosity level (0=none, ..., 16=all) (int)


modinfo r8101
Code:


filename:       /lib/modules/2.6.32-220.23.1.v6.i686/weak-updates/r8101/r8101.ko
version:        1.021.00-NAPI
license:        GPL
description:    RealTek RTL-8101 Fast Ethernet driver
author:         Realtek and the Linux r8101 crew <netdev@vger.kernel.org>
srcversion:     D0C5BE09BE8299641B08088
alias:          pci:v000010ECd00008136sv*sd*bc*sc*i*
depends:
vermagic:       2.6.32-220.2.1.el6.i686 SMP mod_unload modversions 686
parm:           eee_enable:int
parm:           speed:force phy operation. Deprecated by ethtool (8). (array of int)
parm:           duplex:force phy operation. Deprecated by ethtool (8). (array of int)
parm:           autoneg:force phy operation. Deprecated by ethtool (8). (array of int)
parm:           rx_copybreak:Copy breakpoint for copy-only-tiny-frames (int)
parm:           use_dac:Enable PCI DAC. Unsafe on 32 bit PCI slot. (int)
parm:           debug:Debug verbosity level (0=none, ..., 16=all) (int)



but after reboot both ethtool -i eth0 and ethtool -i eth2:

Code:


ethtool -i eth1
driver: r8169
version: 2.3LK-NAPI
firmware-version:
bus-info: 0000:02:00.0

[root@system ~]# ethtool -i eth0
driver: r8169
version: 2.3LK-NAPI
firmware-version:
bus-info: 0000:01:00.0


tomas
Expert Boarder
Posts: 127
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43233
Re: ClearOS 6.2 modprobe 10 Months, 3 Weeks ago  
lspci -k gives:

Code:


01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01)
        Subsystem: Hewlett-Packard Company Device 2a78
        Kernel driver in use: r8169
        Kernel modules: r8101, r8169
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
        Subsystem: Realtek Semiconductor Co., Ltd. TEG-ECTX Gigabit PCI-E Adapter [Trendnet]
        Kernel driver in use: r8169
        Kernel modules: r8168, r8169



I have blacklisted R8169 by adding
Code:


#NICs
blacklist r8169


to blacklist.conf

and the correct driver was loaded.
Code:


01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01)
        Subsystem: Hewlett-Packard Company Device 2a78
        Kernel driver in use: r8101
        Kernel modules: r8101, r8169
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
        Subsystem: Realtek Semiconductor Co., Ltd. TEG-ECTX Gigabit PCI-E Adapter [Trendnet]
        Kernel driver in use: r8168
        Kernel modules: r8168, r8169


tomas
Expert Boarder
Posts: 127
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43241
Re: ClearOS 6.2 modprobe 10 Months, 3 Weeks ago  
It looks like you have it working correctly now. You could have checked how ClearOS was assigning the ethX id's in /etc/udev/rules.d/70-persistent-net.rules
Nick Howitt
Platinum Boarder
Posts: 4137
graphgraph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#43258
Re: ClearOS 6.2 modprobe 10 Months, 3 Weeks ago  
That's odd because the kmod-r8168 should automatically blacklist the r8169 module... does /etc/modprobe.d/blacklist-r8169.conf exist?
Tim Burgess
Moderator
Posts: 5800
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43484
Re: ClearOS 6.2 modprobe 10 Months, 2 Weeks ago  
Yes it does.
Code:


#
# Listing a module here prevents the hotplug scripts from loading it.
# Usually that'd be so that some other driver will bind it instead,
# no matter which driver happens to get probed first.  Sometimes user
# mode tools can also control driver binding.
#
# Syntax: see modprobe.conf(5).
#

# watchdog drivers
blacklist i8xx_tco

# framebuffer drivers
blacklist aty128fb
blacklist atyfb
blacklist radeonfb
blacklist i810fb
blacklist cirrusfb
blacklist intelfb
blacklist kyrofb
blacklist i2c-matroxfb
blacklist hgafb
blacklist nvidiafb
blacklist rivafb
blacklist savagefb
blacklist sstfb
blacklist neofb
blacklist tridentfb
blacklist tdfxfb
blacklist virgefb
blacklist vga16fb
blacklist viafb

# ISDN - see bugs 154799, 159068
blacklist hisax
blacklist hisax_fcpcipnp

# sound drivers
blacklist snd-pcsp

# I/O dynamic configuration support for s390x (bz #563228)
blacklist chsc_sch

#NICs
blacklist r8169



But r8169 was not automatically blacklisted. I had to do it manually.
tomas
Expert Boarder
Posts: 127
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
  get the latest posts directly to your desktop