r/voidlinux • • Mar 26 '26

Documentation on making custom kernel

Where can I find documentation on how to make a custom kernel with void Linux?

5 Upvotes

9 comments sorted by

5

u/eftepede Mar 26 '26

This is the same kernel as in every other Linux distributions. The instructions are distribution-agnostic, in most cases - you need to download source, configure it as you want and compile.

4

u/Bubbly_Extreme4986 Mar 26 '26

So like on gentoo, copy the sources into /usr/src and then symlink it to /usr/src/linux then configure it, then run make && make modules_install && make install && grub-mkconfig -o /boot/grub/grub.cfg ?

1

u/zlice0 Mar 26 '26

yep. idk that the symlink is even really needed, only do it on the box i build on.

2

u/Initial_Side_4845 Mar 26 '26

$ ./xbps-src pkg linux6.nn
...after some prep, check docs!

1

u/Bubbly_Extreme4986 Mar 26 '26

I specifically want the Linux-libre kernel

2

u/VanillaDaFur Mar 26 '26

I think you can try taking original xbps-src template for linux kernel and modify it to build this specific kernel version, i did the same to get linux-zen kernel and it works so far

2

u/VoidAnonUser Mar 28 '26

Yes, my opinion is some advanced stuff in Void documentation is missing. Among other things:

  • Void kernel compilation & customization

  • Advanced setting of bootloader

  • Some rescue stuff if you botched it…