<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>while not keypressed (Posts about dkms)</title><link>https://www.keypressure.com/</link><description></description><atom:link href="https://www.keypressure.com/blog/tags/dkms.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Thu, 23 Oct 2025 15:54:31 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>r8169 module with DKMS in Ubuntu 12.04 LTS</title><link>https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/</link><dc:creator>Roman Yepishev</dc:creator><description>&lt;p class="alert"&gt;When testing network issues with different cards it is a good idea to make sure
they actually have different chipsets.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: I found no difference between the NIC operating with built-in r8169
module and the version that is available on the RealTek’s web site. You will
want to use the vendor-provided module only if your card is not supported by
the driver shipped with the linux kernel.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: I packaged the source-only dkms –
&lt;a class="reference external" href="http://ubuntuone.com/0U2n8DAPd5Mm1MbCa3TXvw"&gt;r8169-6.017.00-source-only.dkms.tar.gz&lt;/a&gt;, which can be installed with:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_eece8eabc7a74099b6037689c5d49b21-1" name="rest_code_eece8eabc7a74099b6037689c5d49b21-1" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_eece8eabc7a74099b6037689c5d49b21-1"&gt;&lt;/a&gt;sudo dkms ldtarball r8169-6.017.00-source-only.dkms.tar.gz
&lt;a id="rest_code_eece8eabc7a74099b6037689c5d49b21-2" name="rest_code_eece8eabc7a74099b6037689c5d49b21-2" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_eece8eabc7a74099b6037689c5d49b21-2"&gt;&lt;/a&gt;sudo dkms build r8169/6.017.00
&lt;a id="rest_code_eece8eabc7a74099b6037689c5d49b21-3" name="rest_code_eece8eabc7a74099b6037689c5d49b21-3" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_eece8eabc7a74099b6037689c5d49b21-3"&gt;&lt;/a&gt;sudo dkms install r8169/6.017.00
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: See the end of the post, patch is required for DGE-528T to be
picked by this module.&lt;/p&gt;
&lt;p&gt;I had a complex VM network setup with separate vlan on the router for virtual
machines and second network card in the server to prevent connection hanging
when network topology was changing on the VM startup. Then I decided to
simplify the network and use one NIC only, in my case that would be &lt;a class="reference external" href="http://www.dlink.com/uk/en/business-solutions/switching/network-and-switch-accessories/nic-cards-and-media-converters/dge-528t-dge-528t-copper-gigabit-pci-card-for-pc"&gt;DLink
DGE-528T&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This card is driven by realtek 8169 chip and for some reason these like to drop
network connection. I’ve found quite a few topics on poor performance of 8169
with in-kernel driver, but the built-in r8168 chip running under r8169 driver
included in the kernel performs &lt;a class="reference external" href="http://unixblogger.wordpress.com/2011/10/18/the-pain-of-an-realtek-rtl8111rtl8168-ethernet-card/"&gt;way worse&lt;/a&gt; than r8169.&lt;/p&gt;
&lt;p&gt;There is a driver update on the &lt;a class="reference external" href="http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&amp;amp;PNid=13&amp;amp;PFid=4&amp;amp;Level=5&amp;amp;Conn=4&amp;amp;DownTypeID=3&amp;amp;GetDown=false&amp;amp;Downloads=true#92"&gt;Realtek web site&lt;/a&gt; so I decided to give it a try.&lt;/p&gt;
&lt;p&gt;I started with dkms.conf from &lt;a class="reference external" href="http://djlab.com/2010/10/fixing-rtl8111-8168b-driver-debian-ubuntu/"&gt;Fixing RTL8111/8168B kernel module on
Debian/Ubuntu post by Randy&lt;/a&gt;, but for some reason r8169 module kept overwriting
the system wide one. It turns out that Makefile installs module automatically
when called with no specific target.&lt;/p&gt;
&lt;p&gt;So here’s how I made it work:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p&gt;Download the tarball from &lt;a class="reference external" href="http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&amp;amp;PNid=13&amp;amp;PFid=4&amp;amp;Level=5&amp;amp;Conn=4&amp;amp;DownTypeID=3&amp;amp;GetDown=false&amp;amp;Downloads=true#92"&gt;Realtek web site&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unpack the resulting &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;r8169-6.017.00.tar.bz2&lt;/span&gt;&lt;/code&gt; to &lt;code class="docutils literal"&gt;/usr/src&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add the &lt;code class="docutils literal"&gt;dkms.conf&lt;/code&gt; file to &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;/usr/src/r8169-6.017.00/&lt;/span&gt;&lt;/code&gt;:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_9c80f445ad6544f98d800d280e02c4f7-1" name="rest_code_9c80f445ad6544f98d800d280e02c4f7-1" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9c80f445ad6544f98d800d280e02c4f7-1"&gt;&lt;/a&gt;PACKAGE_NAME="r8169"
&lt;a id="rest_code_9c80f445ad6544f98d800d280e02c4f7-2" name="rest_code_9c80f445ad6544f98d800d280e02c4f7-2" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9c80f445ad6544f98d800d280e02c4f7-2"&gt;&lt;/a&gt;PACKAGE_VERSION="6.017.00"
&lt;a id="rest_code_9c80f445ad6544f98d800d280e02c4f7-3" name="rest_code_9c80f445ad6544f98d800d280e02c4f7-3" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9c80f445ad6544f98d800d280e02c4f7-3"&gt;&lt;/a&gt;CLEAN="make clean"
&lt;a id="rest_code_9c80f445ad6544f98d800d280e02c4f7-4" name="rest_code_9c80f445ad6544f98d800d280e02c4f7-4" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9c80f445ad6544f98d800d280e02c4f7-4"&gt;&lt;/a&gt;BUILT_MODULE_NAME[0]="r8169"
&lt;a id="rest_code_9c80f445ad6544f98d800d280e02c4f7-5" name="rest_code_9c80f445ad6544f98d800d280e02c4f7-5" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9c80f445ad6544f98d800d280e02c4f7-5"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION[0]="src"
&lt;a id="rest_code_9c80f445ad6544f98d800d280e02c4f7-6" name="rest_code_9c80f445ad6544f98d800d280e02c4f7-6" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9c80f445ad6544f98d800d280e02c4f7-6"&gt;&lt;/a&gt;DEST_MODULE_LOCATION[0]="/updates"
&lt;a id="rest_code_9c80f445ad6544f98d800d280e02c4f7-7" name="rest_code_9c80f445ad6544f98d800d280e02c4f7-7" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9c80f445ad6544f98d800d280e02c4f7-7"&gt;&lt;/a&gt;MAKE[0]="'make' 'modules'"
&lt;a id="rest_code_9c80f445ad6544f98d800d280e02c4f7-8" name="rest_code_9c80f445ad6544f98d800d280e02c4f7-8" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9c80f445ad6544f98d800d280e02c4f7-8"&gt;&lt;/a&gt;AUTOINSTALL="YES"
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Build and install the module:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_2844e11b34114f69a9a3e17a3e88e945-1" name="rest_code_2844e11b34114f69a9a3e17a3e88e945-1" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_2844e11b34114f69a9a3e17a3e88e945-1"&gt;&lt;/a&gt;$ sudo dkms install r8169/6.017.00
&lt;a id="rest_code_2844e11b34114f69a9a3e17a3e88e945-2" name="rest_code_2844e11b34114f69a9a3e17a3e88e945-2" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_2844e11b34114f69a9a3e17a3e88e945-2"&gt;&lt;/a&gt;...
&lt;a id="rest_code_2844e11b34114f69a9a3e17a3e88e945-3" name="rest_code_2844e11b34114f69a9a3e17a3e88e945-3" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_2844e11b34114f69a9a3e17a3e88e945-3"&gt;&lt;/a&gt; - Installation
&lt;a id="rest_code_2844e11b34114f69a9a3e17a3e88e945-4" name="rest_code_2844e11b34114f69a9a3e17a3e88e945-4" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_2844e11b34114f69a9a3e17a3e88e945-4"&gt;&lt;/a&gt;   - Installing to /lib/modules/3.2.0-35-generic/updates/dkms/
&lt;a id="rest_code_2844e11b34114f69a9a3e17a3e88e945-5" name="rest_code_2844e11b34114f69a9a3e17a3e88e945-5" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_2844e11b34114f69a9a3e17a3e88e945-5"&gt;&lt;/a&gt;...
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;At the moment due to the bug in dkms script it is not possible to create the
dkms tarball directly from realtek sources but you can create one after you
perform the steps above.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_9385e17a07354e0da8d3de73e53ec088-1" name="rest_code_9385e17a07354e0da8d3de73e53ec088-1" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9385e17a07354e0da8d3de73e53ec088-1"&gt;&lt;/a&gt;$ sudo dkms mktarball r8169/6.017.00
&lt;a id="rest_code_9385e17a07354e0da8d3de73e53ec088-2" name="rest_code_9385e17a07354e0da8d3de73e53ec088-2" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9385e17a07354e0da8d3de73e53ec088-2"&gt;&lt;/a&gt;Marking modules for 3.2.0-35-generic (x86_64) for archiving...
&lt;a id="rest_code_9385e17a07354e0da8d3de73e53ec088-3" name="rest_code_9385e17a07354e0da8d3de73e53ec088-3" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9385e17a07354e0da8d3de73e53ec088-3"&gt;&lt;/a&gt;
&lt;a id="rest_code_9385e17a07354e0da8d3de73e53ec088-4" name="rest_code_9385e17a07354e0da8d3de73e53ec088-4" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9385e17a07354e0da8d3de73e53ec088-4"&gt;&lt;/a&gt;Marking /var/lib/dkms/r8169/6.017.00/source for archiving...
&lt;a id="rest_code_9385e17a07354e0da8d3de73e53ec088-5" name="rest_code_9385e17a07354e0da8d3de73e53ec088-5" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9385e17a07354e0da8d3de73e53ec088-5"&gt;&lt;/a&gt;
&lt;a id="rest_code_9385e17a07354e0da8d3de73e53ec088-6" name="rest_code_9385e17a07354e0da8d3de73e53ec088-6" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_9385e17a07354e0da8d3de73e53ec088-6"&gt;&lt;/a&gt;Tarball location: /var/lib/dkms/r8169/6.017.00/tarball//r8169-6.017.00-kernel3.2.0-35-generic-x86_64.dkms.tar.gz
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Afterwards you can load this tarbal on a different machine:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-1" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-1" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-1"&gt;&lt;/a&gt;$ sudo dkms ldtarball r8169-6.017.00-kernel3.2.0-35-generic-x86_64.dkms.tar.gz
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-2" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-2" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-2"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-3" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-3" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-3"&gt;&lt;/a&gt;Loading tarball for r8169-6.017.00
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-4" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-4" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-4"&gt;&lt;/a&gt;Loading /var/lib/dkms/r8169/6.017.00/3.2.0-35-generic/x86_64...
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-5" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-5" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-5"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-6" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-6" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-6"&gt;&lt;/a&gt;DKMS: ldtarball completed.
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-7" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-7" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-7"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-8" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-8" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-8"&gt;&lt;/a&gt;Creating symlink /var/lib/dkms/r8169/6.017.00/source -&amp;gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-9" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-9" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-9"&gt;&lt;/a&gt;                /usr/src/r8169-6.017.00
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-10" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-10" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-10"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-11" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-11" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-11"&gt;&lt;/a&gt;DKMS: add completed.
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-12" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-12" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-12"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-13" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-13" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-13"&gt;&lt;/a&gt;$ sudo dkms install r8169/6.017.00
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-14" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-14" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-14"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-15" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-15" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-15"&gt;&lt;/a&gt;Creating symlink /var/lib/dkms/r8169/6.017.00/source -&amp;gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-16" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-16" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-16"&gt;&lt;/a&gt;                /usr/src/r8169-6.017.00
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-17" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-17" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-17"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-18" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-18" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-18"&gt;&lt;/a&gt;DKMS: add completed.
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-19" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-19" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-19"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-20" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-20" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-20"&gt;&lt;/a&gt;Kernel preparation unnecessary for this kernel.  Skipping...
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-21" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-21" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-21"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-22" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-22" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-22"&gt;&lt;/a&gt;Building module:
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-23" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-23" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-23"&gt;&lt;/a&gt;cleaning build area....
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-24" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-24" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-24"&gt;&lt;/a&gt;'make' 'modules'....
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-25" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-25" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-25"&gt;&lt;/a&gt;cleaning build area....
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-26" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-26" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-26"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-27" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-27" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-27"&gt;&lt;/a&gt;DKMS: build completed.
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-28" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-28" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-28"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-29" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-29" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-29"&gt;&lt;/a&gt;r8169.ko:
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-30" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-30" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-30"&gt;&lt;/a&gt;Running module version sanity check.
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-31" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-31" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-31"&gt;&lt;/a&gt;- Original module
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-32" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-32" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-32"&gt;&lt;/a&gt;- Installation
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-33" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-33" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-33"&gt;&lt;/a&gt;- Installing to /lib/modules/3.2.0-35-generic/updates/dkms/
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-34" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-34" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-34"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-35" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-35" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-35"&gt;&lt;/a&gt;depmod....
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-36" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-36" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-36"&gt;&lt;/a&gt;
&lt;a id="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-37" name="rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-37" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_bfb7afbbb8e04e7fa99b372e2c47e633-37"&gt;&lt;/a&gt;DKMS: install completed.
&lt;/pre&gt;&lt;/div&gt;
&lt;section id="dge-528t"&gt;
&lt;h2&gt;DGE-528T&lt;/h2&gt;
&lt;p&gt;So I left this module running for about a week and yesterday I could not make
the card work after a reboot. It turns out that while the updated r8169 module
&lt;em&gt;is&lt;/em&gt; installed, it is not being used for D-Link DGE-528T card.&lt;/p&gt;
&lt;p&gt;&lt;code class="docutils literal"&gt;r8169_n.c&lt;/code&gt; contains the following:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code c"&gt;&lt;a id="rest_code_41f3b210d8724980af242a41f20e0522-1" name="rest_code_41f3b210d8724980af242a41f20e0522-1" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_41f3b210d8724980af242a41f20e0522-1"&gt;&lt;/a&gt;&lt;span class="k"&gt;static&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;struct&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nc"&gt;pci_device_id&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rtl8169_pci_tbl&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;a id="rest_code_41f3b210d8724980af242a41f20e0522-2" name="rest_code_41f3b210d8724980af242a41f20e0522-2" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_41f3b210d8724980af242a41f20e0522-2"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PCI_DEVICE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;PCI_VENDOR_ID_REALTEK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mh"&gt;0x8167&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;RTL_CFG_0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;a id="rest_code_41f3b210d8724980af242a41f20e0522-3" name="rest_code_41f3b210d8724980af242a41f20e0522-3" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_41f3b210d8724980af242a41f20e0522-3"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PCI_DEVICE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;PCI_VENDOR_ID_REALTEK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mh"&gt;0x8169&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;RTL_CFG_0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;a id="rest_code_41f3b210d8724980af242a41f20e0522-4" name="rest_code_41f3b210d8724980af242a41f20e0522-4" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_41f3b210d8724980af242a41f20e0522-4"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PCI_VENDOR_ID_DLINK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x4300&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PCI_VENDOR_ID_DLINK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x4c00&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;RTL_CFG_0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;a id="rest_code_41f3b210d8724980af242a41f20e0522-5" name="rest_code_41f3b210d8724980af242a41f20e0522-5" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_41f3b210d8724980af242a41f20e0522-5"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,},&lt;/span&gt;
&lt;a id="rest_code_41f3b210d8724980af242a41f20e0522-6" name="rest_code_41f3b210d8724980af242a41f20e0522-6" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_41f3b210d8724980af242a41f20e0522-6"&gt;&lt;/a&gt;&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;So the module does not match &lt;code class="docutils literal"&gt;PCI_VENDOR_ID_DLINK:0x4c00&lt;/code&gt; subsystem (&lt;code class="docutils literal"&gt;lspci &lt;span class="pre"&gt;-vnn&lt;/span&gt;&lt;/code&gt;):&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_70399a43075a483f952c5c2781ab31a8-1" name="rest_code_70399a43075a483f952c5c2781ab31a8-1" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_70399a43075a483f952c5c2781ab31a8-1"&gt;&lt;/a&gt;02:06.0 Ethernet controller [0200]: D-Link System Inc DGE-528T Gigabit Ethernet Adapter [1186:4300] (rev 10)
&lt;a id="rest_code_70399a43075a483f952c5c2781ab31a8-2" name="rest_code_70399a43075a483f952c5c2781ab31a8-2" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_70399a43075a483f952c5c2781ab31a8-2"&gt;&lt;/a&gt;    Subsystem: D-Link System Inc DGE-528T Gigabit Ethernet Adapter [1186:4300]
&lt;a id="rest_code_70399a43075a483f952c5c2781ab31a8-3" name="rest_code_70399a43075a483f952c5c2781ab31a8-3" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_70399a43075a483f952c5c2781ab31a8-3"&gt;&lt;/a&gt;    Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 21
&lt;a id="rest_code_70399a43075a483f952c5c2781ab31a8-4" name="rest_code_70399a43075a483f952c5c2781ab31a8-4" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_70399a43075a483f952c5c2781ab31a8-4"&gt;&lt;/a&gt;    I/O ports at e800 [size=256]
&lt;a id="rest_code_70399a43075a483f952c5c2781ab31a8-5" name="rest_code_70399a43075a483f952c5c2781ab31a8-5" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_70399a43075a483f952c5c2781ab31a8-5"&gt;&lt;/a&gt;    Memory at febffc00 (32-bit, non-prefetchable) [size=256]
&lt;a id="rest_code_70399a43075a483f952c5c2781ab31a8-6" name="rest_code_70399a43075a483f952c5c2781ab31a8-6" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_70399a43075a483f952c5c2781ab31a8-6"&gt;&lt;/a&gt;    Expansion ROM at febc0000 [disabled] [size=128K]
&lt;a id="rest_code_70399a43075a483f952c5c2781ab31a8-7" name="rest_code_70399a43075a483f952c5c2781ab31a8-7" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_70399a43075a483f952c5c2781ab31a8-7"&gt;&lt;/a&gt;    Capabilities: [dc] Power Management version 2
&lt;a id="rest_code_70399a43075a483f952c5c2781ab31a8-8" name="rest_code_70399a43075a483f952c5c2781ab31a8-8" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_70399a43075a483f952c5c2781ab31a8-8"&gt;&lt;/a&gt;    Kernel driver in use: r8169
&lt;a id="rest_code_70399a43075a483f952c5c2781ab31a8-9" name="rest_code_70399a43075a483f952c5c2781ab31a8-9" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_70399a43075a483f952c5c2781ab31a8-9"&gt;&lt;/a&gt;    Kernel modules: r8169
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;a class="reference external" href="http://pci-ids.ucw.cz/read/PC/1186/4c00/11864c00"&gt;1186:4c00&lt;/a&gt; is actually a DGE-T530 card, but it looks like there are some
DGE-T528 cards with &lt;code class="docutils literal"&gt;1186:4300&lt;/code&gt; subsystem and some have &lt;code class="docutils literal"&gt;1186:4c00&lt;/code&gt; one. The
original driver from D-Link has &lt;code class="docutils literal"&gt;PCI_ANY_ID&lt;/code&gt; for subsystem fields so it looks
like these are compatible.&lt;/p&gt;
&lt;p&gt;I was so sure the updated module would fix the issues I was having with the
network card that it actually stopped misbehaving.&lt;/p&gt;
&lt;p&gt;However, I decided to patch the module to make it work with my card too:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code diff"&gt;&lt;a id="rest_code_e144279fb12649cdb07448493a758443-1" name="rest_code_e144279fb12649cdb07448493a758443-1" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_e144279fb12649cdb07448493a758443-1"&gt;&lt;/a&gt;&lt;span class="gd"&gt;--- r8169_n.c.ori   2012-05-03 15:23:12.000000000 +0300&lt;/span&gt;
&lt;a id="rest_code_e144279fb12649cdb07448493a758443-2" name="rest_code_e144279fb12649cdb07448493a758443-2" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_e144279fb12649cdb07448493a758443-2"&gt;&lt;/a&gt;&lt;span class="gi"&gt;+++ r8169_n.c   2012-12-30 19:42:14.818322918 +0200&lt;/span&gt;
&lt;a id="rest_code_e144279fb12649cdb07448493a758443-3" name="rest_code_e144279fb12649cdb07448493a758443-3" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_e144279fb12649cdb07448493a758443-3"&gt;&lt;/a&gt;&lt;span class="gu"&gt;@@ -115,7 +115,8 @@&lt;/span&gt;
&lt;a id="rest_code_e144279fb12649cdb07448493a758443-4" name="rest_code_e144279fb12649cdb07448493a758443-4" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_e144279fb12649cdb07448493a758443-4"&gt;&lt;/a&gt;static struct pci_device_id rtl8169_pci_tbl[] = {
&lt;a id="rest_code_e144279fb12649cdb07448493a758443-5" name="rest_code_e144279fb12649cdb07448493a758443-5" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_e144279fb12649cdb07448493a758443-5"&gt;&lt;/a&gt;&lt;span class="w"&gt; &lt;/span&gt;   { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8167), 0, 0, RTL_CFG_0 },
&lt;a id="rest_code_e144279fb12649cdb07448493a758443-6" name="rest_code_e144279fb12649cdb07448493a758443-6" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_e144279fb12649cdb07448493a758443-6"&gt;&lt;/a&gt;&lt;span class="w"&gt; &lt;/span&gt;   { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8169), 0, 0, RTL_CFG_0 },
&lt;a id="rest_code_e144279fb12649cdb07448493a758443-7" name="rest_code_e144279fb12649cdb07448493a758443-7" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_e144279fb12649cdb07448493a758443-7"&gt;&lt;/a&gt;&lt;span class="gd"&gt;-   { PCI_VENDOR_ID_DLINK, 0x4300, PCI_VENDOR_ID_DLINK, 0x4c00, 0, 0, RTL_CFG_0 },&lt;/span&gt;
&lt;a id="rest_code_e144279fb12649cdb07448493a758443-8" name="rest_code_e144279fb12649cdb07448493a758443-8" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_e144279fb12649cdb07448493a758443-8"&gt;&lt;/a&gt;&lt;span class="gi"&gt;+   { PCI_DEVICE(PCI_VENDOR_ID_DLINK,       0x4300), 0, 0, RTL_CFG_0 },&lt;/span&gt;
&lt;a id="rest_code_e144279fb12649cdb07448493a758443-9" name="rest_code_e144279fb12649cdb07448493a758443-9" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_e144279fb12649cdb07448493a758443-9"&gt;&lt;/a&gt;&lt;span class="gi"&gt;+   //{ PCI_VENDOR_ID_DLINK, 0x4300, PCI_VENDOR_ID_DLINK, 0x4c00, 0, 0, RTL_CFG_0 },&lt;/span&gt;
&lt;a id="rest_code_e144279fb12649cdb07448493a758443-10" name="rest_code_e144279fb12649cdb07448493a758443-10" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_e144279fb12649cdb07448493a758443-10"&gt;&lt;/a&gt;&lt;span class="w"&gt; &lt;/span&gt;   {0,},
&lt;a id="rest_code_e144279fb12649cdb07448493a758443-11" name="rest_code_e144279fb12649cdb07448493a758443-11" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_e144279fb12649cdb07448493a758443-11"&gt;&lt;/a&gt;};
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;And now the module prints the following when loaded:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_4eb7c209ee004697a34809ce41b7468b-1" name="rest_code_4eb7c209ee004697a34809ce41b7468b-1" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_4eb7c209ee004697a34809ce41b7468b-1"&gt;&lt;/a&gt;[18014.031288] r8169 Gigabit Ethernet driver 6.017.00-NAPI loaded
&lt;a id="rest_code_4eb7c209ee004697a34809ce41b7468b-2" name="rest_code_4eb7c209ee004697a34809ce41b7468b-2" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_4eb7c209ee004697a34809ce41b7468b-2"&gt;&lt;/a&gt;[18014.031344] r8169 0000:02:06.0: PCI INT A -&amp;gt; GSI 21 (level, low) -&amp;gt; IRQ 21
&lt;a id="rest_code_4eb7c209ee004697a34809ce41b7468b-3" name="rest_code_4eb7c209ee004697a34809ce41b7468b-3" href="https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/#rest_code_4eb7c209ee004697a34809ce41b7468b-3"&gt;&lt;/a&gt;[18014.033537] r8169: This product is covered by one or more of the following patents: US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776, and US6,327,625.
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;So now I am really testing the module provided by Realtek.&lt;/p&gt;
&lt;/section&gt;</description><category>dkms</category><category>fix</category><category>precise</category><category>realtek</category><category>the-hard-way</category><category>ubuntu</category><guid>https://www.keypressure.com/blog/r8169-dkms-ubuntu-12-04/</guid><pubDate>Tue, 18 Dec 2012 13:04:00 GMT</pubDate></item><item><title>MadWifi HAL DKMS Mini-How-To</title><link>https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/</link><dc:creator>Roman Yepishev</dc:creator><description>&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: Ubuntu Karmic Koala 9.10 seems to support my card at full 54Mbit,
however, I get max 12Mbit upload/download rate… Interesting…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: Ubuntu Jaunty 9.04 has &lt;a class="reference external" href="http://madwifi-project.org/wiki/About/ath5k"&gt;ath5k&lt;/a&gt; driver which supports my card
out-of-the-box without binary blobs and dkms magic is no longer needed :). Max
speed is around 11Mbit with ath5k though&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;devices with newer radios (RF2413 and up) have a different way to handle
tx power control and because we don’t support tx power calibration yet,
they have problems transmitting on rates above 18M. On these cards try to
manually set 11M to get better results.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I happened to own a Wi-Fi card which is not supported by LRM (AR5BX63,
Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI
Express Adapter (rev 01)). Nearly every time my kernel modules got updated
from the repository I got ‘Revision not supported’ message and had to perform
reinstallation of the modules from 0.10.5.6 branch of MadWifi SVN repository.
After upgrade to Intrepid (which has &lt;a class="reference external" href="http://linux.dell.com/dkms/"&gt;DKMS&lt;/a&gt; support built in) I decided that the
same approach may be applied to madwifi-hal.&lt;/p&gt;
&lt;p&gt;So, here’s how it can be done:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p&gt;Download madwifi-hal-0.10.5.6 from madwifi SVN&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_b28d9cf03ba24b2991cb6341e50f089e-1" name="rest_code_b28d9cf03ba24b2991cb6341e50f089e-1" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_b28d9cf03ba24b2991cb6341e50f089e-1"&gt;&lt;/a&gt;svn co http://svn.madwifi-project.org/madwifi/branches/madwifi-hal-0.10.5.6
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Note that madwifi project has changed their domain name from madwifi.org to
madwifi-project.org last November.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Put the following dkms.conf to the madwifi-hal-0.10.5.6 directory:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code sh"&gt;&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-1" name="rest_code_97c94fb0db714f75aba0d207a9076083-1" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-1"&gt;&lt;/a&gt;&lt;span class="nv"&gt;PACKAGE_NAME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"madwifi-hal"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-2" name="rest_code_97c94fb0db714f75aba0d207a9076083-2" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-2"&gt;&lt;/a&gt;&lt;span class="nv"&gt;PACKAGE_VERSION&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"0.10.5.6"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-3" name="rest_code_97c94fb0db714f75aba0d207a9076083-3" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-3"&gt;&lt;/a&gt;&lt;span class="nv"&gt;CLEAN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"make clean"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-4" name="rest_code_97c94fb0db714f75aba0d207a9076083-4" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-4"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"ath_pci"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-5" name="rest_code_97c94fb0db714f75aba0d207a9076083-5" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-5"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"ath"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-6" name="rest_code_97c94fb0db714f75aba0d207a9076083-6" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-6"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-7" name="rest_code_97c94fb0db714f75aba0d207a9076083-7" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-7"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"ath_hal"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-8" name="rest_code_97c94fb0db714f75aba0d207a9076083-8" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-8"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"ath_hal"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-9" name="rest_code_97c94fb0db714f75aba0d207a9076083-9" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-9"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-10" name="rest_code_97c94fb0db714f75aba0d207a9076083-10" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-10"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"wlan_acl"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-11" name="rest_code_97c94fb0db714f75aba0d207a9076083-11" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-11"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"net80211"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-12" name="rest_code_97c94fb0db714f75aba0d207a9076083-12" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-12"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-13" name="rest_code_97c94fb0db714f75aba0d207a9076083-13" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-13"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;3&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"wlan_ccmp"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-14" name="rest_code_97c94fb0db714f75aba0d207a9076083-14" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-14"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;3&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"net80211"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-15" name="rest_code_97c94fb0db714f75aba0d207a9076083-15" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-15"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;3&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-16" name="rest_code_97c94fb0db714f75aba0d207a9076083-16" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-16"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;4&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"wlan"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-17" name="rest_code_97c94fb0db714f75aba0d207a9076083-17" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-17"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;4&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"net80211"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-18" name="rest_code_97c94fb0db714f75aba0d207a9076083-18" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-18"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;4&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-19" name="rest_code_97c94fb0db714f75aba0d207a9076083-19" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-19"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;5&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"wlan_scan_ap"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-20" name="rest_code_97c94fb0db714f75aba0d207a9076083-20" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-20"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;5&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"net80211"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-21" name="rest_code_97c94fb0db714f75aba0d207a9076083-21" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-21"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;5&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-22" name="rest_code_97c94fb0db714f75aba0d207a9076083-22" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-22"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;6&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"wlan_scan_sta"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-23" name="rest_code_97c94fb0db714f75aba0d207a9076083-23" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-23"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;6&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"net80211"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-24" name="rest_code_97c94fb0db714f75aba0d207a9076083-24" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-24"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;6&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-25" name="rest_code_97c94fb0db714f75aba0d207a9076083-25" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-25"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;7&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"wlan_tkip"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-26" name="rest_code_97c94fb0db714f75aba0d207a9076083-26" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-26"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;7&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"net80211"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-27" name="rest_code_97c94fb0db714f75aba0d207a9076083-27" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-27"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;7&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-28" name="rest_code_97c94fb0db714f75aba0d207a9076083-28" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-28"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;8&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"wlan_wep"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-29" name="rest_code_97c94fb0db714f75aba0d207a9076083-29" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-29"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;8&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"net80211"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-30" name="rest_code_97c94fb0db714f75aba0d207a9076083-30" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-30"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;8&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-31" name="rest_code_97c94fb0db714f75aba0d207a9076083-31" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-31"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;9&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"wlan_xauth"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-32" name="rest_code_97c94fb0db714f75aba0d207a9076083-32" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-32"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;9&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"net80211"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-33" name="rest_code_97c94fb0db714f75aba0d207a9076083-33" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-33"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;9&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-34" name="rest_code_97c94fb0db714f75aba0d207a9076083-34" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-34"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;10&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"ath_rate_sample"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-35" name="rest_code_97c94fb0db714f75aba0d207a9076083-35" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-35"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;10&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"ath_rate/sample"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-36" name="rest_code_97c94fb0db714f75aba0d207a9076083-36" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-36"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;10&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-37" name="rest_code_97c94fb0db714f75aba0d207a9076083-37" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-37"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;11&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"ath_rate_amrr"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-38" name="rest_code_97c94fb0db714f75aba0d207a9076083-38" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-38"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;11&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"ath_rate/amrr"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-39" name="rest_code_97c94fb0db714f75aba0d207a9076083-39" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-39"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;11&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-40" name="rest_code_97c94fb0db714f75aba0d207a9076083-40" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-40"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;12&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"ath_rate_minstrel"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-41" name="rest_code_97c94fb0db714f75aba0d207a9076083-41" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-41"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;12&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"ath_rate/minstrel"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-42" name="rest_code_97c94fb0db714f75aba0d207a9076083-42" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-42"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;12&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-43" name="rest_code_97c94fb0db714f75aba0d207a9076083-43" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-43"&gt;&lt;/a&gt;BUILT_MODULE_NAME&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;13&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"ath_rate_onoe"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-44" name="rest_code_97c94fb0db714f75aba0d207a9076083-44" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-44"&gt;&lt;/a&gt;BUILT_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;13&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"ath_rate/onoe"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-45" name="rest_code_97c94fb0db714f75aba0d207a9076083-45" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-45"&gt;&lt;/a&gt;DEST_MODULE_LOCATION&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;13&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"/kernel/drivers/net/wireless"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-46" name="rest_code_97c94fb0db714f75aba0d207a9076083-46" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-46"&gt;&lt;/a&gt;MAKE&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="o"&gt;]=&lt;/span&gt;&lt;span class="s2"&gt;"make modules KERNDIR=/lib/modules/&lt;/span&gt;&lt;span class="nv"&gt;$kernelver&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;a id="rest_code_97c94fb0db714f75aba0d207a9076083-47" name="rest_code_97c94fb0db714f75aba0d207a9076083-47" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_97c94fb0db714f75aba0d207a9076083-47"&gt;&lt;/a&gt;&lt;span class="nv"&gt;AUTOINSTALL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"yes"&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create an archive for the directory:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_664b9935ff3f448e8444e5b3a4409972-1" name="rest_code_664b9935ff3f448e8444e5b3a4409972-1" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_664b9935ff3f448e8444e5b3a4409972-1"&gt;&lt;/a&gt;tar cfz madwifi-hal-0.10.5.6-dkms.tar.gz madwifi-hal-0.10.5.6
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Load madwifi-hal to DKMS source tree:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_d749fecda87a45d6bff1733c3bbb0a0d-1" name="rest_code_d749fecda87a45d6bff1733c3bbb0a0d-1" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_d749fecda87a45d6bff1733c3bbb0a0d-1"&gt;&lt;/a&gt;sudo dkms ldtarball --archive=madwifi-hal-0.10.5.6-dkms.tar.gz
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Build madwifi-hal:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_6fedf25961db456bb2e5af2975805535-1" name="rest_code_6fedf25961db456bb2e5af2975805535-1" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_6fedf25961db456bb2e5af2975805535-1"&gt;&lt;/a&gt;sudo dkms build -m madwifi-hal -v 0.10.5.6
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install madwifi-hal:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_dabd37776f05438091838b99e153e670-1" name="rest_code_dabd37776f05438091838b99e153e670-1" href="https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/#rest_code_dabd37776f05438091838b99e153e670-1"&gt;&lt;/a&gt;sudo dkms install -m madwifi-hal -v 0.10.5.6
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now when kernel is updated or reinstalled – madwifi will be automatically
rebuilt.&lt;/p&gt;</description><category>dkms</category><category>linux</category><category>ubuntu</category><category>wifi</category><guid>https://www.keypressure.com/blog/madwifi-hal-dkms-mini-how-to/</guid><pubDate>Sun, 02 Nov 2008 10:52:00 GMT</pubDate></item></channel></rss>