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
tbs: updated to kernel-4.14 #39389
tbs: updated to kernel-4.14 #39389
Conversation
* updated meta data * fix concurrent names for fetchFromGitHub derivations
Thanks, I updated this PR. |
Thanks @ck3d, I tested this with a TBS6981 (with the cx23885 chip) but no /dev/dvb devices are created. I tried configuring the firmware too, but I don't see any mention of it getting loaded in dmesg. Any idea what's going on? |
I updated the PR and added a missing entry in all-packages.nix. It got lost after the last update. Sorry, but I can not test the packages any more. My DVB card seems to be broken. My system do not recognize the card any more. |
hardeningDisable = [ "pic" "format" ]; | ||
|
||
nativeBuildInputs = [ patchutils kmod perl perlPackages.ProcProcessTable ] | ||
++ lib.optional (lib.versionAtLeast kernel.version "4.14") [ libelf ]; |
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.
Use ++ kernel.moduleBuildDependencies
instead of this conditional.
buildFlags = [ "VER=${kernel.modDirVersion}" ]; | ||
installFlags = [ "DESTDIR=$(out)" ]; | ||
|
||
hardeningDisable = [ "pic" "format" ]; |
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.
I think hardeningDisable = [ "all" ];
is the safest thing to do with kernel modules.
@ck3d I found that there's a conflict between the kernel module for dvb-core (dvb-core.ko.cz) and the one contained in this package (dvb-core.ko). The kernel version gets loaded, which is missing the dvb_create_media_graph symbol. I'm testing if xz compressing dvb-core.ko will be enough to fix this. |
It's working for me (/dev/dvb is created) after adding:
I'll do some more testing and tidy up some other changes I've made. I must also see if there's a nicer way to add the firmware. Currently I've copied it to /lib/firmware and used the following in my config:
|
Otherwise the kernel versions of dvb-core.ko and videodev.ko get loaded instead of the versions from this package.
Motivation for this change
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)