Decklink in Ubuntu 15.10

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

Phil Young

  • Posts: 3
  • Joined: Fri Oct 16, 2015 8:30 pm

Decklink in Ubuntu 15.10

PostFri Oct 16, 2015 8:50 pm

I am running Ubuntu 15.10 beta which has a planned release of next week. When I installed the decklink drivers with the software center it gave no error and completed. When I couldn't see the card under the Desktop Video Utility I tried to load the blackmagic module I got an error "module not found". So I ran
Code: Select all
sudo dpkg -i desktopvideo_10.5a17_amd64.deb
and it threw a couple of errors.

sudo dpkg -i desktopvideo_10.5a17_amd64.deb
Swipe your right index finger across the fingerprint reader
(Reading database ... 251513 files and directories currently installed.)
Preparing to unpack desktopvideo_10.5a17_amd64.deb ...
Stopping systemd services...
DesktopVideoHelper
Disabling systemd services...
DesktopVideoHelper
Unloading modules...
Removing old drivers...
blackmagic
blackmagic-io
Unpacking desktopvideo (10.5a17) over (10.5a17) ...
Setting up desktopvideo (10.5a17) ...
Preparing new blackmagic driver for 4.2.0-16-generic kernel...
Adding to DKMS
Building (failed)
Preparing new blackmagic-io driver for 4.2.0-16-generic 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.2.0-16-generic)

Error messages:
dkms build -m blackmagic -v 10.5a17
---

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.2.0-16-generic KERNELRELEASE=4.2.0-16-generic.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.2.0-16-generic (x86_64)
Consult /var/lib/dkms/blackmagic/10.5a17/build/make.log for more information.

