Desktop Video 11.4 not compatible with CentOS 8.1

Do you have questions about Desktop Video, Converters, Routers and Monitoring?
  • Author
  • Message
Offline

Seth Goldin

  • Posts: 621
  • Joined: Wed Nov 04, 2015 7:43 pm

Desktop Video 11.4 not compatible with CentOS 8.1

PostSat Jan 18, 2020 11:27 pm

Looks like Desktop Video 11.4 is not compatible with CentOS 8.1, and it's specifically because of the 4.18.0-147.3.1.el8_1.x86_64 kernel.

Initially I thought the issue was because of a messy upgrade from 8.0 to 8.1, because it had somehow disabled the NVIDIA driver 440.44, but after reinstalling the NVIDIA driver OK, I saw that the Desktop Video driver wasn't installed anymore. I tried to merely reinstall it, to no avail.

I tried to poke around in the DKMS tree for a bit, and didn't see any obvious issues.

I went ahead and did a totally fresh install of CentOS 8.1, but still couldn't get Desktop Video installed.

Specifically, I ran:
Code: Select all
# rpm -ivh desktopvideo-11.4a14.x86_64.rpm

and then I saw the following errors:
Code: Select all
# rpm -ivh desktopvideo-11.4a14.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:desktopvideo-11.4-a14            ################################# [100%]
Preparing new blackmagic driver for 4.18.0-147.3.1.el8_1.x86_64 kernel...
  Adding to DKMS
  Building (failed)
Preparing new blackmagic-io driver for 4.18.0-147.3.1.el8_1.x86_64 kernel...
  Adding to DKMS
  Building (failed)
Loading modules...
Enabling systemd services...
  DesktopVideoHelper
Starting systemd services...
  DesktopVideoHelper

********************************************************************************
Failed to build driver(s)

Possible causes:
 1. Driver is incompatible with your kernel version
 2. Kernel headers/gcc/make/etc. is not installed
 3. Kernel header version does not match the running kernel (4.18.0-147.3.1.el8_1.x86_64)

Error messages:
dkms build -m blackmagic -v 11.4a14 --rpm_safe_upgrade
---

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make -j24 KERNELRELEASE=4.18.0-147.3.1.el8_1.x86_64 KERNELRELEASE=4.18.0-147.3.1.el8_1.x86_64....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.18.0-147.3.1.el8_1.x86_64 (x86_64)
Consult /var/lib/dkms/blackmagic/11.4a14/build/make.log for more information.

dkms build -m blackmagic-io -v 11.4a14 --rpm_safe_upgrade
---

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make -j24 KERNELRELEASE=4.18.0-147.3.1.el8_1.x86_64 KERNELRELEASE=4.18.0-147.3.1.el8_1.x86_64....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.18.0-147.3.1.el8_1.x86_64 (x86_64)
Consult /var/lib/dkms/blackmagic-io/11.4a14/build/make.log for more information.

********************************************************************************

So I checked /var/lib/dkms/blackmagic/11.4a14/build/make.log:
Code: Select all
$ tail -n 50 /var/lib/dkms/blackmagic/11.4a14/build/make.log
DKMS make.log for blackmagic-11.4a14 for kernel 4.18.0-147.3.1.el8_1.x86_64 (x86_64)
Fri Jan 17 23:06:50 EST 2020
make -C /lib/modules/4.18.0-147.3.1.el8_1.x86_64/build M=/var/lib/dkms/blackmagic/11.4a14/build
make[1]: Entering directory '/usr/src/kernels/4.18.0-147.3.1.el8_1.x86_64'
  CC [M]  /var/lib/dkms/blackmagic/11.4a14/build/blackmagic_serial.o
  CC [M]  /var/lib/dkms/blackmagic/11.4a14/build/blackmagic_core.o
  CC [M]  /var/lib/dkms/blackmagic/11.4a14/build/blackmagic_lib.o
  CC [M]  /var/lib/dkms/blackmagic/11.4a14/build/blackmagic_dma.o
  SHIPPED /var/lib/dkms/blackmagic/11.4a14/build/bmd-support.o
  CC [M]  /var/lib/dkms/blackmagic/11.4a14/build/blackmagic_gate.o
