Debian This forum is for the discussion of Debian Linux.
|
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-29-2010, 04:09 PM
|
#1
|
|
Member
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Lenny, Squeeze, Wezzey
Posts: 600
Rep:
|
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?
|
|
|
|
07-29-2010, 04:34 PM
|
#2
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
No.. 2.6.32-5 is right.
Install linux-headers-`uname -r`
Last edited by AlucardZero; 07-29-2010 at 05:39 PM.
|
|
|
|
07-29-2010, 04:45 PM
|
#3
|
|
Member
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Lenny, Squeeze, Wezzey
Posts: 600
Original Poster
Rep:
|
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?
|
|
|
|
07-29-2010, 05:39 PM
|
#4
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
Doubtful.
|
|
|
|
07-29-2010, 06:32 PM
|
#5
|
|
Member
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Lenny, Squeeze, Wezzey
Posts: 600
Original Poster
Rep:
|
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.
|
|
|
|
07-29-2010, 07:46 PM
|
#6
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
You could always just try it and see 
|
|
|
|
07-29-2010, 08:06 PM
|
#7
|
|
Senior Member
Registered: Dec 2005
Posts: 1,632
Rep: 
|
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 
|
|
|
|
07-30-2010, 07:23 PM
|
#8
|
|
Member
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Lenny, Squeeze, Wezzey
Posts: 600
Original Poster
Rep:
|
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. 
|
|
|
|
07-30-2010, 09:14 PM
|
#9
|
|
Senior Member
Registered: Dec 2005
Posts: 1,632
Rep: 
|
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
|
|
|
|
07-31-2010, 09:10 PM
|
#10
|
|
Member
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Lenny, Squeeze, Wezzey
Posts: 600
Original Poster
Rep:
|
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.
|
|
|
|
07-31-2010, 09:48 PM
|
#11
|
|
Senior Member
Registered: Dec 2005
Posts: 1,632
Rep: 
|
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  )
|
|
|
|
08-01-2010, 05:15 AM
|
#12
|
|
Member
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Lenny, Squeeze, Wezzey
Posts: 600
Original Poster
Rep:
|
Thanks anyway,
I did save the script. Maybe this winter when I am holed up I cand spend a the time it will take. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:11 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|