Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
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.
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.
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.
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.
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..
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.
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.
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.
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|..."?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.