Linux kernel 4.20 - blackmagic-io no load

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

JeromeFr

  • Posts: 4
  • Joined: Tue Dec 25, 2018 12:32 pm
  • Real Name: Jérome Bihoue

Linux kernel 4.20 - blackmagic-io no load

PostTue Dec 25, 2018 1:01 pm

Hello,

To signal that the blackmagic-io module does not load with kernel 4.20-rcX and 4.20
The modules seem to compile, but impossible to load blacmagic-io

Regards,
Jerome
Attachments
noLoad.png
noLoad.png (22.32 KiB) Viewed 18435 times
Offline

ggrub08

  • Posts: 1
  • Joined: Mon Jan 07, 2019 6:23 pm
  • Real Name: Gerald Gruber

Re: Linux kernel 4.20 - blackmagic-io no load

PostMon Jan 07, 2019 6:28 pm

I can confirm that. Intensity Pro 4k. Arch, kernel 4.20.0. Please fix this.
Offline

wakuken

  • Posts: 1
  • Joined: Mon Feb 04, 2019 4:03 am
  • Real Name: Kensaku Wakuda

Re: Linux kernel 4.20 - blackmagic-io no load

PostMon Feb 04, 2019 4:40 am

I have the same problem in Kernel v4.20.6.
I tried the following command but "depmod" failed.

Code: Select all
$ sudo dkms install blackmagic-io/10.11.4a9 -k 4.20.6-042006-generic --verbose --force

blackmagic-io:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.20.6-042006-generic/updates/dkms/

snd_blackmagic-io.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.20.6-042006-generic/updates/dkms/

Warning: The post_install script is not executable.

do_depmod 4.20.6-042006-generic
depmod: ERROR: Cycle detected: blackmagic_io -> blackmagic_io
depmod: ERROR: Found 1 modules in dependency cycles!
(bad exit status: 1)

-------- Uninstall Beginning --------
Module:  blackmagic-io
Version: 10.11.4a9
Kernel:  4.20.6-042006-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

blackmagic-io.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.20.6-042006-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

snd_blackmagic-io.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.20.6-042006-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

do_depmod 4.20.6-042006-generic

DKMS: uninstall completed.
Error! Problems with depmod detected.  Automatically uninstalling this module.
DKMS: Install Failed (depmod problems).  Module rolled back to built state.


The depmod says:
Code: Select all
depmod: ERROR: Cycle detected: blackmagic_io -> blackmagic_io
depmod: ERROR: Found 1 modules in dependency cycles!
(bad exit status: 1)


Could anyone help me?
Offline

Lexridge

  • Posts: 11
  • Joined: Tue Nov 13, 2012 8:39 pm
  • Real Name: Jim Hines

Re: Linux kernel 4.20 - blackmagic-io no load

PostFri Feb 08, 2019 3:29 pm

I am also having this problem. Decklink Duo on Fedora 28. kernel version 4.20.6-100.
Offline

wmendez

  • Posts: 24
  • Joined: Fri Dec 14, 2018 6:43 pm
  • Real Name: Will Mendez

Re: Linux kernel 4.20 - blackmagic-io no load

PostSun Feb 10, 2019 4:41 am

Confirming the same on this end Fedora 29 Intensity Pro 4K , 4.20.6-200. It was working under 4.20.5, I booted into that version but no go.

Emailed issue to Devs.
Offline

box293

  • Posts: 8
  • Joined: Fri Feb 15, 2019 2:37 am
  • Real Name: Troy Lea

Re: Linux kernel 4.20 - blackmagic-io no load

PostFri Feb 15, 2019 2:40 am

Any update on this?

Can't get Intensity Shuttle Thunderbolt working on Fedora 29.

Code: Select all
# dkms install -m blackmagic-io -v 10.11.4a9 --all

blackmagic-io.ko.xz:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.20.7-200.fc29.x86_64/extra/

snd_blackmagic-io.ko.xz:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.20.7-200.fc29.x86_64/extra/
Adding any weak-modules

Warning: The post_install script is not executable.

depmod....(bad exit status: 1)

-------- Uninstall Beginning --------
Module:  blackmagic-io
Version: 10.11.4a9
Kernel:  4.20.7-200.fc29.x86_64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.
Removing any linked weak-modules

