LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-26-2004, 05:42 AM   #1
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
custom kernel with Debian kernel-package


I have a new sarge net install that I have been trying to compile a new 2.6.6 kernel for.The boot hangs after freeing unused kernel memery,just stops.In /boot there isn't a initrd.img for this kernel.I have done this before on other machines without any problems,what am I missing,thanks david
 
Old 06-26-2004, 10:57 AM   #2
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 30
You need to give some extra option when compiling: --initrd or something, read the man-page of make-kpkg for details. Make sure you have an initrd option in your bootloader-configuration.

You can also compile a kernel without initrd: in that case you must compile the support for filesystems into the kernel, and not give an initrd option in your bootloader.

Succes
 
Old 06-26-2004, 04:31 PM   #3
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Original Poster
Rep: Reputation: 54
I checked the .config file I saved and filesystem support was compiled directly into the kernel.I don't know what I'm doing wrong?
 
Old 06-27-2004, 02:47 AM   #4
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 30
any log files, error messages?
 
Old 06-28-2004, 06:37 AM   #5
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 30
Try compiling a kernel with an existing .config (the config-files in you /boot), maybe you have forgotten something in you kernel...
 
Old 06-28-2004, 10:03 AM   #6
vrln
Member
 
Registered: Mar 2004
Location: Finland
Distribution: Gentoo
Posts: 235

Rep: Reputation: 30
I've had this problem too. The kernel should work without an initrd but I've never managed to get it working without one even if the fielsystems are compiled into the kernel (+automatically mount at boot selected)
 
Old 06-28-2004, 10:57 AM   #7
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Original Poster
Rep: Reputation: 54
I can use a kernel-image I get from apt but I get a lot of errors because it is looking for stuff I don't have.The last kernel I did myself was 2.6.3 and it went well.I'm unable to get a 2.6.6 or 2.6.7 to work,stops right after freeing swap after the file system says it has been mounted then just hangs.thanks for the help,david
P.S. I'm going to do one and just take out one thing like laptop support and see what happens!

Last edited by comprookie2000; 06-28-2004 at 11:06 AM.
 
Old 06-29-2004, 01:31 PM   #8
bob49
LQ Newbie
 
Registered: Dec 2002
Location: Swindon UK
Distribution: FC2, Slackware 8.1 and 10
Posts: 29

Rep: Reputation: 15
Hi,

If you have a kernel in /boot but no initrd, you can use the mkinitrd command to generate an initrd.img file. It worked for me today - I must have compiled the kernel without the --initrd option.

Bob
 
Old 06-29-2004, 04:01 PM   #9
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Original Poster
Rep: Reputation: 54
Thanks Bob,Yea I tried that on the last one I couldn't get to work but it still hung up but a little later.If I * filesystem support into the kernel,I didn't think it needed a initrd.img?
 
Old 06-29-2004, 05:30 PM   #10
RunLevelZero
Member
 
Registered: Jun 2004
Distribution: Debian
Posts: 46

Rep: Reputation: 15
Chipset

You did compile in the chipset your mobo uses right and the ide drivers are compiled and not modules. Just make sure you have the drivers compiled in for your mother board, file system, and IDE. That should get it to work. It sounds like you are just missing one little thing.
 
  


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
custom kernel the debian way h/w Debian 6 01-30-2006 10:52 AM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
New FAQ topic: Should I edit my kernel configuration?/Should I build a custom kernel? chort *BSD 10 09-10-2004 11:15 PM
Slackware 10, custom 2.6.7 kernel, lilo, loads kernel very slowly entropyv Slackware 3 08-19-2004 06:06 PM
Debian install with custom kernel... robbow52 Debian 2 02-24-2004 04:38 PM


All times are GMT -5. The time now is 04:17 AM.

Main Menu
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