mbox series

[0/3,SRU,Jammy/oem-5.10/oem-5.13/oem-5.14] support signed v4l2loopback dkms build

Message ID 20220103183547.434284-1-vicamo.yang@canonical.com
Headers show
Series [1/3,SRU,oem-5.13/oem-5.14] UBUNTU: update dkms package versions | expand

Message

You-Sheng Yang Jan. 3, 2022, 6:35 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1938531

[Impact]

v4l2loopback is used as a critical role on Intel IPU6 camera platforms,
which takes userspace middleware involvements to correctly configure
hardware sensors. While all the legacy camera applications are not yet
learned how to support libcamera, v4l2loopback and a v4l2-relayd step in
as a video streaming proxy for backward compatibility.

To preinstall v4l2loopback kernel module on secureboot systems, signed
modules should be used.

[Fix]

All Ubuntu specific changes to enable signed v4l2loopback dkms builds.

[Test Case]

Install signed modules package and check `modinfo v4l2loopback`.

[Where problems could occur]

N/A.

[Other Info]

This adds current revision of v4l2loopback in the ubuntu archive. While
some other fixes are also needed for v4l2loopback/focal, expects version
bumps recently.

You-Sheng Yang (3):
  UBUNTU: update dkms package versions
  UBUNTU: support v4l2loopback dkms build
  UBUNTU: enable v4l2loopback builds on oem kernels

 debian.oem/abi/amd64/oem.modules   |  1 +
 debian.oem/rules.d/amd64.mk        |  1 +
 debian/dkms-versions               |  1 +
 debian/rules                       |  6 ++++++
 debian/rules.d/2-binary-arch.mk    | 10 +++++++---
 debian/v4l2loopback-modules.ignore |  1 +
 6 files changed, 17 insertions(+), 3 deletions(-)
 create mode 100644 debian/v4l2loopback-modules.ignore

Comments

Andrea Righi Jan. 4, 2022, 8:57 a.m. UTC | #1
On Tue, Jan 04, 2022 at 02:35:36AM +0800, You-Sheng Yang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1938531
> 
> [Impact]
> 
> v4l2loopback is used as a critical role on Intel IPU6 camera platforms,
> which takes userspace middleware involvements to correctly configure
> hardware sensors. While all the legacy camera applications are not yet
> learned how to support libcamera, v4l2loopback and a v4l2-relayd step in
> as a video streaming proxy for backward compatibility.
> 
> To preinstall v4l2loopback kernel module on secureboot systems, signed
> modules should be used.
> 
> [Fix]
> 
> All Ubuntu specific changes to enable signed v4l2loopback dkms builds.
> 
> [Test Case]
> 
> Install signed modules package and check `modinfo v4l2loopback`.
> 
> [Where problems could occur]
> 
> N/A.
> 
> [Other Info]
> 
> This adds current revision of v4l2loopback in the ubuntu archive. While
> some other fixes are also needed for v4l2loopback/focal, expects version
> bumps recently.

Applied to jammy:linux.

Thanks,
-Andrea
Andrea Righi Jan. 4, 2022, 10:25 a.m. UTC | #2
On Tue, Jan 04, 2022 at 02:35:36AM +0800, You-Sheng Yang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1938531
> 
> [Impact]
> 
> v4l2loopback is used as a critical role on Intel IPU6 camera platforms,
> which takes userspace middleware involvements to correctly configure
> hardware sensors. While all the legacy camera applications are not yet
> learned how to support libcamera, v4l2loopback and a v4l2-relayd step in
> as a video streaming proxy for backward compatibility.
> 
> To preinstall v4l2loopback kernel module on secureboot systems, signed
> modules should be used.
> 
> [Fix]
> 
> All Ubuntu specific changes to enable signed v4l2loopback dkms builds.
> 
> [Test Case]
> 
> Install signed modules package and check `modinfo v4l2loopback`.
> 
> [Where problems could occur]
> 
> N/A.
> 
> [Other Info]
> 
> This adds current revision of v4l2loopback in the ubuntu archive. While
> some other fixes are also needed for v4l2loopback/focal, expects version
> bumps recently.

BTW, this is currently applied to jammy:linux, but I guess it requires
some changes also on the dkms side (not sure exactly what...),
specifically update-dkms-versions should be able to properly fetch and
update the package version (right now it just removes v4l2loopback from
debian/dkms-versions).

So even if the patch set is applied to jammy:linux, the feature is still
temporarily disabled (otherwise I get build errors).

