<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Installing kernel modules in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5570493#M53574</link>
    <description>&lt;P&gt;Nice document - if only man pages were somewhat close to this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goran&lt;/P&gt;</description>
    <pubDate>Fri, 02 Mar 2012 11:32:20 GMT</pubDate>
    <dc:creator>Goran Koruga</dc:creator>
    <dc:date>2012-03-02T11:32:20Z</dc:date>
    <item>
      <title>Installing kernel modules</title>
      <link>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5569945#M53571</link>
      <description>&lt;P&gt;A vendor is telling us that we need to upgrade the NIC driver on our servers.&amp;nbsp; We have Proliant DL360 G7 servers with NC382i Dual Port Multifunction Gigabit Server Adapters.&amp;nbsp; The version of the currently installed drivers is1.9.3.&amp;nbsp; The latest release from H.P. is 2.0.23b.&amp;nbsp; We are locked down to RHEL 5.4 x86.&lt;BR /&gt;&lt;BR /&gt;The current drivers are compiled into the kernel and installed in /lib/modules/2.6.18-164.38.1.el5PAE/kernel/drivers/net.&amp;nbsp; The new drivers will be installed in /lib/modules/2.6.18-164.38.1.el5PAE/extra/.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the current drivers are compiled into the kernel, and the new drivers are not installed over the top of the original drivers, wont the original drivers supersede the upgraded drivers?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do an lsmod, I see the current drivers&lt;/P&gt;&lt;P&gt;# lsmod |grep bnx&lt;BR /&gt;bnx2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 173389&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current /etc/modprobe.conf shows:&lt;/P&gt;&lt;P&gt;alias eth0 bnx2&lt;BR /&gt;alias eth1 bnx2&lt;BR /&gt;alias eth2 bnx2&lt;BR /&gt;alias eth3 bnx2&lt;BR /&gt;&lt;BR /&gt;Sure, I can uninstall the current drivers&lt;/P&gt;&lt;P&gt;# modprobe -r bnx2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can install new drivers&lt;/P&gt;&lt;P&gt;# modprobe bnx2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What tells the kernel to use the newly installed drivers instead of the drivers compiled into the kernel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daryl&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2012 21:43:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5569945#M53571</guid>
      <dc:creator>Daryl Rose</dc:creator>
      <dc:date>2012-03-01T21:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Installing kernel modules</title>
      <link>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5570317#M53572</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I know module-init-tools don't have an option to specify PATH (as opposed to modutils previously).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you should be able to achieve what you want using the 'install' command in modprobe config files:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;install foo insmod /lib/modules/&amp;lt;ver&amp;gt;/&amp;lt;bar&amp;gt;baz.ko&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goran&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2012 07:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5570317#M53572</guid>
      <dc:creator>Goran Koruga</dc:creator>
      <dc:date>2012-03-02T07:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Installing kernel modules</title>
      <link>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5570355#M53573</link>
      <description>&lt;P&gt;&amp;gt; The current drivers are compiled into the kernel and installed in /lib/modules/2.6.18-164.38.1.el5PAE/kernel/drivers/net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Er... that's not quite correct. If the driver was compiled into the kernel, you would not see any module file at all. The driver would "just work" as soon as the kernel was loaded. The standard modules are packaged into the kernel RPM, but that does not mean they are compiled into the kernel - and this distinction can be very important if you find that a buggy driver is causing your system to hang as soon as the driver is loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With modern Linux systems, very few drivers are actually compiled into the kernel - basically, only the bare minimum required to read the initrd and to achieve a basic console display. Anything else can be read as modules from the initrd if they are required in early phases of the boot, or from the regular /lib/modules directory hierarchy if they are not necessary for accessing the root filesystem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The depmod command prepares a list of modules for the modprobe command, which does the actual job of loading the modules. In RHEL 5 and later, depmod is configured to look into /lib/modules/&amp;lt;kernel-version&amp;gt;/extra directory first if it exists. This way, any modules placed in that directory will automatically override any similarly-named standard modules included into the kernel package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find more details from RedHat Driver Update Program webpage. Please look at the chapter titled "Overriding a RedHat supplied driver":&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://dup.et.redhat.com/"&gt;http://dup.et.redhat.com/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2012 08:03:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5570355#M53573</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2012-03-02T08:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Installing kernel modules</title>
      <link>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5570493#M53574</link>
      <description>&lt;P&gt;Nice document - if only man pages were somewhat close to this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goran&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2012 11:32:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5570493#M53574</guid>
      <dc:creator>Goran Koruga</dc:creator>
      <dc:date>2012-03-02T11:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Installing kernel modules</title>
      <link>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5570869#M53575</link>
      <description>&lt;P&gt;As others have mentioned, the driver is probably not compiled into the kernel, but the problem you might be running into is the initrd image file still has the old driver. Now that you have the new driver installed you need to create a new initrd image&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2012 16:51:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5570869#M53575</guid>
      <dc:creator>Jimmy Vance</dc:creator>
      <dc:date>2012-03-02T16:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Installing kernel modules</title>
      <link>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5570929#M53576</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1062529"&gt;@Jimmy Vance&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;As others have mentioned, the driver is probably not compiled into the kernel, but the problem you might be running into is the initrd image file still has the old driver. Now that you have the new driver installed you need to create a new initrd image&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you to all who replied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps my thoughts are wrong, but here is how I arrived at my conclusion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The driver in question is bnx2.ko.&amp;nbsp; If I do an rpm -qf on that file to see what package owns it, I get back the kernel.&lt;/P&gt;&lt;P&gt;rpm -qf bnx2.ko&lt;BR /&gt;kernel-PAE-2.6.18-164.38.1.el5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps I am wrong, but this appears to me as if the driver was compiled into the kernel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll read over the suggested documentation and see if that will help me resolve my concerns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daryl&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2012 17:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5570929#M53576</guid>
      <dc:creator>Daryl Rose</dc:creator>
      <dc:date>2012-03-02T17:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Installing kernel modules</title>
      <link>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5572221#M53581</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're right that it's part of the kernel package, but the term "is compiled in" usually means it's part of the kernel image, or in other words, not compiled as a module - that would require more work from you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goran&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2012 06:01:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/installing-kernel-modules/m-p/5572221#M53581</guid>
      <dc:creator>Goran Koruga</dc:creator>
      <dc:date>2012-03-05T06:01:15Z</dc:date>
    </item>
  </channel>
</rss>