/var/lib/dkms/blackmagic/11.4a14/build/blackmagic_lib.c: In function ‘dl_access_ok’:
/var/lib/dkms/blackmagic/11.4a14/build/blackmagic_lib.c:628:35: error: macro "access_ok" passed 3 arguments, but takes just 2
  return access_ok(type, addr, size);
                                   ^
/var/lib/dkms/blackmagic/11.4a14/build/blackmagic_lib.c:628:9: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘dl_access_ok’?
  return access_ok(type, addr, size);
         ^~~~~~~~~
         dl_access_ok
/var/lib/dkms/blackmagic/11.4a14/build/blackmagic_lib.c:628:9: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/blackmagic/11.4a14/build/blackmagic_lib.c:630:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make[2]: *** [scripts/Makefile.build:313: /var/lib/dkms/blackmagic/11.4a14/build/blackmagic_lib.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1547: _module_/var/lib/dkms/blackmagic/11.4a14/build] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-147.3.1.el8_1.x86_64'
make: *** [Makefile:43: all] Error 2

I also checked /var/lib/dkms/blackmagic-io/11.4a14/build/make.log:
Code: Select all
$ tail -n 50 /var/lib/dkms/blackmagic-io/11.4a14/build/make.log
DKMS make.log for blackmagic-io-11.4a14 for kernel 4.18.0-147.3.1.el8_1.x86_64 (x86_64)
Fri Jan 17 23:06:56 EST 2020
make -C /lib/modules/4.18.0-147.3.1.el8_1.x86_64/build M=/var/lib/dkms/blackmagic-io/11.4a14/build
make[1]: Entering directory '/usr/src/kernels/4.18.0-147.3.1.el8_1.x86_64'
  CC [M]  /var/lib/dkms/blackmagic-io/11.4a14/build/bmio_client.o
  CC [M]  /var/lib/dkms/blackmagic-io/11.4a14/build/bmio_dev.o
  CC [M]  /var/lib/dkms/blackmagic-io/11.4a14/build/bmio_device.o
  CC [M]  /var/lib/dkms/blackmagic-io/11.4a14/build/bmio_driver.o
  CC [M]  /var/lib/dkms/blackmagic-io/11.4a14/build/bmio_serial.o
  CC [M]  /var/lib/dkms/blackmagic-io/11.4a14/build/bmio_export.o
  CC [M]  /var/lib/dkms/blackmagic-io/11.4a14/build/bmio_pci_ids.o
  CC [M]  /var/lib/dkms/blackmagic-io/11.4a14/build/bm_locks.o
  CC [M]  /var/lib/dkms/blackmagic-io/11.4a14/build/bm_mm.o
  CC [M]  /var/lib/dkms/blackmagic-io/11.4a14/build/bm_pci.o
  SHIPPED /var/lib/dkms/blackmagic-io/11.4a14/build/blackmagic.o
  CC [M]  /var/lib/dkms/blackmagic-io/11.4a14/build/bm_util.o
  CC [M]  /var/lib/dkms/blackmagic-io/11.4a14/build/bmio_audio.o
/var/lib/dkms/blackmagic-io/11.4a14/build/bmio_serial.c: In function ‘bmio_serial_remove’:
/var/lib/dkms/blackmagic-io/11.4a14/build/bmio_serial.c:267:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  struct tty_struct *tty = tty_port_tty_get(&serial->port);
  ^~~~~~
/var/lib/dkms/blackmagic-io/11.4a14/build/bm_util.c: In function ‘bm_access_ok’:
/var/lib/dkms/blackmagic-io/11.4a14/build/bm_util.c:833:35: error: macro "access_ok" passed 3 arguments, but takes just 2
  return access_ok(type, addr, size);
                                   ^
