<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>A Virtual Home - Latest Comments in How to compile a kernel for Ubuntu Karmic</title><link>http://avirtualhome.disqus.com/</link><description></description><atom:link href="https://avirtualhome.disqus.com/how_to_compile_a_kernel_for_ubuntu_karmic/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 29 Mar 2012 20:28:26 -0000</lastBuildDate><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999389</link><description>&lt;p&gt;Wow...I am just learning these words in my IT classes.  Recognize I have a lot to learn and actually study and understand.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrew</dc:creator><pubDate>Thu, 29 Mar 2012 20:28:26 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999384</link><description>&lt;p&gt;Hi Peter -&lt;/p&gt;&lt;p&gt;I'm trying to rebuild 2.6.31-22.65 generic-pae.  I'm not modifying the configuration but I'm applying a patch to net/sctp/transport.c.  After building the kernel, I get the 3 linux-*_all.deb files, but not the linux-header*.deb and linux-soruce*.deb files that correspond to the configuration I created.  I've been through the process twice with the same result.  Do you have any suggestions for what might be going wrong?  Thanks.&lt;/p&gt;&lt;p&gt;- Jon&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jon Leighton</dc:creator><pubDate>Thu, 07 Oct 2010 02:45:03 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2720000709</link><description>&lt;p&gt;Hello Peter.&lt;br&gt;Thank you for the reply.&lt;br&gt;I am not using git - all my changes are going to be local.&lt;/p&gt;&lt;p&gt;Unfortunately, even to see if there are any syntax errors in my new changes, I need to recompile to whole kernel and that s what is bothering me.&lt;/p&gt;&lt;p&gt;A simple makefile is capable of detecting source code changes - thats what it is meant  for. Not sure why ubuntu made it  so complicated - there is so much that goes under the hood but leaves out this simple and most important requirement!&lt;/p&gt;&lt;p&gt;Sorry to rant here, but I have already done 3 full compiles of the kernel since yesterday - I am new to kernel development, I cant generate the perfect code without going through few iterations!&lt;/p&gt;&lt;p&gt;Thanks a lot for trying to help.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pav</dc:creator><pubDate>Fri, 24 Sep 2010 12:41:10 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2720000127</link><description>&lt;p&gt;Not sure why it wouldn't show up at boot time, unless you also have grub v2 installed and it's not added in that configuration.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Fri, 24 Sep 2010 12:09:26 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2720000455</link><description>&lt;p&gt;If you add files or make changes you will have to commit them to the Git tree, otherwise they will be undone when you do a git reset.&lt;/p&gt;&lt;p&gt;I haven't found documents about incremental compiling a kernel, it might be possible but I wouldn't know about it.&lt;/p&gt;&lt;p&gt;For help I would start at &lt;a href="http://kernel.org" rel="nofollow noopener" target="_blank" title="http://kernel.org"&gt;http://kernel.org&lt;/a&gt; they have mail listings available where you can posts questions like adding your own file.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Fri, 24 Sep 2010 12:07:46 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2720000125</link><description>&lt;p&gt;I followed the above procedure to compile a new kernel based out of Karmic and I could even install and run it. Thanks a lot.&lt;br&gt;I have added my own stuff to the kernel code and there are some errors in it (doesn't interfere with the kernel's regular functionality - error happens only when I create a particular kind of socket).&lt;/p&gt;&lt;p&gt;Now to fix this error, I have made changes in udp.c, xfrm.h etc. And then issued the last command from your tutorial above&lt;br&gt;"skipabi=true skipmodule=true fakeroot debian/rules binary-kvp" &lt;br&gt;I hoped that this would recompile the changed files - but it never does. I verified this by removing the corresponding .o files from debian/build/build-kvp/ path and they did get created on running the above command after my changes.&lt;/p&gt;&lt;p&gt;How do i do incremental compiles of the kernel src tree (after I have done the complete build once) without having to do complete clean and compile - this takes nearly 3hrs to run on my VirtualBox :(&lt;/p&gt;&lt;p&gt;Also, if i want to add a new file to the kernel source tree at say net/ipv4/myownfile.c - can I get it compiled by just adding it in the net/ipv4/Makefile under a specific config item that I know I would be selecting?&lt;/p&gt;&lt;p&gt;Can you point me to help-pages on these tips-tricks on kernel-developer's everyday life? Thanks a lot.&lt;/p&gt;&lt;p&gt;Regards&lt;br&gt;Pav&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pav</dc:creator><pubDate>Fri, 24 Sep 2010 07:21:20 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999387</link><description>&lt;p&gt;Hi Peter,&lt;/p&gt;&lt;p&gt;I am new to linux enviornment. Thanks for the tutorial, I have followed all the step mentioned in the site and installed the new image of the linux kernel. Its showing in the grub.conf, but the new system its not showing in the boot time.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">subhash pujari</dc:creator><pubDate>Fri, 17 Sep 2010 15:15:12 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2720000120</link><description>&lt;p&gt;Take a look at this one:&lt;br&gt;&lt;a href="http://blog.avirtualhome.com/2009/11/03/how-to-compile-a-kernel-for-ubuntu-karmic/2010/04/16/compile-and-run-the-ubuntu-lucid-kernel-on-ubuntu-karmic/" rel="nofollow noopener" target="_blank" title="http://blog.avirtualhome.com/2009/11/03/how-to-compile-a-kernel-for-ubuntu-karmic/2010/04/16/compile-and-run-the-ubuntu-lucid-kernel-on-ubuntu-karmic/"&gt;http://blog.avirtualhome.co...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I don't think it has changed for compiling a Lucid kernel on Lucid but I haven't had the chance to upgrade yet, projects have been keeping me busy.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Sat, 01 May 2010 11:55:18 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999383</link><description>&lt;p&gt;Now Lucid was out there. Is anybody willing to write something like this for 10.04?&lt;/p&gt;&lt;p&gt;Let me start with this:&lt;/p&gt;&lt;p&gt;- debian.master/scripts/misc/kernelconfig doesn't exist, but debian/scripts/misc/kernelconfig does&lt;/p&gt;&lt;p&gt;- in kernelconfig, there's this line: bindir="`pwd`/${DROOT}/scripts/misc" I had to change it to bindir="`pwd`/${DROOT}/debian/scripts/misc"&lt;/p&gt;&lt;p&gt;-  debian.master/scripts/misc/getabis doesn't exist, but  debian/scripts/misc/getabis does and it doesn't contain any line like this getall i386 generic generic-pae 386. So I cannot make any change to that file.&lt;/p&gt;&lt;p&gt;- I had to install these packages: binutils-dev, libelf-dev, asciidoc (wow, Need to get 359MB of archives.&lt;br&gt;After this operation, 562MB of additional disk space will be used.)&lt;/p&gt;&lt;p&gt;And finally, I got &lt;br&gt;linux-doc_2.6.32-22.33_all.deb&lt;br&gt;linux-headers-2.6.32-22_2.6.32-22.33_all.deb&lt;br&gt;linux-headers-2.6.32-22-core2_2.6.32-22.33_i386.deb&lt;br&gt;linux-image-2.6.32-22-core2_2.6.32-22.33_i386.deb&lt;br&gt;linux-source-2.6.32_2.6.32-22.33_all.deb&lt;br&gt;linux-tools-common_2.6.32-22.33_all.deb&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thai Dang Vu</dc:creator><pubDate>Sat, 01 May 2010 11:04:05 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2720000456</link><description>&lt;p&gt;As I said "apt-get source linux-image-2.6.31-20-generic" so it should be EXACTLY the same source that builds the linux-image-2.6.31-20-generic.deb that is in the Karmic repository.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wrightflyer</dc:creator><pubDate>Fri, 30 Apr 2010 09:20:16 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2720000124</link><description>&lt;p&gt;Where are you getting your kernel source from?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Thu, 29 Apr 2010 16:34:51 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999381</link><description>&lt;p&gt;Regarding Wim's post number 15 above. I'm seeing what he saw, that is that the source initially only has debian.master/ but no debian/, your advice was to run "debian/rules clean" and it would be created. But how is that possible? You can't run "debian/rules" if there is no debian/ ?&lt;/p&gt;&lt;p&gt;I found that I could create debian/ using "make-kpkg debian" but that stil does not create the debian.env that debian/rules/misc/kernelconfig is looking for. If I use "debian/rules clean" while debian/ exists then it is actually deleted. So attempting to run that twice is NOT the solution (in fact it's simply not possible)&lt;/p&gt;&lt;p&gt;Any ideas?&lt;/p&gt;&lt;p&gt;Initially all I'm trying to do is build EXACTLY the same linux-image-2.6.31-20-generic that you get from Ubuntu repositories that you get with "apt-get source linux-image-2.6.31-20-generic". The problem is getting the .config right. It does not work to simply copy Config-NNN from /boot of a system that already has linux-image-2.6.31-20-generic installed because the Config-NNN file that is put there has CONFIG_DEBUG_INFO=y which the kernel itself clearly did not have when it was built.&lt;/p&gt;&lt;p&gt;Wrightfyer&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wrightflyer</dc:creator><pubDate>Thu, 29 Apr 2010 15:57:07 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2720000123</link><description>&lt;p&gt;They should affect the build. These two are not redefined elsewhere in the scripts, they are exported in the Makefile for later use.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Tue, 13 Apr 2010 17:31:11 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999382</link><description>&lt;p&gt;Hi Peter,&lt;/p&gt;&lt;p&gt;Great post! When I first read it I said to my self: "too easy to be true"; but I followed your instructions and it worked flawlessly! I am now righting from my new with Core2-optimized kernel system. Many thanks!&lt;/p&gt;&lt;p&gt;I have a question: wanting to get the most out of performance I did tweak a little the top-level Makefile at lines 224 and 225 making the following changes:&lt;/p&gt;&lt;p&gt;HOSTCFLAGS   = -Wall -Wstrict-prototypes -O3 -mtune=native -march=native -fomit-frame-pointer&lt;br&gt;HOSTCXXFLAGS = -O3 -mtune=native -march=native&lt;/p&gt;&lt;p&gt;Did those options actually affected the build? I am asking this because there are other options below and I don't know well enough how the kernel build system actually works and whether it is the value of these flags that is propagated to directories below or of others. The compilation output does not help either (at least at the default verbosity level that I used).&lt;/p&gt;&lt;p&gt;Hope you can shed some light on this; and thanks again for this concise and highly useful post!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Georgios Zarkadas</dc:creator><pubDate>Fri, 09 Apr 2010 15:01:52 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999385</link><description>&lt;p&gt;It should be noted that you should not call kernelconfig directly to edit the configurations ... you should use:&lt;/p&gt;&lt;p&gt;    debian/rules editconfigs&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Whitcroft</dc:creator><pubDate>Tue, 30 Mar 2010 13:01:04 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999380</link><description>&lt;p&gt;Great post. It would also be great detailing how to upload this into a launchpad PPA.  Then it could be managed from there and taking advantage of their build daemons.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paul B</dc:creator><pubDate>Wed, 24 Mar 2010 02:01:30 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999379</link><description>&lt;p&gt;Yeah, no such thing in my menuconfig. :( However, I put it manually as CONFIG_HIGHMEM64G=y, but not even I've got more, it reduced from 3GB to 2.82G. (No memory related options in Bios)&lt;br&gt;Anyway, thanks! I gave it a try..&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cac gomboo</dc:creator><pubDate>Sun, 21 Mar 2010 12:07:43 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2720000121</link><description>&lt;p&gt;Location: Processor type and features -&amp;gt; High Memory Support -&amp;gt; 64GB&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Sat, 20 Mar 2010 16:56:41 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999377</link><description>&lt;p&gt;Hey,&lt;br&gt;You said, you made the compilation because you need 4G support. Which option gave you this in menuconfig? I don't see you mentioned it at all.. :(&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cac gomboo</dc:creator><pubDate>Sat, 20 Mar 2010 16:29:14 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999378</link><description>&lt;p&gt;Thanks for the detailed well structured HOWTO. It actually helped me a lot to start compiling the kernel form my old pc.&lt;/p&gt;&lt;p&gt;I must say that I followed all the step, several times, and I do not see any problem with the steps themselves, but I have a problem with booting up with the kernel I made.&lt;/p&gt;&lt;p&gt;After I compile my kernel (2.6.31-20.57) and install it, I reboot and grub will default choose the new kernel (perfect). The boot process stop when the following error is received:&lt;br&gt;udevd [xx]: segfult .... error 6 in libc.so.6 Segmentation fault&lt;/p&gt;&lt;p&gt;I tried the compilation several times, but still with no luck. Would you please guide me if I'm missing anything or whether the new version (20.57) is not compatible with this description.&lt;/p&gt;&lt;p&gt;Note: I'm changing the configuration of the kernel with quite few things:&lt;br&gt;- Select the Configure standard kernel features (for small systems) from General Setup&lt;br&gt;- Disable Power management AND ACPI options&lt;br&gt;- Disable DMA engine support form Device Drivers&lt;br&gt;- Disable some of the Ubuntu supplied third-party device drivers&lt;/p&gt;&lt;p&gt;Once again, thanks for the super blog, and one more thanks for helping me.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">goro4111</dc:creator><pubDate>Sun, 14 Feb 2010 10:43:11 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999376</link><description>&lt;p&gt;I really want to do this and REALLY enjoyed the read. As usually, I have questions:&lt;/p&gt;&lt;p&gt;1.  There is list of drivers and modules (lsmod &amp;amp;c) that get used on my hardware. What is a good way to create a reasonably complete list so that I don't break something I use?  How do I make sure that I have all of the various parts and&lt;br&gt;back ports and extras and whatever so that everything get built completely and correctly?&lt;/p&gt;&lt;p&gt;2.  Is there a good roadmap to help match kernel config parameters with my own hardware and operational requirements?&lt;/p&gt;&lt;p&gt;Thanks,&lt;br&gt;~~~ 0;-Dan&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Saint DanBert</dc:creator><pubDate>Fri, 12 Feb 2010 23:20:30 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2720000119</link><description>&lt;p&gt;You don't have to use sudo for the su command, but in Ubuntu direct login as root is disabled (no password is set for the root user making it impossible to login in). When you type su -, you ask to login directly as root and as mentioned, this is disabled by default.&lt;/p&gt;&lt;p&gt;su --&amp;gt; login as root&lt;br&gt;sudo --&amp;gt; run as root&lt;/p&gt;&lt;p&gt;So by running sudo su -, you basically trick the system, you run su as root and the systems says, ok you are root so no need to ask for a password. To show this try the following:&lt;br&gt;Open a terminal as a normal user and run su - &amp;lt;youruser&amp;gt; you will be prompted for a password. Now become root and run su - &amp;lt;youruser&amp;gt; no password is required.&lt;/p&gt;&lt;p&gt;Using sudo -i brings environment variables DISPLAY and TERM into the root shell from the user that executes the command and adds the environment variables SUDO_USER and SUDO_UID. In general that is not that big of deal, in our case we could use sudo -i instead of sudo su -.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Fri, 12 Feb 2010 19:38:57 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999375</link><description>&lt;p&gt;I notice that you type "sudo  su -" before you perform a series of apt-get commands The "su -" uses set -user to start a login shell ( '-' ) as superuser. This is redundant on a couple of levels. First, one does not to be super user to run "su".&lt;br&gt;Using "sudo -i"  uses the super-user-do command as an interactive shell ( '-i' ). Likewise, "sudo -b" runs the command as a background task.Check out the sudo man-page for details.&lt;/p&gt;&lt;p&gt;If there is a difference between "su -" and "sudo -i" I have not found any operational reason. I prefer and recommend "sudo -" because there is logging whereas "su -" has none.&lt;/p&gt;&lt;p&gt;Another man's thoughts,&lt;br&gt;~~~ 0;-Dan&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Saint DanBert</dc:creator><pubDate>Fri, 12 Feb 2010 18:32:58 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2720000116</link><description>&lt;p&gt;If you want to change the configuration I do believe you'll have to compile the kernel all over again.&lt;br&gt;By recompiling you won't have conflicts, what you could do to keep track of your configurations is make backups of every configuration under a different name.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Sun, 07 Feb 2010 18:12:02 -0000</pubDate></item><item><title>Re: How to compile a kernel for Ubuntu Karmic</title><link>http://blog.avirtualhome.com/how-to-compile-a-kernel-for-ubuntu-karmic/#comment-2719999373</link><description>&lt;p&gt;Thank you for this good article. I was able to compile my own kernel with your help.&lt;/p&gt;&lt;p&gt;How would be the workflow for compiling several versions of the kernel with different configurations? I want to change the configuration frequently (for finding out what's good and what is not) without recompiling everything and without conflicts in the package manager or elsewhere. Would be nice if you could help me with that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris</dc:creator><pubDate>Sun, 07 Feb 2010 02:05:43 -0000</pubDate></item></channel></rss>