《OPENCL license在window下可以用,不知道为什么在linux(ubuntu/CentOS)下用不了》

From Terasic Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with " 绑定mac地址的网卡在系统中的名字必须是eth0才行。 There is a problem with Quartus/OpenCL license in CentOS 7.0. Quartus license requires the Ethernet port to ...")
Line 1: Line 1:
-
 
绑定mac地址的网卡在系统中的名字必须是eth0才行。
绑定mac地址的网卡在系统中的名字必须是eth0才行。
There is a problem with Quartus/OpenCL license in CentOS 7.0.
There is a problem with Quartus/OpenCL license in CentOS 7.0.
 +
Quartus license requires the Ethernet port to be named eth0
Quartus license requires the Ethernet port to be named eth0
 +
CentOS 7.x has Ethernet port names starting enpXXXXX
CentOS 7.x has Ethernet port names starting enpXXXXX
 +
Please refer to following workaround to modify the Ethernet port name.
Please refer to following workaround to modify the Ethernet port name.
 +
vi /etc/default/grub
vi /etc/default/grub
 +
(add "net.ifnames=0" to GRUB_CMDLINE_LINUX variable)
(add "net.ifnames=0" to GRUB_CMDLINE_LINUX variable)
 +
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
 +
sudo vi /etc/udev/rules.d/70-persistent-net.rules
sudo vi /etc/udev/rules.d/70-persistent-net.rules
-
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:a9:7a:e1",  ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
+
 
 +
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:a9:7a:e1",  ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
 +
 
The example path might be different from your computer. If so, please modify it.
The example path might be different from your computer. If so, please modify it.

Revision as of 14:49, 24 May 2017

绑定mac地址的网卡在系统中的名字必须是eth0才行。

There is a problem with Quartus/OpenCL license in CentOS 7.0.

Quartus license requires the Ethernet port to be named eth0

CentOS 7.x has Ethernet port names starting enpXXXXX

Please refer to following workaround to modify the Ethernet port name.

vi /etc/default/grub

(add "net.ifnames=0" to GRUB_CMDLINE_LINUX variable)

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

sudo vi /etc/udev/rules.d/70-persistent-net.rules

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:a9:7a:e1", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

The example path might be different from your computer. If so, please modify it.





back