[Solved][Debian]Compiling new kernel issue

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

[Solved][Debian]Compiling new kernel issue

Post by ayu »

I need a newer kernel on my netbook for the NIC to work properly, so I thought it would be a good idea to go with 2.6.31.1 (newest stable as I am writing this post).

Now, the problem is that after a few hours of compiling, it stops with a compile error. I have compiled a lot of kernels before, but this has never happened so I am unsure on how I am to approach this problem, because I don't think it's a problem with the source code.

My usual way of proceeding is...

Code: Select all

cd /usr/src
wget url-to-kernel
tar -xjvf kernel.tar.bz2
ls -s kernelpath linux
cd linux
cp path-to-working-config .
make menuconfig (load config, make changes if needed, save)
make-kpkg --initrd kernel_image kernel_headers
dpkg -i pathtokernel.deb
Any help would be appreciated (I will post the error log when I have it)
Last edited by ayu on 05 Oct 2009, 13:12, edited 1 time in total.
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hmmm....tried it the good old way already? when menuconfig is done:

Code: Select all

make
make modules
make modules_install
make install
and then, in /boot:

Code: Select all

mkinitrd -o initrd.img-2.6.31.1 2.6.31.1
and last, of course, the entry in menu.lst....to use the "classic" way would exclude potential problems in context with the Debian package management.... :-k

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

hmmm, I think I tried that before, but mkinitrd isn't available in the packet tree, and I thought it wasn't for a reason so I ignored that method after that. Tried it again though, same issue.

Any ideas?
Last edited by ayu on 03 Oct 2009, 05:23, edited 1 time in total.
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

um, should be included in the initramfs-tools package...:)

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Yeah mkinitrd was renamed mkinitramfs ^^
"The best place to hide a tree, is in a forest"

Post Reply