Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

distro for linux kernel development [closed]

Which is the best light weight distro for learning linux kernel development. It should have lot of debugging and profiling tools available along with it :)

like image 939
user361697 Avatar asked Aug 17 '10 14:08

user361697


People also ask

Can Linux distros be closed source?

According to the GPL licence, which is the one used by the Linux kernel, every modification in the source must be open source too.

Which Linux distro is used by NASA?

The enterprise solution at NASA is Red Hat. If you want to play on the official NASA network, you have to have a Security Plan, and the only Linux that has one already and is supported by IT is Red Hat Linux. Off-Network you can use all sorts of Linux (I use Raspbian on a Raspberry Pi 4 in my lab).

What Linux does Linus Torvald use?

Torvalds used Stallman's GNU General Public License version 2 (GPLv2) for his Linux kernel.


4 Answers

LFS. Then install every debugger and profiler you can find.

like image 59
Mizipzor Avatar answered Oct 03 '22 10:10

Mizipzor


I've heard Linus himself uses Fedora. I'd recommend Gentoo which lets (intends) for you to hand customize your kernel, it's the perfect setting for it (and I've spent many hours squeezing out every last bit of performance for the fun of it).

Naturally Ubuntu is my preferred distro, but you may have trouble if you start hijacking and removing expected kernel features. Gentoo won't complain, and doesn't expected them around to begin with.

like image 31
Matt Joiner Avatar answered Oct 03 '22 09:10

Matt Joiner


I've enjoyed using Gentoo for fiddling around with the kernel.

like image 31
Ben S Avatar answered Oct 03 '22 09:10

Ben S


The distro does not really matter. It is what you want to do with the kernel and do development/testing its feature.

Here are few things to do.

a. Turn on the kernel debugging and the logging options. Those would definitely help you in debugging. see useful linux kernel debug options to turn on

b. Getdebuggers tool like Valgrind that checks for memory leak. See doc like https://www.kernel.org/doc/Documentation/kmemleak.txt

c. Found a good editor for editing. I don't want to start a vim vs emacs war. It is really a personal preference, just make sure you follow the linux kernel coding style guidelines. https://www.kernel.org/doc/Documentation/CodingStyle‎

d. Get familiar with the log systems and proc system, as they provide valuable information.

e. Read the documentation in the directory /usr/src/linux/Documentation Very good starting point to understand the kernel

like image 23
g5thomas Avatar answered Oct 03 '22 09:10

g5thomas