dkms build -m blackmagic-io -v 10.5a17
---

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.2.0-16-generic KERNELRELEASE=4.2.0-16-generic.....(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/desktopvideo.0.crash'
Error! Bad return status for module build on kernel: 4.2.0-16-generic (x86_64)
Consult /var/lib/dkms/blackmagic-io/10.5a17/build/make.log for more information.


********************************************************************************
Processing triggers for man-db (2.7.4-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (225-1ubuntu9) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...


These are the same Deb files I used on this same computer when I had Linux Mint 17 on this same computer and they worked. I assume it has to do with the new Ubuntu or new 4.2 kernel.

uname -a Linux offlined 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


Yes my computer is named "offlined".

lspci | grep Blackmagic
02:00.0 Multimedia video controller: Blackmagic Design DeckLink SDI/Duo/Quad


If this is a known issue I can wait for the update. I could also test anything if needed, this SDI card is just a free time experiment.
Offline

Christoph Willing

  • Posts: 25
  • Joined: Fri Jul 12, 2013 10:11 am
  • Location: Brisbane, Australia

Re: Decklink in Ubuntu 15.10

PostTue Oct 20, 2015 12:46 am

Yes, it is a kernel version issue. Unfortunately you'll have to wait (or use an earlier kernel version). I previously raised this as a support issue and was told that they:
support Ubuntu and the current release of this has the 3.19 Kernel. When the 4.x kernels are released, this will be supported.


chris
Offline

Phil Young

  • Posts: 3
  • Joined: Fri Oct 16, 2015 8:30 pm

Re: Decklink in Ubuntu 15.10

PostThu Oct 22, 2015 2:42 pm

Thanks, I will continue to wait for now.
Offline

Perry Hung

  • Posts: 9
  • Joined: Mon Sep 28, 2015 3:39 pm

Re: Decklink in Ubuntu 15.10

PostWed Oct 28, 2015 9:40 pm

Hi Phil,

If you know what you are doing, you can compile your own modules. I updated the blackmagic kernel modules to compile for kernels >4.2.0. It works for me, but of course your mileage may vary.

https://github.com/iperry/blackmagic
https://github.com/iperry/blackmagic-io/commits/master

I'm running these modules successfully on a 4.2.3 kernel.
Offline

Phil Young

  • Posts: 3
  • Joined: Fri Oct 16, 2015 8:30 pm

Re: Decklink in Ubuntu 15.10

PostWed Nov 04, 2015 4:52 pm

Thank you, that did it. I can use it with media express and shotcut but for some reason kdenlive does not see it. Not a problem though, thanks again.
Offline

samgardner

  • Posts: 20
  • Joined: Tue Sep 09, 2014 4:08 pm
  • Location: Manchester, UK

Re: Decklink in Ubuntu 15.10

PostThu Nov 12, 2015 2:55 pm

Hi Perry,

Thanks for uploading those, I'm now also running desktopvideo_10.5a17 on 4.2.0-18-generic - also willing to lend a hand with testing things on Ubuntu.
Offline

CraigRublee

  • Posts: 1
  • Joined: Fri Oct 21, 2016 4:20 pm

Re: Decklink in Ubuntu 15.10

PostFri Oct 21, 2016 5:07 pm

I'm attempting to install the blackmagic driver on an Ubuntu 16.04 and am getting the same build errors that Phil reported in the original post. The Readme.txt in the tar file (Blackmagic_Desktop_Video_Linux_10.8.1) I downloaded says the driver has been tested on Ubuntu 10.04 - 15.04.

I'm looking for help from any of the linux experts out there. I'm Ok with the suggestion to install this on Ubuntu 15.04. But if there is a way I can make this work on 16.04, that would be preffered.

Here's the details:

uname -a
Linux devbox04 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


I downloaded Perry's github repository and after changing the PACKAGE_VERSION line in the dkms.conf file to:

PACKAGE_VERSION="10.8.1a2"

and executed:

sudo dkms build -m blackmagic -v 10.8.1a2

The build fails:

Building module:
cleaning build area....
make KERNELRELEASE=4.4.0-45-generic KERNELRELEASE=4.4.0-45-generic....(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/desktopvideo.0.crash'
Error! Bad return status for module build on kernel: 4.4.0-45-generic (x86_64)
Consult /var/lib/dkms/blackmagic/10.8.1a2/build/make.log for more information.

and the make.log file contains:

DKMS make.log for blackmagic-10.8.1a2 for kernel 4.4.0-45-generic (x86_64)
Thu Oct 20 20:51:12 PDT 2016
make -C /lib/modules/4.4.0-45-generic/build M=/var/lib/dkms/blackmagic/10.8.1a2/build
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-45-generic'
LD /var/lib/dkms/blackmagic/10.8.1a2/build/built-in.o
CC [M] /var/lib/dkms/blackmagic/10.8.1a2/build/blackmagic_serial.o
CC [M] /var/lib/dkms/blackmagic/10.8.1a2/build/blackmagic_core.o
CC [M] /var/lib/dkms/blackmagic/10.8.1a2/build/blackmagic_lib.o
CC [M] /var/lib/dkms/blackmagic/10.8.1a2/build/blackmagic_dma.o
CC [M] /var/lib/dkms/blackmagic/10.8.1a2/build/blackmagic_gate.o
LD [M] /var/lib/dkms/blackmagic/10.8.1a2/build/blackmagic.o
ld: Relocatable linking with relocations from format elf64-x86-64 (/var/lib/dkms/blackmagic/10.8.1a2/build/bmd-support.a) to format elf32-i386 (/var/lib/dkms/blackmagic/10.8.1a2/build/blackmagic.o) is not supported
scripts/Makefile.build:391: recipe for target '/var/lib/dkms/blackmagic/10.8.1a2/build/blackmagic.o' failed
make[2]: *** [/var/lib/dkms/blackmagic/10.8.1a2/build/blackmagic.o] Error 1
Makefile:1403: recipe for target '_module_/var/lib/dkms/blackmagic/10.8.1a2/build' failed
make[1]: *** [_module_/var/lib/dkms/blackmagic/10.8.1a2/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-45-generic'
Makefile:44: recipe for target 'all' failed
make: *** [all] Error 2

After searching on the web for the errors similar to the link error shown:

d: Relocatable linking with relocations from format elf64-x86-64 (/var/lib/dkms/blackmagic/10.8.1a2/build/bmd-support.a) to format elf32-i386 (/var/lib/dkms/blackmagic/10.8.1a2/build/blackmagic.o) is not support

It suggested I install the i386 libraries, which I did with the commands:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libstdc++6:i386

Running the dkms command after that resulted in the same errors in the make.log file.
Offline

Nicholas Gill

Blackmagic Design

  • Posts: 169
  • Joined: Mon May 04, 2015 10:28 pm

Re: Decklink in Ubuntu 15.10

PostTue Nov 01, 2016 9:42 pm

Hi Craig,

Please note that the architecture of the driver package must match the installed kernel architecture.

The error shown in your logs occurs when attempting to install 32bit drivers with a 64bit kernel, and is a distinct issue from the original report.

Cheers,

-nick

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 19 guests