-Andrea
You-Sheng Yang Jan. 4, 2022, 10:58 a.m. UTC | #3
On Tue, Jan 4, 2022 at 6:25 PM Andrea Righi <andrea.righi@canonical.com> wrote:
>
> On Tue, Jan 04, 2022 at 02:35:36AM +0800, You-Sheng Yang wrote:
> > BugLink: https://bugs.launchpad.net/bugs/1938531
> >
> > [Impact]
> >
> > v4l2loopback is used as a critical role on Intel IPU6 camera platforms,
> > which takes userspace middleware involvements to correctly configure
> > hardware sensors. While all the legacy camera applications are not yet
> > learned how to support libcamera, v4l2loopback and a v4l2-relayd step in
> > as a video streaming proxy for backward compatibility.
> >
> > To preinstall v4l2loopback kernel module on secureboot systems, signed
> > modules should be used.
> >
> > [Fix]
> >
> > All Ubuntu specific changes to enable signed v4l2loopback dkms builds.
> >
> > [Test Case]
> >
> > Install signed modules package and check `modinfo v4l2loopback`.
> >
> > [Where problems could occur]
> >
> > N/A.
> >
> > [Other Info]
> >
> > This adds current revision of v4l2loopback in the ubuntu archive. While
> > some other fixes are also needed for v4l2loopback/focal, expects version
> > bumps recently.
>
> BTW, this is currently applied to jammy:linux, but I guess it requires
> some changes also on the dkms side (not sure exactly what...),
> specifically update-dkms-versions should be able to properly fetch and
> update the package version (right now it just removes v4l2loopback from
> debian/dkms-versions).

Yes it's also being uploaded in
https://bugs.launchpad.net/ubuntu/+source/v4l2loopback/+bug/1921474

> So even if the patch set is applied to jammy:linux, the feature is still
> temporarily disabled (otherwise I get build errors).

It was not supposed to fail because there is no update for
v4l2loopback-dkms/jammy but for focal, and the versions in the patches
are identical to those currently in Ubuntu archive.

> -Andrea
AceLan Kao Jan. 13, 2022, 7:32 a.m. UTC | #4
applied to oem-5.10, thanks
Acked-By: AceLan Kao <acelan.kao@canonical.com>
Timo Aaltonen Jan. 17, 2022, 10:53 a.m. UTC | #5
On 3.1.2022 20.35, You-Sheng Yang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1938531
> 
> [Impact]
> 
> v4l2loopback is used as a critical role on Intel IPU6 camera platforms,
> which takes userspace middleware involvements to correctly configure
> hardware sensors. While all the legacy camera applications are not yet
> learned how to support libcamera, v4l2loopback and a v4l2-relayd step in
> as a video streaming proxy for backward compatibility.
> 
> To preinstall v4l2loopback kernel module on secureboot systems, signed
> modules should be used.
> 
> [Fix]
> 
> All Ubuntu specific changes to enable signed v4l2loopback dkms builds.
> 
> [Test Case]
> 
> Install signed modules package and check `modinfo v4l2loopback`.
> 
> [Where problems could occur]
> 
> N/A.
> 
> [Other Info]
> 
> This adds current revision of v4l2loopback in the ubuntu archive. While
> some other fixes are also needed for v4l2loopback/focal, expects version
> bumps recently.
> 
> You-Sheng Yang (3):
>    UBUNTU: update dkms package versions
>    UBUNTU: support v4l2loopback dkms build
>    UBUNTU: enable v4l2loopback builds on oem kernels
> 
>   debian.oem/abi/amd64/oem.modules   |  1 +
>   debian.oem/rules.d/amd64.mk        |  1 +
>   debian/dkms-versions               |  1 +
>   debian/rules                       |  6 ++++++
>   debian/rules.d/2-binary-arch.mk    | 10 +++++++---
>   debian/v4l2loopback-modules.ignore |  1 +
>   6 files changed, 17 insertions(+), 3 deletions(-)
>   create mode 100644 debian/v4l2loopback-modules.ignore
> 

applied to oem-5.14, thanks
Timo Aaltonen Jan. 17, 2022, 11:50 a.m. UTC | #6
On 3.1.2022 20.35, You-Sheng Yang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1938531
> 
> [Impact]
> 
> v4l2loopback is used as a critical role on Intel IPU6 camera platforms,
> which takes userspace middleware involvements to correctly configure
> hardware sensors. While all the legacy camera applications are not yet
> learned how to support libcamera, v4l2loopback and a v4l2-relayd step in
> as a video streaming proxy for backward compatibility.
> 
> To preinstall v4l2loopback kernel module on secureboot systems, signed
> modules should be used.
> 
> [Fix]
> 
> All Ubuntu specific changes to enable signed v4l2loopback dkms builds.
> 
> [Test Case]
> 
> Install signed modules package and check `modinfo v4l2loopback`.
> 
> [Where problems could occur]
> 
> N/A.
> 
> [Other Info]
> 
> This adds current revision of v4l2loopback in the ubuntu archive. While
> some other fixes are also needed for v4l2loopback/focal, expects version
> bumps recently.
> 
> You-Sheng Yang (3):
>    UBUNTU: update dkms package versions
>    UBUNTU: support v4l2loopback dkms build
>    UBUNTU: enable v4l2loopback builds on oem kernels
> 
>   debian.oem/abi/amd64/oem.modules   |  1 +
>   debian.oem/rules.d/amd64.mk        |  1 +
>   debian/dkms-versions               |  1 +
>   debian/rules                       |  6 ++++++
>   debian/rules.d/2-binary-arch.mk    | 10 +++++++---
>   debian/v4l2loopback-modules.ignore |  1 +
>   6 files changed, 17 insertions(+), 3 deletions(-)
>   create mode 100644 debian/v4l2loopback-modules.ignore
> 

applied to oem-5.13, thanks