こんなエラーが出る
1 2 3 4 | [root@localhost CentOS7-1804_64bit_kernel3.10.0-862] # insmod tty_Virtual.ko insmod: ERROR: could not insert module tty_Virtual.ko: File exists [root@localhost CentOS7-1804_64bit_kernel3.10.0-862] # insmod usb-px4.ko insmod: ERROR: could not insert module usb-px4.ko: File exists |
原因はOSとドライバーのバージョンが違うため
OS側が3.10.0-693に対して、
ドライバー側が3.10.0-862なのが原因
1 2 3 4 5 | [root@localhost CentOS7-1804_64bit_kernel3.10.0-862] # modinfo tty_Virtual.ko | grep vermagic vermagic: 3.10.0-862.3.3.el7.x86_64 SMP mod_unload modversions [root@localhost CentOS7-1804_64bit_kernel3.10.0-862] # uname -r 3.10.0-693.el7.x86_64 |
OS側と同じバージョンのドライバーを入れる。
公式ページ(http://www.plex-net.co.jp/download/)
ここからダウンロード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # unzip CentOS7-1708_64bit_kernel3.10.0-693.zip [root@localhost CentOS7-1708_64bit_kernel3.10.0-693] # ll total 7952 -rw-r--r--. 1 root root 300208 Dec 22 2017 tty_Virtual.ko -rw-r--r--. 1 root root 7838824 Dec 22 2017 usb-px4.ko [root@localhost CentOS7-1708_64bit_kernel3.10.0-693] # insmod tty_Virtual.ko [root@localhost CentOS7-1708_64bit_kernel3.10.0-693] # insmod usb-px4.ko [root@localhost CentOS7-1708_64bit_kernel3.10.0-693] # lsmod | grep px4 usb_px4 446056 0 tty_Virtual 22223 1 usb_px4 [root@localhost CentOS7-1708_64bit_kernel3.10.0-693] # ls /dev/px4* /dev/px4-DTV0 /dev/px4-DTV2 /dev/px4-DTV4 /dev/px4-DTV6 /dev/px4-DTV1 /dev/px4-DTV3 /dev/px4-DTV5 /dev/px4-DTV7 |
めでたしめでたし