Help - Search - Members - Calendar
Full Version: Downgrade Kernel
MandrivaUsers.org > Advanced Topics > Command Line, Kernel and Programming
stuxk
Hey gyus !

I have an HP tx2140 tablet pc and I cannot get the wacom pen work correctly at all in Mandriva 2008. I have noticed that it works (uncallibrated though but I hope to be able to fix this) with an older kernel. I tried to install the older kernel (2.6.18) but with no success.

I tried to
1) compile the from the downloaded tar archive (it gave me some errors but I am not sure if it was the correct the procedure I followed at all...)
2) install it from rpm I found in an Mandriva 2007 (nut it hangs during boot with a message after "unmounting old /sys" "Booting has failed")


Could you please help me to find and compile or install an rpm of the kernel-2.6.18 for Mandriva 2008 correctly ?

Thanks !
S.


[moved from Laptops, etc by spinynorman]
ianw1974
Compiling your own kernel will be missing any patches that were applied to the Mandriva kernel. However, the majority of things should work fine though. If you downloaded the kernel tar file, copy it to /usr/src and then untar it from this location. Something like:

CODE
mv /home/username/Downloads/linux-2.6.18.tar.bz2 /usr/src/
cd /usr/src
tar xvjf linux-2.6.18.tar.bz2
cd linux-2.6.18.tar.bz2
make oldconfig
make && make modules_install && make install


that should do everything for you. The last line is three commands combined, however you could simply do it like:

CODE
make
make modules_install
make install


and see how that goes. The make install should make the initrd hopefully, so that when you reboot, the system should start normally.
stuxk
ianw1974 thanks for the reply !

I tried to compile the kernel but I received the following errors after "make install"

--> No module sata_nv found for kernel 2.6.18, aboarding
mkinitrd failed:
(mkinitrd -v -f /boot/initrd-2.6.18.img --ifneeded 2.6.18)) at /usr/lib/libDrakX/bootloader.pm line 118)
make[1]: *** [install] Error 2
make: *** [install] Error 2


Did i make a mistake somewhere ?

Thanks !
ianw1974
OK, what I suggest you do then is, first do:

CODE
lspci


to find out your sata controller. Then go to /usr/src/kernel-2.6.18 or whatever the directory is and:

CODE
make menuconfig


you can then go into Drivers, and find the actual SATA controller that fits your machine - looks like NVidia one to me if it's using sata_nv. Chances are that later kernels had a SATA section, whereas earlier kernel versions were found I think under SCSI or somewhere else. You just need to find the one that fits your need and make sure it's selected as M for module.

Then run the compile steps again like I mentioned in previous post after existing the menu system.
stuxk
Thanks ! I have finally managed to compile the Kernel successfully.

The problem now is that when I try to load with the kernel 2.6.18 the laptop is not booting at all, but is hangs with a blank screen from the very beginning...

Ahhh !

S.
ianw1974
What is your /boot/grub/grub.conf or /boot/grub/menu.lst entry for this kernel?
stuxk
QUOTE (ianw1974 @ Jul 8 2008, 09:55 AM) *
What is your /boot/grub/grub.conf or /boot/grub/menu.lst entry for this kernel?


Well, the hole file looks like this (see attached)
ffi
maybe a stupid question but how do you know it's a kernel issue and not some other issue like maybe xorg?
stuxk
You mean about the not booting - balnk screen state ? I just don't see the HDD led busy.

I also tried some other things but now the laptop hangs during boot with an error message: "Booting has failed" after it tries to mount the root filesystem.

CODE
Mounting root filesystem
mount: could not find filesystem 'dev/root'
Setting up other filesystems
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Booting has failed
ffi
QUOTE (stuxk @ Jul 8 2008, 03:21 PM) *
You mean about the not booting state ? I just don't see the HDD led busy.

I meant the wacom device not working wink.gif
stuxk
QUOTE (ffi @ Jul 8 2008, 02:23 PM) *
I meant the wacom device not working wink.gif



Hmm, this is very tricky for me ! I tried so many things without any success...

E.g: I tried to edit the xorg.conf file but didn't work.

You can see the full story here: http://mandrivausers.org/index.php?showtopic=60904

I want to get this thing working so badly, since I HATE windows so much and I LOVE Linux !

S.
ianw1974
OK, so what I see is this:

CODE
title 2.6.18
kernel (hd0,4)/boot/vmlinuz-2.6.18 BOOT_IMAGE=2.6.18 root=UUID=c12305c6-49b8-11dd-af2c-4b5b4f8d60e7 resume=/dev/sda6 splash=silent vga=788
initrd (hd0,4)/boot/initrd-2.6.18.img


am presuming this is the one you are booting, so:

1. Does the vmlinuz and initrd exist for this kernel? Check the /boot directory.
2. Does the boot_image exist?
stuxk
These files do exist. It seems that ther is another problem preventing the system to boot:

CODE
Mounting root filesystem
mount: could not find filesystem 'dev/root'
Setting up other filesystems
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Booting has failed
ffi
probably your have compiled an old kernel which uses the old libata where devices used to be called /dev/hdX instead of the new one where they are called /dev/sdX

what does your /etc/fstab look like?
stuxk
Hmm, it might be something like that. Unfortunately I don't have my laptop now but I remember that the devises were recognised as sd and not as hd. I will also check it this evening.

If this is the problem, where should I change the reference for the devices from hd to sd in order for the "old" kernel to recognize the devices (is it only in the fstab )?

S.
ffi
I never downgraded but when I upgraded I had to dig into grub menu.lst and device.map, fstab and modprobe.conf to get the correct driver to load, to get a booting system.

It might not be so easy that's why I asked you if you were sure it was a kernel problem.

did you check this site for getting the wacom up and running?:

http://linuxwacom.sourceforge.net/index.php/faq#WHO
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.