LINUX.ORG.RU

Установка драйвера интегрированной сетевой карты

 


0

1

Здравствуйте! При компиляции драйвера сетевой карты Intel® 82579 Gigabit Ethernet Controller, взятого с официального сайта Intel, выдает ряд ошибок и драйвер не устанавливается, подскажите в чем причина. Список ошибок и предупреждений:

 1: /bin/sh: line 0: [: -ge: ожидается использование унарного оператора
 2: gcc -DDRIVER_E1000E -DDRIVER_NAME=e1000e -DDRIVER_NAME_CAPS=E1000E -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -I/lib/modules/2.4.32-vniins42/build/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -include /lib/modules/2.4.32-vniins42/bui
ld/include/linux/modversions.h    -c -o netdev.o netdev.c
 3: In file included from e1000.h:33,
 4:                  from netdev.c:49:
 5 kcompat.h:2083: redefinition of `__sum16'
 6 /lib/modules/2.4.32-vniins42/build/include/linux/types.h:154: `__sum16' previously declared here
 7 kcompat.h:2084: redefinition of `__wsum'
 8 /lib/modules/2.4.32-vniins42/build/include/linux/types.h:155: `__wsum' previously declared here
 9: In file included from e1000.h:33,
10:                  from netdev.c:49:
11: kcompat.h: In function `__kc_udp_csum':
12 kcompat.h:3362: warning: implicit declaration of function `csum_partial'
13 kcompat.h:3366: warning: implicit declaration of function `csum_add'
14: In file included from netdev.c:49:
15: e1000.h: At top level:
16 e1000.h:164: warning: unnamed struct/union that defines no instances
17 e1000.h:170: warning: unnamed struct/union that defines no instances
18 e1000.h:171: warning: unnamed struct/union that defines no instances
19: netdev.c: In function `e1000e_dump_ps_pages':
20 netdev.c:175: structure has no member named `ps_pages'
21 netdev.c:172: warning: `ps_page' might be used uninitialized in this function
22: netdev.c: In function `e1000e_dump':
23 netdev.c:219: parse error before `;'
24 netdev.c:226: parse error before `;'
25 netdev.c:237: parse error before `;'
26 netdev.c:242: structure has no member named `length'
27 netdev.c:243: structure has no member named `next_to_watch'
28 netdev.c:244: structure has no member named `time_stamp'
29 netdev.c:251: parse error before `;'
30 netdev.c:302: structure has no member named `length'
31 netdev.c:302: structure has no member named `next_to_watch'
32 netdev.c:303: structure has no member named `time_stamp'
33 netdev.c:315: parse error before `;'
34 netdev.c:324: parse error before `;'
35: netdev.c: In function `e1000e_update_rdt_wa':
36 netdev.c:657: parse error before `)'
37 netdev.c:657: warning: unused variable `pdev'
38: netdev.c: In function `e1000e_update_tdt_wa':
39 netdev.c:674: parse error before `)'
40 netdev.c:674: warning: unused variable `pdev'
41: netdev.c: In function `e1000_alloc_rx_buffers':
42 netdev.c:718: parse error before `;'
43: netdev.c: In function `e1000_alloc_rx_buffers_ps':
44 netdev.c:794: structure has no member named `ps_pages'
45 netdev.c:815: parse error before `;'
46 netdev.c:841: parse error before `;'
47 netdev.c:783: warning: `ps_page' might be used uninitialized in this function
48: netdev.c: In function `e1000_alloc_jumbo_rx_buffers':
49 netdev.c:913: structure has no member named `page'
50 netdev.c:914: structure has no member named `page'
51 netdev.c:916: structure has no member named `page'
52 netdev.c:924: structure has no member named `page'
53: netdev.c: In function `e1000_clean_rx_irq':
54 netdev.c:1043: parse error before `)'
55 netdev.c:1043: warning: unused variable `pdev'
56: netdev.c: In function `e1000_put_txbuf':
57 netdev.c:1150: structure has no member named `mapped_as_page'
58 netdev.c:1152: structure has no member named `length'
59 netdev.c:1156: structure has no member named `length'
60 netdev.c:1164: structure has no member named `time_stamp'
61: netdev.c: In function `e1000_print_hw_hang':
62 netdev.c:1175: structure has no member named `next_to_watch'
63 netdev.c:1203: parse error before `)'
64 netdev.c:1203: warning: unused variable `pdev'
65 netdev.c:1232: structure has no member named `time_stamp'
66 netdev.c:1241: parse error before `)'
67 netdev.c:1241: warning: unused variable `pdev'
68: netdev.c: In function `e1000_clean_tx_irq':
69 netdev.c:1304: structure has no member named `next_to_watch'
70 netdev.c:1318: structure has no member named `segs'
71 netdev.c:1319: structure has no member named `bytecount'
72 netdev.c:1336: structure has no member named `next_to_watch'
73 netdev.c:1364: structure has no member named `time_stamp'
74 netdev.c:1365: structure has no member named `time_stamp'
75 netdev.c:1298: warning: `eop' might be used uninitialized in this function
76: netdev.c: In function `e1000_clean_rx_irq_ps':
77 netdev.c:1449: parse error before `)'
78 netdev.c:1449: warning: unused variable `pdev'
79 netdev.c:1465: parse error before `)'
80 netdev.c:1465: warning: unused variable `pdev'
81 netdev.c:1489: structure has no member named `ps_pages'
82 netdev.c:1524: structure has no member named `ps_pages'
83 netdev.c:1405: warning: `ps_page' might be used uninitialized in this function
84: netdev.c: In function `e1000_consume_page':
85 netdev.c:1607: structure has no member named `page'
86: netdev.c: In function `e1000_clean_jumbo_rx_irq':
87 netdev.c:1685: structure has no member named `page'
88 netdev.c:1691: structure has no member named `page'
89 netdev.c:1703: structure has no member named `page'
90 netdev.c:1719: structure has no member named `page'
91 netdev.c:1729: structure has no member named `page'
92 netdev.c:1750: parse error before `)'
93 netdev.c:1750: warning: unused variable `pdev'
94: netdev.c: In function `e1000_clean_rx_ring':
95 netdev.c:1832: structure has no member named `page'
96 netdev.c:1833: structure has no member named `page'
97 netdev.c:1834: structure has no member named `page'
98 netdev.c:1843: structure has no member named `ps_pages'
99 netdev.c:1805: warning: `ps_page' might be used uninitialized in this function
100: netdev.c: In function `e1000e_set_interrupt_capability':
101 netdev.c:2286: parse error before `)'
102 netdev.c:2286: warning: unused variable `pdev'
103 netdev.c:2296: parse error before `)'
104 netdev.c:2296: warning: unused variable `pdev'
105: netdev.c: In function `e1000e_setup_tx_resources':
106 netdev.c:2568: parse error before `)'
107 netdev.c:2568: warning: unused variable `pdev'
108: netdev.c: In function `e1000e_setup_rx_resources':
109 netdev.c:2591: structure has no member named `ps_pages'
110 netdev.c:2595: structure has no member named `ps_pages'
111 netdev.c:2618: structure has no member named `ps_pages'
112 netdev.c:2622: parse error before `)'
113 netdev.c:2622: warning: unused variable `pdev'
114: netdev.c: In function `e1000e_free_rx_resources':
115 netdev.c:2694: structure has no member named `ps_pages'
116: netdev.c: In function `e1000_alloc_queues':
117 netdev.c:2878: parse error before `)'
118 netdev.c:2878: warning: unused variable `pdev'
119: netdev.c: In function `e1000_init_manageability_pt':
120 netdev.c:3296: parse error before `)'
121 netdev.c:3296: warning: unused variable `pdev'
122: netdev.c: In function `e1000_setup_rctl':
123 netdev.c:3416: parse error before `)'
124 netdev.c:3416: warning: unused variable `pdev'
125: netdev.c: In function `e1000e_reset':
126 netdev.c:4368: parse error before `;'
127 netdev.c:4374: parse error before `;'
128 netdev.c:4398: parse error before `)'
129 netdev.c:4398: warning: unused variable `pdev'
130 netdev.c:4428: parse error before `;'
131 netdev.c:4435: parse error before `;'
132: netdev.c: In function `e1000e_down':
133 netdev.c:4584: parse error before `)'
134 netdev.c:4584: warning: unused variable `pdev'
135: netdev.c: In function `e1000_test_msi_interrupt':
136 netdev.c:4779: parse error before `)'
137 netdev.c:4779: warning: unused variable `pdev'
138 netdev.c:4781: parse error before `)'
139 netdev.c:4781: warning: unused variable `pdev'
140: netdev.c: In function `e1000_open':
141 netdev.c:4908: parse error before `)'
142 netdev.c:4908: warning: unused variable `pdev'
143: netdev.c: In function `e1000_phy_read_status':
144 netdev.c:5375: parse error before `)'
145 netdev.c:5375: warning: unused variable `pdev'
146: netdev.c: In function `e1000e_has_link':
147 netdev.c:5445: parse error before `)'
148 netdev.c:5445: warning: unused variable `pdev'
149: netdev.c: In function `e1000e_check_82574_phy_workaround':
150 netdev.c:5478: parse error before `)'
151 netdev.c:5478: warning: unused variable `pdev'
152: netdev.c: In function `e1000_watchdog_task':
153 netdev.c:5555: parse error before `)'
154 netdev.c:5554: warning: unused variable `pdev'
155 netdev.c:5571: parse error before `)'
156 netdev.c:5571: warning: unused variable `pdev'
157: netdev.c: In function `e1000_tx_csum':
158 netdev.c:5902: structure has no member named `time_stamp'
159 netdev.c:5903: structure has no member named `next_to_watch'
160: netdev.c: In function `e1000_tx_map':
161 netdev.c:5930: structure has no member named `length'
162 netdev.c:5931: structure has no member named `time_stamp'
163 netdev.c:5932: structure has no member named `next_to_watch'
164 netdev.c:5936: structure has no member named `mapped_as_page'
165 netdev.c:5966: structure has no member named `length'
166 netdev.c:5967: structure has no member named `time_stamp'
167 netdev.c:5968: structure has no member named `next_to_watch'
168 netdev.c:5972: structure has no member named `mapped_as_page'
169 netdev.c:5992: structure has no member named `segs'
170 netdev.c:5993: structure has no member named `bytecount'
171 netdev.c:5994: structure has no member named `next_to_watch'
172 netdev.c:5999: parse error before `;'
173: netdev.c: In function `e1000_tx_queue':
174 netdev.c:6059: structure has no member named `length'
175: netdev.c: In function `e1000_xmit_frame':
176 netdev.c:6323: structure has no member named `time_stamp'
177: netdev.c: In function `e1000_tx_timeout':
178 netdev.c:6340: parse error before `)'
179 netdev.c:6340: warning: unused variable `pdev'
180: netdev.c: In function `e1000_reset_task':
181 netdev.c:6358: parse error before `)'
182 netdev.c:6358: warning: unused variable `pdev'
183: netdev.c: In function `e1000_change_mtu':
184 netdev.c:6448: parse error before `)'
185 netdev.c:6448: warning: unused variable `pdev'
186 netdev.c:6455: parse error before `)'
187 netdev.c:6455: warning: unused variable `pdev'
188 netdev.c:6463: parse error before `)'
189 netdev.c:6463: warning: unused variable `pdev'
190: netdev.c: In function `e1000_init_phy_wakeup':
191 netdev.c:6683: parse error before `)'
192 netdev.c:6683: warning: unused variable `pdev'
193 netdev.c:6738: parse error before `)'
194 netdev.c:6738: warning: unused variable `pdev'
195: netdev.c: In function `__e1000_resume':
196 netdev.c:7002: parse error before `;'
197: netdev.c: In function `e1000_eeprom_checks':
198 netdev.c:7442: parse error before `;'
199: netdev.c: In function `e1000_probe':
200 netdev.c:7576: parse error before `;'
201 netdev.c:7714: parse error before `;'
202 netdev.c:7801: parse error before `;'
203 netdev.c:7812: parse error before `;'
204: make: *** [netdev.o] Ошибка 1

Есть еще лог при компиляции с игнорированием ошибок, но он достаточно большой и не влез сюда.

А чем стандартный драйвер не устроил? Наверняка в ядре есть?

peregrine ★★★★★ ()

а чего не в ядро собрать или модулем вместе с ядром?

Опция ядра:

CONFIG_E1000E
Расположение:
-> Device Drivers 
   -> Network device support 
      -> Ethernet driver support
         -> Intel devices
            < > Intel(R) PRO/1000 PCI-Express Gigabit Ethernet support (NEW) 

redhat ()
Ответ на: комментарий от redhat

2.4.32-vniins42
а чего не в ядро собрать или модулем вместе с ядром?

На каком ядре наличие драйвера проверял :) Это похо же МСВС 3.0, причем протухшая версия.

arson ★★★★★ ()
Ответ на: комментарий от k_u_z_i_k

Возможно, если скомпилировать и установить драйвер. Я скачал все 5 версий драйвера с интела, у меня ни одна из них не смогла скомпилироваться на gcc-4.9.2/glibc-2.20.

А поскольку я в этом не разбираюсь, то не подскажу как быть.

redhat ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.