Avnu / OpenAvnu

OpenAvnu - an Avnu sponsored repository for Time Sensitive Network (TSN and AVB) technology
462 stars 289 forks source link

igb io error. #932

Open namdala opened 6 months ago

namdala commented 6 months ago

Hello,

when I execte timple_talker command, I got the error message.

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.

MarcinMiklas commented 5 months ago

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

namdala commented 5 months ago

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?

MarcinMiklas commented 5 months ago

Try

sudo ./run_igb.sh enp3s0

Familiarity with linux is required to use OpenAvnu.

namdala commented 5 months ago

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?

anishkhannayellapu124 commented 3 weeks ago

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 ?