[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
howtos:general_admin:brief_kernel_build [2022/02/18 13:23 (UTC)] – [Configure] zeebra | howtos:general_admin:brief_kernel_build [2023/12/01 05:43 (UTC)] – [Modules] zeebra | ||
---|---|---|---|
Line 4: | Line 4: | ||
Brief guide to configure, compile and install a kernel. I do this all as root in /usr/src, others do all steps except install in / | Brief guide to configure, compile and install a kernel. I do this all as root in /usr/src, others do all steps except install in / | ||
- | This howto assumes kernel-5.16.9. Obviously you should use the newest appropriate version and use those version numbers. | + | This howto assumes kernel-6.6.3. Obviously you should use the newest appropriate version and use those version numbers. |
**summary: | **summary: | ||
cd /usr/src | cd /usr/src | ||
- | tar -xvf linux-5.16.9.tar.xz | + | tar -xvf linux-6.6.3.tar.xz |
- | cd linux-5.16.9 | + | cd linux-6.6.3 |
- | make clean & make mrproper | + | make clean && make mrproper |
cp ../ | cp ../ | ||
make menuconfig | make menuconfig | ||
make -j3 | make -j3 | ||
make modules && make modules_install | make modules && make modules_install | ||
- | cp System.map / | + | cp System.map / |
- | cp .config / | + | cp .config / |
- | cp arch/ | + | cp arch/ |
</ | </ | ||
Line 29: | Line 29: | ||
< | < | ||
cd /usr/src | cd /usr/src | ||
- | tar -xvf linux-5.16.9.tar.xz | + | tar -xvf linux-6.6.3.tar.xz |
- | cd linux-5.16.9 | + | cd linux-6.6.3 |
- | make clean & make mrproper | + | make clean && make mrproper |
cp ../ | cp ../ | ||
</ | </ | ||
- | You only need to do mrproper, | + | You don' |
===== Configure ===== | ===== Configure ===== | ||
- | |||
- | If you don't have a good configuration file for the particular computer you could use make localmodconfig (DON' | ||
< | < | ||
Line 46: | Line 44: | ||
Save the configuration. | Save the configuration. | ||
+ | |||
+ | |||
+ | < | ||
+ | |||
===== Compile ===== | ===== Compile ===== | ||
Line 57: | Line 59: | ||
< | < | ||
- | You don't need to do make modules, only modules_install, | + | You don't need to do make modules |
===== Install ===== | ===== Install ===== | ||
< | < | ||
- | cp System.map / | + | cp System.map / |
- | cp .config / | + | cp .config / |
- | cp arch/ | + | cp arch/ |
</ | </ | ||
+ | OR | ||
+ | < | ||
- | If you want to make initrd, this is the time. | + | If you want to make and use **initrd**, this is the time. |
- | Then add your custom entry to the bootloader. | + | Then add your custom entry to the bootloader. |
====== Sources ====== | ====== Sources ====== | ||
Line 76: | Line 80: | ||
<!-- Please do not modify anything below, except adding new tags.--> | <!-- Please do not modify anything below, except adding new tags.--> | ||
<!-- You must remove the tag-word " | <!-- You must remove the tag-word " | ||
- | {{tag> | + | {{tag> |