Originally Posted by
player02
But it's working with 5.13.0-rc7-stock.
Suggest kernel 5.13 if you want to stay on that series. However, I recommend you try the latest mainline release, 5.15 or 5.16-rc3. Just steal the kernel configuration from the mainline PPA version, with changes as per the compile reference link from earlier.
@mikewhatever: re: DEBUG_INFO: I never cared about the kernel size, only that it takes so much longer to compile. However, I am curious so am compiling kernel 5.16-rc3 now, with the only change being DEBUG_INFO. I'll edit this later.
EDIT 1: As usual, something went wrong:
Code:
BTF: .tmp_vmlinux.btf: pahole (pahole) is not available
Failed to generate BTF for vmlinux
Try to disable CONFIG_DEBUG_INFO_BTF
make[4]: *** [Makefile:1161: vmlinux] Error 1
make[3]: *** [debian/rules:7: build-arch] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[2]: *** [scripts/Makefile.package:83: bindeb-pkg] Error 2
make[1]: *** [Makefile:1554: bindeb-pkg] Error 2
make: *** [Makefile:350: __build_one_by_one] Error 2
At least now I know why I keep hearing that pahole is needed, but I have never needed it.
EDIT 2: O.K., without CONFIG_DEBUG_INFO_BTF: It takes forever to install the kernel, even if one doesn't select the debug version of the image; It creates 2 images, one is huge.
Code:
doug@s19:~/temp-k-git/linux$ ls -l ../linux-image-5.16.0-rc3-debug*
-rw-r--r-- 1 doug doug 69911256 Nov 28 16:30 ../linux-image-5.16.0-rc3-debug_5.16.0-rc3-debug-988_amd64.deb
-rw-r--r-- 1 doug doug 1226046784 Nov 28 16:37 ../linux-image-5.16.0-rc3-debug-dbg_5.16.0-rc3-debug-988_amd64.deb
Note that Ubuntu doesn't supply the -dbg version of the image anyhow, so I question why should we bother with the substantial overhead when compiling ourselves, unless we really need it?
Installed, I can not tell a difference, so maybe I am doing something wrong. I use this:
Code:
$ du -ck /lib/modules/5.16.0-rc3-debug /boot/vmlinuz-5.16.0-rc3-debug /boot/System.map-5.16.0-rc3-debug /boot/config-5.16.0-rc3-debug /usr/src/linux-headers-5.16.0-rc3-debug
...
470352 total
Although, when I uninstalled the debug kernel I got over 9.5 gigabytes of disk space back, whereas with the normal kernel it's 571 megabytes.
EDIT 3: with a debug kernel there are many files in /usr/lib/debug/lib/modules
Bookmarks