igb io error.
namdala opened this issue · comments
Hello,
when I execte timple_talker command, I got the error message.
-
command : $sudo ./simple_talker -i enp3so -t 2
-
error msg
attaching to 0000:03:00.0
attach failed! (Unknown error -6)
connet failed (No such file or directory) - are you running as root?
I checked igb.c code in ./lib/igb_avb/lib folder.
problem code is
"adapter->ldev = open("/dev/igb_avb", O_RDWR);"
In the system I built, /dev/igb_avb does not exist, so I changed it to /sys/class/net/enp3s0. However, the return value of ldev is -1.
If you have encountered the same error message, please share how you resolved it.
thanks.
Hello,
/dev/igb_avb is provided by igb_avb module see https://github.com/AVnu/igb_avb/
run_igb.sh shows how to load that module properly.
Regards,
Marcin
execute result is as blow.
mmtp@mmtp-B80GV-AP05D6E:~/OpenAvnu$ ./run_igb.sh enp3s0
rmmod: ERROR: ../libkmod/libkmod-module.c:799 kmod_module_remove_module() could not remove 'igb': Operation not permitted
rmmod: ERROR: could not remove module igb: Operation not permitted
insmod: ERROR: could not load module kmod/igb/igb_avb.ko: No such file or directory
driver: igb
version: 6.2.0-39-generic
firmware-version: 3.25, 0x800005cd, 1.924.0
expansion-rom-version:
bus-info: 0000:03:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
when I execute command as insmod, I got always error message as "Operation not permitted".
could you help me?
Try
sudo ./run_igb.sh enp3s0
Familiarity with linux is required to use OpenAvnu.
It is same.
mmtp@mmtp-B80GV-AP05D6E:/sys/class/net$ ls
eno1 enp3s0 lo
mmtp@mmtp-B80GV-AP05D6E:/sys/class/net$ sudo ~/OpenAvnu/run_igb.sh enp3s0
[sudo] password for mmtp:
insmod: ERROR: could not load module kmod/igb/igb_avb.ko: No such file or directory
Cannot get driver information: No such device
mmtp@mmtp-B80GV-AP05D6E:/sys/class/net$ ls
eno1 lo
mmtp@mmtp-B80GV-AP05D6E:/sys/class/net$
What more can I do?
Why TC command is used when igb driver exposed with 2 queues in userspace for TSN. how will the TSN effected bt tc when running tx queues from userspace ?