Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

igb io error. #932

Open
namdala opened this issue Jan 5, 2024 · 5 comments
Open

igb io error. #932

namdala opened this issue Jan 5, 2024 · 5 comments

Comments

@namdala
Copy link

namdala commented Jan 5, 2024

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.

@MarcinMiklas
Copy link
Contributor

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
Copy link
Author

namdala commented Jan 9, 2024

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
Copy link
Contributor

Try

sudo ./run_igb.sh enp3s0

Familiarity with linux is required to use OpenAvnu.

@namdala
Copy link
Author

namdala commented Jan 9, 2024

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
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants