[etherlab-users] Tips: unbind manually PCI device
Matthieu Bec
mbec at gmto.org
Tue Sep 8 22:34:01 CEST 2015
Hi Sebastien,
Thanks, really useful for servers equipped with several e1000e, bumpless restart of ethercat is great.
Attached patch should automate the task (3.6.11.9 and later, I haven't looked older version)
Regards,
Matthieu
On 4/11/15, 3:24 AM, "etherlab-users on behalf of Sebastien BLANCHET" <etherlab-users-bounces at etherlab.org on behalf of blanchet at iram.fr> wrote:
Hi,
I have finally found an answer for an old question
http://lists.etherlab.org/pipermail/etherlab-users/2011/001459.html
The question was:
In the context of running EtherCAT on a diskless computer with two
identical Intel e100 network interfaces eth0 and eth1,
How to run simultaneously the e100 driver on eth0 for the LAN, and the
ec_e100 driver on eth1 for EtherCAT ?"
The solution was explained in a Greg Kroah-Hartman's article
https://lwn.net/Articles/143397/
Summary:
- Find the PCI slots and actual kernel driver with "lspci -Dk"
- Unbind manually the driver with procfs
- Load another driver
Example:
========
Find PCI slots and actual kernel driver
# lspci -Dk
0000:01:06.0 Ethernet controller: Intel Corporation 8255xER/82551IT Fast
Ethernet Controller (rev 10)
Kernel driver in use: e100
0000:01:07.0 Ethernet controller: Intel Corporation 8255xER/82551IT Fast
Ethernet Controller (rev 10)
Kernel driver in use: e100
Unbind kernel driver e100 from device 0000:01:07.0
# echo -n "0000:01:07.0" > /sys/bus/pci/drivers/e100/unbind
Load another driver
# /sbin/modprobe ec_master main_devices=00:20:38:01:84:97
# /sbin/modprobe ec_e100
Check the new driver
# lspci -Dk
0000:01:06.0 Ethernet controller: Intel Corporation 8255xER/82551IT Fast
Ethernet Controller (rev 10)
Kernel driver in use: e100
0000:01:07.0 Ethernet controller: Intel Corporation 8255xER/82551IT Fast
Ethernet Controller (rev 10)
Kernel driver in use: ec_e100
regards
--
Sebastien BLANCHET
_______________________________________________
etherlab-users mailing list
etherlab-users at etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ethercatctl.in.patch
Type: application/octet-stream
Size: 1164 bytes
Desc: ethercatctl.in.patch
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20150908/14acf717/attachment-0003.obj>
More information about the Etherlab-users
mailing list