Configure the modules to be find by modprobe

本文介绍如何通过sudo命令加载Linux内核模块,并使用depmod工具更新内核模块依赖信息,最后利用modprobe实用程序加载指定模块。
#------------------------------------------------------------------------------ # # EtherCAT master configuration file for use with ethercatctl. # # $Id$ # # vim: spelllang=en spell tw=78 # #------------------------------------------------------------------------------ # # Main Ethernet devices. # # The MASTER<X>_DEVICE variable specifies the Ethernet device for a master # with index 'X'. # # Specify the MAC address (hexadecimal with colons) of the Ethernet device to # use. Example: "00:00:08:44:ab:66" # # Alternatively, a network interface name can be specified. The interface # name will be resolved to a MAC address using the 'ip' command. # Example: "eth0" # # The broadcast address "ff:ff:ff:ff:ff:ff" has a special meaning: It tells # the master to accept the first device offered by any Ethernet driver. # # The MASTER<X>_DEVICE variables also determine, how many masters will be # created: A non-empty variable MASTER0_DEVICE will create one master, adding a # non-empty variable MASTER1_DEVICE will create a second master, and so on. # # Examples: # MASTER0_DEVICE="00:00:08:44:ab:66" # MASTER0_DEVICE="eth0" # MASTER0_DEVICE="00:50:56:3e:ec:78" #MASTER1_DEVICE="" # # Backup Ethernet devices # # The MASTER<X>_BACKUP variables specify the devices used for redundancy. They # behaves nearly the same as the MASTER<X>_DEVICE variable, except that it # does not interpret the ff:ff:ff:ff:ff:ff address. # #MASTER0_BACKUP="" # # Ethernet driver modules to use for EtherCAT operation. # # Specify a non-empty list of Ethernet drivers, that shall be used for # EtherCAT operation. # # Except for the generic Ethernet driver module, the init script will try to # unload the usual Ethernet driver modules in the list and replace them with # the EtherCAT-capable ones. If a certain (EtherCAT-capable) driver is not # found, a warning will appear. # # Possible values: 8139too, e100, e1000, e1000e, r8169, generic, ccat, igb, igc. # Separate multiple drivers with spaces. # A list of all matching kernel versions can be found here: # https://docs.etherlab.org/ethercat/1.5/doxygen/devicedrivers.html # # Note: The e100, e1000, e1000e, r8169, ccat, igb and igc drivers are not built by # default. Enable them with the --enable-<driver> configure switches. # # Attention: When using the generic driver, the corresponding Ethernet device # has to be activated (with OS methods, for example 'ip link set ethX up'), # before the master is started, otherwise all frames will time out. # DEVICE_MODULES="generic" # If you have any issues about network interfaces not being configured # properly, systemd may need some additional infos about your setup. # Have a look at the service file, you'll find some details there. # # # Flags for loading kernel modules. # # This can usually be left empty. Adjust this variable, if you have problems # with module loading. # #MODPROBE_FLAGS="-b" #------------------------------------------------------------------------------
最新发布
09-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值