blackmagic-io.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/4.20.7-200.fc29.x86_64/extra/
rmdir: failed to remove 'extra': Directory not empty
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


snd_blackmagic-io.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/4.20.7-200.fc29.x86_64/extra/
rmdir: failed to remove 'extra': Directory not empty
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
Error! Problems with depmod detected.  Automatically uninstalling this module.
DKMS: Install Failed (depmod problems).  Module rolled back to built state.
My real name is Troy.
Offline

wmendez

  • Posts: 24
  • Joined: Fri Dec 14, 2018 6:43 pm
  • Real Name: Will Mendez

Re: Linux kernel 4.20 - blackmagic-io no load

PostThu Feb 28, 2019 7:05 pm

BM Devs, Any update on this issue?
Offline

Lexridge

  • Posts: 11
  • Joined: Tue Nov 13, 2012 8:39 pm
  • Real Name: Jim Hines

Re: Linux kernel 4.20 - blackmagic-io no load

PostMon Mar 04, 2019 8:16 pm

This has been going on for a while now. Hopefully there is an update that fixes this in the works. We have resorted back to a v4.19 kernel to get us by. We will need to move forward at some point soon and this would be nice to have fixed before NAB.
Offline

box293

  • Posts: 8
  • Joined: Fri Feb 15, 2019 2:37 am
  • Real Name: Troy Lea

Re: Linux kernel 4.20 - blackmagic-io no load

PostTue Mar 05, 2019 11:19 pm

Desktop Video 11.0 was released however the problem still seems to exist for me on Fedora 29. The readme does state that only Fedora 27-28 is supported which is disappointing.

Code: Select all
[root@metabox-fedora-box293-local troylea]# dkms status -m blackmagic
blackmagic, 11.0a18, 4.20.10-200.fc29.x86_64, x86_64: installed
[root@metabox-fedora-box293-local troylea]# dkms status -m blackmagic-io
blackmagic-io, 11.0a18: added
[root@metabox-fedora-box293-local troylea]# dkms build -m blackmagic-io -v 11.0a18

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=4.20.10-200.fc29.x86_64 KERNELRELEASE=4.20.10-200.fc29.x86_64...
cleaning build area...

DKMS: build completed.
[root@metabox-fedora-box293-local troylea]# dkms install -m blackmagic-io -v 11.0a18 --all --verbose
 
blackmagic-io.ko.xz:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.20.10-200.fc29.x86_64/extra/

snd_blackmagic-io.ko.xz:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.20.10-200.fc29.x86_64/extra/
Adding any weak-modules

Warning: The post_install script is not executable.

do_depmod 4.20.10-200.fc29.x86_64
depmod: ERROR: Cycle detected: blackmagic_io -> blackmagic_io
depmod: ERROR: Found 1 modules in dependency cycles!
(bad exit status: 1)

-------- Uninstall Beginning --------
Module:  blackmagic-io
Version: 11.0a18
Kernel:  4.20.10-200.fc29.x86_64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.
Removing any linked weak-modules

blackmagic-io.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/4.20.10-200.fc29.x86_64/extra/
rmdir: failed to remove 'extra': Directory not empty
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


snd_blackmagic-io.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/4.20.10-200.fc29.x86_64/extra/
rmdir: failed to remove 'extra': Directory not empty
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

do_depmod 4.20.10-200.fc29.x86_64


DKMS: uninstall completed.
Error! Problems with depmod detected.  Automatically uninstalling this module.
DKMS: Install Failed (depmod problems).  Module rolled back to built state.
My real name is Troy.
Offline

wmendez

  • Posts: 24
  • Joined: Fri Dec 14, 2018 6:43 pm
  • Real Name: Will Mendez

Re: Linux kernel 4.20 - blackmagic-io no load

PostWed Mar 06, 2019 3:05 am

Same here, while Linux has improved over the years with it's plug and play /device support it's quirks like these that still are bothersome. I really do not want to have to go the RHEL or Centos route as I enjoy using Fedora and being on the most recent kernel.

-Will

lspci | grep Blackmagic
03:00.0 Multimedia video controller: Blackmagic Design Intensity Pro 4K

dkms status -m blackmagic -k `uname -r`
blackmagic, 10.11.2a3: added
blackmagic, 10.11.4a9: added
blackmagic, 10.9.11a2: added
blackmagic, 11.0a18, 4.20.13-200.fc29.x86_64, x86_64: installed

sudo modprobe blackmagic[-io]
modprobe: FATAL: Module blackmagic[-io] not found in directory /lib/modules/4.20.13-200.fc29.x86_64

sudo dkms install blackmagic-io/11.0a18 --all
blackmagic-io.ko.xz:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.20.13-200.fc29.x86_64/extra/

snd_blackmagic-io.ko.xz:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.20.13-200.fc29.x86_64/extra/
Adding any weak-modules

Warning: The post_install script is not executable.

depmod.......(bad exit status: 1)

-------- Uninstall Beginning --------
Module: blackmagic-io
Version: 11.0a18
Kernel: 4.20.13-200.fc29.x86_64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.
Removing any linked weak-modules

blackmagic-io.ko.xz:
- Uninstallation
- Deleting from: /lib/modules/4.20.13-200.fc29.x86_64/extra/
rmdir: failed to remove 'extra': Directory not empty
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


snd_blackmagic-io.ko.xz:
- Uninstallation
- Deleting from: /lib/modules/4.20.13-200.fc29.x86_64/extra/
rmdir: failed to remove 'extra': Directory not empty
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

depmod.....

DKMS: uninstall completed.
Error! Problems with depmod detected. Automatically uninstalling this module.
DKMS: Install Failed (depmod problems). Module rolled back to built state.
Offline

NVieville

  • Posts: 12
  • Joined: Tue Mar 12, 2019 9:29 am
  • Real Name: Nicolas Viéville

Re: Linux kernel 4.20 - blackmagic-io no load

PostTue Mar 12, 2019 9:52 am

Hello,

Same problem here with:

- Fedora 29 x86_64 kernel 4.20.14-200.fc29.x86_64
- desktopvideo-11.0a18.x86_64.rpm
- desktopvideo-gui-11.0a18.x86_64.rpm
- desktopvideo-scanner-11.0a18.x86_64.rpm
- mediaexpress-3.5.8a12.x86_64.rpm

blackmagic-io module build fails with:

Code: Select all
depmod: ERROR: Cycle detected: blackmagic_io -> blackmagic_io
depmod: ERROR: Found 1 modules in dependency cycles!

I know that ReadMe.txt says:

Code: Select all
Supported Distributions
-----------------------

 * Ubuntu 17.10, 18.04
 * Debian 8 - 9
 * Fedora 27 - 28
 * CentOS 6 - 7

