LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-25-2003, 12:14 AM   #1
Kalthor
LQ Newbie
 
Registered: Jun 2003
Location: Australia
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Kernel recompile troubles


I recompiled my exisiting Debian kernel from 2.4.18-386 to the latest stable kernel 2.4.21, however, whenever I try to boot into the new kernel, it gets into a nasty restart loop.

It seems to be restarting as it loads the initrd.img file (I am using GRUB by the way, the same thing happens in LILO, although it doesn't show anything before it restarts). Do I need to build a new initrd.img file to match the new kernel, and if so, how do I do that?
 
Old 06-25-2003, 05:47 AM   #2
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
Hi,

i never used one of those initrd.img files, i just booted my kernel the old way, and it worked fine

Also you should build your kernel with the make-kpkg command, that's building kernels the debian way

Just go into your src tree (/usr/src/linux) configure your kernel by your needs (make menuconfig) and after that just run a:

make-kpkg kernel_image

after building the kernels and modules you can find a package named

kernel-image-$version_10.00.Custom_$arch.deb

in /usr/src. Now just do a

dpkg --install kernel-image-$version_10.00.Custom_$arch.deb

and everything will be done fully automatic, you will be asked to build a bootdisk (no) and after that your boot-config will be updated

btw: In 2.4.21 there is a DMA problem, you have to enable DMA by hand...

cu

Last edited by stony; 06-25-2003 at 05:51 AM.
 
Old 06-25-2003, 09:16 AM   #3
Kalthor
LQ Newbie
 
Registered: Jun 2003
Location: Australia
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your help!

I'm slightly in case you didn't figure it out - how do I enable the DMA manually?
 
Old 06-25-2003, 09:42 AM   #4
Kalthor
LQ Newbie
 
Registered: Jun 2003
Location: Australia
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: 0
Disregard that last one - it's fine

Cheerio!
 
Old 07-02-2003, 03:46 PM   #5
InK
LQ Newbie
 
Registered: Sep 2002
Posts: 10

Rep: Reputation: 0
I had no troubles compiling the kernel, but when I boot it nothing works!!! what should I take care??
 
Old 07-02-2003, 04:42 PM   #6
solspin
Member
 
Registered: Apr 2003
Location: California, USA
Distribution: What works
Posts: 97

Rep: Reputation: 15
Most likely it has to do with the boot file you are using, either GRUB or LILO. The standard steps to compile the kernel are:

unzip kernel.X.X.X.gz into /usr/src
ln -s /usr/src/kernel.X.X.X /usr/src/linux
cd /usr/src/linux
copy a known good kernel's config file to /usr/src/linux
(or just start from scratch: make mrproper)
make menuconfig (select the kernel configuration you want)
make bzImage
make modules
make modules_install
make install

The last step will update the GRUB boot file for the newly compiled kernel. I don't know what distribution you are running InK, so these are the general installation steps. I compiled on Redhat using these and it worked fine.
 
Old 07-03-2003, 10:27 PM   #7
InK
LQ Newbie
 
Registered: Sep 2002
Posts: 10

Rep: Reputation: 0
I use Debian Woody, and I followed succesfully those steps, and the next too: configuring lilo
 
Old 07-03-2003, 11:46 PM   #8
Abject
Member
 
Registered: Mar 2002
Location: Studio City, CA
Distribution: Debian (Sarge-Sid)
Posts: 76

Rep: Reputation: 15
Or, Compile your kernel the Debian Way!

If you're serious about this Debian thing , you should really compile your kernel the Debian Way. Unfortunately, the Debian official documentation is pretty awful - not incorrect, just useless if you've never done it before.

Luckily, there are some good HowTos around the 'net. I particularly like this one.

HTH,
Ab.
 
  


Reply



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
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
Recompile kernel 2.6 heema Linux - General 3 05-26-2004 10:29 AM
How to recompile the kernel? daYz Slackware 13 11-16-2003 05:13 AM
Recompile Kernel ? Amerist Linux - Newbie 5 04-16-2002 04:13 AM
Recompile the Kernel SkYzOpReNiCk Linux - General 3 07-13-2001 07:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:15 PM.

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
Open Source Consulting | Domain Registration