Como instalar o driver BlackMagic para o kernel Linux 4.2.0

1

Eu estava tentando instalar o driver BlackMagic no mais recente Ubuntu 15.10 (64 bits), mas estava preso com mensagens de erro:

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.

Existe alguma maneira de instalar no novo kernel do Linux?

    
por nayana 30.11.2015 / 13:09

1 resposta

1

Aqui está um pequeno procedimento para corrigir os drivers BlackMagic 10.5 para trabalhar em sistemas Debian de 64 bits com kernels 4.2.x:

  1. Faça o download e descompacte os drivers. (Blackmagic_Desktop_Video_Linux_10.5.tar.gz)
  2. sudo apt-get install git se já não estiver lá.
  3. cd Blackmagic_Desktop_Video_Linux_10.5/deb/amd64
  4. Corrigir o deb usando fakeroot e código do driver do Github :
    fakeroot sh -c '
      mkdir tmp;
      dpkg-deb -R desktopvideo_10.5a17_amd64.deb tmp;
      cd tmp/usr/src;
      git clone https://github.com/iperry/blackmagic;
      rm -rf blackmagic-10.5a17/ && mv blackmagic blackmagic-10.5a17/;
      git clone https://github.com/iperry/blackmagic-io;
      rm -rf blackmagic-io-10.5a17/ && mv blackmagic-io blackmagic-io-10.5a17/;
      cd ../../../;
      dpkg-deb -b tmp desktopvideo_10.5a17_amd64-patched.deb;
    '
  1. sudo dpkg -i desktopvideo_10.5a17_amd64-patched.deb
  2. Continue com o restante da instalação normalmente.

Crédito @iperry para o patch do driver.

    
por BrianTheLion 30.11.2015 / 20:51