but Fedora 27 entered End Of Life on November 30, 2018, and Fedora 28 will enter End Of Life on June 07, 2019 (one month after Fedora 30 release, according to https://fedoraproject.org/wiki/Releases/30/Schedule). Fedora 30 will be release on May 07, 2019 with kernel 5.x.

Cordially,


--
NVieville
Offline

JeromeFr

  • Posts: 4
  • Joined: Tue Dec 25, 2018 12:32 pm
  • Real Name: Jérome Bihoue

Re: Linux kernel 4.20 - blackmagic-io no load

PostTue Mar 12, 2019 9:38 pm

With Debian sid, kernel 4.20.15 & DesktopVideo 11.0a18

There is a problem with make and the '.a' files. We must rename the '.a' in .'o_shipped ', then modify the makefile.

For the postinstall error, the directory is wrong in the dkms.conf :
"../../lib/blackmagic/blackmagic-loader $PACKAGE_NAME $PACKAGE_VERSION" => "../../lib/blackmagic/DesktopVideo/blackmagic-loader $PACKAGE_NAME $PACKAGE_VERSION"

Starting from the package desktopvideo_11.0a18_amd64.deb:
dpkg-deb -R desktopvideo_11.0a18_amd64.deb tmp
mv ./tmp/usr/src/blackmagic-11.0a18/bmd-support.{a,o_shipped}
mv ./tmp/usr/src/blackmagic-io-11.0a18/blackmagic.{a,o_shipped}
sed -i 's/\.a/.o/' ./tmp/usr/src/blackmagic-*/Makefile
sed -i 's/blackmagic-loader/DesktopVideo\/blackmagic-loader/g' ./tmp/usr/src/blackmagic-*11.0a18/dkms.conf
dpkg-deb -b tmp desktopvideo_11.0a18_amd64_fixed.deb
su -c "dpkg -i desktopvideo_11.0a18_amd64_fixed.deb"

Don't work with kernel 5.0
Offline

Lexridge

  • Posts: 11
  • Joined: Tue Nov 13, 2012 8:39 pm
  • Real Name: Jim Hines

Re: Linux kernel 4.20 - blackmagic-io no load

PostThu Mar 14, 2019 6:45 am

This is literally getting ridiculous! Over two months now, and BMD cannot get this fixed? Both modules will compile manually just fine. But trying to insmod them, I get unknown symbols. Not to mention all the undefined errors:
Code: Select all
# make
make -C /lib/modules/`uname -r`/build M=/usr/src/blackmagic-io-11.0a18
make[1]: Entering directory '/usr/src/kernels/4.20.14-100.fc28.x86_64'
  Building modules, stage 2.
  MODPOST 2 modules
WARNING: "bmio_audio_read_samples" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_client_ioctl" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "blackmagic_exit" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_audio_set_interrupt_callback" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_serial_open" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_audio_write_samples" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_device_deinit" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_serial_chars_in_buffer" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_serial_write" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_serial_port_set_rx_callback" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_notify_clear" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_device_resume" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_serial_close" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_audio_deinit" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_client_init" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_audio_init" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_device_suspend" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_audio_hardware" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_serial_write_room" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_serial_pop_rx_byte" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_audio_disable" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_serial_supported" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_audio_free_stream" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_audio_clear_interrupt_callback" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_client_deinit" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_audio_alloc_stream" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_notify_read" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_driver_name" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_audio_enable" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_client_munmap" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_notify_add" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "blackmagic_init" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_client_mmap" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
WARNING: "bmio_device_init" [/usr/src/blackmagic-io-11.0a18/blackmagic-io.ko] undefined!
make[1]: Leaving directory '/usr/src/kernels/4.20.14-100.fc28.x86_64'


I understand these are warnings and not failures, and the modules do build. But they will not load. depmod returns
Code: Select all
depmod: ERROR: Cycle detected: blackmagic_io -> blackmagic_io


To BMD: Your readme files claims to support Fedora 28. It doesn't! A very large percentage of broadcast television software/firmware is now Linux based. I commend you for having supported Linux so well in the past, but your present support seemingly sucks beyond believe! Two months broken now...REALLY? Get off your asses and fix this on Fedora 28+, PLEASE! Or stop claiming to support it. I love you guys, but I need a working system with modern kernels.Having to manually build a 4.19 kernel just for BMD to work is fscked up.
Offline

JeromeFr

  • Posts: 4
  • Joined: Tue Dec 25, 2018 12:32 pm
  • Real Name: Jérome Bihoue

Re: Linux kernel 4.20 - blackmagic-io no load

PostThu Mar 14, 2019 10:13 am

Lexridge wrote:This is literally getting ridiculous! Over two months now, and BMD cannot get this fixed? Both modules will compile manually just fine. But trying to insmod them, I get unknown symbols. Not to mention all the undefined errors:


Hi Lexridge,

The problem comes from the compilation. These warnings, in this context, should be considered as errors.
The links between the functions contained in the 2 libraries of BMD (bmd-support.a and blackmagic.a) are not done. The compiler indicates this and assumes that they will be defined in another linked module later ... This is not the intended behavior and the reason why the loading of the modules is refused (because the functions are undefined).
You must rename the '.a' files to '.o_shipped' and also change the 2 MakeFiles by replacing the '$ (KLIB_NAME) .a' by '$ (KLIB_NAME) .o'

Warning: both modules (blackmagic and blackmagic-io) are problematic and must be re-created correctly.

It works under a kernel 4.20.15
Offline

Lexridge

  • Posts: 11
  • Joined: Tue Nov 13, 2012 8:39 pm
  • Real Name: Jim Hines

Re: Linux kernel 4.20 - blackmagic-io no load

PostThu Mar 14, 2019 2:04 pm

JeromeFr wrote:The problem comes from the compilation. These warnings, in this context, should be considered as errors.
The links between the functions contained in the 2 libraries of BMD (bmd-support.a and blackmagic.a) are not done. The compiler indicates this and assumes that they will be defined in another linked module later ... This is not the intended behavior and the reason why the loading of the modules is refused (because the functions are undefined).
You must rename the '.a' files to '.o_shipped' and also change the 2 MakeFiles by replacing the '$ (KLIB_NAME) .a' by '$ (KLIB_NAME) .o'

Warning: both modules (blackmagic and blackmagic-io) are problematic and must be re-created correctly.


Okay, I will give this a try later today. So it seems you have managed to make yours work with this fix? Thanks for the tip.

JeromeFr wrote:It works under a kernel 4.20.15


Are you saying this works without modifications and incident when using the 4.20.15 kernel?
Offline

wmendez

  • Posts: 24
  • Joined: Fri Dec 14, 2018 6:43 pm
  • Real Name: Will Mendez

Re: Linux kernel 4.20 - blackmagic-io no load

PostThu Mar 14, 2019 2:08 pm

Can someone post step by step instructions to compile this manually pls.

Thank you for your assistance.


Sent from my iPhone using Tapatalk
Offline

box293

  • Posts: 8
  • Joined: Fri Feb 15, 2019 2:37 am
  • Real Name: Troy Lea

Re: Linux kernel 4.20 - blackmagic-io no load

PostThu Mar 14, 2019 9:46 pm

Can the installation files be updated do the extra renaming steps and changing the make files? Can't you just fix this without us having to do any manual steps?

The reason why I purchased my Intensity Shuttle was because it is Linux supported but right now it's just a brick on my desk. I ended up purchasing a cheap Chinese capture device from eBay and I don't have any issues like this, I just plugged and played it!
My real name is Troy.
Offline

wmendez

  • Posts: 24
  • Joined: Fri Dec 14, 2018 6:43 pm
  • Real Name: Will Mendez

Re: Linux kernel 4.20 - blackmagic-io no load

PostThu Mar 14, 2019 11:06 pm

box293 wrote:Can the installation files be updated do the extra renaming steps and changing the make files? Can't you just fix this without us having to do any manual steps?

The reason why I purchased my Intensity Shuttle was because it is Linux supported but right now it's just a brick on my desk. I ended up purchasing a cheap Chinese capture device from eBay and I don't have any issues like this, I just plugged and played it!
Can you post a link to that device please, and does resolve and fusion recognize it?

Thank you,
William


Sent from my iPhone using Tapatalk
Offline

box293

  • Posts: 8
  • Joined: Fri Feb 15, 2019 2:37 am
  • Real Name: Troy Lea

Re: Linux kernel 4.20 - blackmagic-io no load

PostFri Mar 15, 2019 12:59 am

https://www.ebay.com.au/itm/USB-3-0-1080P-HDMI-to-USB-3-0-Video-High-Speed-Capture-Card-For-Windows-Laptops/253970908661?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649

I know it's USB 3 and not Thunderbolt like my Shuttle but the thing just works. I'm sure it doesn't produce the same quality as the Shuttle but again I've not been able to use the Shuttle in Linux hence why I turned around and purchased the cheap Chinese device.

It detects it as a USB camera I think, I didn't need to install any drivers.

I've used it in OBS, I've not tried it in resolve or fusion.
My real name is Troy.
Offline

Lexridge

  • Posts: 11
  • Joined: Tue Nov 13, 2012 8:39 pm
  • Real Name: Jim Hines

Re: Linux kernel 4.20 - blackmagic-io no load

PostFri Mar 15, 2019 3:31 am

JeromeFr wrote:
Lexridge wrote:This is literally getting ridiculous! Over two months now, and BMD cannot get this fixed? Both modules will compile manually just fine. But trying to insmod them, I get unknown symbols. Not to mention all the undefined errors:


Hi Lexridge,

The problem comes from the compilation. These warnings, in this context, should be considered as errors.
The links between the functions contained in the 2 libraries of BMD (bmd-support.a and blackmagic.a) are not done. The compiler indicates this and assumes that they will be defined in another linked module later ... This is not the intended behavior and the reason why the loading of the modules is refused (because the functions are undefined).
You must rename the '.a' files to '.o_shipped' and also change the 2 MakeFiles by replacing the '$ (KLIB_NAME) .a' by '$ (KLIB_NAME) .o'

Warning: both modules (blackmagic and blackmagic-io) are problematic and must be re-created correctly.

It works under a kernel 4.20.15


This fix does indeed work. Great job on discovering the problems with it!! I now have my BMD cards working again (5 varieties of them). There are two ways you can do this. Follow the fix and just type "make" from each folder, then 'insmod' the .ko files (you will have to do this after every reboot using this method, unless you copy them to your /lib/modules/[kernel-version]/extras/ folder manually, or write a script to do it). The better method would be to make the changes then run the dkms command again, resulting in installed .ko.xz files. When I have time I will write up explicit instructions if anyone needs them.
Offline

wmendez

  • Posts: 24
  • Joined: Fri Dec 14, 2018 6:43 pm
  • Real Name: Will Mendez

Re: Linux kernel 4.20 - blackmagic-io no load

PostSat Mar 16, 2019 1:01 am

box293 wrote:https://www.ebay.com.au/itm/USB-3-0-1080P-HDMI-to-USB-3-0-Video-High-Speed-Capture-Card-For-Windows-Laptops/253970908661?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649

I know it's USB 3 and not Thunderbolt like my Shuttle but the thing just works. I'm sure it doesn't produce the same quality as the Shuttle but again I've not been able to use the Shuttle in Linux hence why I turned around and purchased the cheap Chinese device.

It detects it as a USB camera I think, I didn't need to install any drivers.

I've used it in OBS, I've not tried it in resolve or fusion.


Thank you.
Offline

wmendez

  • Posts: 24
  • Joined: Fri Dec 14, 2018 6:43 pm
  • Real Name: Will Mendez

Re: Linux kernel 4.20 - blackmagic-io no load

PostSat Mar 16, 2019 2:05 am

Lexridge wrote:
This fix does indeed work. Great job on discovering the problems with it!! I now have my BMD cards working again (5 varieties of them). There are two ways you can do this. Follow the fix and just type "make" from each folder, then 'insmod' the .ko files (you will have to do this after every reboot using this method, unless you copy them to your /lib/modules/[kernel-version]/extras/ folder manually, or write a script to do it). The better method would be to make the changes then run the dkms command again, resulting in installed .ko.xz files. When I have time I will write up explicit instructions if anyone needs them.


When time permits this would be helpful, i'm sure it will be way before BMD corrects it.

Thank you,
William
Offline

NVieville

  • Posts: 12
  • Joined: Tue Mar 12, 2019 9:29 am
  • Real Name: Nicolas Viéville

Re: Linux kernel 4.20 - blackmagic-io no load

PostThu Mar 21, 2019 10:29 am

Hello,

Here is a "quick and dirty" shell script that fixes the makefiles and renames the libraries on Fedora 29, as suggested by Lexridge (shell script can't be uploaded as an attachment).
Code: Select all
#!/bin/sh
#

for ONE_FILE in $(find /usr/src/blackmagic-* -name "Makefile")
do
{
    # DEBUG - uncomment next two lines and comment there next two ones
    #echo "cp -a ${ONE_FILE} ${ONE_FILE}.bak"
    #echo "sed -e 's%\$(KLIB_NAME)\.a%\$(KLIB_NAME)\.o%g' ${ONE_FILE}"
    cp -a "${ONE_FILE}" "${ONE_FILE}.bak"
    sed -i -e "s%\$(KLIB_NAME)\.a%\$(KLIB_NAME)\.o%g" "${ONE_FILE}"
} ; done


for ONE_FILE in $(find /usr/src/blackmagic-* -name "*.a")
do
{
    # DEBUG - uncomment next line and comment its next one
    #echo "cp -a ${ONE_FILE} ${ONE_FILE%.*}.o_shipped"
    cp -a "${ONE_FILE}" "${ONE_FILE%.*}.o_shipped"
} ; done

exit 0

Copy this code to a file, make it executable and launch it in a root console.
Then proceed manually with dkms utility.
For example, here is what worked on Fedora 29 (please adapt these command lines to your distribution):
Code: Select all
dkms add -m blackmagic -v 11.0a18 --rpm_safe_upgrade
dkms add -m blackmagic-io -v 11.0a18 --rpm_safe_upgrade
dkms install --force -m blackmagic -v 11.0a18 --rpm_safe_upgrade
dkms install --force -m blackmagic-io -v 11.0a18 --rpm_safe_upgrade

Hope this help.

Cordially,


--
NVieville
Offline

wmendez

  • Posts: 24
  • Joined: Fri Dec 14, 2018 6:43 pm
  • Real Name: Will Mendez

Re: Linux kernel 4.20 - blackmagic-io no load

PostThu Mar 21, 2019 6:06 pm

Thank you NVieville and Collective Hive Minds!!!!

Confirmed installed and up and running on Fedora 29 Kernel 4.20.16-200.fc29.x86_64

Greatly appreciated!
Attachments
BMDLinux.png
BMDLinux.png (183.54 KiB) Viewed 16326 times
Offline

Lexridge

  • Posts: 11
  • Joined: Tue Nov 13, 2012 8:39 pm
  • Real Name: Jim Hines

Re: Linux kernel 4.20 - blackmagic-io no load

PostSat Mar 23, 2019 7:19 pm

I have noticed that once these particular files are renamed, kernel updates will dkms auto-build again on boot. No need to keep applying the "fix" every time your kernel is updated. If you update Desktop Video to a newer version, you will need to apply the fix again, unless BMD fixes the problem at the source.
Offline

box293

  • Posts: 8
  • Joined: Fri Feb 15, 2019 2:37 am
  • Real Name: Troy Lea

Re: Linux kernel 4.20 - blackmagic-io no load

PostThu Mar 28, 2019 5:44 am

NVieville wrote:Hello,

Here is a "quick and dirty" shell script that fixes the makefiles and renames the libraries on Fedora 29, as suggested by Lexridge


Awesome, thanks for helping out here.
My real name is Troy.
Offline

wmendez

  • Posts: 24
  • Joined: Fri Dec 14, 2018 6:43 pm
  • Real Name: Will Mendez

Re: Linux kernel 4.20 - blackmagic-io no load

PostTue Apr 02, 2019 12:57 am

Desktop Video 11.1 has been released and issues have been addressed. I can confirm I am up and running on Fedora 29, Kernel 5.0.4-200.
Offline

Lexridge

  • Posts: 11
  • Joined: Tue Nov 13, 2012 8:39 pm
  • Real Name: Jim Hines

Re: Linux kernel 4.20 - blackmagic-io no load

PostFri Apr 05, 2019 6:46 pm

wmendez wrote:Desktop Video 11.1 has been released and issues have been addressed. I can confirm I am up and running on Fedora 29, Kernel 5.0.4-200.


Good to hear! Just in time for NAB too. lol
Offline

Knud Christiansen

  • Posts: 8
  • Joined: Sun Apr 10, 2016 10:37 am

Re: Linux kernel 4.20 - blackmagic-io no load

PostSun Apr 14, 2019 7:30 am

I believe there is a little bug in the 11.1a11 driver
At least on Intensity Pro 4K hardware
The blackmagic kernel module does not load automatically
Where blackmagic-io kernel module does

Properly due to that the pci id for the Intensity Pro 4K is not in the blackmagic module pci id list
It is in the blackmagic-io module.

You need to manually load the blackmagic module

Seen on Fedora F28 kernel 5.0.(5/6/7)

Knud
Offline

Knud Christiansen

  • Posts: 8
  • Joined: Sun Apr 10, 2016 10:37 am

Re: Linux kernel 4.20 - blackmagic-io no load

PostTue Apr 16, 2019 1:53 pm

It seams not that the kernel module blackmagic. is used by Intensity 4K.
Problems was that a previos version of desktopvideo still was in the DKMS system and made problems for blackmagic_io

Knud

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 22 guests