LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   2.6.26 kernel panic (https://www.linuxquestions.org/questions/linux-general-1/2-6-26-kernel-panic-655983/)

RVF16 07-15-2008 04:15 PM

2.6.26 kernel panic
 
Hello to all.

I have just compiled the new 2.6.26 kernel based upon my 2.6.25.9 kernel config.
The following errors occur :

[ 2.532405] ata_piix 0000:00:1f.2: no available native port
[ 2.537106] pata_acpi 0000:00:1f.2: no available native port
Unable to access resume device (/dev/sda7)
mount: could not find filesystem '/dev/root'
.
.
.
[ 2.553096] Kernel panic - not syncing: Attempted to kill init!

Any ideas which element in the configuration causes this.

This is a DELL E1505 Inspiron laptop running Fedora 6.

Thank you.
Regards.

trickykid 07-15-2008 04:27 PM

Seems to me you might have left some support for ATA and PATA that is necessary for your system to run. Hope you kept your original kernel configured, cause it's recompile time again. ;)

Brian1 07-15-2008 05:16 PM

That makes sense. I just built one myself and had kernel issues. Had to go back to previous. I normally use a default config from previous built kernels. My guess they re structured it again like in the 2.6.16 kernels with netfilters. Just have to manually check it all again and give it a try again. Mine was mostly my sound devices.

Brian

RVF16 07-16-2008 01:34 AM

Hmmm. I was afraid you might say that.

I keep all previous configs just in case.
I firstly tried my 2.6.25.9 config without changes (just added a few drivers for iwlwifi and v4l).
I have also tried that config with almost everything checked (except for those options that conflict).
Maybe i should go back to a very ancient config.

I was just hoping someone would know what is this about as i am getting tired of reconfiguring and recompiling all the time.

Anyway thank you people for feedback.
Regards.

trickykid 07-16-2008 07:47 AM

Quote:

Originally Posted by RVF16 (Post 3216075)
Hmmm. I was afraid you might say that.

I keep all previous configs just in case.
I firstly tried my 2.6.25.9 config without changes (just added a few drivers for iwlwifi and v4l).
I have also tried that config with almost everything checked (except for those options that conflict).
Maybe i should go back to a very ancient config.

I was just hoping someone would know what is this about as i am getting tired of reconfiguring and recompiling all the time.

Anyway thank you people for feedback.
Regards.

Well, you should have a .config for your newer kernel, boot with older one and check it to make sure you have the ata_piix and or pata_acpi configured for support. If not, make the quick changes, recompile, see if you can't boot from new kernel after that.

RVF16 07-16-2008 12:53 PM

Hello trickykid.

Both ata_piix and pata_acpi are configured as modules :

CONFIG_ATA_PIIX=m
CONFIG_PATA_ACPI=m

(i use "make menuconfig" of course to do so)

The general idea follows:
o Enable ata_piix and libata as modules (this is often the default) and add "options libata atapi_enabled=1" to your /etc/modprobe.conf (or the equivalent in your distribution).
o Build the IDE driver as built-in (this is often the default) and add the hdc=noprobe kernel argument

This is exactly what i have been doing till the 2.6.25.9 kernel without problems.
Don't know where the problem lays.
Thanks.

trickykid 07-16-2008 12:56 PM

I'd add the support to be built-in. The only time I create kernel modules is for devices that are usually removable. Just makes things simpler and easier. If you did compile these as modules, they need to be loaded at boot time, which is kind of hard to do since they deal with your hard drives and you need to be able to boot from it to have them loaded.. ;)

RVF16 07-17-2008 01:55 AM

I added the support built-in :
CONFIG_ATA_PIIX=y
CONFIG_PATA_ACPI=y

Still get a kernel panic error.
Is there a bug in this kernel? Has anyone actually installed it on a laptop?

Just in case here is my "lspci" output :
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: ATI Technologies Inc M52 [ATI Mobility Radeon X1300]
03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd Unknown device 0832
03:01.1 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
03:01.2 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 01)
03:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
03:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)
0b:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)

The processor is an intel core duo T2050

jomen 07-17-2008 04:28 AM

I'd start the configuration of a fresh kernel like this:
cd /usr/src/linux
make mrproper

if you already attemted a compilation - to make the source tree clean "as new"
zcat /proc/config.gz > /usr/src/linux/.config
will extract the configuration of your current kernel to /usr/src/linux/.config
The current config should be also avalable in /boot/config
Then: make oldconfig (and yes to all - or the right answer if you know it)
Then: make menuconfig - or whatever tool you like best - to adapt for your needs - this way all that was in the old one is in the new one too - and you can take out what you don't need.

RVF16 07-17-2008 05:13 AM

Hello jomen.

