Here's a script that should install the drivers on Ubuntu 18.04.Great,
thanks acquacow, got it now.
In the future I may be using the card in Ubuntu also, so I would be interested to know how to get it working in 18.04 Ubuntu. So if you can share the patches needed, that would be great.
Note: This only installs the drivers for the current kernel version. And you can't install two versions of the driver, due to conflicts in some of the files. So, after one installs a new kernel version, this requires rebuild for the new kernel version, removal of the previous driver version (due to conflicts), and install of the new driver version.
Code:
sudo apt-get install -y gcc fakeroot build-essential debhelper rsync
sudo apt-get install linux-headers-generic # ubuntu
sudo apt-get install -y libelf-dev
tar xzf iomemory-vsl_3.2.16.1731-1.0.tar.gz
cd iomemory-vsl-3.2.16.1731
cp ./root/usr/src/iomemory-vsl-3.2.16/kfio/.x86_64_cc63_libkfio.o.cmd ./root/usr/src/iomemory-vsl-3.2.16/kfio/.x86_64_cc73_libkfio.o.cmd
cp ./root/usr/src/iomemory-vsl-3.2.16/kfio/x86_64_cc63_libkfio.o_shipped ./root/usr/src/iomemory-vsl-3.2.16/kfio/x86_64_cc73_libkfio.o_shipped
patch -p0 <<EOF
--- fio-driver.spec.~1~ 2018-08-15 16:07:19.000000000 -0500
+++ fio-driver.spec 2019-03-03 08:00:54.949738642 -0600
@@ -328,8 +328,8 @@
/usr/src/iomemory-vsl-3.2.16/include/fio/port/linux/ktypes.h
/usr/src/iomemory-vsl-3.2.16/include/fio/port/linux/utypes.h
/usr/src/iomemory-vsl-3.2.16/include/fio/port/gcc/align.h
-/usr/src/iomemory-vsl-3.2.16/kfio/.x86_64_cc63_libkfio.o.cmd
-/usr/src/iomemory-vsl-3.2.16/kfio/x86_64_cc63_libkfio.o_shipped
+/usr/src/iomemory-vsl-3.2.16/kfio/.x86_64_cc73_libkfio.o.cmd
+/usr/src/iomemory-vsl-3.2.16/kfio/x86_64_cc73_libkfio.o_shipped
%changelog
--- ./debian/iomemory-vsl-source.install.~1~ 2018-08-15 16:54:59.000000000 -0500
+++ ./debian/iomemory-vsl-source.install 2019-03-03 08:46:38.258317811 -0600
@@ -119,6 +119,7 @@
usr/src/iomemory-vsl-3.2.16/kfio/.x86_64_cc54_libkfio.o.cmd
usr/src/iomemory-vsl-3.2.16/kfio/.x86_64_cc53_libkfio.o.cmd
usr/src/iomemory-vsl-3.2.16/kfio/.x86_64_cc63_libkfio.o.cmd
+usr/src/iomemory-vsl-3.2.16/kfio/.x86_64_cc73_libkfio.o.cmd
usr/src/iomemory-vsl-3.2.16/kfio/.x86_64_cc41_libkfio.o.cmd
usr/src/iomemory-vsl-3.2.16/kfio/.x86_64_cc44_libkfio.o.cmd
usr/src/iomemory-vsl-3.2.16/kfio/.x86_64_cc48_libkfio.o.cmd
@@ -128,5 +129,6 @@
usr/src/iomemory-vsl-3.2.16/kfio/x86_64_cc41_libkfio.o_shipped
usr/src/iomemory-vsl-3.2.16/kfio/x86_64_cc48_libkfio.o_shipped
usr/src/iomemory-vsl-3.2.16/kfio/x86_64_cc63_libkfio.o_shipped
+usr/src/iomemory-vsl-3.2.16/kfio/x86_64_cc73_libkfio.o_shipped
usr/src/iomemory-vsl-3.2.16/kfio/x86_64_cc44_libkfio.o_shipped
usr/src/iomemory-vsl-3.2.16/kfio/x86_64_cc49_libkfio.o_shipped
EOF
dpkg-buildpackage -b -uc -us
cd ..
apt remove -y iomemory-vsl-*-generic
dpkg -i iomemory-vsl-$(uname -r)_3.2.16.1731-1.0_amd64.deb
lsmod|grep iomem
sed '/^#/d;/^$/d' /etc/sysconfig/iomemory-vsl
sed -i 's/^#*ENABLED=1/ENABLED=1/' /etc/sysconfig/iomemory-vsl
systemctl restart iomemory-vsl
systemctl status -l iomemory-vsl
fio-status
Last edited: