{"id":91,"date":"2009-04-28T20:17:52","date_gmt":"2009-04-28T14:32:52","guid":{"rendered":"http:\/\/www.sparksupport.com\/blog\/?p=91"},"modified":"2024-07-01T12:30:39","modified_gmt":"2024-07-01T12:30:39","slug":"kernel-26-compile-steps","status":"publish","type":"post","link":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/","title":{"rendered":"kernel 2.6 compile steps"},"content":{"rendered":"<p>I decided to compile my own kernel 2.6 compile steps for my centos. Here are the steps I have followed and which worked without any errors.<\/p>\n<p>Goto kernel.org for the list of kernel source available<\/p>\n<pre><code>http:\/\/kernel.org\/pub\/linux\/kernel\/v2.6\/ <\/code><\/pre>\n<p>Download the one you like to the directory \/usr\/src<\/p>\n<p>If you are using wget and by chance you got disconnected and if you wanted to continue from the last point you stopped use the command with -c option<\/p>\n<pre><code>wget -c [kernelsourceurl]<\/code><\/pre>\n<p>You can also apply the patch which can be downloaded from this Index page of kernel source. Applying patch is little bit tricky, another interesting thing I noticed is the revert function if you have already applied the patch, here are the steps<\/p>\n<p>normally patch comes in bzip or gzip format, use the command bunzip2 or gunzip to extract the patch you can also do without extracting it but lets do it straight. First goto the extracted source directory of the kernel<\/p>\n<p>\/usr\/src\/kernel-2.6<\/p>\n<pre><code>patch -p1 &lt; ...\/patch-2.6  #this ..\/patch-2.6 is the exact path of patch file <\/code><\/pre>\n<p>and in order revert the patch use the command<\/p>\n<pre><code>patch -R -p1 &lt; ..\/patch-2.6<\/code><\/pre>\n<p>Now start the steps for compilation<\/p>\n<pre><code>\r\nmake menuconfig #select the options you want\r\nmake\r\nmake_modules\r\nmake install      #this will ensure that bzImage is copied, initrd image is made and the grub.conf is edited.<\/code><\/pre>\n<p>In order to boot the new kernel you need to edit default=0 in grub.conf but since you are unsure that it will work or not you can do a workaround to boot your compiled only once, that means in the next boot if the compiled kernel didn&#8217;t comes up you again do a reboot and then the previous kernel will be loaded.<\/p>\n<p>Issue following commands<\/p>\n<pre><code>grub --no-floppy<\/code><\/pre>\n<p>and at the grub prompt<\/p>\n<pre><code>grub&gt;savedefault --default=0 --once<\/code><\/pre>\n<p>If the new kernel boots up without any error you can edit the grub.conf to make this new kernel as the default one permanently.<\/p>\n<p>Are you looking to <a href=\"https:\/\/sparksupport.com\/devops-consulting-service\/\">HIRE REMOTE LINUX ENGINEER<\/a> to solve kernel 2.6 compile steps?<\/p>\n<p><span class=\"word\">We\u00a0<\/span><span class=\"word\">provide\u00a0<\/span><span class=\"word\">you\u00a0<\/span><span class=\"word\">with\u00a0<\/span><span class=\"word\">professional\u00a0<\/span><span class=\"word\">developers\u00a0<\/span><span class=\"word\">based\u00a0<\/span><span class=\"word\">on\u00a0<\/span><span class=\"word\">your\u00a0<\/span><span class=\"word\">requirements.\u00a0<\/span><span class=\"word\">Our\u00a0<\/span><span class=\"word\">team\u00a0<\/span><span class=\"word\">of\u00a0<\/span><span class=\"word\">Linux\u00a0<\/span><span class=\"word\">developers\u00a0<\/span><span class=\"word\">are\u00a0<\/span><span class=\"word\">experienced\u00a0<\/span><span class=\"word\">in\u00a0<\/span><span class=\"word\">providing\u00a0<\/span><span class=\"word\">a\u00a0<\/span><span class=\"word\">lot\u00a0<\/span><span class=\"word\">of\u00a0<\/span><span class=\"word\">useful\u00a0<\/span><span class=\"word\">and\u00a0<\/span><span class=\"word\">exciting\u00a0<\/span><span class=\"word\">ideas\u00a0<\/span><span class=\"word\">to\u00a0<\/span><span class=\"word\">users\u00a0<\/span><span class=\"word\">across\u00a0<\/span><span class=\"word\">the\u00a0<\/span><span class=\"word\">globe\u00a0<\/span><span class=\"word\">at\u00a0<\/span><span class=\"word\">a\u00a0<\/span><span class=\"word\">very\u00a0<\/span><span class=\"word\">affordable\u00a0<\/span><span class=\"word\">rate\u00a0<\/span><span class=\"word\">with\u00a0<\/span><span class=\"word\">high\u00a0<\/span><span class=\"word\">quality\u00a0<\/span><span class=\"word\">services\u00a0<\/span><span class=\"word\">for\u00a0<\/span><span class=\"word\">more\u00a0<\/span><span class=\"word\">information\u00a0<\/span><span class=\"word\">visit\u00a0<\/span><span class=\"word\">us\u00a0<\/span><a href=\"https:\/\/www.sparksupport.com\/\"><span class=\"word\">www.sparksupport.com<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I decided to compile my own kernel 2.6 compile steps for my centos. Here are the steps I have followed and which worked without any<\/p>\n","protected":false},"author":3,"featured_media":5119,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[10,6],"tags":[50,51],"class_list":["post-91","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","category-linux","tag-kernel-26-compilation","tag-savedefault-once-grub"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>kernel 2.6 compile steps - step-by-step commands<\/title>\n<meta name=\"description\" content=\"Kernel 2.6 Compile Steps needs to know a few things, and commands. We share step-by-step commands that include compiling a version of the Linux kernel.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"kernel 2.6 compile steps - step-by-step commands\" \/>\n<meta property=\"og:description\" content=\"Kernel 2.6 Compile Steps needs to know a few things, and commands. We share step-by-step commands that include compiling a version of the Linux kernel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/\" \/>\n<meta property=\"article:published_time\" content=\"2009-04-28T14:32:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-01T12:30:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2009\/04\/14.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"635\" \/>\n\t<meta property=\"og:image:height\" content=\"265\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Shijil T S\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shijil T S\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/\"},\"author\":{\"name\":\"Shijil T S\",\"@id\":\"https:\/\/sparksupport.com\/blog\/#\/schema\/person\/22359d1be71d2034f0fcfad7bb1d20e1\"},\"headline\":\"kernel 2.6 compile steps\",\"datePublished\":\"2009-04-28T14:32:52+00:00\",\"dateModified\":\"2024-07-01T12:30:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/\"},\"wordCount\":335,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2009\/04\/14.jpg\",\"keywords\":[\"kernel 2.6 compilation\",\"savedefault once grub\"],\"articleSection\":[\"general\",\"linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/\",\"url\":\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/\",\"name\":\"kernel 2.6 compile steps - step-by-step commands\",\"isPartOf\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2009\/04\/14.jpg\",\"datePublished\":\"2009-04-28T14:32:52+00:00\",\"dateModified\":\"2024-07-01T12:30:39+00:00\",\"description\":\"Kernel 2.6 Compile Steps needs to know a few things, and commands. We share step-by-step commands that include compiling a version of the Linux kernel.\",\"breadcrumb\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#primaryimage\",\"url\":\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2009\/04\/14.jpg\",\"contentUrl\":\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2009\/04\/14.jpg\",\"width\":635,\"height\":265},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/sparksupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"kernel 2.6 compile steps\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/sparksupport.com\/blog\/#website\",\"url\":\"https:\/\/sparksupport.com\/blog\/\",\"name\":\"SparkSupport Blog\",\"description\":\"SparkSupport Blogs\",\"publisher\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/sparksupport.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/sparksupport.com\/blog\/#organization\",\"name\":\"SparkSupport\",\"url\":\"https:\/\/sparksupport.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sparksupport.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2019\/08\/cropped-logo-1.jpg\",\"contentUrl\":\"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2019\/08\/cropped-logo-1.jpg\",\"width\":216,\"height\":44,\"caption\":\"SparkSupport\"},\"image\":{\"@id\":\"https:\/\/sparksupport.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/sparksupport.com\/blog\/#\/schema\/person\/22359d1be71d2034f0fcfad7bb1d20e1\",\"name\":\"Shijil T S\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/b230de1fe222ae355698bc2670ef7c4290aef391ab75b46d111dc54cb3ab0e99?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b230de1fe222ae355698bc2670ef7c4290aef391ab75b46d111dc54cb3ab0e99?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b230de1fe222ae355698bc2670ef7c4290aef391ab75b46d111dc54cb3ab0e99?s=96&d=mm&r=g\",\"caption\":\"Shijil T S\"},\"description\":\"Hi All.. I am the CEO of SparkSupport and a Certified Kubernetes Expert, passionate about delivering innovative technology solutions and helping teams achieve their best.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/shijils\/\"],\"url\":\"https:\/\/sparksupport.com\/blog\/author\/shijil\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"kernel 2.6 compile steps - step-by-step commands","description":"Kernel 2.6 Compile Steps needs to know a few things, and commands. We share step-by-step commands that include compiling a version of the Linux kernel.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/","og_locale":"en_US","og_type":"article","og_title":"kernel 2.6 compile steps - step-by-step commands","og_description":"Kernel 2.6 Compile Steps needs to know a few things, and commands. We share step-by-step commands that include compiling a version of the Linux kernel.","og_url":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/","article_published_time":"2009-04-28T14:32:52+00:00","article_modified_time":"2024-07-01T12:30:39+00:00","og_image":[{"width":635,"height":265,"url":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2009\/04\/14.jpg","type":"image\/jpeg"}],"author":"Shijil T S","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Shijil T S","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#article","isPartOf":{"@id":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/"},"author":{"name":"Shijil T S","@id":"https:\/\/sparksupport.com\/blog\/#\/schema\/person\/22359d1be71d2034f0fcfad7bb1d20e1"},"headline":"kernel 2.6 compile steps","datePublished":"2009-04-28T14:32:52+00:00","dateModified":"2024-07-01T12:30:39+00:00","mainEntityOfPage":{"@id":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/"},"wordCount":335,"commentCount":0,"publisher":{"@id":"https:\/\/sparksupport.com\/blog\/#organization"},"image":{"@id":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#primaryimage"},"thumbnailUrl":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2009\/04\/14.jpg","keywords":["kernel 2.6 compilation","savedefault once grub"],"articleSection":["general","linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/","url":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/","name":"kernel 2.6 compile steps - step-by-step commands","isPartOf":{"@id":"https:\/\/sparksupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#primaryimage"},"image":{"@id":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#primaryimage"},"thumbnailUrl":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2009\/04\/14.jpg","datePublished":"2009-04-28T14:32:52+00:00","dateModified":"2024-07-01T12:30:39+00:00","description":"Kernel 2.6 Compile Steps needs to know a few things, and commands. We share step-by-step commands that include compiling a version of the Linux kernel.","breadcrumb":{"@id":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#primaryimage","url":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2009\/04\/14.jpg","contentUrl":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2009\/04\/14.jpg","width":635,"height":265},{"@type":"BreadcrumbList","@id":"https:\/\/sparksupport.com\/blog\/kernel-26-compile-steps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sparksupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"kernel 2.6 compile steps"}]},{"@type":"WebSite","@id":"https:\/\/sparksupport.com\/blog\/#website","url":"https:\/\/sparksupport.com\/blog\/","name":"SparkSupport Blog","description":"SparkSupport Blogs","publisher":{"@id":"https:\/\/sparksupport.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sparksupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/sparksupport.com\/blog\/#organization","name":"SparkSupport","url":"https:\/\/sparksupport.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sparksupport.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2019\/08\/cropped-logo-1.jpg","contentUrl":"https:\/\/sparksupport.com\/blog\/wp-content\/uploads\/2019\/08\/cropped-logo-1.jpg","width":216,"height":44,"caption":"SparkSupport"},"image":{"@id":"https:\/\/sparksupport.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/sparksupport.com\/blog\/#\/schema\/person\/22359d1be71d2034f0fcfad7bb1d20e1","name":"Shijil T S","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b230de1fe222ae355698bc2670ef7c4290aef391ab75b46d111dc54cb3ab0e99?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b230de1fe222ae355698bc2670ef7c4290aef391ab75b46d111dc54cb3ab0e99?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b230de1fe222ae355698bc2670ef7c4290aef391ab75b46d111dc54cb3ab0e99?s=96&d=mm&r=g","caption":"Shijil T S"},"description":"Hi All.. I am the CEO of SparkSupport and a Certified Kubernetes Expert, passionate about delivering innovative technology solutions and helping teams achieve their best.","sameAs":["https:\/\/www.linkedin.com\/in\/shijils\/"],"url":"https:\/\/sparksupport.com\/blog\/author\/shijil\/"}]}},"_links":{"self":[{"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":0,"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/media\/5119"}],"wp:attachment":[{"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sparksupport.com\/blog\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}