/var/lib/dkms/blackmagic-io/11.4a14/build/bm_util.c:833:9: error: ‘access_ok’ undeclared (first use in this function); did you mean ‘bm_access_ok’?
  return access_ok(type, addr, size);
         ^~~~~~~~~
         bm_access_ok
/var/lib/dkms/blackmagic-io/11.4a14/build/bm_util.c:833:9: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/blackmagic-io/11.4a14/build/bm_util.c:835:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make[2]: *** [scripts/Makefile.build:312: /var/lib/dkms/blackmagic-io/11.4a14/build/bm_util.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1547: _module_/var/lib/dkms/blackmagic-io/11.4a14/build] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-147.3.1.el8_1.x86_64'
make: *** [Makefile:46: all] Error 2

It's not surprising to me that I ran into some compatibility issues, given that Blackmagic Design is still only testing on their build of CentOS 7.3, but I had had my hopes up since everything had actually worked OK on CentOS 8.0. Hopefully the next release of Desktop Video will work!
DaVinci Resolve Studio 16.2.7.010
CentOS Linux 7.8.2003 (Core)
HP Z8 G4
1x Intel® Xeon® Gold 6136
48 GB (6x8 GB) DDR4-2666 ECC Registered RAM
1x GeForce GTX 1080 Ti
NVIDIA driver 450.66
https://www.sethgoldin.com
Offline

dvb_sing

  • Posts: 7
  • Joined: Sat Sep 01, 2012 10:02 am

Re: Desktop Video 11.4 not compatible with CentOS 8.1

PostFri Feb 14, 2020 10:37 am

#!/bin/sh

# usage:
# save this shell file and decklink desktop video driver file in the same folder,such as /tmp/patch
# login as root
# change work dir: cd /tmp/pach
# run the shell file
# get the patched driver file in the same folder with "patched" prefix
# for desktopvideo driver 11.1.0 only





BASE_FOLDER=/tmp/bmd_rpms




WORK_DIR=`pwd`

clear
rm -rf patched_*.rpm >/dev/null 2>&1

DRIVER_RPM_FILE=`find *.rpm 2>/dev/null `
if [ X${DRIVER_RPM_FILE} = "X" ];then
echo -e "\n\n\n rpm driver file not found in the current folder!\n\n"
exit
fi



if [ -d ${BASE_FOLDER} ];then
rm -rf ${BASE_FOLDER} >/dev/null 2>&1
fi

yum install -y rpm-build wget epel-release

yum install -y "kernel-devel-uname-r == $(uname -r)"

#uniustall previous decklink drivers
RESULT=`rpm -qa | grep -i desktopvideo`
if [ "${RESULT}" ];then
yum remove dkms -y
fi

#install DKMS
RESULT=`rpm -qa | grep -i dkms`
if [ X${RESULT} = "X" ];then
yum install dkms -y
fi

#reinstall decklink drivers
yum install -y ${DRIVER_RPM_FILE}
PKG_NAME=`rpm -qa | grep desktopvideo`


echo "%_topdir ${BASE_FOLDER}" >~/.rpmmacros
mkdir -p ${BASE_FOLDER}
mkdir -p ${BASE_FOLDER}/BUILDROOT
mkdir -p ${BASE_FOLDER}/BUILDROOT/${PKG_NAME}
mkdir -p ${BASE_FOLDER}/SPECS
mkdir -p ${BASE_FOLDER}/APPS


#download rpmrebuild
cd ${BASE_FOLDER}
wget -P ${BASE_FOLDER} https://excellmedia.dl.sourceforge.net/ ... .12.tar.gz

if [ $? -eq 0 ];then
tar -xvf ${BASE_FOLDER}/rpmrebuild-2.12.tar.gz -C ${BASE_FOLDER}/APPS
else
echo -e "\n\n\n\n\t Download rpmrebuild error!!!\n\n\n\n"
exit
fi



