LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-10-2008, 11:51 PM   #1
p.arun
LQ Newbie
 
Registered: Jan 2007
Location: Chennai
Distribution: Red hat
Posts: 15

Rep: Reputation: 0
Installing latest kernel ( 2.6.23) in Fedora 6 - kernel panic!!!


Hi friends,
I'm using Fedora 6 . I downloaded and compiled latest kernel 2.6.23 .It compiles well and automatically edits the grub file .But when I restarted the system with new kernel,I got kernel panic and following messages

" Reading all physical volumes. This may take a while.....
Volume group "volgroup 00 " not found
mount : could not find filesystem '/dev/root'
setu..proot : moving /dev failed : No such file or directory
.......
.....
kernel panic .Not syncing : Attempted to kill init "
[

When I searched in Internet,I read that SATA driver might not get selected,which may caused the problem.I did make menuconfig and selected SATA drivers as modules in device drivers ->SATA experimental drivers "
Even after this correction and recompiling, same kernel panic occurs. It will be greatly userful ,if you can spot out the issue


Below is the output of lspci in my PC
[quote][root@tunnel ~]# /sbin/lspci
00:00.0 Host bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL Memory Controller Hub (rev 0e)
00:02.0 VGA compatible controller: Intel Corporation 82915G/GV/910GL Integrated Graphics Controller (rev 0e)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d4)
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 04)
00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 04)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04)
00:1f.2 IDE interface: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
01:04.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
01:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

thanks in advance,
Arun
 
Old 01-11-2008, 12:33 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Your particular SATA module and root filesystem must either be built into the kernel (Y not M) rather than modules, or you must use an initrd image.
 
Old 01-11-2008, 12:37 AM   #3
p.arun
LQ Newbie
 
Registered: Jan 2007
Location: Chennai
Distribution: Red hat
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Bruce Hill View Post
Your particular SATA module and root filesystem must either be built into the kernel (Y not M) rather than modules, or you must use an initrd image.
thanks for the reply. I have selected M for SATA modules , and upto my knowledge ,make install command itself creates initrd. is n't ??
Did I need to manually create initrd with any more options?
 
Old 01-11-2008, 12:52 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I'm sorry but (a) my OS is Slackware, and (b) I don't use an install script. In fact, I just built a new kernel. These are the steps I used:
Code:
mingdao@silas:~/kernel/linux-2.6.23.12$ make xconfig
mingdao@silas:~/kernel/linux-2.6.23.12$ make
mingdao@silas:~/kernel/linux-2.6.23.12$ su
Password:
root@silas:/home/mingdao/kernel/linux-2.6.23.12# cp System.map /boot/System.map-2.6.23.12 ; ln -sf /boot/System.map-2.6.23.12 /boot/System.map
root@silas:/home/mingdao/kernel/linux-2.6.23.12# make modules_install
root@silas:/home/mingdao/kernel/linux-2.6.23.12# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.23.12
root@silas:/home/mingdao/kernel/linux-2.6.23.12# mkinitrd -c -k 2.6.23.12 -m hidusb -r cryptroot -C /dev/sda7
root@silas:/home/mingdao/kernel/linux-2.6.23.12# vim /etc/lilo.conf
root@silas:/home/mingdao/kernel/linux-2.6.23.12# lilo
then reboot into my shiny new Linux kernel.

You should have your SATA driver (modules) selected as Y, rather than M, for best results.

Code:
mingdao@silas:~/kernel/linux-2.6.23.12$ cat .config | grep -i sata
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_SATA_AHCI is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SX4 is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIL24 is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_ULI is not set
CONFIG_SATA_VIA=y
# CONFIG_SATA_VITESSE is not set
# CONFIG_SATA_INIC162X is not set

mingdao@silas:~/kernel/linux-2.6.23.12$ cat .config | grep -i blk_dev_sd
CONFIG_BLK_DEV_SD=y
Edit: You are correct that "make install" will install an initrd, and a map file, afaik.

Taken from Chapter 5 of Linux Kernel in a Nutshell
Quote:
# make install
This will kick off the following process:
1. The kernel build system will verify that the kernel has been successfully built
properly.
2. The build system will install the static kernel portion into the /boot directory
and name this executable file based on the kernel version of the built kernel.
3. Any needed initial ramdisk images will be automatically created, using the
modules that have just been installed during the modules_install phase.
4. The bootloader program will be properly notified that a new kernel is
present, and it will be added to the appropriate menu so the user can select it
the next time the machine is booted.
5. After this is finished, the kernel is successfully installed, and you can safely
reboot and try out your new kernel image. Note that this installation does not
overwrite any older kernel images, so if there is a problem with your new
kernel image, the old kernel can be selected at boot time.
However, you will also have to add the initrd to your bootloader. Mine looks like this:
Code:
mingdao@silas:~/kernel/linux-2.6.23.12$ less /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/sda
compact # faster, but won't work on all systems.
prompt
timeout = 50
# VESA framebuffer console @ 1024x768x256
#vga = 773
vga = 795
# Linux bootable partition config begins
image = /boot/vmlinuz-2.6.23.12
initrd = /boot/initrd.gz
root = /dev/mapper/cryptslackroot
label = Slack-2.6.23.12
read-only # Partitions should be mounted read-only for checking
image = /boot/vmlinuz-generic-smp-2.6.23.9-smp
initrd = /boot/2.6.23.9-initrd.gz
root = /dev/mapper/cryptslackroot
label = Slack-2.6.23.9
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# Linux bootable partition config begins
#image = /boot/vmlinuz
#root = /dev/mapper/cryptslamdroot
#label = Slamd64
#read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/sda1
label = Windows
# map-drive = 0x80
# to = 0x81
# map-drive = 0x81
# to = 0x80
table = /dev/sda
# Windows bootable partition config ends
Hope you can figure out how to transfer than info to GrUB.

Last edited by Bruce Hill; 01-11-2008 at 01:00 AM.
 
Old 01-11-2008, 12:57 AM   #5
p.arun
LQ Newbie
 
Registered: Jan 2007
Location: Chennai
Distribution: Red hat
Posts: 15

Original Poster
Rep: Reputation: 0
thanks again. let me try to configure them as inbuilt rather than modules as you suggested.
 
Old 01-11-2008, 01:01 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Please see the long edit added to Post #4 ...
 
Old 01-11-2008, 01:19 AM   #7
p.arun
LQ Newbie
 
Registered: Jan 2007
Location: Chennai
Distribution: Red hat
Posts: 15

Original Poster
Rep: Reputation: 0
Yes. I saw them.But I find that make install automatically edits the grub file to specify image path and initrd path. I believe there is nothing more to edit in grub.
 
Old 01-23-2008, 01:17 AM   #8
p.arun
LQ Newbie
 
Registered: Jan 2007
Location: Chennai
Distribution: Red hat
Posts: 15

Original Poster
Rep: Reputation: 0
thanks a lot. I made the changes you suggested and the new kernel works without problems.
 
  


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
Installing Kernel 2.6.8.1 - Kernel Panic error shaun85 Linux - Newbie 10 07-16-2007 04:20 PM
Fedora Core 6, Updating Kernel = Kernel panic anon1234 Linux - Newbie 2 05-01-2007 03:21 PM
Kernel panic problem with all of my kernels after installing new kernel nosebleed Linux - Software 2 04-14-2006 09:48 PM
kernel panic after installing kernel-2.4.27 on 2.6.8 system kpachopoulos Debian 4 04-10-2006 12:03 AM
latest kernel WITHOUT Kernel Panic issues??? timsch75 Linux - General 7 04-28-2004 04:15 PM

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

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