Hello again Vladimir!
I hope you have been well in Moscow.
I had a power outage recently and when rebooting, my Fusion IO 2 driver would not load. My temps are still under control at 60C, so I decided to run the following build/modprobe as you suggest in your tutorial, but received:
Code:
root@r720xd1:/home/temp# cp -r /home/temp/iomemory-vsl-3.2.16.1731/root/usr/src/iomemory-vsl-3.2.16 /usr/src/ && \
> mkdir -p /var/lib/dkms/iomemory-vsl/3.2.16/build && \
> ln -s /usr/src/iomemory-vsl-3.2.16 /var/lib/dkms/iomemory-vsl/3.2.16/source && \
> dkms build -m iomemory-vsl -v 3.2.16 && \
> dkms install -m iomemory-vsl -v 3.2.16 && \
> modprobe iomemory-vsl
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
'make' DKMS_KERNEL_VERSION=4.15.18-29-pve.............(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.15.18-29-pve (x86_64)
Consult /var/lib/dkms/iomemory-vsl/3.2.16/build/make.log for more information.
root@r720xd1:/home/temp#
The make.log shows:
Code:
root@r720xd1:/home/temp# cat /var/lib/dkms/iomemory-vsl/3.2.16/build/make.log
DKMS make.log for iomemory-vsl-3.2.16 for kernel 4.15.18-29-pve (x86_64)
Sun Jun 28 19:19:05 EDT 2020
./kfio_config.sh -a x86_64 -o include/fio/port/linux/kfio_config.h -k /lib/modules/4.15.18-29-pve/build -p -d /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio_config -l 0
Detecting Kernel Flags
Config dir : /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio_config
Output file : include/fio/port/linux/kfio_config.h
Kernel output dir : /lib/modules/4.15.18-29-pve/build
Kernel source dir :
Starting tests:
1593386345.399 KFIOC_MISSING_WORK_FUNC_T...
(deleted these because message is too long!)
1593386372.169 KFIOC_HAS_BLK_QUEUE_SPLIT2=1
Finished
1593386372.198 Exiting
Preserving configdir due to '-p' option: /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio_config
make \
-j32 \
-C /lib/modules/4.15.18-29-pve/build \
FIO_DRIVER_NAME=iomemory-vsl \
FIO_SCSI_DEVICE=0 \
FUSION_DRIVER_DIR=/var/lib/dkms/iomemory-vsl/3.2.16/build \
SUBDIRS=/var/lib/dkms/iomemory-vsl/3.2.16/build \
EXTRA_CFLAGS+="-I/var/lib/dkms/iomemory-vsl/3.2.16/build/include -DBUILDING_MODULE -DLINUX_IO_SCHED" \
INSTALL_MOD_DIR=extra/fio \
INSTALL_MOD_PATH= \
KFIO_LIB=kfio/x86_64_cc63_libkfio.o_shipped \
modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.18-29-pve'
printf '#include "linux/module.h"\nMODULE_LICENSE("Proprietary");\n' >/var/lib/dkms/iomemory-vsl/3.2.16/build/license.c
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/main.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/pci.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/sysrq.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/driver_init.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/errno.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/state.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kcache.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kfile.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kmem.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kmisc.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kscatter.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/ktime.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/sched.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/cdev.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kblock.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kcondvar.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kinfo.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kexports.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/khotplug.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kcsr.o
SHIPPED /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio/x86_64_cc63_libkfio.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/module_param.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/license.o
LD [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/iomemory-vsl.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: could not find /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio/.x86_64_cc63_libkfio.o.cmd for /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio/x86_64_cc63_libkfio.o
FATAL: modpost: GPL-incompatible module iomemory-vsl.ko uses GPL-only symbol 'ktime_get_real_seconds'
scripts/Makefile.modpost:92: recipe for target '__modpost' failed
make[2]: *** [__modpost] Error 1
Makefile:1580: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.18-29-pve'
Makefile:82: recipe for target 'modules' failed
make: *** [modules] Error 2
root@r720xd1:/home/temp#
So I decided to try to start from scratch with your instructions, and redownload/rebuild/make the driver from the beginning...
When I got to the stetp to "prepare the source, compile, and load drivers into the kernel:" I receive:
Code:
root@r720xd1:/home/temp/iomemory-vsl-3.2.16.1731# cp -r /home/temp/iomemory-vsl-3.2.16.1731/root/usr/src/iomemory-vsl-3.2.16 /usr/src/ && mkdir -p /var/lib/dkms/iomemory-vsl/3.2.16/build && ln -s /usr/src/iomemory-vsl-3.2.16 /var/lib/dkms/iomemory-vsl/3.2.16/source && dkms build -m iomemory-vsl -v 3.2.16 && dkms install -m iomemory-vsl -v 3.2.16 && modprobe iomemory-vsl
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' DKMS_KERNEL_VERSION=4.15.18-29-pve............(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.15.18-29-pve (x86_64)
Consult /var/lib/dkms/iomemory-vsl/3.2.16/build/make.log for more information.
And /var/lib/dkms/iomemory-vsl/3.2.16/build/make.log shows:
Code:
root@r720xd1:/home/temp/iomemory-vsl-3.2.16.1731# cat /var/lib/dkms/iomemory-vsl/3.2.16/build/make.log
DKMS make.log for iomemory-vsl-3.2.16 for kernel 4.15.18-29-pve (x86_64)
Sun Jun 28 19:32:26 EDT 2020
./kfio_config.sh -a x86_64 -o include/fio/port/linux/kfio_config.h -k /lib/modules/4.15.18-29-pve/build -p -d /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio_config -l 0
Detecting Kernel Flags
Config dir : /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio_config
Output file : include/fio/port/linux/kfio_config.h
Kernel output dir : /lib/modules/4.15.18-29-pve/build
Kernel source dir :
Starting tests:
1593387146.707 KFIOC_MISSING_WORK_FUNC_T...
(deleted many of these because the message was too long!)
1593387169.243 KFIOC_HAS_BLK_QUEUE_SPLIT2=1
Finished
1593387169.272 Exiting
Preserving configdir due to '-p' option: /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio_config
make \
-j32 \
-C /lib/modules/4.15.18-29-pve/build \
FIO_DRIVER_NAME=iomemory-vsl \
FIO_SCSI_DEVICE=0 \
FUSION_DRIVER_DIR=/var/lib/dkms/iomemory-vsl/3.2.16/build \
SUBDIRS=/var/lib/dkms/iomemory-vsl/3.2.16/build \
EXTRA_CFLAGS+="-I/var/lib/dkms/iomemory-vsl/3.2.16/build/include -DBUILDING_MODULE -DLINUX_IO_SCHED" \
INSTALL_MOD_DIR=extra/fio \
INSTALL_MOD_PATH= \
KFIO_LIB=kfio/x86_64_cc63_libkfio.o_shipped \
modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.18-29-pve'
printf '#include "linux/module.h"\nMODULE_LICENSE("Proprietary");\n' >/var/lib/dkms/iomemory-vsl/3.2.16/build/license.c
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/main.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/pci.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/sysrq.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/driver_init.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/errno.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/state.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kcache.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kfile.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kmem.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kmisc.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kscatter.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/ktime.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/sched.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/cdev.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kblock.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kcondvar.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kinfo.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kexports.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/khotplug.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/kcsr.o
SHIPPED /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio/x86_64_cc63_libkfio.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/module_param.o
CC [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/license.o
LD [M] /var/lib/dkms/iomemory-vsl/3.2.16/build/iomemory-vsl.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: could not find /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio/.x86_64_cc63_libkfio.o.cmd for /var/lib/dkms/iomemory-vsl/3.2.16/build/kfio/x86_64_cc63_libkfio.o
FATAL: modpost: GPL-incompatible module iomemory-vsl.ko uses GPL-only symbol 'ktime_get_real_seconds'
scripts/Makefile.modpost:92: recipe for target '__modpost' failed
make[2]: *** [__modpost] Error 1
Makefile:1580: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.18-29-pve'
Makefile:82: recipe for target 'modules' failed
make: *** [modules] Error 2
root@r720xd1:/home/temp/iomemory-vsl-3.2.16.1731#
Do you have any ideas of what my problem is?