View Single Post
Old 06-12-2019, 09:11 AM   #1
emilie
Junior Member
 
Join Date: Jun 2019
Posts: 2
Default Ubuntu 18.04.2 LTS with A 5.1.9 KERNEL

Hello,
I am running Ubuntu 18 with an updated kernel 5.1.9
(I had to use a new kernel because sound wasn't supported on the regular LTS kernel which is 4.18 I think)

The problem now is that I don't manage to install DisplayLink driver on my device.
When I try to do so:

sudo ./displaylink-driver-5.1.26.run
Verifying archive integrity... 100% All good.
Uncompressing DisplayLink Linux Driver 5.1.26 100%
DisplayLink Linux Software 5.1.26 install script called: install
Distribution discovered: Ubuntu 18.04.2 LTS
Installing
Configuring EVDI DKMS module
Registering EVDI kernel module with DKMS
Building EVDI kernel module with DKMS
ERROR (code 3): Failed to build evdi/5.1.26. Consult /var/lib/dkms/evdi/5.1.26/build/make.log for details..

Quote:
DKMS make.log for evdi-5.1.26 for kernel 5.1.9-050109-generic (x86_64)
mercredi 12 juin 2019, 10:53:01 (UTC+0200)
make KBUILD_VERBOSE=1 SUBDIRS=/var/lib/dkms/evdi/5.1.26/build SRCROOT=/var/lib/dkms/evdi/5.1.26/build CONFIG_MODULE_SIG= -C /lib/modules/5.1.9-050109-generic/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.1.9-050109-generic'
Makefile:205: ================= WARNING ================
Makefile:206: 'SUBDIRS' will be removed after Linux 5.3
Makefile:207: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:208: ==========================================
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /var/lib/dkms/evdi/5.1.26/build/.tmp_versions ; rm -f /var/lib/dkms/evdi/5.1.26/build/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/var/lib/dkms/evdi/5.1.26/build
........
gcc -Wp,-MD,/var/lib/dkms/evdi/5.1.26/build/.evdi_painter.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/7/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Iinclude/drm -DMODULE -DKBUILD_BASENAME='"evdi_painter"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/5.1.26/build/evdi_painter.o /var/lib/dkms/evdi/5.1.26/build/evdi_painter.c
/var/lib/dkms/evdi/5.1.26/build/evdi_drv.c:45:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.fault = evdi_gem_fault,
^~~~~~~~~~~~~~
/var/lib/dkms/evdi/5.1.26/build/evdi_drv.c:45:11: note: (near initialization for ‘evdi_gem_vm_ops.fault’)
/var/lib/dkms/evdi/5.1.26/build/evdi_connector.c:124:16: error: ‘drm_helper_probe_single_connector_modes’ undeclared here (not in a function); did you mean ‘drm_helper_move_panel_connectors_to_head’?
.fill_modes = drm_helper_probe_single_connector_modes,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drm_helper_move_panel_connectors_to_head
scripts/Makefile.build:275: recipe for target '/var/lib/dkms/evdi/5.1.26/build/evdi_connector.o' failed
make[2]: *** [/var/lib/dkms/evdi/5.1.26/build/evdi_connector.o] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc -Wp,-MD,/var/lib/dkms/evdi/5.1.26/build/.evdi_params.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/7/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Iinclude/drm -DMODULE -DKBUILD_BASENAME='"evdi_params"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/5.1.26/build/evdi_params.o /var/lib/dkms/evdi/5.1.26/build/evdi_params.c
/var/lib/dkms/evdi/5.1.26/build/evdi_main.c: In function ‘evdi_driver_setup’:
/var/lib/dkms/evdi/5.1.26/build/evdi_main.c:54:2: error: implicit declaration of function ‘drm_kms_helper_poll_init’; did you mean ‘drm_modeset_lock_init’? [-Werror=implicit-function-declaration]
drm_kms_helper_poll_init(dev);
^~~~~~~~~~~~~~~~~~~~~~~~
drm_modeset_lock_init
/var/lib/dkms/evdi/5.1.26/build/evdi_painter.c: In function ‘evdi_painter_connect’:
/var/lib/dkms/evdi/5.1.26/build/evdi_painter.c:675:2: error: implicit declaration of function ‘drm_helper_hpd_irq_event’; did you mean ‘drm_helper_crtc_in_use’? [-Werror=implicit-function-declaration]
drm_helper_hpd_irq_event(evdi->ddev);
^~~~~~~~~~~~~~~~~~~~~~~~
drm_helper_crtc_in_use
cc1: some warnings being treated as errors
scripts/Makefile.build:275: recipe for target '/var/lib/dkms/evdi/5.1.26/build/evdi_drv.o' failed
make[2]: *** [/var/lib/dkms/evdi/5.1.26/build/evdi_drv.o] Error 1
/var/lib/dkms/evdi/5.1.26/build/evdi_main.c: In function ‘evdi_driver_unload’:
/var/lib/dkms/evdi/5.1.26/build/evdi_main.c:95:2: error: implicit declaration of function ‘drm_kms_helper_poll_fini’; did you mean ‘drm_modeset_lock_fini’? [-Werror=implicit-function-declaration]
drm_kms_helper_poll_fini(dev);
^~~~~~~~~~~~~~~~~~~~~~~~
drm_modeset_lock_fini
cc1: some warnings being treated as errors
scripts/Makefile.build:275: recipe for target '/var/lib/dkms/evdi/5.1.26/build/evdi_main.o' failed
make[2]: *** [/var/lib/dkms/evdi/5.1.26/build/evdi_main.o] Error 1
cc1: some warnings being treated as errors
scripts/Makefile.build:275: recipe for target '/var/lib/dkms/evdi/5.1.26/build/evdi_painter.o' failed
make[2]: *** [/var/lib/dkms/evdi/5.1.26/build/evdi_painter.o] Error 1
Makefile:1571: recipe for target '_module_/var/lib/dkms/evdi/5.1.26/build' failed
make[1]: *** [_module_/var/lib/dkms/evdi/5.1.26/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.1.9-050109-generic'
Makefile:22: recipe for target '
I did ./displaylink-driver-5.1.26.run --noexec --keep

and also cloned and compiled https://github.com/DisplayLink/evdi devel branch
now I have made evdi_lib.o and libevdi.so
I just don't know how to proceed to finish installing (https://support.displaylink.com/know...r-to-other-lin)
please help
emilie is offline   Reply With Quote