LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 04-03-2006, 07:33 AM   #1
chief_officer
Member
 
Registered: Mar 2006
Location: Istanbul, TR
Distribution: Red Hat, CentOS, Ubuntu
Posts: 180

Rep: Reputation: 30
Kernel update - Debian Style?


Hello,

I tried to update my kernel to 2.6.16.1 yesterday. I have downloaded the kernel to /usr/src and untar'ed it and then finished the menuconfig. When I typed

Code:
/usr/src/linux.2.6.16.1#make-kpkg clean
I get the following error message:

Code:
make:*** No rule to make target `kpkg-clean'. Stop.
Meantime, when I type

Code:
/usr/src/linux.2.6.16.1# fakeroot make-kpkg --initrd --revision=custom.1.0 kernel-image-2.6.16.1-custom_1.0.deb

I get the following error message:

Code:
Error: Unknown target kernel-image-2.6.16.1-custom_1.0.deb use --targets to display help on valid targets

I am following tutorials from the following website to update my kernel:
http://www.howtoforge.com/forums/showthread.php?t=21

and also from official Debian site:
http://www.debian.org/releases/sarge...h08s05.html.en

I did a fresh install of Debian Sarge on my Toshiba Satellite Pro 6100 [didn't do dist-upgrade]. And yes, I have never compiled a kernel before.

Regards,
Chief

Edit: I have typed the "Meantime when I type" sentence twice. Deleted one.
 
Old 04-03-2006, 10:13 AM   #2
smokybobo
LQ Newbie
 
Registered: Feb 2003
Posts: 29

Rep: Reputation: 15
Here's the bare minimum of what I do to install a kernel the debian way:

1. Unpack the kernel tarball to a directory under my home directory -- there is absolutely no reason to be root just to compile a program.

Code:
cp linux-2.6.16.tar.bz2 $HOME/projects/kernel
cd $HOME/projects/kernel
tar xfj linux-2.6.16.tar.bz2
2. Configure kernel options.

Code:
cd linux-2.6.16
make menuconfig
3. Issue make-kpkg command.

Code:
time fakeroot make-kpkg --append-to-version='-1' --bzimage kernel_image
4. Install new debian package, install initrd with yaird, and update grub assuming you have sudo permissions to run the necessary commands.

Code:
KERN=2.6.16-1
sudo dpkg -i ../linux-image-$KERN*.deb
sudo yaird -v --output=/boot/initrd.img-$KERN
sudo update-grub
5. Reboot



Now, what I actually do every time I want to install a kernel the debian way is after unpacking the kernel source and configuring it, I run a script I wrote that calls make-kpkg to also create packages for additional modules e.g. unionfs, cloop, nvidia-kernel. I then install all the resulting packages into a local apt repository with reprepro, and then install using aptitude. That may be too advanced yet, but if you're interested about either my extremely simple make-kpkg wrapper script (which I wrote so I wouldn't have to remember make-kpkg syntax all the time, and do a lot of extra manual work wrt extra kernel modules), or anything else I mentioned, feel free to ask.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NO BOOTLOG MESSAGES after Kernel Update on Debian Sarge cccc Debian 1 01-09-2006 07:19 PM
Sax2 Style Interface For Debian carrie Linux - General 0 11-19-2004 01:58 PM
Unable to update Kernel, Debian release rdd Debian 7 11-10-2004 08:36 PM
ddns-update-style none; Eileen Linux - Networking 1 10-26-2004 10:34 PM
installation of debian program into R.H. style distro thomassounness Debian 4 07-06-2003 05:05 AM


All times are GMT -5. The time now is 07:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration