Slackware :: Compiling Kernel Sources To Add Few Options

Apr 18, 2010

I want to compile a kernel to add a few options that are not enabled in the huge-smp- 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?

View 3 Replies


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

View 4 Replies View Related

General :: No Kernel Sources When Compiling Software

Feb 25, 2010

When compiling software I get the following notice : You do not appear to have the sources for the 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 :
-bash-3.2# ls /usr/src/kernels/
-bash-3.2# uname -a
Linux #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?

View 10 Replies View Related

OpenSUSE Install :: Installing Kernel Through RPMs Without Compiling Sources?

May 10, 2010

Is there any way to install a kernel using rpms and avoid compiling its sources? I am using OpenSUSE 11.2.

View 7 Replies View Related

Software :: Compiling Patch - Installing With Full Kernel Sources?

Apr 8, 2011

I am trying to compile a patch for HDMI audio, reference this thread [URL]

- 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

The file /lib/modules/ 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/ How can I direct it to install with the 'full kernel sources' ?

View 8 Replies View Related

Ubuntu :: Compiling Kernel With Bare Minimum Options?

Nov 10, 2010

I am looking to compile a kernel for my system which is a home built machine. This machine is stable and has not had any hardware changes in the past 2 years. I am trying to figure out exactly what modules and options to include in my custom kernel. Is there a way to see what modules are actually in use on my system and build a custom kernel based on that?

View 5 Replies View Related

Slackware :: Kernel Version Downgrade: Rebuild Any Other Packages From Sources?

Mar 23, 2011

I have installed and configured Slackware 13.1 and it works perfectly. Now I'm going (actually forced) to downgrade kernel version down to 2.6.32. Is there any caveats? Do I need rebuild any other packages from sources?

View 13 Replies View Related

Slackware :: Compiling Kernel For 13.0 Patches?

Mar 12, 2010

I'm tryin to run this script to make me a aufs/squashfs/lzma patched kernel and I keep getting this

root@slackware:/usr/src# ./build.kernel
* Unpacking archives


View 1 Replies View Related

Slackware :: Looking For Kernel Compiling Guide?

Feb 6, 2011

I haven't used slackware for many years. There used to be a sticky thread with a great kernel compiling guide for slackware. It feels somewhat unnatural to me to use slackware without a shiny new kernel. Does that guide still exist? I'm working from memory right now.

View 3 Replies View Related

Slackware :: Nvidia Driver Package Refuse To Cooperate With Kernel Sources?

Aug 3, 2010

I'm using Slackware 13.0 on rather old PC with old Riva TNT2 video card. Default driver is "nv". Everything work fine, but without hardware 2D acceleration under X.

After studying various manuals I
1. downloaded Nvidia binary package suitable for my video card.
2. Recompile kernel without Riva framebuffer support.
3. Start Nvidia script.

Script said: "Error: unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured...""

Kernel sources are in /usr/src/linux- I have all kernel packages installed. I was trying various switches for script in order to show the right path - nothing! 8 Some people say that Nvidia script don't like 4th digit in a kernel's name and get it from "uname -r" output. Can I change it somehow?

View 14 Replies View Related

Slackware :: FGLRX Driver And Compiling Kernel In 13.1

May 26, 2010

I am currently having an issue installing the FGLRX driver in slackware 13.1. I use a customer kernel due to buggy acpi on my toshiba laptop. The steps i took to compile my kernel are as followed. hu

make mrproper in /usr/src/linux directory
patch /usr/src/linux directory
copy kernel config from /boot directory
make menguconfig and load config
the make all
make modules install
i have also tried make install as well
then i mopy the kernel file and config file into /boot directory
edit lilo
reboot ... everything works fine acpi works properly like before.. now the problem comes.. I try to install the fglrx drivers and i get the error message
kernel includes at /lib/modules/ do not match current kernel.
they are versioned as ""
instead of "".
you might need to adjust your symlinks:
- /usr/include
- /usr/src/linux
ERROR: I don't have make module
Am I doing something wrong setting up my kernel. Issue on my gentoo box I have.

View 6 Replies View Related

Slackware :: Compiling Kernel - Ext4 Is Read As Ext3?

Jan 25, 2010

I compiled a kernel using a previous kernel config after I switched to the ext4 file system. Previously it was using ext3 and the kernel compiled and ran fine. I added support for ext4 to the config but when I went to boot I had a kernel panic. The error was "kernel can't mount vfs on (8,5)". Root is on sda5, I don't know what the 8 is. I started over, using mrproper and made a new config, but got the same error. I created an initrd with the ext4 file system but then the kernel said it couldn't mount root on ext3 because of unique options. (something along those lines) I booted back into the default kernel and saw that it had a similar error right after the bios check, but it loaded fine. I'm wondering why the kernel is saying that the ext4 file system is ext3.

View 11 Replies View Related

Slackware :: Compiling Kernel - Config Debug Section Mismatch

May 11, 2011

