-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel config: Enable MEDIA_CONTROLLER #31881
kernel config: Enable MEDIA_CONTROLLER #31881
Conversation
With this disabled, cameras would not get a `/dev/mediaX` entry matching the `/dev/videoX` which broke any application (e.g: `uvcdynctrl -l`, `media-ctl -p`) depending on this interface.
@GrahamcOfBorg build linuxPackages_rpi.kernel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failure for system: x86_64-darwin
error: assertion failed at /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/31881/pkgs/os-specific/linux/kernel/generic.nix:32:1
(use ‘--show-trace’ to show detailed location information)
@grahamc Why is it trying to build on darwin? oO |
The build fanout is too stupid to not :) |
FWIW, building |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failure for system: x86_64-linux
^~~~~
cc1: some warnings being treated as errors
make[4]: *** [/tmp/nix-build-linux-4.9.59-1.20171029.drv-0/source/scripts/Makefile.build:300: drivers/video/fbdev/rpisense-fb.o] Error 1
make[3]: *** [/tmp/nix-build-linux-4.9.59-1.20171029.drv-0/source/scripts/Makefile.build:544: drivers/video/fbdev] Error 2
make[2]: *** [/tmp/nix-build-linux-4.9.59-1.20171029.drv-0/source/scripts/Makefile.build:544: drivers/video] Error 2
make[1]: *** [/tmp/nix-build-linux-4.9.59-1.20171029.drv-0/source/Makefile:991: drivers] Error 2
make[1]: Leaving directory '/tmp/nix-build-linux-4.9.59-1.20171029.drv-0/build'
make: *** [Makefile:150: sub-make] Error 2
builder for ‘/nix/store/4xi8b21q16nbajc9x1jxd8278bp2ibn1-linux-4.9.59-1.20171029.drv’ failed with exit code 2
error: build of ‘/nix/store/4xi8b21q16nbajc9x1jxd8278bp2ibn1-linux-4.9.59-1.20171029.drv’ failed
Thanks @dezgeg. Is it possible to backport as well to 17.09? |
Sure. bcbd14e |
Nice, thank you. |
With this disabled, cameras would not get a
/dev/mediaX
entry matchingthe
/dev/videoX
which broke any application (e.g:uvcdynctrl -l
,media-ctl -p
) depending on this interface.Should also be applied to 17.09.
Motivation for this change
Broken utilities which work seamlessly on Ubuntu 16.04 but are unusable on Nixos (because of the missing config). Unable to properly setup a camera from "The Imaging Source".
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)Tested configure seamlessly with all supported kernels:
Tested complete build with
linuxPackages_4_9.kernel
, booted with it and now successfully useduvcdynctrl -l
,media-ctl -p
and broken gstreamer pipelines with my camera./dev/media0
now show up when I plug my usb camera.