LinuxQuestions.org
Help answer threads with 0 replies.
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 07-29-2010, 04:09 PM   #1
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Rep: Reputation: 46
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?
 
Old 07-29-2010, 04:34 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
No.. 2.6.32-5 is right.

Install linux-headers-`uname -r`

Last edited by AlucardZero; 07-29-2010 at 05:39 PM.
 
Old 07-29-2010, 04:45 PM   #3
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
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?
 
Old 07-29-2010, 05:39 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Doubtful.
 
Old 07-29-2010, 06:32 PM   #5
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
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.
 
Old 07-29-2010, 07:46 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You could always just try it and see
 
Old 07-29-2010, 08:06 PM   #7
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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
 
Old 07-30-2010, 07:23 PM   #8
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
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.
 
Old 07-30-2010, 09:14 PM   #9
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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

Last edited by Dutch Master; 07-30-2010 at 09:52 PM. Reason: adding script
 
Old 07-31-2010, 09:10 PM   #10
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
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.
 
Old 07-31-2010, 09:48 PM   #11
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
In that case, and in the true spirit op FOSS, you're free not to persue it further (sorry, just been browsing the userfriendly.org archives )
 
Old 08-01-2010, 05:15 AM   #12
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
Thanks anyway,

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
GNS3 reports wrong Qt version! simsie Linux - Software 1 04-17-2008 04:12 PM
phpinfo() reports wrong mysql version shambler Linux - Server 4 01-22-2007 06:18 PM
uname -p -i reports unknown LocoMojo Slackware 15 12-21-2005 07:58 AM
uname -r reports wrong kernel version branque Fedora 5 09-16-2005 10:26 AM
PHPMyAdmin reports wrong PHP version. Pcghost Programming 2 10-24-2003 02:21 PM

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

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