How to build a kernel; the lite version

Discuss a HowTo.

Moderator: How-to Curator

How to build a kernel; the lite version

Postby JohnDeere630 » February 12th, 2011, 8:27 pm

We scare because we care.....
JohnDeere630
 
Posts: 1427
Joined: February 9th, 2011, 6:38 pm

Re: How to build a kernel; the lite version

Postby nadir » February 13th, 2011, 1:06 am

Good.

Three things:
-You might want to use a few code-tags, so one can look up the commands, in case one needs them.
- Once i got the source at the correct location i do it like this:
Code: Select all
cp /boot/config-$(uname -r) ./.config
make menuconfig
make-kpkg clean
fakeroot make-kpkg --append-to-version "-greek-hero-name" --revision "datestamp" --initrd kernel_image kernel_headers

I only use kernels from the debian repos.
- From kernel 2.6.32 up one can use localmodconfig
Code: Select all
make localmodconfig


Don't ask me about it, for me it is scary stuff. I don't know why or how it works
(might not have been one of my best posts, i am trying to get us started)
nadir
 
Posts: 1708
Joined: February 9th, 2011, 8:07 am

Re: How to build a kernel; the lite version

Postby JohnDeere630 » February 13th, 2011, 1:51 am

nadir wrote:Good. You might want to use a few code-tags, so one can look up the commands, in case one needs them.


Excellent suggestion...why didn't I do that in the first place... :lol:

Thanks, Nadir...I'll get right on it. As for your other points, I wanted to keep this how-to as simple as possible. Once a user gets a few successes under their belt, they can then feel free to experiment to their heart's content.
We scare because we care.....
JohnDeere630
 
Posts: 1427
Joined: February 9th, 2011, 6:38 pm

Re: How to build a kernel; the lite version

Postby Hallvor » February 13th, 2011, 6:28 am

Great job! You made it look easy, and I successfully built my first kernel following this.

I guess I need to recompile it manually once in a while for security issues, right?
Desktop: AMD Athlon X2 3800+, 2,5 GB RAM, MSI NX8400GS, 2 TB HDD, Debian Squeeze (XFCE)
Media center/seedbox: Raspberry Pi, Raspbian (LXDE)
User avatar
Hallvor
 
Posts: 232
Joined: February 10th, 2011, 2:11 pm
Location: Kristiansand, Norway

Re: How to build a kernel; the lite version

Postby cynwulf » February 23rd, 2011, 9:16 am

Superb - I had to install libncurses5 and some more qt libs to get make xconfig to run though.

Successfully built and booted into 2.6.38-rc6 - now I need to do it all over again with a patched kernel...

Thanks.
User avatar
cynwulf
 
Posts: 1414
Joined: April 26th, 2011, 2:46 pm

Re: How to build a kernel; the lite version

Postby JohnDeere630 » February 23rd, 2011, 5:15 pm

cynwulf wrote:Superb - I had to install libncurses5 and some more qt libs to get make xconfig to run though.

Successfully built and booted into 2.6.38-rc6 - now I need to do it all over again with a patched kernel...

Thanks.


I'm happy to be a help. My computer already had ncurses installed, so I neglected to mention it...I will edit the how to when I get a minute...
We scare because we care.....
JohnDeere630
 
Posts: 1427
Joined: February 9th, 2011, 6:38 pm

Re: How to build a kernel; the lite version

Postby cynwulf » February 23rd, 2011, 5:22 pm

I will try to find out what else I had to install at the same time and post back. Building another kernel later.
User avatar
cynwulf
 
Posts: 1414
Joined: April 26th, 2011, 2:46 pm

Re: How to build a kernel; the lite version

Postby JohnDeere630 » February 23rd, 2011, 5:39 pm

cynwulf wrote:I will try to find out what else I had to install at the same time and post back. Building another kernel later.


Thank you...I'd appreciate it.
We scare because we care.....
JohnDeere630
 
Posts: 1427
Joined: February 9th, 2011, 6:38 pm

Re: How to build a kernel; the lite version

Postby nadir » February 26th, 2011, 6:04 am

I got that in my notes:
0)
apt-get install kernel-package ncurses-dev bzip2 module-init-tools initramfs-tools procps fakeroot zlib1g zlib1g-dev
nadir
 
Posts: 1708
Joined: February 9th, 2011, 8:07 am

Re: How to build a kernel; the lite version

Postby JohnDeere630 » February 26th, 2011, 6:53 am

nadir wrote:I got that in my notes:
0)
apt-get install kernel-package ncurses-dev bzip2 module-init-tools initramfs-tools procps fakeroot zlib1g zlib1g-dev


Thanks, Nadir. I run kde4, so it appears that it installs all I need except kernel-package and qt3-dev-tools. I will update the how-to for those who don't use kde when I get a minute.
We scare because we care.....
JohnDeere630
 
Posts: 1427
Joined: February 9th, 2011, 6:38 pm

Next

Return to HowTo Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

x