LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   uname -r reports wrong version (https://www.linuxquestions.org/questions/debian-26/uname-r-reports-wrong-version-822935/)

rbees 07-29-2010 04:09 PM

uname -r reports wrong version
 
I am having issues trying to compile the alsa-linuxtant module and I am getting errors about not being able to find some files and the source needing to be reconfigured.

Anyway the developers told me to try compiling on a pristine source to see if I could compile that way. When I went looking at kernel.org I did not find a 2.6.32-5 version. So I did some checking and to see just what version I have.

$ uname -r

2.6.32-5-amd64

$ dpkg --list | grep linux-image

ii linux-image-2.6-amd 64 2.6.32+27 Linux 2.6 for 64-bit PCs (meta-package)
ii linux-image-2.6.26-2-amd64 2.6.26-24 Linux 2.6.26 image on AMD64
ii linux-image-2.6.32-5-amd64 2.6.32-15 Linux 2.6.32 for 64-bit PCs

So the actual package that is installed is 2.6.32-15 but uname -r reports 2.6.32-5 as the kernel version.

Is this normal?

AlucardZero 07-29-2010 04:34 PM

No.. 2.6.32-5 is right.

Install linux-headers-`uname -r`

rbees 07-29-2010 04:45 PM

Thanks,

The headers are installed. In fact module assistant builds the nvidia and virtualbox modules successfully. So what ever the problem is it does not appear to be related to dependencies.

So if I download the source from kernel.org and it is patched to 32-16 and I build a module will it work on my system with out having to install the whole kernel?

AlucardZero 07-29-2010 05:39 PM

Doubtful.

rbees 07-29-2010 06:32 PM

Thanks,

Was afraid you would say that. Don't really want to compile a whole kernel.

Guess I will put trying to get the modem in my laptop to work off for a while. It's not like I really need it. I can always teather my cell. It just limits my dial-up speed to 14.4 and I was hoping to get something better out of the internal modem.

AlucardZero 07-29-2010 07:46 PM

You could always just try it and see :)

Dutch Master 07-29-2010 08:06 PM

Actually, building a kernel isn't that difficult. There are various types of GUI's to help you and the command sequence is probably one of the best documented, as it's done on a daily basis by many ;)

rbees 07-30-2010 07:23 PM

Yea I know it is well documented. And I have built a couple of kernels. But I am just not up to relearning the ins and outs. And I have nvidia graphics. So for me it just does not add up on the plus side right now. :)

Dutch Master 07-30-2010 09:14 PM

You don't need to. Just accept the default values (except perhaps the proc type) and you should be fine. The sequence allows for scripting, so you can have it running in the background or overnight and have a new kernel w/o actually having to wait :)

[edit: try this:
Code:

#! /bin/bash
#
# Small script for building a new 2.6 kernel
# Requires minor editing for latest stable kernel version
# The make install and mkinitramfs steps requires root permissions. It is assumed you have
# the Debian build-essential package and its dependencies installed.
# This script is released under the GPL: http://www.gnu.org/copyleft/gpl.html
# To keep things tidy a new directory is created. Remove both lines if you don't want this.

mkdir ~/kernel
cd ~/kernel

# edit these lines to represent the latest stable kernel from the kernel.org guys

wget -q http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.1.tar.bz2
tar -xjf linux-2.6.34.1.tar.bz2
cd linux-2.6.34.1

# this part may fail if the new kernel has features not supported in the old one.
# Run manually and accept all defaults, then comment out the next line with a # in front
make oldconfig

# This is the part that does the actual work

make && make modules && make modules_install && make install && mkinitramfs -o /boot/initrd.img-2.6.34.1 2.6.34.1

# The last portion of the above line should be edited if another kernel version is used!

# Now you need to edit your bootloader to add the new kernel.
# After you've done that, and checked thoroughly twice, it's time to reboot into your new kernel.

Save as kernel-build.sh, make it executable with chmod and give it a try :)

rbees 07-31-2010 09:10 PM

I assume that I will have to install the nvidia module for this kernel the 'nvidia-way' and not the 'debian-way' because module-assistant will not know where the source and headers are. Unless there is an easy way to fix that?


Then I will have to figure out how to point the alsa-linuxant module to this source which is not very apparent from the instructions page.

The whole point was to see if I could get the win-modem in this laptop working and gain a little speed over the cell phone using it as a regular dial-in modem. Which in my case the Motorola Z6m limits the speed to fax speed (14.4). And it would only be used in case there was not wifi available where I am, but cell coverage. And so not something that I really need.

Dutch Master 07-31-2010 09:48 PM

In that case, and in the true spirit op FOSS, you're free not to persue it further :p (sorry, just been browsing the userfriendly.org archives ;))

rbees 08-01-2010 05:15 AM

Thanks anyway,

I did save the script. Maybe this winter when I am holed up I cand spend a the time it will take. :)


All times are GMT -5. The time now is 04:26 AM.