Ubuntu 22.04 LTS patch for blackmagic-io-12.4.1a15 module

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

Cameron Nichols

Blackmagic Design

  • Posts: 443
  • Joined: Mon Sep 04, 2017 4:05 am

Ubuntu 22.04 LTS patch for blackmagic-io-12.4.1a15 module

PostThu Jun 01, 2023 10:03 pm

Hi Developers,

It has been observed that recent updates to Ubuntu 22.04.2 LTS will lead to issues building the blackmagic-io-12.4.1a15 module. In order to overcome, please download the following patch - https://bmdseeds.sharefile.com/d-safdd69919e624cf1be52865239c52d24

To apply the patch:
Code: Select all
$ sudo tar zxf blackmagic-io-12.4.1a15-p2.tar.gz -C /usr/src/blackmagic-io-12.4.1a15
$ sudo dkms build -m blackmagic-io -v 12.4.1a15 -k $(uname -r)
$ sudo dkms install -m blackmagic-io -v 12.4.1a15 -k $(uname -r)
The same patch should also be applied to Fedora 37, 38 and other distributions running kernel 6.1 or later.

Regards
Cameron
Offline

MowKow

  • Posts: 3
  • Joined: Wed Apr 13, 2022 12:14 pm
  • Real Name: Winand Appelhoff

Re: Ubuntu 22.04 LTS patch for blackmagic-io-12.4.1a15 modul

PostFri Jun 09, 2023 7:31 am

unfortnulately the patch doesn't seem to cover 6.2.x kernels

dkms install fails with

Running the post_install script:
* Attempting to load driver
modprobe: ERROR: could not insert 'blackmagic_io': Invalid argument
ERR The new blackmagic-io driver was not able to be loaded

[Fri Jun 9 07:14:54 2023] blackmagic: has both .ctors and .init_array.
[Fri Jun 9 07:24:37 2023] blackmagic_io: has both .ctors and .init_array.

system: Ubuntu 23.04
kernel: 6.2.0-20-generic
Offline

NVieville

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

Re: Ubuntu 22.04 LTS patch for blackmagic-io-12.4.1a15 modul

PostMon Jun 12, 2023 2:05 pm

Hello,

See zip archive here:

viewtopic.php?f=12&t=173218&sid=996e1fa215a00c3ec0e42a5a3b884137#p915556

Works also on Fedora 37 and 38.

Cordially,


--
NVieville
Offline

MowKow

  • Posts: 3
  • Joined: Wed Apr 13, 2022 12:14 pm
  • Real Name: Winand Appelhoff

Re: Ubuntu 22.04 LTS patch for blackmagic-io-12.4.1a15 modul

PostTue Jun 13, 2023 7:48 am

Hi NVieville,

Kernel 6.2.x is a different issue since the tarball provided by BM already contains the bmio_audio.c patch

Cheers
Offline

NVieville

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

Re: Ubuntu 22.04 LTS patch for blackmagic-io-12.4.1a15 modul

PostTue Jun 27, 2023 8:37 am

Hello MowKow,
MowKow wrote:Kernel 6.2.x is a different issue since the tarball provided by BM already contains the bmio_audio.c patch

Thank you for your comment.
I should have precise that the patch contained in the linked zip archive addresses the problem encountered with kernels >= 6.1.x. It should also work for ubuntu 22.04 with kernel 5.19.x and 23.04 with kernel 6.2.x, as it tests the kernel version to keep the old functionalities available.

As you can see here:

https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/tree/include/sound/memalloc.h

the snd_dma_continuous_data macros stills exist in ubuntu 5.19 kernel, and there seems that Ubuntu didn't back-ported this removal from later kernels to this release.
So IMHO there's probably a mistake in the Cameron Nichols proposed patch as it disable this part for kernels from 5.19.x and later. Maybe I'm wrong on this, but it could potentially lead to problems for users. Feel free to make any comment on this subject.

Cordially,


--
NVieville
Offline

Cameron Nichols

Blackmagic Design

  • Posts: 443
  • Joined: Mon Sep 04, 2017 4:05 am

Re: Ubuntu 22.04 LTS patch for blackmagic-io-12.4.1a15 modul

PostFri Jun 30, 2023 12:53 am

Hi all,

Quick update that Desktop Video 12.5 has been released which includes support for Linux kernel 6.1 and later, as well as recent build issues found in Ubuntu 22.04 LTS and Ubuntu 23.04. There is no need to apply the patches that were posted here to Desktop Video 12.5.

Regards
Cameron

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 19 guests