i always :
decompress the kernel archive in my kernel building directory
run "distclean" (if i have compiled before)
edit makefile, change EXTRAVERSION and set "UTS_MACHINE := i686"
run "mrproper"
copy config file of my previous working kernel (i have a collection of many such configs - i always back them up)
run "make menuconfig"
make changes if necessary
save configuration in an alternate configuration file (this way .config and .config.old are created)
run "make prepare"
run "make && make modules_install && make install"

I don't think it's a procedure thing.
I suppose there is a change somewhere in the configuration that causes this and i cannot figure out what to do.
I have all ready compiled 5 times using various configs and changing settings.
It's the first time i end up in such a dead end, i am completely blind.

Thanks.

jomen 07-17-2008 06:53 AM

Did you compare the .config's for differences?
I'm at best clumsy with the shell but one way would be:
Code:

grep -v ^# .config > file1
grep -v ^# .config-original > file2
diff file1 file2

(leaves out the comments and options which are unset)

dlinux 07-17-2008 05:57 PM

I can confirm that this should be a kernel issue.The same's happening to me, although not in Fedora.
When using my 2.6.25.10 config file in 2.6.26 i get a kernel panic-vfs not syncing- in both Zenwalk 5.3 and Slackware 12.1.
I have used this same config file for +/- the past 10 kernel's and no prob's.. just this 2.6.damn one.

Mine says that it can't boot /dev/hda2, and that the available partitions are the sd's:
/dev/sda
/dev/sda1
/dev/sda2
...

Changed lilo to boot from /dev/sda2 but it quits with an error because there's no /dev/sd* files. Created with mknod, changed lilo, rebooted and unsurprinsingly it says that /dev/sda2 isn't partitioned.

jomen 07-17-2008 06:11 PM

but you never should (AFAIK) just "use" a previous config-file...
You can use it as the base (make oldconfig) - and then adapt it/check it - some (even major) things could have been changed since the previous version.
Did you compare the two files - after going through "make oldconfig" "make menuconfig|xconfig|..."?

RVF16 07-18-2008 02:40 AM

I have finally managed to build a bootable kernel.
I had to completely disable IDE which was never the case up until now.

So after running make menuconfig i disabled the following option:
ATA/ATAPI/MFM/RLL support

which ofcourse disables a bunch of other options and writes to the config file, among others, the following line :
# CONFIG_IDE is not set

Having done that i had no longer the need for kernel parameters "hda=noprobe hdb=noprobe hdc=noprobe combined_mode=libata atapi_enabled=1 agp=off" which i removed.
Also there was no longer need for the line "options libata atapi_enabled=1" in my modprobe.conf to exist so i removed that too.

