<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; CentOS 6.3 не получается собрать драйвер]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=27211</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=27211&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «CentOS 6.3 не получается собрать драйвер».]]></description>
		<lastBuildDate>Thu, 28 Mar 2013 19:58:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=336999#p336999</link>
			<description><![CDATA[<div class="quotebox"><cite>miol пишет:</cite><blockquote><p>Есть необходимость собрать драйвер из исходников. При сборке вываливается с ошибкой, причину ошибки нагуглить не удается. Подскажите пожалуйста куда копать.</p></blockquote></div><p>Копать не нужно. Собсно все добро вида MDIO_EEE_* дефайнится в ядрах 3.7 и выше в сырцах ядра include/uapi/linux/mdio.h. В драйверах этих включены ряд функций из новых ядер, а вот дефайны забыли включить походу.<br />Я сделал так. На системе с ядром 3.9 забрал эти дефайны:<br /></p><div class="codebox"><pre><code>barsuk@test:~$ cd /usr/src/linux-headers-3.9.0/include/uapi/linux/
barsuk@test:/usr/src/linux-headers-3.9.0/include/uapi/linux$ cat mdio.h | grep _EEE_ | grep &quot;#define&quot;
#define MDIO_PCS_EEE_ABLE    20    /* EEE Capability register */
#define MDIO_PCS_EEE_WK_ERR    22    /* EEE wake error counter */
#define MDIO_AN_EEE_ADV_100TX    0x0002    /* Advertise 100TX EEE cap */
#define MDIO_AN_EEE_ADV_1000T    0x0004    /* Advertise 1000T EEE cap */
#define MDIO_EEE_100TX        MDIO_AN_EEE_ADV_100TX    /* 100TX EEE cap */
#define MDIO_EEE_1000T        MDIO_AN_EEE_ADV_1000T    /* 1000T EEE cap */
#define MDIO_EEE_10GT        0x0008    /* 10GT EEE cap */
#define MDIO_EEE_1000KX        0x0010    /* 1000KX EEE cap */
#define MDIO_EEE_10GKX4        0x0020    /* 10G KX4 EEE cap */
#define MDIO_EEE_10GKR        0x0040    /* 10G KR EEE cap */</code></pre></div><p>И засунул их в kcompat.h начиная со строки 3214.<br /></p><div class="codebox"><pre><code>#if ( LINUX_VERSION_CODE &lt; KERNEL_VERSION(3,7,0) )
#ifdef ETHTOOL_GEEE
#include &lt;linux/mdio.h&gt;
сюда дефайны
/**
 * mmd_eee_cap_to_ethtool_sup_t
 * @eee_cap: value of the MMD EEE Capability register
 *
 * A small helper function that translates MMD EEE Capability (3.20) bits
 * to ethtool supported settings.
 */
static inline u32 mmd_eee_cap_to_ethtool_sup_t(u16 eee_cap)
{</code></pre></div><p>Патч не прилагаю ибо далеко от этих машин.</p><p>ЗЫ<br />Даж порегался - один трид по этому вопросу в сети. А баг налицо.</p>]]></description>
			<author><![CDATA[null@example.com (barsuk)]]></author>
			<pubDate>Thu, 28 Mar 2013 19:58:12 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=336999#p336999</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333262#p333262</link>
			<description><![CDATA[<p>В BIOS&#039;e VT-d должно присутствовать и включено</p><p>Тут есть:<br /><a href="http://communities.intel.com/community/wired/blog/2010/03/01/setting-up-red-hat-54-xen-for-sr-iov-using-the-intel-82576-gbe">http://communities.intel.com/community/ … -82576-gbe</a><br /> Но я пользовался другим... не могу никак найти его</p><p>Во! Нашел..<br /><a href="http://www.intel.com/content/www/us/en/network-adapters/10-gigabit-network-adapters/ethernet-x520-sr-iov-red-hat-tech-brief.html">http://www.intel.com/content/www/us/en/ … brief.html</a><br />Самый толковый гайд.. рекомендую его внимательно изучить.</p><p>Так как я перерыл сеть в поисках настройки SR-IOV под KVM<br />В каждом какой нибудь мелочи не хватало</p>]]></description>
			<author><![CDATA[null@example.com (AmnoN)]]></author>
			<pubDate>Tue, 12 Mar 2013 16:36:36 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333262#p333262</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333243#p333243</link>
			<description><![CDATA[<p><strong>2 AmnoN</strong><br />Подскажи куда смотреть. <br />В BIOS&#039;e VT(не помню точное название) включено SR-IOV включено.<br />Что еще проверить не знаю.</p>]]></description>
			<author><![CDATA[null@example.com (miol)]]></author>
			<pubDate>Tue, 12 Mar 2013 15:08:11 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333243#p333243</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333236#p333236</link>
			<description><![CDATA[<div class="quotebox"><cite>miol⇓ пишет:</cite><blockquote><p>Я пытаюсь завести SR-IOV. На штатном драйвере  при попытке</p></blockquote></div><p>Что бы завести SR-IOV нужно еще и материнку и процессор подходящий.<br />У меня все заведено на старом драйвере почти без проблем.<br />Когда я попытался поставить драйвер 4.1.2 полезли страшные ошибки, вернул назад...<br />Так что я бы не копал в сторону драйвера.</p>]]></description>
			<author><![CDATA[null@example.com (AmnoN)]]></author>
			<pubDate>Tue, 12 Mar 2013 14:44:30 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333236#p333236</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333226#p333226</link>
			<description><![CDATA[<p><strong>2 pitdron</strong></p><div class="codebox"><pre><code>find / -name mdio.h
  /usr/src/kernels/2.6.32-358.0.1.el6.x86_64/include/linux/mdio.h
  /usr/src/kernels/2.6.32-358.0.1.el6.x86_64/include/config/mdio.h</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (miol)]]></author>
			<pubDate>Tue, 12 Mar 2013 14:22:00 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333226#p333226</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333224#p333224</link>
			<description><![CDATA[<p><strong>2 alexfinn</strong><br />Я ставил kmod-igb с ELRepo результат тот же.<br /></p><div class="quotebox"><blockquote><p>modprobe -r igb; modprobe igb max_vfs=7<br />в консоль выкидывает <br />igb 0000:02:00.0 SR-IOV: bus number out of range</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (miol)]]></author>
			<pubDate>Tue, 12 Mar 2013 14:16:29 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333224#p333224</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333213#p333213</link>
			<description><![CDATA[<p>ТС, подключите ELRepo и поставьте kmod-igb. Там версия 4.1.2. И не мучайтесь.</p>]]></description>
			<author><![CDATA[null@example.com (alexfinn)]]></author>
			<pubDate>Tue, 12 Mar 2013 13:35:11 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333213#p333213</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333204#p333204</link>
			<description><![CDATA[<div class="quotebox"><cite>miol⇓ пишет:</cite><blockquote><p>&nbsp; /root/igb-4.1.2/src/kcompat.h:3225: error: ‘MDIO_EEE_100TX’ undeclared (first use in this function)<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3225: error: (Each undeclared identifier is reported only once<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3225: error: for each function it appears in.)<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3227: error: ‘MDIO_EEE_1000T’ undeclared (first use in this function)<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3229: error: ‘MDIO_EEE_10GT’ undeclared (first use in this function)<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3231: error: ‘MDIO_EEE_1000KX’ undeclared (first use in this function)<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3233: error: ‘MDIO_EEE_10GKX4’ undeclared (first use in this function)<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3235: error: ‘MDIO_EEE_10GKR’ undeclared (first use in this function)<br />&nbsp; /root/igb-4.1.2/src/kcompat.h: In function ‘mmd_eee_adv_to_ethtool_adv_t’:<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3253: error: ‘MDIO_EEE_100TX’ undeclared (first use in this function)<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3255: error: ‘MDIO_EEE_1000T’ undeclared (first use in this function)<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3257: error: ‘MDIO_EEE_10GT’ undeclared (first use in this function)<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3259: error: ‘MDIO_EEE_1000KX’ undeclared (first use in this function)<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3261: error: ‘MDIO_EEE_10GKX4’ undeclared (first use in this function)<br />&nbsp; /root/igb-4.1.2/src/kcompat.h:3263: error: ‘MDIO_EEE_10GKR’ undeclared (first use in this function)</p></blockquote></div><p>Эти неопределенные переменные должны находиться в файле mdio.h для ядер 2.6.32 и выше<br />Поищите его в системе.</p>]]></description>
			<author><![CDATA[null@example.com (pitdron)]]></author>
			<pubDate>Tue, 12 Mar 2013 13:17:25 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333204#p333204</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333196#p333196</link>
			<description><![CDATA[<p><strong>2 Vascom</strong><br />С моим английским это прям проблема.</p>]]></description>
			<author><![CDATA[null@example.com (miol)]]></author>
			<pubDate>Tue, 12 Mar 2013 12:59:23 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333196#p333196</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333195#p333195</link>
			<description><![CDATA[<p>Ну так штатный и интеловский должны быть идентичны. Лучше напиши в багзиллу о проблеме.</p>]]></description>
			<author><![CDATA[null@example.com (Vascom)]]></author>
			<pubDate>Tue, 12 Mar 2013 12:57:14 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333195#p333195</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333194#p333194</link>
			<description><![CDATA[<p><strong>2 Vascom</strong></p><div class="codebox"><pre><code>grep IGB /boot/config-2.6.32-358.0.1.el6.x86_64
  CONFIG_IGB=m
  CONFIG_IGB_DCA=y
  CONFIG_IGB_PTP=y
  CONFIG_IGBVF=m</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (miol)]]></author>
			<pubDate>Tue, 12 Mar 2013 12:56:56 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333194#p333194</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333193#p333193</link>
			<description><![CDATA[<p><strong>2 i2ks</strong></p><p>Стоят</p><div class="codebox"><pre><code>yum install compat-glibc-headers compat-glibc
  Loaded plugins: fastestmirror
  Loading mirror speeds from cached hostfile
   * base: mirror.majorhost.net
   * extras: mirror.majorhost.net
   * updates: centosp3.centos.org
  Setting up Install Process
  Package 1:compat-glibc-headers-2.5-46.2.x86_64 already installed and latest version
  Package 1:compat-glibc-2.5-46.2.x86_64 already installed and latest version
  Nothing to do</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (miol)]]></author>
			<pubDate>Tue, 12 Mar 2013 12:55:45 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333193#p333193</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333192#p333192</link>
			<description><![CDATA[<p><strong>2 Vascom</strong><br />Я пытаюсь завести SR-IOV. На штатном драйвере&nbsp; при попытке <br /></p><div class="codebox"><pre><code>modprobe -r igb; modprobe igb max_vfs=7</code></pre></div><p>в консоль выкидывает <br /></p><div class="codebox"><pre><code>igb 0000:02:00.0 SR-IOV: bus number out of range</code></pre></div><p>и ничего не происходит.</p><p>Решил попробывать на intel&#039;овском.</p>]]></description>
			<author><![CDATA[null@example.com (miol)]]></author>
			<pubDate>Tue, 12 Mar 2013 12:53:27 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333192#p333192</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333191#p333191</link>
			<description><![CDATA[<p>Покажи вывод команды<br /></p><div class="codebox"><pre><code>grep IGB /boot/config-2.6.32-358.0.1.el6.x86_64</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Vascom)]]></author>
			<pubDate>Tue, 12 Mar 2013 12:50:29 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333191#p333191</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS 6.3 не получается собрать драйвер]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=333189#p333189</link>
			<description><![CDATA[<p>compat-glibc-headers и compat-glibc еще поставь</p>]]></description>
			<author><![CDATA[null@example.com (i2ks)]]></author>
			<pubDate>Tue, 12 Mar 2013 12:45:55 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=333189#p333189</guid>
		</item>
	</channel>
</rss>
