I’m trying to get the VIVD ( 29. The Virtual Video Test Driver (vivid) — The Linux Kernel documentation ) kernel module loaded on my nix box, but am struggling.
I have a yocto build for some dedicated hardware which works the the following config options:
CONFIG_VIDEO_VIVID=m
CONFIG_VIDEO_VIVID_CEC=m
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2=y
CONFIG_HAS_DMA=y
CONFIG_MEDIA_TEST_SUPPORT=y
So I thought, well this will be easy i’ll just replicate in nix land like this
boot.kernelPatches = [
{
name = “video-vivid”;
patch = null; # No patch file, just config changes
extraStructuredConfig = {
MEDIA_TEST_SUPPORT = lib.kernel.yes;
MEDIA_CONTROLLER = lib.kernel.yes;
VIDEO_DEV = lib.kernel.module;
HAS_DMA = lib.kernel.yes;
FB = lib.kernel.yes;
VIDEO_VIVID = lib.kernel.module;
VIDEO_VIVID_CEC = lib.kernel.module;
VIDEO_V4L2 = lib.kernel.yes;
};
}
];
But that gives me
> error: unused option: VIDEO_V4L2
> error: unused option: VIDEO_V4L2_COMMON
> error: unused option: VIDEO_VIVID
> error: unused option: VIDEO_VIVID_CEC
The config option is here
Which I assume isn’t being picked up, but I’m now at a loss to what the yocto build is doing that my nixos build isn’t.
Help greatly appreciated.
Alan