LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-12-2004, 08:01 PM   #1
sensovision
Member
 
Registered: Mar 2004
Location: Ukraine
Distribution: Debian "Wheezy"
Posts: 94

Rep: Reputation: 15
2.6.x kernel panic


few days ago I've finally get my hands on Debian and after quick exploring I've decide to install 2.6.3 kernel I've spend about two days tweaking on it and all the time got same error:
Quote:
VFS: cannot open root device "306" or unknown-block (3,6)
please append a correct "root=" boot option
unable to mount root fs on unknown - block(3, 6)
After some time I just decide to try 2.4.18 and I've compile it without single problem, it's work like a charm After this I finally decide to search if anyone else have same problem or know solution for it, seems that a lot of people experience same trouble although I haven't saw a solution which would help me, I've tried some "safe" config options and whole config files just to see if it work in some wierd way although I failed.
I also get feeling that it somehow caused by VIA chipset... so anyone have experiencing something like this and maybe there is some magical solution for this problem?
Thanks.

PS today I've patched Kernel to 2.6.4 and it's still not work, previously I've also tried older 2.6.0 with same result.
 
Old 03-12-2004, 11:31 PM   #2
ghostwalker
Member
 
Registered: Jun 2003
Posts: 160

Rep: Reputation: 30
Have you compiled the IDE device driver into the kernel. If not that is probably your problem. Below are the steps that I use to get started with the 2.6.x kernel.

Walt

For building the 2.6 kernel

Take and read the following:

http://www.linux.org.uk/~davej/docs/...loween-2.6.txt

You need to get the module-init-tools.

cp linux-2.6.2.tar.gz /usr/src
tar jfx linux-2.6.2.tar.gz
ln -sf linux-2.6.2 linux
cd linux

Use lspci -v to help select your hardware. This will be helpful for configuring the 2.6 kernel.

make mrproper
make menuconfig
make
make modules_install
make install

Then modify you lilo.conf or grub.txt

make install installs vmlinuz into the boot directory along with System.map
It creates a symbolic link to you old vmlinuz -> vmlinuz.old and System.old

All you need to do is add entry for the old vmlinuz. I use lilo.conf

This is mine....

image=/boot/vmlinuz
label=Linux2.6
read-only

** This would be you redhat config. **
image=/boot/vmlinuz.old
vga=791
append="hdc=scsi hdd=scsi apm=power-off nomce"
label=Linux2.4
read-only

If you are using lilo, issue lilo -v or modify you menu.lst for grub.

Hope this helps. The more people use 2.6 the better.
 
Old 03-13-2004, 04:55 AM   #3
sensovision
Member
 
Registered: Mar 2004
Location: Ukraine
Distribution: Debian "Wheezy"
Posts: 94

Original Poster
Rep: Reputation: 15
Hi ghostwalker! I'm using LILO and did steps similar to those which you describe, although I'm not sure about IDE device driver so will take time to check it now and let you know the result. By the way does it matter if I not copy vmlinuz to /boot but leave it's in root directory and just put in lilo something like this:
image=/vmlinuz-2.4.18
label=Linux-2.4.18
read-only

image=/vmlinuz-2.6.4
label=Linux-2.6.4
read-only

this make me easily decide which kernel to boot with, but since I'm not sure what System.map is used for I'll try to follow your steps exactly.

Update: seems that I had same problem with 2.4.25 as well

Last edited by sensovision; 03-13-2004 at 07:03 PM.
 
Old 03-13-2004, 05:12 PM   #4
sensovision
Member
 
Registered: Mar 2004
Location: Ukraine
Distribution: Debian "Wheezy"
Posts: 94

Original Poster
Rep: Reputation: 15
unfortunately I don't have a good news just find time to check my kernel config and seems that IDE was enabled there. Although it seems that my way of installing kernel was different from your method but should lead to same result I also try to follow step by step and do it as you say but it didn't work
any ideas what else could I try to make it work?

By the way I've included my config file, maybe someone would have time to see if there something what could cause the problem http://flcd.net/.config
 
Old 03-14-2004, 05:16 AM   #5
ghostwalker
Member
 
Registered: Jun 2003
Posts: 160

Rep: Reputation: 30
Here is a copy of my IDE section.

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_IDEDISK_STROKE=y
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
CONFIG_IDE_TASK_IOCTL=y
# CONFIG_IDE_TASKFILE_IO is not set

#
# IDE chipset support/bugfixes
#
CONFIG_BLK_DEV_CMD640=y
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_BLK_DEV_OPTI621 is not set
CONFIG_BLK_DEV_RZ1000=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_IDEDMA_PCI_WIP is not set
CONFIG_BLK_DEV_ADMA=y
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
CONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_DMA_NONPCI is not set
# CONFIG_BLK_DEV_HD is not set
 
Old 03-14-2004, 06:06 AM   #6
sensovision
Member
 
Registered: Mar 2004
Location: Ukraine
Distribution: Debian "Wheezy"
Posts: 94

Original Poster
Rep: Reputation: 15
I could swear I've enable this option in the menconfig and check it after this :-\ let me try it by manually changing .config
 
Old 03-14-2004, 02:12 PM   #7
sensovision
Member
 
Registered: Mar 2004
Location: Ukraine
Distribution: Debian "Wheezy"
Posts: 94

Original Poster
Rep: Reputation: 15
Hi ghostwalker, I've just try to use your IDE part, and also tried to enable more IDE options manually in .config file( I've upload it here http://flcd.net/.config )
although I still haven't managed to make kernel work.
Also I've finally download 2.4.25 and got kernel panic there as well
 
Old 03-14-2004, 04:22 PM   #8
johndoesacc
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Rep: Reputation: 0
Well, i had the exact same problem... just got a laptop and wanted to make a fresh debian install on it and compile the kernel for the first time... i wanted to go 2.6 from the beginning and everything... i had the exact same problem... i had IDE on and everything... i found out that the fact that i used the old config (from 2.2.x) had made this problem... i then made a whole new config from scratch (just deleting the .config and doing make menuconfig), would fix the whole thing... i hope this helps...
 
Old 03-14-2004, 05:24 PM   #9
sensovision
Member
 
Registered: Mar 2004
Location: Ukraine
Distribution: Debian "Wheezy"
Posts: 94

Original Poster
Rep: Reputation: 15
thx johndoesacc! although I haven't using any old configs, I've try to create one from the scratch... maybe something else than IDE could cause this?
 
Old 03-14-2004, 06:56 PM   #10
johndoesacc
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Rep: Reputation: 0
Maybe it wasn't the fact that i reused my old one... i've heard they should be compatible... but something was wrong, at least...
 
Old 03-15-2004, 06:05 AM   #11
sensovision
Member
 
Registered: Mar 2004
Location: Ukraine
Distribution: Debian "Wheezy"
Posts: 94

Original Poster
Rep: Reputation: 15
hi folks, thanks for taking time to help me!
johndoesacc, yesterday before going to sleep I've decide to try once again, this time I've choose different politic for selecting options I've need. I've check only those which I really know that I need them, and only those which I was sure what they are doing. (Except I2O, I've check it just to see what it is and leave it so).
I've remove all unnecessary FS and leave only ext2(without and extra options) and NTFS and vfat. Have also remove hotplug support, automounter and similarry options.
Now I have working 2.6.4 When I have time I'll try to figure out what could cause kernel panic, and if I ever succeed I'll post what I'll found.
 
Old 03-15-2004, 06:47 AM   #12
johndoesacc
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Rep: Reputation: 0
Glad to see it worked... You had no idea what i went through just to figure that out... And i didn't even figure out anything specific...
 
  


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 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM

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

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