General :: Compiling Kernel Sources Or Its Modules
Oct 25, 2010
It has been years since I have need to compile the kernel or its modules. Here goes: I recently upgraded to ubuntu 10.10 and needed the kernel source and its modules source. The relevant directories are in a mess. Several diff versions, broken links, the works. Is there a nice easy way, to remove all of the sources, there, and err "install" the ones for my latest kernel, in the correct places. Then I might have a chance at getting the two modules I need complied! Nvidia being one for the geforce 4 mx420 nv17
When compiling software I get the following notice : You do not appear to have the sources for the 184.108.40.206xls-domU kernel installed.
Yum says : Package kernel-headers-2.6.18-164.11.1.el5.x86_64 already installed and latest version Package kernel-devel-2.6.18-164.11.1.el5.x86_64 already installed and latest version
But uname says : Code: -bash-3.2# ls /usr/src/kernels/ 2.6.18-164.11.1.el5-x86_64 -bash-3.2# uname -a Linux vds.hosting.net 220.127.116.11xls-domU #4 SMP Fri Dec 4 12:17:04 CET 2009 x86_64 x86_64 x86_64 GNU/Linux
Extra info : title CentOS (2.6.18-164.11.1.el5xen) root (hd0,0) kernel /boot/vmlinuz-2.6.18-164.11.1.el5xen ro root=/dev/xvda1 console=xvc0 initrd /boot/initrd-2.6.18-164.11.1.el5xen.img
This is a VDS I'm renting from my Hosting company. How can I get the right sources? RPMforge repo?
I'm trying to compile a kernel for my Crux Linux install. I figured I'd do a 'make defconfig' to setup a .config file with the default configuration and then try to add anything I will need for my specific system. I found a script that scans my system and prints out a list of any current modules I am using. That way I can make sure to add these to my new kernel. It looks something like this:
Is there a way to add these to my current configuration without having to go into 'make menuconfig' and search for each one? It's not too hard to search for many of them. But the ones with short names I'm not finding. Like ac.ko for example. 'ac.ko' returns 0 search results and 'ac' returns anything and everything with those 2 letters in it.
I am having some issues compiling kernel modules against the pre-built OpenSUSE kernel. Whenever I compile a module and try to load it, I get something like:
Code: insmod fs/smbfs/smbfs.ko insmod: error inserting 'fs/smbfs/smbfs.ko': -1 Invalid module format It doesn't actually matter what the module is, they all do the same thing. I have tried the above mentioned smbfs, I've also tried:vmware kernel module
I want to compile a kernel to add a few options that are not enabled in the huge-smp-18.104.22.168 that comes with slackware. specifically, i want to add TASK_DELAY_ACCT and TASK_IO_ACCOUNTING so that I can use iotop. I just want to add those 2 options to the new kernel, everything else I'd like to keep the way it is as the system has been running just fine. Will running 'make menuconfig' in /usr/src/linux default to the options that are used in the stock kernel?
I have installed Arch Linux quite a few weeks ago; but I'm still trying my best to install the nividia display driver for my graphics card (nVidia Geforce 2 MX 400). Not only in Arch but have tried installing on other distros and still failed. I have read up all the documentations and I still find it hard to do this task. When I used the terminal and executed the NVIDIA-Linux-x86-94.43.01-pkg1.run file without any window manager running, I get this problem:
ERROR: Unable to determine the version of the kernel sources located in '/lib/modules/2.6.35-ARCH/build'. Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at nvidia.com.
Now I'm using Arch Linux Kernel 2.6.35 and I have got the source. But where am I suppose to put it now? I do not want to change the kernel. I just want the nVidia installer to identify that there is a kernel source so that it can install. I have searched up a lot on websites and ended up with no proper guide.
This is a very old driver. So since now I have the nVidia driver installation package and also the kernel source,
I am trying to compile a patch for HDMI audio, reference this thread [URL]
Code: Instructions: - download alsa-driver-1.0.21 from alsa homepage - unpack downloaded alsa: $ tar jxvf alsa-driver-1.0.21.tar.bz2
- download and apply my patch $ wget http: [URL] $ cd alsa-driver-1.0.21 $ patch -p 1 < ../alsa-driver-1.0.21-nvidia-ion2-hdmi.patch
- compile alsa $ ./configure $ make $ make install when I do ./configure it outputs this
Code: The file /lib/modules/22.214.171.124-pclos6.bfs/source/include/linux/autoconf.h does not exist. Please install the package with full kernel sources for your distribution or use --with-kernel=dir option to specify another directory with kernel sources (default is /lib/modules/126.96.36.199-pclos6.bfs/source). How can I direct it to install with the 'full kernel sources' ?
I am trying to setup Slacware 13.1 x86_64 to a encrypted partition. I used the README_CRYPT.TXT howto : [URL] At the step when I create an initrd.gz I get this error: Quote: ERROR: No /lib/modules/188.8.131.52-smp kernel modules tree found for kernel "184.108.40.206-smp"
I tried to look into the directory and there was only modules under 220.127.116.11. So I tried to change the command into: Quote: mkinitrd -c -k 18.104.22.168 -m ext3 -f ext3 -r cryptroot -C /dev/sda2
This command was successful, but I don't know if this is alright. I made the changes in lilo.conf, add initrd = initrd.gz. This is all on unencrypted /boot partition. The boot=/dev/sda1 I also set for the unencrypted boot partition. When I boot the system I get a kernel panic:
I was trying to install VirtualBox through the YaST > Software Management but it is not working, someone in the forum told me that I have to download the OSE version and do it manual way. Finally I am able to start up VB but not able to use the network connection. Thus I am trying to do this:
/etc/init.d/vboxdrv setup. I get this error:
When I type dmesg, it shows me a bunch of info which I don't know what should look for. When I type modprobe vboxnetflt, I get the error: FATAL: Error inserting vboxnetflt (/lib/modules/22.214.171.124-1.2-default/updates/vboxnetflt.ko): Invalid module format. what should I do in order to get my VB to be able to connect to the internet?
I really want to test the pastrough and snapshot new features in XEN, since i really start to hate vmware eating all resources with more than 1 vm (I know, there is VirtualBox, but I used Vmware first since you can record videos and for portability).
I already used XEN 3.4 a lot in my own labs inside my laptop, (since I learned how to use virtual network in nat mode), and since is the default hypervisor on the job (we are migrating the lasts Vmware vms !!! cool!!! ) and I really really love XEN (is amazing, 4 vms, 1 host in a laptop turion 64 x2 with just 3GB ram!!! and my processor is not flaming!!!).
I have just compiled a new kernel. When I boot into this new kernel and do an lsmod it is only running two modules. The only thing I changed in the configuration file was to compile ext4 file system into the kernel. My computer is an HP Pavilion dv4. The two modules are lirc_ene0100 and lirc_dev. I am running Ubuntu 10.04. The new kernel is 126.96.36.199+drm33.5. The kernel seems to work fine but I need to know why and how it can only be running two modules.
I'm trying to install VMWare server on my Kubuntu box and it's telling me there are 3 "kernel modules" that it needs me to remove (apparently they were installed previously and VMWare isn't liking that).How do I remove them? Never messed with the kernel modules before.
I recently updated the kernel from SLES 11 to SLES 11 SP1 .However my kernel modules are not getting loaded and they throw an error such as shown below:"Errornserting mii : Unknown symbol in module, or unknown parameter (see dmesg)"
what the Kernel Module Source packages are called?... This guide I am trying to follow is obviously dated but it is the only solid lead I have been able to find towards making my ram work...This is the original thread on the NVNEWs boards: Unable to install Nvidia driver on 9500M + Ubuntu - Page 2 - nV News Forums,Read through that thread I linked to the NVidia forums for a detailed run down of what is wrong.
The semi short version: There is some sort of issue with the NVidia driver on the G1Sn (and several other Asus Models) and the way the Linux Kernel address memory, the issue results in not being able to use more than 2 Gigs of ram with the Nivida drivers. There is a patch (again check the nvidia forum link) that people said they had applied to fix this issue. At this point I am seriously considering Vista again if I can't get this working I love Ubuntu but I hate having my hardware limited by my software...where to download the files I need to recompile in the Kernel with the patch I need for my ram to work?
I tried posting there but it seems like the thread is long dead.. how I can download the needed files and maybe how I add these lines to it?I also started a thread on the ubuntu forums here: [ubuntu] Downloading Current Kernel Sources.
i'm using this guide videos - howto: debian linux kernel compilation, part 1 and the author says i need kernel 2.6.26 this version of kernel doesnt longer exist in kernel.org website and the only 2.6.26 i found is a patch here. should i use the patch? or download another version of kernel?
I have this problem constantly and it tells me to install such and so a prog, but I do locate [prog] and it shows up in 80 places so it's obviously installed. I just have no clue how to attach the two or to set up anything in the ./config set up so it leaves me completely stuck. So what's the trick when it's already in there? Also..it says I just joined? in 2008.
Since new kernel 3.0 update I cannot rebuild vmware modules
sudo vmware-modconfig --console --install-all Unable to initialize kernel module configuration
how to do that. Where do I insert the "CONFIG_LOCALVERSION" line.
Same here. This seems to be due to the kernel version being "3.0" instead of "3.0.0". Recompiling the Kernel (and all modules based on it, e.g. nvidia) with CONFIG_LOCALVERSION=".0-ARCH" allows me to compile the modules and run VMware.
what is happening on my Centos virtual server (ps I'm having a great time re-learning Linux after a large gap and usually try and find out myself but this has me confused) First thing I did was install Tomcat and try and change the port to 80 using iptables -nat and it complained a kernel module was missing. Instead setup Apache to redirect requests so that's now working I then tried to install CSF firewall and the validation perl script returned fatal errors so I assumed OK my virtual server Kernel is restricted and used denyhosts instead which is working great
Here's the confusion.. I later retried the csftest script and it now works including all the iptables and nat stuff that fataled before. I've not rebooted or changed anything except run denyhosts and the postgres daemon + ended a few daemons that I didn't need (eg pickup,tlsmgr,courier,postfix,qmgr,saslauthd) Running lsmod returns nothing and /proc/modules is zero bytes so I'm not able to tell what is loaded? I'm tempted to try and get Tomcat redirecting via iptables and see what happens but if it works I don't like that something seems to have changed.. before I ran it direct as root now I'm SU into root from another login
I'm currently using Fedora 12 with kernel 188.8.131.52 and I was trying to upgrade to 184.108.40.206. These are the steps I followed. After rebooting and choosing this kernel from the Grub menu, I'm just greeted with a black screen with a blinking cursor and it won't proceed beyond that.
These are the commands I issued. I received an error on the first make modules about the mismatch. I then ran CONFIG_DEBUG_SECTION_MISMATCH=y and once finished I ran make modules again and it completed successfully.
Code: Downloaded kernel package 220.127.116.11 from www.kernel.org untar archive make menuconfig (no changes made, saved config file) make
I update my last kernl to 2.6.38-rc7 but when I launch VirtualBox, on stdout.The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (2.6.38-rc7) or it failed to load. Please recompile the kernel module and install it by sudo /etc/init.d/vboxdrv setup.
These days, I tried to compile my own kernel. Now, it seems work. However, when the kernel is booting, I always get the error message like below: acpiphp_ibm: ibm_acpiphp_init: acpi_walk_namespace failed It looks that something is wrong with my acpi subsystem's configuration. But no matter How I reconfig it, this message still occurs. My distribution is UBUNTU 10.04 LTS original kernel with the distribution is 2.6.32 My own kernel is 2.6.35
I am compiling kernel to learn it and as well as for edubook, a netbook I am working on. I wanted to put the compilation under my home directory and followed the syntax suggested in the README in /usr/src/linux,like,
'make o=/home/pbhat/temp/kcompile menuconfig'
Like this I have gone through full compilation successfully,but see no output going to the specified folder.Could anybody point out where I went wrong? I was compiling under /usr/src/linux and in Opensuse 11.2.I followed the README apparently written by Linus where I saw the above make syntax.Maybe that is old and hold good no more.
I would like to add latest tc+esfq functionality to machines running older distributions, FC3, FC5 etc. I am told I should down load the latest kernel and recompile with the proper patches which I can do. Are there problems with using latest kernels with older distributions, they are all running 2.6.x, but the x has of course gone up since FC3.