DebianThis 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.
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 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.
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?
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.
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
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.