Fedora :: Compile A Vanilla Kernel On The Easy/lazy Way?
Apr 29, 2010
I thought I would give some instructions on how I compile my kernels. My long-time windows user parts trader recently asked me how to compile a kernel on Fedora. He was confused with all the tutorials requiring you to build an RPM, so I showed him how I do it, the standard/easy/lazy way. Before I start, here are a couple things I assume. I assume you are a Fedora user and that you are NOT in text mode, but in GNOME. I also assume you realize that this can take up to SIX HOURS on an old Pentium 3 1.3Ghz. Remember that some proprietary drivers as well as some free ones are not included in the kernel, so make sure you don't delete your existing one.
First get the dependencies you need.
su -c "yum -y install gcc ncurses-devel"
Next get the kernel source. I use 2.6.33.3 as an example. To download it, click here.Extract it by right-clicking on the file and then choosing extract here. This will take about five minutes. Now open a terminal, become root, and cd to the directory linux-2.6.33.3. It is important to cd here and not to the kernel directory inside of there, even though make has an extra variable that specifies there.
Now we need to configure the kernel before we build it with make O=kernel menuconfig. It will take a couple minutes to set up, then you will be presented with a cheap psuedo-gui in your terminal. Just select exit and yes to save your config. You usually don't need to change anything here.
Ready to compile and install? Remember this can take up to six hours, and your machine may become VERY slow. It is not recommended that you attempt to use your machine with this in progress. OK then. As root, in the same directory, type:
make O=kernel && make O=kernel modules_install install. This will compile the kernel and install the kernel and it's modules. Done? Now change the kernel and initrd in your bootloader to match the new kernel. If you ever want to reuse the same source code folder, use make mrproper to clean things up and build it again.
View 6 Replies
ADVERTISEMENT
Nov 29, 2010
i want to compile the vanilla kernel 2.6.37-rc3, but i want to obtain a .rpm file. I found this guide long time ago (i used it many times) but it use src.rpm package and the contained kernel.spec file have many lines for adding patches. Someone know where can i download a kernel.spec for vanilla kernel or a guide to obtain an rpm file
View 4 Replies
View Related
Jun 29, 2011
Im using a Fedora 15 and im trying to compile a 3.0.0rc5 kernel. but im unable to get a config for my machine to boot up. i tried make localmodconfig it says
using config: '.config'
capifs config not found!!
Restart Config
and then i tried cp /boot/config-2.6.38.6-26.rc1.fc15.i686.PAE .config to override the default config but stil that doesnt work. work around to get a proper config so that i can boot the latest kernel here?
View 1 Replies
View Related
Apr 9, 2010
I am trying to compile a vanilla kernel that I got from git in a VirtualBox VM running Fedora 12. With RHEL (albeit on real hardware, not a VM), I am able to do a make; make modules_install; make install and simply able to boot up the kernel. The make install step, in particular, creates the initrd using /sbin/installkernel, which also updates the grub configuration.
Under Fedora 12, my new kernel does not boot. I see no messages on the screen, not even if I change the boot command line to remove quiet bootup. I see disk usage on the VM and the CPU gets pegged at 100%. Strangely enough, if I change the initrd to refer to an existing, Fedora-provided kernel, I can boot my new kernel without any problems. I started with a Fedora kernel config and used it to generate the config for my new 2.6.33 kernel, so it couldn't be the case that I missed something in the config either.
Does anybody have an idea about what could be going on? Is there some specific patch that Fedora kernels use that are essential for booting up?
Also, the guest Fedora OS is 64-bit, if that is relevant.
View 2 Replies
View Related
Oct 17, 2010
I've downloaded 2.6.36-rc8 vanilla kernel, then I copied .config file from my current working kernel 2.6.32.21-168.fc12.x86_64, then I've configured, compiled and installed kernel like this:
Code:
make gconfig
make -j4 all (or make all)
make modules_all
make install
The last command edits my grub.conf file and writes this:
[Code]....
I checked my .config and ACPI, and File Systems are built into kernel and not loaded as modules... And, I have LVM but my /boot partition isn't in it, so I don't HAVE to use initrd, right? How can I boot from a vanilla kernel without initrd ?
View 11 Replies
View Related
Feb 22, 2010
I haven't recompiled ny kernel in a while, but whenever I did it, it was all pretty easy. Make menuconfig; (adjust); make && make modules_install, and copy over bzImage in */arch/* and System.map to /boot and stick in new entry into grub menu.lst.However, this time, I must be missing something, because I get kernel panic on booting up to the new kernel. Is there a step I'm missing?Certainly, I was looking in /etc/rc.d and there is a rc.modules<kernelver> script in there. I wondered if I need make a new one ... although when I looked over it, it seem only to be required when forcing particular modules.
View 14 Replies
View Related
May 24, 2011
What is vanilla kernel and what distributions are using it?
View 3 Replies
View Related
Jun 13, 2010
I am trying to compile a new vanilla kernel on to my Ubuntu server system which has been freshly installed with Ubuntu 10.04 server 32bits. As this will run on a VIA epia-px5000eg mainboard with USB stick I want compile this kernel on a different machine on which is also ubuntu 10.04 installed. Unfortunately currently I experience difficulties when I boot kernel 2.6.34; it says "Kernel panic - not syncing: VFS: unable to mount root fs on unknown block" while if I load to original kernel that comes with Ubuntu 10.04 all works perfectly well. BTW reason I want to build a custom vanilla kernel is to trim down kernel to the necessary services I need as I am running a server that requires just the essentials. And it needs to support the VIA Epia CPU processor family ( C3, C7 or generic setting which is another hurdle which I won't discuss here ).
Hopefully one out there is able to guide me further as I type step by step what I executed. Thanks for your replies in advance:
Yet I hook up the VIA epia-px5000g with 2gb usb stick, a dvd drive and keyboard ( all usb ). Boot from CDrom and install a minimal system (<f4>) to usb stick. Partitioning part I set it to EXT4 and used full size thus no SWAP. Also mount option " noatime " has been set all to save writes to usb stick.
When the base system has been installed a user has been added, as well apt is being configured to install only security updates automatically. As services I want to run definitely openSSH-server so I can access remotely. Grub gets configured and system will be rebooted.
At this stage I configure the network interface to a static address so I do not need to check my router all the time which dhcp address Ubuntu is using if I want to access remotely.
Now the compile part starts, the ubuntu way. I log in to my other system and execute following commands accordingly code...
View 2 Replies
View Related
Dec 13, 2010
which vanilla kernel version provide support for QM57 chipset?
View 1 Replies
View Related
Apr 30, 2011
I've getting strange build errors when using make-kpkg with the latest (2.6.39-rc5) vanilla kernel.I'm using the procedure outlined here:
https:[url]....e.g.:
Code:
make oldconfig CONCURRENCY_LEVEL=`getconf _NPROCESSORS_ONLN` fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
I'm getting the following build errors:
Code:
Building modules, stage 2.
MODPOST 3053 modules
WARNING: modpost: Found 60 section mismatch(es).To see full details build your kernel with:'make CONFIG_DEBUG_SECTION_MISMATCH=y'
CC arch/x86/crypto/aesni-intel.mod.o[code]....
There is even much more error output but it looks like it is basically the same issue.
View 2 Replies
View Related
Jan 1, 2010
i tried to compile linux kernel 2.6.31 on Fedora 12: the make , make modules and modules install ran successfully but problem with make install while trying to create image it looks for mkinitrd command which is not available i downloaded and installed the mkinitrd pckg and make install was now successful i got kernel img and initrd img in /boot
also grub was updated properly but i m not able to boot up the new kernel the problem the initrd seems to be and uknown type file to fedora core and the current kernel has initramfs img with a .cpio extn instead of initrd
View 3 Replies
View Related
Apr 5, 2010
so my problem is how to recompile my kerenl with TUN/TAP driver,i got how to compile the kernel with TUN/TAP driver every thing is going OK, when i run the commends , just in the last commend when i reboot my laptop i choose grub to enter on new kernel , but when i choose it , i got black screen .so please help me to solve this problem , for more information about my laptop , i have just one partition my root is (hd1,1). my ram is 2G, speed 2GHZ, i use Linux-2.6.27.42, but the new one is the last kernel available in website. i am in rush please inform me as soon as possible,
View 10 Replies
View Related
Jul 6, 2010
i have downloaded .src.rpm file from net.i dont know how to compile that.can u tell me the basics of linux kernel compilation.how to compile a kernel. how to install or modify the existing running kernel with tat. etcI am using fedora 12 it has 2.6.31.5-127.fc12.i686.PAE
View 5 Replies
View Related
May 8, 2011
I am attempting to compile the linux-2.6.35.13 kernel from kernel.org to use with an installation of Fedora 14 (2.6.35.11-83.fc14.x86_64). I've done this before with different kernel versions for older versions of Fedora, but I've encountered a new problem this time. Whenever I get to the "make install" step, I get the following:Quote:
sh /home/user/testing/source/linux-2.6.35.13/arch/x86/boot/install.sh 2.6.35.13 arch/x86/boot/bzImage
System.map "/boot"
[code]...
View 5 Replies
View Related
Feb 14, 2011
i was trying to install kernel 2.6.29.1 on fedora 14 but it is giving error. First download a package with kernel and i saved in home/user/linux. Afterwards i can extract this package.
1.tar -xvzf linux-2.6.29.1 -C /usr/src
2.cd /usr/src/linux-2.6.29.1/
3.make menuconfig
4.make
5.make modules_install
6.make install
after above steps i got this error.
ERROR: modinfo: could not find module ip6t_REJECT
ERROR: modinfo: could not find module nf_conntrack_ipv6
ERROR: modinfo: could not find module ip6table_filter
ERROR: modinfo: could not find module ip6_tables
ERROR: modinfo: could not find module ipv6
ERROR: modinfo: could not find module fuse
however it gives initramfs,vmlinuz-2.6.29.1 and System.map-2.6.29.1 in /boot folder and menu.lst in /boot/grub is updating according to new kernel. when i reboot my machine and selects the kernel 2.6.29.1 it shows FATAL:kernel too old [1.591633] Kernel panic-not syncing:Attempted to kill init
View 6 Replies
View Related
May 13, 2010
i want to compile Moxa (5100) driver in Fedora 12 , kernel <= 2.6.30 but now when i run command i see this error :
Code:
ln: creating symbolic link `libssl.so': File exists
make -C /lib/modules/2.6.31.5-127.fc12.i686.PAE/build SUBDIRS=/home/AAA/moxa modules
make[1]: Entering directory `/usr/src/kernels/2.6.31.5-127.fc12.i686.PAE'
CC [M] /home/AAA/moxa/npreal2.o
/home/AAA/moxa/npreal2.c: In function �npreal_open�:
/home/AAA/moxa/npreal2.c:1000: error: implicit declaration of function �task_session_nr
make[2]: *** [/home/AAA/moxa/npreal2.o] Error 1
[Code]...
View 9 Replies
View Related
Dec 9, 2009
I am trying to replace just the kernel (no modules) for my default kernel on FC 11. I use the default .config file and just change a few things and then run the make command. After I replace the kernel and reboot the system the password comes up for the encrypted filesystem and it does not take my password for some reason. what I need to do to get this working?
View 1 Replies
View Related
Mar 4, 2011
I just threw away 2.6.27 from my ubuntu10.10 installation because I thought I installed 2.6.28 apparently, I was mistaken and I threw away my one and only installed kernel.Is there an easy way to install the kernel? I'm not a super genious with that low level stuff, so if it's too hard I'll probably be easier off just reinstalling 10.10.
View 2 Replies
View Related
Apr 13, 2009
I am very much a Newbie to Linux/Fedora. Just installed Fedora 10, but having some problems with hardware driver recognition, particularly a wireless network PCI card. ndiswrapper is looking for a kernel in usr/src/kernels, which doesn't exist.In Fedora, is it necessary to compile a kernel? Looking through the FAQ at kernelnewbies, states to extract the kernel to a Linux directory, in usr/src, which also doesn't exist.
View 12 Replies
View Related
Apr 20, 2011
Using the rpmbuild to compile the kernel, every time the patches will be applied to the source code. So even if no changes are made to the source code and no patches are added to kernel.spec, the whole kernel will still be recompiled, wasting a lot of time
View 13 Replies
View Related
Dec 13, 2009
I am trying to compile a kernel in the following directory:/usr/src/kernels/2.6.30.9-102.fc11.x86_64
Note I am not trying to build an rpm but just do a simple make. After configuring with make menuconfig I issue the make command and get the following error:
Code:
[root@compaq 2.6.30.9-102.fc11.x86_64]# make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
make[1]: *** No rule to make target `missing-syscalls'. Stop.
make: *** [prepare0] Error 2
how to resolve this error? It seems to be fedora-centric.
View 4 Replies
View Related
May 24, 2010
I'm runing FC11 and have compiled the vanilla kernel 2.6.33.4 to support Dazuko. It has broken my NFSD server in the process, and I can't figure out why. I get these errors on boot. FATAL: Module nfsd not found. FATAL: Error running install command for nfsd
[code]....
View 2 Replies
View Related
Oct 14, 2010
I wanna compile tha kernel which is old one.how to do that.
View 8 Replies
View Related
Apr 29, 2011
I compiled kernel-2.6.32-71.24.1 on 32-bit rhel6, but there is no kvm.ko. what if I want to use kvm on 32-bit rhel6.
Steps to Reproduce:
1. install kernel-2.6.32-71.24.1.el6.src.rpm
2. rpmbuild -ba kernel.spec
3. find /root/rpmbuild/BUILD/kernel-2.6.32-71.24.1.el6/linux-2.6.32-71.24.1.el6.i686/-name kvm.ko
Actual results:
not found kvm.ko
View 1 Replies
View Related
Dec 16, 2010
Trying to compile the 2.6.36.2 kernel. Its not the first kernel I've compiled, but I've run into a problem I've not come accross before.
While compiling I get this error.
[Code]....
Looks like the headers sys/eventfd.h and linux/virtio_rng.h haven't been selected in my .config file. I just copied my old config from the last kernel I built. This was a while ago (2.6.30), but I thought I'd give it a go anyway.
what config option they are under or what I can do to get rid of this error?
View 2 Replies
View Related
Feb 24, 2010
I want to compile a custom kernel, because I need a path for a device. Here is what I've done:
Code:
$ cd /media/work/temp/
$ apt-get build-dep --no-install-recommends linux-image-$(uname -r)
$ apt-get source linux-image-$(uname -r)
$ cd linux-2.6.31
[Code].....
View 1 Replies
View Related
Apr 13, 2010
Has anyone successfully compiled Symantec AV Autoprotect against the current Ubuntu Kernel?
I am using the kernel 2.6.24-27-generic. I'm following these instructions for Symantec Autoprotect: http://service1.symantec.com/SUPPORT/ent-security.nsf/docid/2009081214270148
and when I run the "build.sh" I receive the error message code...
Is there another option or really what am I doing wrong?
View 2 Replies
View Related
Oct 28, 2010
I'm using xubuntu 10.10 on usb, and i compile a new kernel but just i cannot access it. If I used harddisk instead of usb, simply, i can select my new kernel version in grub screen. However, there is no grub when booting from usb. So i cannot any selection.how can i reach the new kernel, when using xubuntu on usb?
View 2 Replies
View Related
Aug 16, 2011
I am new to Linux Kernel. I want to disable branch prediction in kernel and recompile for my research purpose. Can anyone point me to clear instructions on where i can find the kernel config file in ubuntu and steps to recompile the updated kernel
View 1 Replies
View Related
Dec 11, 2010
Recently i downloaded the stable version of kernel from kernel.org then i extract the tarball to /usr/src path , then after i complile the kernel for fuse and ext4 modulescommand which i use is mention below
[root@localhost linux-2.6.36.1]# make menuconfig
[root@localhost linux-2.6.36.1]# make
[root@localhost linux-2.6.36.1]# make modules
[code]...
View 2 Replies
View Related