LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-06-2006, 06:39 AM   #1
kremso
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Rep: Reputation: 0
I compiled 2.6.17.7 with same .config as 2.6.15, but it won't boot


Hi,

I tried to build a lightweight kernel(2.6.17.7 from kernel.org), so I only compiled things I need.
But my new kernel refused to boot with this weird message:
Code:
Uncompressing, OK booting
0 //this is zero
..and booting stops. In recovery mode, booting stops at Waiting for root file system...

So I tried to add some more drivers, because I thought I simply miss some IDE or chipset driver. Well, after one week and countless compilations I gave up.

I took the old .config and changed only these things:
  • processor model
  • unchecked kernel debugging
  • unchecked support for >2TB disks and files and >4GB RAM
  • unchecked all IO schedulers but CQF

But I'm left with the weird zero once again..

So what am I doing wrong. Isn't initrd the trouble? I was compiling it using make-kpkg --initrd, so it was created and has its entry in grub. I don't really know, what else could be causing this,
 
Old 08-06-2006, 04:58 PM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
You shouldn't use a config unchanged from a different kernel version. Changes might make config files incompatible. The proper way to use an old config file is to run make oldconfig.
 
Old 08-07-2006, 02:00 AM   #3
kremso
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
I used
make oldconfig && make xconfig
 
Old 08-08-2006, 09:08 PM   #4
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Aargh, I'm sorry. I thought I read your post properly, but now I see that I really only read the title.

You might try to isolate the problem: try compiling a kernel that doesn't use initrd, maybe try using a different kernel version.
 
Old 08-09-2006, 02:25 AM   #5
kremso
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Hmm, I tried using make && make modules_install && make install. This way no initrd was created (and I think none was needed, because drivers related to FS and IDE were compiled statically) - but no success.

Could't udev be the trouble? I have 069 and I think most recent is 096. Anyway I will try to install fresh version tonight.
 
Old 08-09-2006, 02:34 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You may have made a bad assumption there. Run "depmod -a" and then "mkinitrd".

Otherwise, you could boot up to your last working kernel version. If the kernel is configurated to provide a
/proc/config.gz, you could use that as a base .config to start over. ( Although, I believe that make oldconfig does the same thing ).
 
Old 08-10-2006, 02:27 AM   #7
kremso
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
When should I do it? After running make modules_install?
 
Old 08-10-2006, 03:17 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I was wrong about depmod -a. It was performed during the kernel build process.
Run "mkinitrd" after "make modules_install". Your distro may have an /etc/sysconfig/kernel file which includes a variable containing additional modules to be included into initrd, such as "processor", "piix", "thermal", "fan" and "reiserfs".

Be sure to read your distro's /usr/src/linux/README.<distro> readme file. It will probably outline the entire process. Also read the mkinitrd manpage.

Good Luck!
 
  


Reply

Tags
kernel



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
getting config from compiled kernel grayFalcon Linux - Software 2 07-26-2006 03:43 AM
Suse 9.3 yast2 hangs saving boot config or edit config deh6 SUSE / openSUSE 0 07-16-2006 03:43 PM
Which compiled kernel has been used to boot system? aliamiri Linux - General 2 05-02-2006 10:17 AM
help Compiled kernel destroyed system-config-packages database bvknapp Fedora 1 03-03-2005 11:06 AM
Newly compiled 2.6-test11 Does not boot Xylon Slackware 3 12-26-2003 12:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:47 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
Open Source Consulting | Domain Registration