安不上英特尔有线网卡驱动。
Tofloor
poster avatar
chantian
deepin
2019-06-29 19:10
Author
I210AT从英特尔网站下的适配驱动,解压后按照提示安装,结果到make install每次都说没有那个文件或目录。
Reply Favorite View the author
All Replies
avatar
chantian
deepin
2019-06-29 19:12
#1
以下是驱动安装说明。
Move the base driver tar file to the directory of your choice. For
   example, use '/home/username/igb' or '/usr/local/src/igb'.

2. Untar/unzip the archive, where is the version number for the
   driver tar file:
   tar zxf igb-.tar.gz

3. Change to the driver src directory, where is the version number
   for the driver tar:
   cd igb-/src/

4. Compile the driver module:
   # make install
   The binary will be installed as:
   /lib/modules//updates/drivers/net/ethernet/intel/igb/igb.ko

   The install location listed above is the default location. This may differ
   for various Linux distributions.

5. Load the module using the modprobe command:
   modprobe [parameter=port1_value,port2_value]

   Make sure that any older igb drivers are removed from the kernel before
   loading the new module:
   rmmod igb; modprobe igb

6. Assign an IP address to the interface by entering the following,
   where ethX is the interface name that was shown in dmesg after modprobe:
  
   ip address add / dev ethX

7. Verify that the interface works. Enter the following, where IP_address
   is the IP address for another machine on the same subnet as the interface
   that is being tested:
   ping
Reply View the author
avatar
chantian
deepin
2019-06-29 19:14
#2
这是我的安装过程:
tiger@tiger-PC:~/Downloads$ cd igb-5.3.5.22s/src/
tiger@tiger-PC:~/Downloads/igb-5.3.5.22s/src$ # make install
tiger@tiger-PC:~/Downloads/igb-5.3.5.22s/src$ /lib/modules/4.15.0-30/updates/drivers/net/ethernet/intel/igb/igb.ko
bash: /lib/modules/4.15.0-30/updates/drivers/net/ethernet/intel/igb/igb.ko: 没有那个文件或目录
Reply View the author
avatar
funtoo
deepin
2019-06-29 19:45
#3
tiger@tiger-PC:~/Downloads/igb-5.3.5.22s/src$ # make install

文档里面的#表示要以root身份运行,所以你应该执行
  1. sudo make install
Copy the Code

Reply View the author
avatar
chantian
deepin
2019-06-29 19:54
#4
https://bbs.deepin.org/post/180011
文档里面的#表示要以root身份运行,所以你应该执行

不行啊,执行后出错了:
tiger@tiger-PC:~/Downloads/igb-5.3.5.22s/src$ sudo make install
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-30deepin-generic'
  CC [M]  /home/tiger/Downloads/igb-5.3.5.22s/src/igb_main.o
In file included from /home/tiger/Downloads/igb-5.3.5.22s/src/kcompat.h:68:0,
                 from /home/tiger/Downloads/igb-5.3.5.22s/src/igb.h:53,
                 from /home/tiger/Downloads/igb-5.3.5.22s/src/igb_main.c:51:
./include/generated/utsrelease.h:2:32: error: invalid suffix "deepin" on integer constant
#define UTS_UBUNTU_RELEASE_ABI 30deepin
                                ^
/home/tiger/Downloads/igb-5.3.5.22s/src/kcompat.h:809:5: note: in expansion of macro ‘UTS_UBUNTU_RELEASE_ABI’
#if UTS_UBUNTU_RELEASE_ABI > 255
     ^~~~~~~~~~~~~~~~~~~~~~
./include/generated/utsrelease.h:2:32: error: invalid suffix "deepin" on integer constant
#define UTS_UBUNTU_RELEASE_ABI 30deepin
                                ^
/home/tiger/Downloads/igb-5.3.5.22s/src/kcompat.h:807:9: note: in expansion of macro ‘UTS_UBUNTU_RELEASE_ABI’
         UTS_UBUNTU_RELEASE_ABI)
         ^~~~~~~~~~~~~~~~~~~~~~
/home/tiger/Downloads/igb-5.3.5.22s/src/kcompat.h:4927:6: note: in expansion of macro ‘UBUNTU_VERSION_CODE’
#if (UBUNTU_VERSION_CODE && UBUNTU_VERSION_CODE >= UBUNTU_VERSION(3,13,0,24))
      ^~~~~~~~~~~~~~~~~~~
./include/generated/utsrelease.h:2:32: error: invalid suffix "deepin" on integer constant
#define UTS_UBUNTU_RELEASE_ABI 30deepin
                                ^
/home/tiger/Downloads/igb-5.3.5.22s/src/kcompat.h:807:9: note: in expansion of macro ‘UTS_UBUNTU_RELEASE_ABI’
         UTS_UBUNTU_RELEASE_ABI)
         ^~~~~~~~~~~~~~~~~~~~~~
/home/tiger/Downloads/igb-5.3.5.22s/src/kcompat.h:4927:29: note: in expansion of macro ‘UBUNTU_VERSION_CODE’
#if (UBUNTU_VERSION_CODE && UBUNTU_VERSION_CODE >= UBUNTU_VERSION(3,13,0,24))
                             ^~~~~~~~~~~~~~~~~~~
scripts/Makefile.build:332: recipe for target '/home/tiger/Downloads/igb-5.3.5.22s/src/igb_main.o' failed
make[2]: *** [/home/tiger/Downloads/igb-5.3.5.22s/src/igb_main.o] Error 1
Makefile:1552: recipe for target '_module_/home/tiger/Downloads/igb-5.3.5.22s/src' failed
make[1]: *** [_module_/home/tiger/Downloads/igb-5.3.5.22s/src] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-30deepin-generic'
Makefile:95: recipe for target 'default' failed
make: *** [default] Error 2
Reply View the author
avatar
走钢丝
deepin
2019-06-29 20:13
#5
./include/generated/utsrelease.h 是什么内容啊,明显生成的内容不对。
Reply View the author
avatar
funtoo
deepin
2019-06-29 20:13
#6
https://bbs.deepin.org/post/180011
不行啊,执行后出错了:
tiger@tiger-PC:~/Downloads/igb-5.3.5.22s/src$ sudo make install
make[1]: En ...
./include/generated/utsrelease.h:2:32: error: invalid suffix "deepin" on integer constant
#define UTS_UBUNTU_RELEASE_ABI 30deepin
你的这个驱动源代码不认识deepin这个发行版,只能尝试修改/usr/include/generated/utsrelease.h这个头文件,把deepin的字样换成ubuntu尝试下,注意先备份文件。
Reply View the author
avatar
chantian
deepin
2019-06-29 20:24
#7
https://bbs.deepin.org/post/180011
你的这个驱动源代码不认识deepin这个发行版,只能尝试修改/usr/include/generated/utsrelease.h这个头文 ...

谢谢你,不过我的系统没有generated这个文件夹,更没有utsrelease.h这个文件。看来是英特尔的问题了。
Reply View the author
avatar
chantian
deepin
2019-06-29 20:26
#8
https://bbs.deepin.org/post/180011
./include/generated/utsrelease.h 是什么内容啊,明显生成的内容不对。

那怎么办呢?
Reply View the author
avatar
走钢丝
deepin
2019-06-29 20:32
#9

我也不知道,自己修修改改,参考楼上的方法呗。
Reply View the author
avatar
走钢丝
deepin
2019-06-29 20:35
#10
不过这文件是自动生成的,不知道改了后,再运行命令会不会覆盖。
Reply View the author