find association between HW device and driver/module
What techniques to use in order to find driver/module associated with a hardware device? For example I have two NIC's in my PC. Kernel ring buffer doesn't give out much helpful information this time:
Code:
root:~ # dmesg | egrep "eth1|eth2" Code:
for module in `lsmod | cut -f1 -d " "`; do modinfo $module; done What tricks/software to you use in order to associate module with hardware device? :rolleyes: |
Try
Code:
lspci -vv |
Actually, your first command gave you the result. The tg3 kernel driver is used for eth1. You can also:
Code:
ls -ld /sys/class/net/eth0/device/driver/module/drivers/pci* |
Rather than digging in /sys, I use lspci -n. then google the pci id, e.g. google 1039:0900 for my network card, and you won;t even have to look up a page.
|
This is what ethtool(8) is for, e.g.:
Code:
# ethtool -i eth1 |
Thank you for all the replies! I upgraded tg3.ko(driver for Broadcom Corporation NetXtreme BCM5722 NIC) from version 3.91 to 3.116j remotely over SSH. I did:
Code:
rmmod tg3; sleep 5; insmod /root/user/Server/Linux/Driver/tg3-3.116j/tg3.ko Code:
IBM:~ # ethtool -i eth1 |
All times are GMT -5. The time now is 05:22 AM. |