LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-04-2005, 12:00 PM   #1
lm317t
Member
 
Registered: Jan 2005
Location: Raleigh, NC
Distribution: Debian Etch, Slackware 10.2, Ubuntu 6.10, OpenWRT
Posts: 66

Rep: Reputation: 15
Linux Kernel 2.6.10 and Mandake 10.0


Hi all,
I am trying to compile the 2.6.10 kernel using my beginners guide to linux admin book. I downloaded 2.6.10 from kernel.org like it says. The problem is that when I compile, it will not boot the new kernel. It gets hung up, gives a few error messages such as pivot point error, & says something like "Kernel panic try passing init= to the kernel". Sometimes it says it can't mount the root file system which I know is an ext3 partition. Sometimes it says something about VFS but I forget what.

I have searched forums everywhere on this subject, tried recompiling with various combinations of ext2 and ext3 builtin or included as modules. I have tried "mkinitrd -fv initrd_new-2.6.10.img 2.6.10" and reconfigured lilo to use it. I have tried compiling my 2.6.3.7mdk kernel with (almost) the same .config file and it works fine.

How to I get 2.6.10 to run?

Also where is the error log for the bad boot? I don't see it in boot.log.

Thanks!
Brian
 
Old 01-04-2005, 12:41 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
There will be no log as the root filesystem doesn't mount. Have you edited the Makefile for "install_path=/boot/"? If vmlinuz is in / directory just copy it to /boot/ along with System.map and re-run lilo.
 
Old 01-04-2005, 12:46 PM   #3
lm317t
Member
 
Registered: Jan 2005
Location: Raleigh, NC
Distribution: Debian Etch, Slackware 10.2, Ubuntu 6.10, OpenWRT
Posts: 66

Original Poster
Rep: Reputation: 15
I actually don't use "make install". I have heard it causes problems so I manually copy the bzImage file, and System.map files to /boot/ with the version number appended, then manually update lilo.conf with vim and run lilo. Thanks for the suggestion though.
 
Old 01-04-2005, 01:53 PM   #4
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Rep: Reputation: 31
whatever you do you have to build in support for your filesystem into the kernel and not as a module for your file system. if you dont it wont boot.
 
Old 01-04-2005, 02:06 PM   #5
lm317t
Member
 
Registered: Jan 2005
Location: Raleigh, NC
Distribution: Debian Etch, Slackware 10.2, Ubuntu 6.10, OpenWRT
Posts: 66

Original Poster
Rep: Reputation: 15
I have tried it with support for ext3 compiled into the kernel (yes selected, not a module), as well as many other combinations of ext3 and ext2 etc. The boot process does take place. It goes through some hardware detection then tries to mount the root file system and this is where I beleive it hangs. I do not have any formats on my hardrives but swap and ext3. This is a confusing problem.

Thank you for your suggestions.

-Brian
 
Old 01-05-2005, 08:36 AM   #6
aetucker1
LQ Newbie
 
Registered: Jan 2005
Distribution: Suse 9.1 Pro, Mandrake 10.1
Posts: 11

Rep: Reputation: 0
kernel panic

i had this same problem and i think that i didn't have lilo pointing to the correct images and boot location. You might want to check that.

menuconfig
make bzImage
make modules && make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-new
cp System.map /boot/System.map-new
cp .config /boot/config-new
mkinitrd /boot/initrd-new.img 2.6.10
vi on lilo and then run lilo and make sure lilo is pointing to the right places!!!
hopefully that helps.

Last edited by aetucker1; 01-05-2005 at 08:39 AM.
 
Old 01-05-2005, 09:02 AM   #7
lm317t
Member
 
Registered: Jan 2005
Location: Raleigh, NC
Distribution: Debian Etch, Slackware 10.2, Ubuntu 6.10, OpenWRT
Posts: 66

Original Poster
Rep: Reputation: 15
aetucker1:
Quote:
cp .config /boot/config-new
What does the .config file do for you in the boot folder? I have done everything you mentioned so many times my fingers are bleeding. I have also successfully recompiled my kernel for various hardware features in the past with success, but I always used Mandrake's 2.6.3-7mdk kernel that comes as an RPM. This is my first experience with a downloaded kernel.

My book does not mention copying the .config file to /boot. I know that this is what menuconfig stores its settings in for compiling the kernel. I will certainly try it when I get back home.

My hardware by the way is an AMD64 (I am compiling it for 5/686 for the time being), ASUS motherboard K8N-E which has SATA and Raid using an nVidia(yuck) chipset.

Thanks for your suggestion aetucker1,
Brian
 
Old 01-05-2005, 10:35 AM   #8
aetucker1
LQ Newbie
 
Registered: Jan 2005
Distribution: Suse 9.1 Pro, Mandrake 10.1
Posts: 11

Rep: Reputation: 0
.config

it really doesn't do anything. it just copies it over to a safe spot so you dont have to go through menuconfig again.
i dont really know what to tell you about the kernel. there might be some sort of extra stuff in the normal kernel as opposed to the mdk kernel. that might be worth asking in the forum.
 
  


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
mandake 10 airmikeyy Linux - General 1 04-03-2004 12:18 PM
Help ....cant get mandake to boot Mike_dna Linux - Newbie 6 02-01-2004 05:06 PM
Printer problem with mandake Linux 9.2 saurya_s Linux - Software 0 11-19-2003 09:15 AM
Mandake 9.0 not executing .bash_profile javajose Linux - General 10 12-01-2002 08:04 PM
Grub reinstallation Mandake 7.2 Martin Linux - General 1 04-19-2001 09:34 AM

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

All times are GMT -5. The time now is 11:09 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