如何安装适用于 4.2.0 Linux 内核的 BlackMagic 驱动程序

如何安装适用于 4.2.0 Linux 内核的 BlackMagic 驱动程序

我尝试在最新的 Ubuntu 15.10(64 位)上安装 BlackMagic 驱动程序,但出现错误消息:

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.

有没有办法在较新的 Linux 内核上安装?

答案1

这里是修补 BlackMagic 10.5 驱动程序的简短步骤,使其可以在具有 4.2.x 内核的 64 位 Debian 系统上运行:

  1. 下载并解压驱动程序。(Blackmagic_Desktop_Video_Linux_10.5.tar.gz)
  2. sudo apt-get install git如果尚未存在。
  3. cd Blackmagic_Desktop_Video_Linux_10.5/deb/amd64
  4. fakeroot使用和修补 deb来自 Github 的驱动程序代码
    fakeroot sh-c'
      创建目录 tmp;
      dpkg-deb -R Desktopvideo_10.5a17_amd64.deb tmp;
      cd tmp/usr/src;
      git 克隆 https://github.com/iperry/blackmagic;
      rm -rf blackmagic-10.5a17/ && mv blackmagic blackmagic-10.5a17/;
      git 克隆 https://github.com/iperry/blackmagic-io;
      rm -rf blackmagic-io-10.5a17/ && mv blackmagic-io blackmagic-io-10.5a17/;
      光盘 ../../../;
      dpkg-deb -b tmp Desktopvideo_10.5a17_amd64-patched.deb;
  1. sudo dpkg -i desktopvideo_10.5a17_amd64-patched.deb
  2. 继续正常进行其余安装。

信用@iperry用于驱动程序补丁。

相关内容