Kernel seems to work fine but there are two issues:
1.when i power on the laptop and choose the desired kernel from the grub menu to boot, the system halts after the message "loading the kernel" right at the beginning.
No matter how much time i wait for it to continue, it just won't do a thing.
If i press the power button again it continues without any visible problems.
So to boot this kernel i have to press power button once for the machine to light up and once more after the message above.
That's another first.
2.I have an HSFmodem in my laptop. I once installed it's drivers and since then, up until the 2.6.25.9 kernel, every time i boot a new kernel the drivers were automatically recompiled successfully.
Unfortunately that's not the case with the 2.6.26 kernel as it gives the following errors:
(cd /lib/modules/2.6.26.RVF16.fc6/build && make "CNXT_KERNELSRC=/lib/modules/2.6.26.RVF16.fc6/build" "M=/usr/lib/hsfmodem/modules" "CC=gcc" clean)
make[1]: Entering directory `/media/DATA/RVF16/Fedora/Μεταφράσεις-Εγκαταστάσεις/RPMΚατασκευή/fc6/linux-2.6.26'
make[1]: Leaving directory `/media/DATA/RVF16/Fedora/Μεταφράσεις-Εγκαταστάσεις/RPMΚατασκευή/fc6/linux-2.6.26'
(cd /lib/modules/2.6.26.RVF16.fc6/build && make "CNXT_KERNELSRC=/lib/modules/2.6.26.RVF16.fc6/build" "M=/usr/lib/hsfmodem/modules/GPL/hda" "CC=gcc" "HDA_CFLAGS=-DFOUND_KZALLOC -DFOUND_TLV -DFOUND_IRQ_HANDLER_T -DFOUND_DELAYED_WORK -DFOUND_NO_CTL_ELEM_RW" clean)
make[1]: Entering directory `/media/DATA/RVF16/Fedora/Μεταφράσεις-Εγκαταστάσεις/RPMΚατασκευή/fc6/linux-2.6.26'
make[1]: Leaving directory `/media/DATA/RVF16/Fedora/Μεταφράσεις-Εγκαταστάσεις/RPMΚατασκευή/fc6/linux-2.6.26'
rm -rf *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd GPL/.*.cmd .tmp_versions .tmp_versions /lib/modules/2.6.26.RVF16.fc6/build/.tmp_versions/hsfosspec.mod /lib/modules/2.6.26.RVF16.fc6/build/.tmp_versions/hsfserial.mod /lib/modules/2.6.26.RVF16.fc6/build/.tmp_versions/hsfengine.mod /lib/modules/2.6.26.RVF16.fc6/build/.tmp_versions/hsfpcibasic2.mod /lib/modules/2.6.26.RVF16.fc6/build/.tmp_versions/hsfhda.mod /lib/modules/2.6.26.RVF16.fc6/build/.tmp_versions/hsfmc97ich.mod /lib/modules/2.6.26.RVF16.fc6/build/.tmp_versions/hsfmc97via.mod /lib/modules/2.6.26.RVF16.fc6/build/.tmp_versions/hsfmc97ali.mod /lib/modules/2.6.26.RVF16.fc6/build/.tmp_versions/hsfmc97ati.mod /lib/modules/2.6.26.RVF16.fc6/build/.tmp_versions/hsfmc97sis.mod /lib/modules/2.6.26.RVF16.fc6/build/.tmp_versions/hsfsoar.mod Modules.symvers GPL/hda/Modules.symvers
(cd /lib/modules/2.6.26.RVF16.fc6/build && make "CNXT_KERNELSRC=/lib/modules/2.6.26.RVF16.fc6/build" "M=/usr/lib/hsfmodem/modules" "CC=gcc" modules)
make[1]: Entering directory `/media/DATA/RVF16/Fedora/Μεταφράσεις-Εγκαταστάσεις/RPMΚατασκευή/fc6/linux-2.6.26'
CC [M] /usr/lib/hsfmodem/modules/mod_engine.o
CC [M] /usr/lib/hsfmodem/modules/mod_hda.o
CC [M] /usr/lib/hsfmodem/modules/mod_mc97ali.o
In file included from include/linux/device.h:23,
from include/linux/pci.h:53,
from /usr/lib/hsfmodem/modules/mod_mc97ali.c:14:
include/linux/semaphore.h:32:1: warning: "DECLARE_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_mc97ali.c:9:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:335:1: warning: this is the location of the previous definition
In file included from include/linux/device.h:23,
from include/linux/pci.h:53,
from /usr/lib/hsfmodem/modules/mod_mc97ali.c:14:
include/linux/semaphore.h:41:1: warning: "init_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_mc97ali.c:9:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:336:1: warning: this is the location of the previous definition
In file included from /usr/lib/hsfmodem/modules/mod_mc97ali.c:32:
/usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function 'cnxthwpci_probe':
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:49: warning: cast to pointer from integer of different size
CC [M] /usr/lib/hsfmodem/modules/mod_mc97ati.o
In file included from include/linux/device.h:23,
from include/linux/pci.h:53,
from /usr/lib/hsfmodem/modules/mod_mc97ati.c:14:
include/linux/semaphore.h:32:1: warning: "DECLARE_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_mc97ati.c:9:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:335:1: warning: this is the location of the previous definition
In file included from include/linux/device.h:23,
from include/linux/pci.h:53,
from /usr/lib/hsfmodem/modules/mod_mc97ati.c:14:
include/linux/semaphore.h:41:1: warning: "init_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_mc97ati.c:9:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:336:1: warning: this is the location of the previous definition
In file included from /usr/lib/hsfmodem/modules/mod_mc97ati.c:26:
/usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function 'cnxthwpci_probe':
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:49: warning: cast to pointer from integer of different size
CC [M] /usr/lib/hsfmodem/modules/mod_mc97ich.o
In file included from include/linux/device.h:23,
from include/linux/pci.h:53,
from /usr/lib/hsfmodem/modules/mod_mc97ich.c:14:
include/linux/semaphore.h:32:1: warning: "DECLARE_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_mc97ich.c:9:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:335:1: warning: this is the location of the previous definition
In file included from include/linux/device.h:23,
from include/linux/pci.h:53,
from /usr/lib/hsfmodem/modules/mod_mc97ich.c:14:
include/linux/semaphore.h:41:1: warning: "init_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_mc97ich.c:9:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:336:1: warning: this is the location of the previous definition
In file included from /usr/lib/hsfmodem/modules/mod_mc97ich.c:37:
/usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function 'cnxthwpci_probe':
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:49: warning: cast to pointer from integer of different size
CC [M] /usr/lib/hsfmodem/modules/mod_mc97sis.o
In file included from include/linux/device.h:23,
from include/linux/pci.h:53,
from /usr/lib/hsfmodem/modules/mod_mc97sis.c:14:
include/linux/semaphore.h:32:1: warning: "DECLARE_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_mc97sis.c:9:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:335:1: warning: this is the location of the previous definition
In file included from include/linux/device.h:23,
from include/linux/pci.h:53,
from /usr/lib/hsfmodem/modules/mod_mc97sis.c:14:
include/linux/semaphore.h:41:1: warning: "init_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_mc97sis.c:9:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:336:1: warning: this is the location of the previous definition
In file included from /usr/lib/hsfmodem/modules/mod_mc97sis.c:25:
/usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function 'cnxthwpci_probe':
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:49: warning: cast to pointer from integer of different size
CC [M] /usr/lib/hsfmodem/modules/mod_mc97via.o
In file included from include/linux/device.h:23,
from include/linux/pci.h:53,
from /usr/lib/hsfmodem/modules/mod_mc97via.c:14:
include/linux/semaphore.h:32:1: warning: "DECLARE_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_mc97via.c:9:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:335:1: warning: this is the location of the previous definition
In file included from include/linux/device.h:23,
from include/linux/pci.h:53,
from /usr/lib/hsfmodem/modules/mod_mc97via.c:14:
include/linux/semaphore.h:41:1: warning: "init_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_mc97via.c:9:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:336:1: warning: this is the location of the previous definition
In file included from /usr/lib/hsfmodem/modules/mod_mc97via.c:25:
/usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function 'cnxthwpci_probe':
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:49: warning: cast to pointer from integer of different size
CC [M] /usr/lib/hsfmodem/modules/mod_osspec.o
In file included from include/linux/device.h:23,
from include/linux/usb.h:18,
from /usr/lib/hsfmodem/modules/include/osusb.h:25,
from /usr/lib/hsfmodem/modules/mod_osspec.c:27:
include/linux/semaphore.h:32:1: warning: "DECLARE_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_osspec.c:12:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:335:1: warning: this is the location of the previous definition
In file included from include/linux/device.h:23,
from include/linux/usb.h:18,
from /usr/lib/hsfmodem/modules/include/osusb.h:25,
from /usr/lib/hsfmodem/modules/mod_osspec.c:27:
include/linux/semaphore.h:41:1: warning: "init_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_osspec.c:12:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:336:1: warning: this is the location of the previous definition
In file included from include/linux/device.h:23,
from include/linux/usb.h:18,
from /usr/lib/hsfmodem/modules/include/osusb.h:25,
from /usr/lib/hsfmodem/modules/mod_osspec.c:27:
include/linux/semaphore.h:32:1: warning: "DECLARE_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_osspec.c:12:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:335:1: warning: this is the location of the previous definition
In file included from include/linux/device.h:23,
from include/linux/usb.h:18,
from /usr/lib/hsfmodem/modules/include/osusb.h:25,
from /usr/lib/hsfmodem/modules/mod_osspec.c:27:
include/linux/semaphore.h:41:1: warning: "init_MUTEX" redefined
In file included from /usr/lib/hsfmodem/modules/mod_osspec.c:12:
/usr/lib/hsfmodem/modules/GPL/oscompat.h:336:1: warning: this is the location of the previous definition
CC [M] /usr/lib/hsfmodem/modules/osservices.o
/usr/lib/hsfmodem/modules/osservices.c:182: error: field 'semaphore' has incomplete type
/usr/lib/hsfmodem/modules/osservices.c: In function 'cnxthsf_OsLockCreate':
/usr/lib/hsfmodem/modules/osservices.c:194: error: implicit declaration of function 'sema_init'
/usr/lib/hsfmodem/modules/osservices.c: In function 'cnxthsf_OsLockLock':
/usr/lib/hsfmodem/modules/osservices.c:221: error: implicit declaration of function 'down_trylock'
/usr/lib/hsfmodem/modules/osservices.c:230: error: implicit declaration of function 'down'
/usr/lib/hsfmodem/modules/osservices.c: In function 'cnxthsf_OsLockUnlock':
/usr/lib/hsfmodem/modules/osservices.c:252: error: implicit declaration of function 'up'
make[2]: *** [/usr/lib/hsfmodem/modules/osservices.o] Error 1
make[1]: *** [_module_/usr/lib/hsfmodem/modules] Error 2
make[1]: Leaving directory `/media/DATA/RVF16/Fedora/Μεταφράσεις-Εγκαταστάσεις/RPMΚατασκευή/fc6/linux-2.6.26'
make: *** [all] Error 2

As far as i know there will be no updates on these hsfmodem drivers to support later kernel changes (correct me if i am wrong) and as i travel a lot and use the modem in places that wireless networks do not exist, this is a big problem for me.

Thank you all.

RVF16 07-18-2008 11:41 AM

Hello again.

Forget about the 2nd issue regarding the softmodem.
Latest hsfmodem-7.68.00.11full driver from http://www.linuxant.com/drivers/hsf/index.php works like a charm.

Regards.


All times are GMT -5. The time now is 06:21 AM.