-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
armbian-kernel: enable BTF (and CO-RE) for all kernels #7629
armbian-kernel: enable BTF (and CO-RE) for all kernels #7629
Conversation
ae45043
to
8c09e7a
Compare
cafdca0 is causing bcmdhd dkms module load panic on opi5max. |
I missed the link there, how is BTF to blame? I'm not saying it ain't, just asking to understand. |
Here is the log when modprobe bcmdhd_sdio on rk vendor 6.1 kernel: http://paste.armbian.com/dewecaqowa.yaml |
RK vendor kernel 🤣🤣🤣. Of course it's the one, somewhere in the 3M line diff from a real 6.1 it still thinks it's kernel 2.6 or whatever concerning BTF. 🥲😭 |
What is funny is that rk vendor kernel works with the BTF stuff (say Cilium, Tetragon, bpftrace, etc, all work when BTF is enabled). Probably there's a 1-line change somewhere that affects the loading of modules -- we'll find it eventually. I wonder if the Amlogic 5.15 kernel (used in meson s4t7 family, VIM4 etc) is also affected. |
I also tried v4l2loopback-dkms with BTF enabled rk vendor kernel, and it can't get loaded. |
After backporting this commit torvalds/linux@d4e48e3 to 6.1 vendor kernel, dkms module can get loaded with DEBUG_INFO_BTF enabled. |
The dkms issue is also confirmed existing with phytium-embedded current 6.6. |
I find that after adding this commit: torvalds/linux@f34d086 to rk35xx-vendor, the dkms module loads fine. This commit is introduced to mainline since v6.12, and backported to linux-stable since v6.1.113/v6.6.54. We introduced BTF to get rid of the make clean issue since v6.12, what about enabling it only for kernels after v6.12? We have many vendor kernels which are not up-to-date with linux-stable and tt's hard to tell if one kenel has the fix. |
Another choice is to add the fix to the outdated vendor kernels. After a quick look to images from https://github.com/armbian/os/releases and https://github.com/armbian/community/releases, there are four 6.1/6.6 kernels are outdated:
The two mainline kernel sunxi-legacy and meson-current can get kernel version easily bumpped by changing KERNELBRANCH from tag to branch of linux-stable. And fixing the other two vendor kernel is not that hard. |
armbian-kernel: enable BTF (and CO-RE) for all kernels