Anyone able to compile kernel on Slackware 13.37 successfully using the config from testing/ I was able to get .4 and .5 to compile successfully, but with .6 I get the following after running "make modules".

WARNING: modpost: Found 11 section mismatch(es).
To see full details build your kernel with:
Running "make CONFIG_DEBUG_SECTION_MISMATCH=y 2>&1 > outfile" gives me a bunch of WARNINGS as follows:

WARNING: vmlinux.o(.text+0xe656a): Section mismatch in reference from the function build_all_zonelists() to the function .meminit.text:setup_zone_pageset.clone.56()
The function build_all_zonelists() references
the function __meminit setup_zone_pageset.clone.56().
This is often because build_all_zonelists lacks a __meminit
annotation or the annotation of setup_zone_pageset.clone.56 is wrong.....

WARNING: drivers/watchdog/nv_tco.o(.devinit.text+0x14): Section mismatch in reference from the function nv_tco_init() to the function .init.text:nv_tco_getdevice()
The function __devinit nv_tco_init() references
a function __init nv_tco_getdevice().
If nv_tco_getdevice is only used by nv_tco_init then
annotate nv_tco_getdevice with a matching annotation.

View 14 Replies View Related

OpenSUSE :: Compiling XEN 4.0 From The Sources In 11.2.

Jun 9, 2010

I'm trying to build the latest XEN 4.0.0 from the tarball in

After resolve the dependencies, I finalled compiled the xen kernel.

But the problem, it is not making the intrd for booting (and it is not suposed to do ), it just comments the following on the README source:

Depending on your config, you may need to use 'mkinitrd' to create an initial ram disk, just like a native system e.g.

# depmod 2.6.18-xen
# mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18-xen.img 2.6.18-xen


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!!!).

View 1 Replies View Related

Debian :: Compiling Kernel - 2.6.26 Version Of Kernel Doesn't Longer Exist In Website

Sep 16, 2010

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 website and the only 2.6.26 i found is a patch here. should i use the patch? or download another version of kernel?

View 2 Replies View Related

Debian :: Compiling Sources - Configure Shows Prog Missing

Apr 28, 2010

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? says I just joined? in 2008.

View 5 Replies View Related

Ubuntu :: Compiling For Speed - Keep Options?

Jan 2, 2010

Its about CFLAGS and -O2, and options like -march=<your architecture>. There are things I am just not sure about eg - this PC has a Intel i7, which has a wealth of powerful instructions developed since 'i386', that the gcc complier might be able to compile for - if we tell it! Where are the default options kept? Even supposing one decides not to mess with Ubuntu defaults, how does one locally compile a program, optimized for the CPU, overriding the defaults? How does one even tell if the 64-bit version got installed? In my case, it was provided by others. clicking System -> About Ubuntu can be surprisingly opaque on this little detail, even though you get the chance to choose at the site.

View 4 Replies View Related

Red Hat :: Difference Between 'kernel Sources' & 'kernel-devel'

Jan 7, 2010

I have installed CentOS 5.4 & am trying to install VirtualBox on it. To install VirtualBox I run the command:

yum localinstall path/Virtualbox.rpm

It runs through the dependency check & says everything is fine. It installs the rpm & then says that compiling of the kernel module failed & that VirtualBox will not start until this is fixed, & that the most like cause is that the kernel sources are not installed.

I have installed the kernel-devel package & have the kernel source tree located at /usr/src/kernel/2.6....

View 3 Replies View Related

Ubuntu Installation :: How Stable Are The Lucid-proposed And Lucid-backports Options In The Software Sources Settings

Oct 11, 2010

Ubuntu 10.04 how stable are the lucid-proposed and lucid-backports options in the software sources settings?

View 4 Replies View Related

Fedora :: Where To Get Correct (F12) Kernel Sources

Mar 7, 2010

Building an nVidia driver requires sources for the currently-running kernel. In my case (Fedora 12), it is, according to 'uname -a',

I thought I could get the sources with 'yum install kernel-sources', but there is no such package. Then I tried 'yum install kernel-devel'. That package exists, but the kernel is

This is clearly not the correct version.

View 2 Replies View Related

5 :: Difference Between CentOS Kernel Sources?

Sep 9, 2009

What is the difference between kernels which come from the update repository and the plus repository ? Often the same version comes from both, but one says centosplus at the end the other, from the update repository, does not.

View 1 Replies View Related

General :: Downloading Current Kernel Sources ?

Jan 19, 2009

I need to download the Kernel sources add a few lines and then recompile and install the new files. I found the following lines that are suppose to do it on nVidia's forums:

# Install Kernel Sources
sudo apt-get build-dep linux-image-2.6.24-17-rt
sudo apt-get source linux-image-2.6.24-17-rt[code]........

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.

View 2 Replies View Related

Fedora Installation :: How To Get Kernel Sources (Package)

Mar 2, 2009

Is it possible to get a package via yum that has the kernel sources? In the "Add/Remove Software" GUI program, I have enabled the "Fedora source" s/w repository. Even then, the only kernel package I can find is the "The Linux Kernel", linux- which essentially provides only the kernel binaries and headers but not the source.

