๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ u โ€บ Ruby_Witch โ€บ 2984 captured on 2023-12-28 at 16:34:58. Gemini links have been rewritten to link to archived content

View Raw

More Information

โฌ…๏ธ Previous capture (2023-11-14)

โžก๏ธ Next capture (2024-02-05)

๐Ÿšง View Differences

-=-=-=-=-=-=-

Comment by ๐Ÿ„ Ruby_Witch

Re: "Question: How do I compile the Linux kernel?"

In: s/Linux

Hi! If you're thinking about compiling a custom Linux kernel, the two most popular options are Gentoo and LFS (Linux From Scratch). There are walkthroughs available on https for both of these options.

https://wiki.gentoo.org/wiki/Kernel/Gentoo_Kernel_Configuration_Guide

https://www.linuxfromscratch.org/

However, if you just want to play around with Linux I would recommend choosing a distro flavor that you like and not worrying about compiling a custom kernel, which is a very complex process! Your choice though.

๐Ÿ„ Ruby_Witch

Jul 11 ยท 6 months ago

3 Later Comments โ†“

๐Ÿ‰ gyaradong ยท Jul 11 at 08:50:

back when I used to do it, there was a TUI (actually even a GUI in GTK) which would configure everything including flags and so on.

๐Ÿ˜Ž Smokey ยท Jul 11 at 13:53:

gentoo is the popular distro for that. Have fun im sure it will be a blast ๐Ÿ’€

๐Ÿš€ maha ยท Aug 20 at 17:21:

I'd recommend getting to know your hardware before doing this. Otherwise you simply wouldn't understand the options....i but feel free to experiment....i remember creating quite a few broken kernels before i managed to make one that worked. Also as @gyaradong mentions there used to be a nice curses TUI to set the options, look for it

Original Post

๐ŸŒ’ s/Linux

Question: How do I compile the Linux kernel? โ€” By which I mean, what compiler flags, options and configs should I look out for, such that my kernel will actually succesfully run? I am talking about QEMU without KVM as the platform.

๐Ÿ’ฌ DocEdelgas ยท 4 comments ยท Jul 11 ยท 6 months ago