[opensuse-support] Compile Tumbleweed kernel to add CONFIG_XFS_ONLINE_SCRUB
Hi all, I haven't needed to compile a kernel from source for years, so I'm a bit rusty. Running Tumbleweed, with the latest 5.7.11-1 kernel (from the Main OSS repo, not kernel:head) and the matching kernel-devel, kernel-default-devel, kernel-syms and kernel-headers packages installed (all x86-64 except kernel- devel which is noarch). I copied the relevant source tree to a subfolder in my home directory, and copied /boot/config-5.7.11-1-default to .config in that folder. Ran make mrproper, make oldconfig, make xconfig. Enabled the additional options that I wanted (Filsystems->XFS->CONFIG_XFS_ONLINE_SCRUB and CONFIX_XFS_ONLINE_REPAIR), saved and quit. Ran 'make -j 16 bzImage", and got: scripts/kconfig/conf --syncconfig Kconfig make[1]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/asm/syscalls_32.h'. Stop. make: *** [arch/x86/Makefile:217: archheaders] Error 2 make: *** Waiting for unfinished jobs.... Got exactly the same result with 5.7.7-1-default and 5.7.11-1-default kernels. What am I missing or doing wrong? The only online info that I could find for compiling openSUSE kernels is from 2013, and I'm not sure how much of that applies to TW. Or should I just raise a bug report/feature request to have these options (and F2FS) enabled in the default kernel for future builds? Thanks in advance, Rodney. -- ============================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au CCNA #CSCO12880208 ============================================================== -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Hello, On Sun, 02 Aug 2020, Rodney Baker wrote:
I copied the relevant source tree to a subfolder in my home directory, and copied /boot/config-5.7.11-1-default to .config in that folder.
Ran make mrproper, make oldconfig, make xconfig. Enabled the additional options that I wanted (Filsystems->XFS->CONFIG_XFS_ONLINE_SCRUB and CONFIX_XFS_ONLINE_REPAIR), saved and quit.
'make mrproper' removes .config, so, re-copy /boot/config-5.7.11-1-default to .config, and _then_ continue without mrproper. If you want to clean up, use 'make clean'. That removes System.map though, so copy that somewhere if you need it. HTH, -dnh -- Well, revenge is a feast best served immediately. - Ka D'Argo, Farscape -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On Sunday, 2 August 2020 22:33:03 ACST David Haller wrote:
Hello,
On Sun, 02 Aug 2020, Rodney Baker wrote:
I copied the relevant source tree to a subfolder in my home directory, and copied /boot/config-5.7.11-1-default to .config in that folder.
Ran make mrproper, make oldconfig, make xconfig. Enabled the additional options that I wanted (Filsystems->XFS->CONFIG_XFS_ONLINE_SCRUB and CONFIX_XFS_ONLINE_REPAIR), saved and quit.
'make mrproper' removes .config, so, re-copy /boot/config-5.7.11-1-default to .config, and _then_ continue without mrproper. If you want to clean up, use 'make clean'. That removes System.map though, so copy that somewhere if you need it.
HTH, -dnh
Thanks, David. I actually did copy from /boot to .config after doing make mrproper, not before, so that's not the issue. No, I think the real issue is that I thought I had kernel-source installed, when in fact I did not. Downloading it now. That will likely work better. :) Sorry for the noise. -- ============================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au CCNA #CSCO12880208 ============================================================== -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
02.08.2020 15:38, Rodney Baker пишет:
Hi all,
I haven't needed to compile a kernel from source for years, so I'm a bit rusty. Running Tumbleweed, with the latest 5.7.11-1 kernel (from the Main OSS repo, not kernel:head) and the matching kernel-devel, kernel-default-devel, kernel-syms and kernel-headers packages installed (all x86-64 except kernel- devel which is noarch).
I copied the relevant source tree to a subfolder in my home directory,
a) how should we know what you consider relevant? b) there is no need to copy anything anywhere. Kernel supports building in separate object directory for years. You can build any number of kernels with different configs from the same source directory. ...
Or should I just raise a bug report/feature request to have these options (and F2FS) enabled in the default kernel for future builds?
That is the best, sure. At the minimum you will know whether not including this option was intentional or oversight. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
David Haller
-
Rodney Baker