View 5 Replies View Related

Debian :: Installing Kernel Sources - Compile And List

Apr 5, 2010

I am not new to Debian and used to use commands like "apt-get install <package>", "apt-get update", "apt-get upgrade" and "apt-cache search <string>" regularly. But I never understood those Debian programs and the Debian package system with it's numerous programs and way to install things and work on software and configurations. Now, I just wanted to do something that I thought to be really easy. Get the source of an existing package. And despite spending over 3 hours - including reading the man-pages of commands - I cannot find a way!

Two things:
dpkg --get-selections | grep openvz
linux-image-2.6-openvz-amd64 install
linux-image-2.6.26-2-openvz-amd64 install

I already don't understand why I have two such packages installed. I would like to download the source of my kernel: apt-get source linux-image-2.6.26-2-openvz-amd64. This downloaded linux-2.6_2.6.26-21lenny4.dsc, linux-2.6_2.6.26.orig.tar.gz and linux-2.6_2.6.26-21lenny4.diff.gz

Then, I wanted to patch this - having found no explanation, I did:
cd linux
patch < ../linux-2.6_2.6.26-21lenny4.diff

That seemed to patch the kernel. But I am not sure - there are new files like this now_
Only in linux-2.6-2.6.26: xenctrl-capabilities.patch
Only in linux-2.6-2.6.26: xenctrl.patch
Only in linux-2.6-2.6.26: xenctrl-privcmd.patch

So, how can download the complete Debian kernel source? And what do I need to be able to compile it? And - HOW to just list all available sources and search in them?!? I found lots of webpages where tools like "make-kpkg" are used, which I do not understand again. Under SuSE, I could just select the package from a list, say "make oldconfig install modules modules_install" and be ready. Under Debian, I just find no way ...

View 14 Replies View Related

Fedora :: VirtualBox - Unable To Find Kernel Sources

Dec 28, 2009

How can I use DKMS to force the virtualbox setup to run using the correct kernel sources? This is the error I'm getting in the vbox logs

Attempting to install using DKMS
removing old DKMS module vboxdrv version 3.1.2
Deleting module version: 3.1.2
completely from the DKMS tree.

Creating symlink /var/lib/dkms/vboxdrv/3.1.2/source ->
DKMS: add Completed.

Error! Your kernel source for kernel cannot be found at
/lib/modules/ or /lib/modules/
You can use the --kernelsourcedir option to tell DKMS where it's located.

Failed to install using DKMS, attempting to install without:
Makefile:152: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

[root@nevada Downloads]# uname -r

View 8 Replies View Related

Fedora :: Kernel Sources Removing From Repository Violates GPL Or Not?

Sep 13, 2010

As it written here [URL]. Fedora 13 does not include the kernel-source package provided by older versions, since only the kernel-devel package is required now to build external modules. Linux kernel, does not belong to fedora. Fedora is derivative work isn't it? Or you rewrite all kernel in fedora 13, and fedora is not linux any more? According to GPL, derivative works must be licensed as GPL. And so you must provide ALL sources for free. Including kernel sources. So, where can I get kernel sources for fedora 13? Or I'm wrong, and you shouldn't provide them if you wont?

View 4 Replies View Related

OpenSUSE :: VMWare Installation - Of Gcc And Kernel-sources Versions

Dec 30, 2010

Trying to install VMWare I get the following message:

Really after it VMWare anyway doesn't agree to install. Zypper says that no newer version of gcc is available. So I can't see how I can install VMWare.

View 9 Replies View Related

Ubuntu Installation :: Download All The Sources Files Of Kernel?

Feb 11, 2011

I have an assignment as a CS student to code over Ubuntu Kernel but I am surely a beginner. I need to download all the source files of the Ubuntu kernel source code, make some changes then compile and use it as a custom kernel.

View 4 Replies View Related

Programming :: All Hardware Drivers Included In Kernel Sources?

Jan 7, 2009

I am software developer, and I am new in kernel programming. I have token a look at linux sources, I found that drivers of all hardware are included in linux kernel sources. The question is, how Linux include this drivers on the Kernel?

- Including drivers statically in the the kernel is illogical of course. Since drivers will be loaded, all of them, even if they are not used.
- making drivers as dynamic libraries (.so) is not sufficient, too. How does the kernel include this library if it was already compiled and build ?

Moreover, will Linux sources grow every time a new driver take place ? this causes many troubles:
- Compiling linux will become slower year after year.
- linux evolution will be difficult because next versions must support old drivers.
- Linux Distributions will be huge in size.

View 2 Replies View Related

Slackware :: Using Src2pkg To Build Svn Sources

May 25, 2010

What's the best way to use src2pkg to build sources checked out from svn?

Src2pkg expects a source tarball. But when you check out or export a program's code from svn you don't get a tarball. You just get a source directory.

Do I tar and gzip the directory? Or is there a way to skip that step?

View 4 Replies View Related

Copyrights 2005-15, All rights reserved