${BASE_FOLDER}/APPS/rpmrebuild.sh -s ${BASE_FOLDER}/SPECS/$PKG_NAME.spec $PKG_NAME
rpm2cpio ${WORK_DIR}/${DRIVER_RPM_FILE} |cpio -idv -D ${BASE_FOLDER}/BUILDROOT/${PKG_NAME}


#patch source code
C_FILE=`find ${BASE_FOLDER} -name blackmagic_lib.c`
sed -i "s/access_ok(type, addr, size)/access_ok(addr, size)/g" ${C_FILE}
C_FILE=`find ${BASE_FOLDER} -name bm_util.c`
sed -i "s/access_ok(type, addr, size)/access_ok(addr, size)/g" ${C_FILE}

#rebuild rpm files
rpmbuild -ba ${BASE_FOLDER}/SPECS/$PKG_NAME.spec

#copy builded rpm file
if [ -f ${BASE_FOLDER}/RPMS/x86_64/*.rpm ];then
cp ${BASE_FOLDER}/RPMS/x86_64/*.rpm ${WORK_DIR}/patched_${DRIVER_RPM_FILE}
fi

#remove temp files
cd ${WORK_DIR}
if [ -d ${BASE_FOLDER} ];then
rm -rf ${BASE_FOLDER}
fi

#remove decklink drivers
yum remove dkms -y

#reinstall decklink drivers
yum install dkms -y

if [ -f ${WORK_DIR}/patched_${DRIVER_RPM_FILE} ];then
yum install -y ${WORK_DIR}/patched_${DRIVER_RPM_FILE}
fi


echo -e "\n\n\n\t\tsucceeded!\n\n\n"
Attachments
bm_drivers_11.1.0_centos_8_patch.zip
(1.17 KiB) Downloaded 53 times
Offline

dvb_sing

  • Posts: 7
  • Joined: Sat Sep 01, 2012 10:02 am

Re: Desktop Video 11.4 not compatible with CentOS 8.1

PostFri Feb 14, 2020 10:39 am

succeed with desktop driver version 11.1.0 and failed with 11.4.0,I will check it later
Offline

solprosolutions

  • Posts: 1
  • Joined: Sun Feb 16, 2020 7:25 am
  • Real Name: Sam Lo

Re: Desktop Video 11.4 not compatible with CentOS 8.1

PostMon Feb 17, 2020 10:51 am

The Desktop Video 11.5 was just out.

I tried to install that with command line as instructed in the readme file,

i.e. sudo dnf/yum --nogpgcheck install ...

the message "fail to build drivers" still came out.

But this time, there was one more message to "Reboot required to reload driver"

I reboot the computer anyway, starting in graphical.target which was set as default.

After reboot, the Desktop Video Software Updater launched automatically and update (driver/firmware?) not sure.

Anyway, after that, I reboot again (not sure if it's neccessary) and the decklink card was successfully installed and could be used in Da Vinci Resolve Studio 16.

Hope it helps.

Screenshot1.png
Screenshot1.png (274.15 KiB) Viewed 718 times

Screenshot2.png
Screenshot2
Screenshot2.png (70.14 KiB) Viewed 718 times

Screenshot3.png
Screenshot3
Screenshot3.png (65.45 KiB) Viewed 718 times
Offline

Seth Goldin

  • Posts: 621
  • Joined: Wed Nov 04, 2015 7:43 pm

Re: Desktop Video 11.4 not compatible with CentOS 8.1

PostMon Feb 17, 2020 4:24 pm

Have any brave souls tested Desktop Video 11.5 with CentOS 8.1 yet? The README still says that they've only tested it with CentOS 6 and 7.
DaVinci Resolve Studio 16.2.7.010
CentOS Linux 7.8.2003 (Core)
HP Z8 G4
1x Intel® Xeon® Gold 6136
48 GB (6x8 GB) DDR4-2666 ECC Registered RAM
1x GeForce GTX 1080 Ti
NVIDIA driver 450.66
https://www.sethgoldin.com
Offline

Lucius Snow

  • Posts: 269
  • Joined: Sun Nov 24, 2013 1:19 pm

Re: Desktop Video 11.4 not compatible with CentOS 8.1

PostMon Feb 17, 2020 4:44 pm

Same problem here.

EDIT1: Working with 11.5!
Offline

vonorfasyexela

  • Posts: 1
  • Joined: Wed Mar 18, 2020 8:25 am
  • Real Name: Alexey Safronov

Re: Desktop Video 11.4 not compatible with CentOS 8.1

PostWed Mar 18, 2020 8:29 am

Lucius Snow wrote:Same problem here.

EDIT1: Working with 11.5!


Hey Lucius, that's great!
Can you please tell how you achieved it?
Did it worked after normal installation or required some fuss?
Offline

Lucius Snow

  • Posts: 269
  • Joined: Sun Nov 24, 2013 1:19 pm

Re: Desktop Video 11.4 not compatible with CentOS 8.1

PostWed Mar 18, 2020 4:06 pm

vonorfasyexela wrote:
Lucius Snow wrote:Same problem here.

EDIT1: Working with 11.5!


Hey Lucius, that's great!
Can you please tell how you achieved it?
Did it worked after normal installation or required some fuss?

Nothing special. Normal installation.
Offline

labor4

  • Posts: 6
  • Joined: Sun Feb 16, 2020 4:25 pm
  • Real Name: Manuel Weber

Re: Desktop Video 11.4 not compatible with CentOS 8.1

PostSun Apr 12, 2020 3:28 pm

I can somewhat confirm this.
I get an image over SDI.
Cannot say anything useful yet about stability/quality.

Code: Select all
[root@vm-davinci-c8 x86_64]# rpm -ivh desktopvideo-11.5a34.x86_64.rpm
Verifying...                          ################################# [100%]
Vorbereiten …                       ################################# [100%]
Aktualisierung/ Installation …
   1:desktopvideo-11.5-a34            ################################# [100%]
Preparing new blackmagic driver for 4.18.0-147.5.1.el8_1.x86_64 kernel...
  Adding to DKMS
  Building (failed)
Preparing new blackmagic-io driver for 4.18.0-147.5.1.el8_1.x86_64 kernel...
  Adding to DKMS
  Building
  Installing
Loading modules...
  blackmagic_io (failed)
Enabling systemd services...
  DesktopVideoHelper
Starting systemd services...
  DesktopVideoHelper

********************************************************************************
Failed to build driver(s)

Possible causes:
 1. Driver is incompatible with your kernel version
 2. Kernel headers/gcc/make/etc. is not installed
 3. Kernel header version does not match the running kernel (4.18.0-147.5.1.el8_1.x86_64)

Error messages:
dkms build -m blackmagic -v 11.5a34 --rpm_safe_upgrade
---

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make -j24 KERNELRELEASE=4.18.0-147.5.1.el8_1.x86_64 KERNELRELEASE=4.18.0-147.5.1.el8_1.x86_64....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.18.0-147.5.1.el8_1.x86_64 (x86_64)
Consult /var/lib/dkms/blackmagic/11.5a34/build/make.log for more information.

********************************************************************************

********************************************************************************
Reboot required to reload driver!

The driver failed to load. The most likely cause is that the driver is
in use. Please try rebooting to load the new driver
********************************************************************************

and after reboot:
Code: Select all
0a:00.0 Multimedia video controller [0400]: Blackmagic Design DeckLink 8K Pro [bdbd:a14b]
   Subsystem: Blackmagic Design DeckLink 8K Pro [bdbd:a14b]
   Kernel driver in use: blackmagic-io
   Kernel modules: blackmagic_io

Return to Post Production

Who is online

Users browsing this forum: michaelm and 15 guests