Praxis Posted January 26, 2020 Share Posted January 26, 2020 Hello, I am hoping someone can point me in the right direction for generating the bzImage from a recompiled kernel. I have followed the wiki guide to compile a custom kernel for v5 however now read that it is outdated. I have managed to update a module I require for the AMD piix4 i2c driver and have been able to run make on the kernel but get to the part where I am to run Quote make menuconfig and Quote make bzImage Which both fail and the following error is given. Quote HOSTCC scripts/basic/fixdep scripts/basic/fixdep.c:97:10: fatal error: sys/types.h: No such file or directory 97 | #include <sys/types.h> | ^~~~~~~~~~~~~ compilation terminated. make[1]: *** [scripts/Makefile.host:90: scripts/basic/fixdep] Error 1 Could anyone knowledgable in patching kernels for V6 advise on the current steps to create a working Unraid image from a patched kernel? Thanks Quote Link to comment
Praxis Posted January 27, 2020 Author Share Posted January 27, 2020 (edited) Update: After enabling all options in the excellent dev-tools plugin I am now able to create the bzImage after installing these additional packages: infozip-6.0-x86_64-3.txz ncurses-5.9-x86_64-4.txz bison-2.7-x86_64-1.txz bc-1.06.95-x86_64-3.txz elfutils-0.163-x86_64-1.txz So far have run this which allows the bzImage to be created mkdir /usr/src/linux tar -C /usr/src/linux/ -zxvf /boot/packages/linux-4.19.94.tar.gz cd /usr/src/ mv linux/linux-4.19.94/* linux rm -rf linux/linux-4.19.94 cp -rf /usr/src/linux-4.19.94-Unraid/* /usr/src/linux/ cp -rf /usr/src/linux-4.19.94-Unraid/.config /usr/src/linux/ ln -sf /usr/src/linux/include/uapi/asm-generic /usr/include/asm-generic ln -sf /usr/src/linux/include/uapi/linux /usr/include/linux ln -sf /usr/src/linux /usr/src/linux-4.19.94-Unraid make clean make menuconfig make bzImage However it now fails on the make modules step with the following: Building modules, stage 2. MODPOST 684 modules ERROR: "raid6_gen_syndrome" [drivers/md/md-mod.ko] undefined! ERROR: "raid6_xor_syndrome" [drivers/md/md-mod.ko] undefined! make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1 make: *** [Makefile:1237: modules] Error 2 In my /usr/src/linux-4.19.94-Unraid/drivers/md/ folder. total 180 drwxr-xr-x 2 root root 140 Jan 11 00:17 ./ drwxr-xr-x 3 root root 60 Jan 11 00:17 ../ -rw-r--r-- 1 root root 12240 Jan 11 00:17 Kconfig -rw-r--r-- 1 root root 2508 Jan 11 00:17 Makefile -rw-r--r-- 1 root root 75329 Jan 11 00:17 md.c -rw-r--r-- 1 root root 12196 Jan 11 00:17 md_private.h -rw-r--r-- 1 root root 77138 Jan 11 00:17 unraid.c This has all been copied to the vanilla kernel I am patching however I think it requires the source code and not the binaries to run in the md. Does anyone know if this available anywhere? Or am I even on the right track? I think that the issue may either lie in the .config that I am copying straight over from the linux-4.19.94-Unraid directory or the missing drivers in the md folder. I've seen a lot of older comments saying to use someone else's .config. If that is the answer can anyone recommend one please. Edited January 27, 2020 by Praxis Quote Link to comment
psm321 Posted April 6, 2022 Share Posted April 6, 2022 Did you ever figure out where to find raid6_gen_syndrome? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.