{"id":52,"date":"2016-09-26T17:32:18","date_gmt":"2016-09-26T17:32:18","guid":{"rendered":"https:\/\/netadmintools.com\/?p=52"},"modified":"2016-10-03T01:56:29","modified_gmt":"2016-10-03T01:56:29","slug":"kernel-recompile","status":"publish","type":"post","link":"https:\/\/www.netadmintools.com\/kernel-recompile\/","title":{"rendered":"Kernel recompile"},"content":{"rendered":"<p>Before you do anything else, make sure you have a way to boot the OS.\u00a0 Make a bootdisk and test it.<\/p>\n<p>Get the source for the kernel and put it in <tt>\/usr\/src<\/tt>.<br \/>\n<tt>cd \/usr\/src<\/tt><br \/>\n<tt>tar -xzf &lt;kernel source file name&gt;<\/tt><br \/>\nThe kernel source lives in <tt>\/usr\/src\/linux<\/tt>.\u00a0 Linux is usually a symbolic link to the source tree.\u00a0 <tt>ls -l<\/tt> will show this.\u00a0 You can&#8217;t get into too much trouble here, but it can get kind of untidy if you don&#8217;t do this right. If you are upgrading, copy the .config file from your old Linux source tree to the new one, and type <tt>make oldconfig<\/tt><br \/>\nFrom X Windows, type <tt>make xconfig<\/tt><br \/>\nFrom a console, type <tt>make config<\/tt> or <tt>make menuconfig<\/tt><br \/>\nSelect your options and save the configuration.\u00a0 The configuration is saved in the file <tt>.config<\/tt> in <tt>\/usr\/src\/linux<\/tt>.\u00a0 You might want to copy this to a floppy or something.<br \/>\nOur sequence from here is:<br \/>\n<tt>make dep<\/tt><br \/>\n<tt>make clean<\/tt><br \/>\n<tt>make bzImage<\/tt><br \/>\n<tt>make modules<\/tt><br \/>\n<tt>make modules_install<\/tt><br \/>\n<tt>make bzdisk<\/tt><tt><\/tt><\/p>\n<p>This sequence will compile the kernel and modules.\u00a0 For the last command, make sure you have a blank floppy in the drive so you can copy the kernel to it. If you like you can type:<br \/>\n<tt>make dep clean bzImage modules modules_install<\/tt><\/p>\n<p>Copy System.map (\/usr\/src\/linux\/System.map) and the kernel (\/usr\/src\/linux\/arch\/i386\/boot\/bzImage) to \/boot (or wherever your lilo.conf file points to). And make sure your symbolic links are OK. We (as well as most) make a symbolic link:<br \/>\n<tt>ln -s vmlinuz-2.4.1 vmlinuz<\/tt><br \/>\n<tt>ln -s System.map-2.4.1 System.map<\/tt><br \/>\nWe then can leave our lilo.conf file pointing at \/boot\/vmlinuz. It is also wise to copy the image section in lilo.conf and create another label, linuxold for example, and use the previous known good kernel as the image. When you reboot, you can select the old kernel if you have problems with the new one. <b>After you are done editing lilo.conf, run \/sbin\/lilo<\/b>. If there are problems with your configuration, links, etc., the output of lilo may clue you in. After you have run lilo, reboot your system and type <tt>dmesg | less<\/tt> to check out how your kernel booted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before you do anything else, make sure you have a way to boot the OS.\u00a0 Make a bootdisk and test it. Get the source for the kernel and put it in \/usr\/src. cd \/usr\/src tar -xzf &lt;kernel source file name&gt; The kernel source lives in \/usr\/src\/linux.\u00a0 Linux is usually a symbolic link to the source [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[],"class_list":{"0":"post-52","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-gnu-linux","7":"entry"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Kernel recompile - Network Admin Tools<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.netadmintools.com\/art10.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Kernel recompile - Network Admin Tools\" \/>\n<meta property=\"og:description\" content=\"Before you do anything else, make sure you have a way to boot the OS.\u00a0 Make a bootdisk and test it. Get the source for the kernel and put it in \/usr\/src. cd \/usr\/src tar -xzf &lt;kernel source file name&gt; The kernel source lives in \/usr\/src\/linux.\u00a0 Linux is usually a symbolic link to the source [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.netadmintools.com\/art10.html\" \/>\n<meta property=\"og:site_name\" content=\"Network Admin Tools\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-26T17:32:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-10-03T01:56:29+00:00\" \/>\n<meta name=\"author\" content=\"Paul Anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Paul_AndersonNA\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Anderson\" \/>\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:\\\/\\\/www.netadmintools.com\\\/art10.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.netadmintools.com\\\/art10.html\"},\"author\":{\"name\":\"Paul Anderson\",\"@id\":\"https:\\\/\\\/www.netadmintools.com\\\/#\\\/schema\\\/person\\\/eee9a07392c4bee0964628c706e86a7f\"},\"headline\":\"Kernel recompile\",\"datePublished\":\"2016-09-26T17:32:18+00:00\",\"dateModified\":\"2016-10-03T00:00:00+0000\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.netadmintools.com\\\/art10.html\"},\"wordCount\":379,\"articleSection\":[\"GNU\\\/Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.netadmintools.com\\\/art10.html\",\"url\":\"https:\\\/\\\/www.netadmintools.com\\\/art10.html\",\"name\":\"Kernel recompile - Network Admin Tools\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.netadmintools.com\\\/#website\"},\"datePublished\":\"2016-09-26T17:32:18+00:00\",\"dateModified\":\"2016-10-03T01:56:29+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.netadmintools.com\\\/#\\\/schema\\\/person\\\/eee9a07392c4bee0964628c706e86a7f\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.netadmintools.com\\\/art10.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.netadmintools.com\\\/art10.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.netadmintools.com\\\/art10.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.netadmintools.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kernel recompile\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.netadmintools.com\\\/#website\",\"url\":\"https:\\\/\\\/www.netadmintools.com\\\/\",\"name\":\"Network Admin Tools\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.netadmintools.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.netadmintools.com\\\/#\\\/schema\\\/person\\\/eee9a07392c4bee0964628c706e86a7f\",\"name\":\"Paul Anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/cdn.netadmintools.com\\\/wp-content\\\/uploads\\\/paul-anderson-150x150.jpg\",\"url\":\"https:\\\/\\\/cdn.netadmintools.com\\\/wp-content\\\/uploads\\\/paul-anderson-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.netadmintools.com\\\/wp-content\\\/uploads\\\/paul-anderson-150x150.jpg\",\"caption\":\"Paul Anderson\"},\"description\":\"Paul is an Avid Tech Geek who Loves writing, Cycling and All Things Linux! He comes from a Background of Windows Administration along with Ubuntu\\\/Centos Server administration. Paul holds industry wide certifications include CompTIA & Microsoft Accredited certifications.\",\"sameAs\":[\"https:\\\/\\\/www.netadmintools.com\\\/author\\\/editor\\\/\",\"https:\\\/\\\/x.com\\\/Paul_AndersonNA\"],\"url\":\"https:\\\/\\\/www.netadmintools.com\\\/author\\\/editor\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Kernel recompile - Network Admin Tools","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:\/\/www.netadmintools.com\/art10.html","og_locale":"en_US","og_type":"article","og_title":"Kernel recompile - Network Admin Tools","og_description":"Before you do anything else, make sure you have a way to boot the OS.\u00a0 Make a bootdisk and test it. Get the source for the kernel and put it in \/usr\/src. cd \/usr\/src tar -xzf &lt;kernel source file name&gt; The kernel source lives in \/usr\/src\/linux.\u00a0 Linux is usually a symbolic link to the source [&hellip;]","og_url":"https:\/\/www.netadmintools.com\/art10.html","og_site_name":"Network Admin Tools","article_published_time":"2016-09-26T17:32:18+00:00","article_modified_time":"2016-10-03T01:56:29+00:00","author":"Paul Anderson","twitter_card":"summary_large_image","twitter_creator":"@Paul_AndersonNA","twitter_misc":{"Written by":"Paul Anderson","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.netadmintools.com\/art10.html#article","isPartOf":{"@id":"https:\/\/www.netadmintools.com\/art10.html"},"author":{"name":"Paul Anderson","@id":"https:\/\/www.netadmintools.com\/#\/schema\/person\/eee9a07392c4bee0964628c706e86a7f"},"headline":"Kernel recompile","datePublished":"2016-09-26T17:32:18+00:00","dateModified":"2016-10-03T00:00:00+0000","mainEntityOfPage":{"@id":"https:\/\/www.netadmintools.com\/art10.html"},"wordCount":379,"articleSection":["GNU\/Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.netadmintools.com\/art10.html","url":"https:\/\/www.netadmintools.com\/art10.html","name":"Kernel recompile - Network Admin Tools","isPartOf":{"@id":"https:\/\/www.netadmintools.com\/#website"},"datePublished":"2016-09-26T17:32:18+00:00","dateModified":"2016-10-03T01:56:29+00:00","author":{"@id":"https:\/\/www.netadmintools.com\/#\/schema\/person\/eee9a07392c4bee0964628c706e86a7f"},"breadcrumb":{"@id":"https:\/\/www.netadmintools.com\/art10.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.netadmintools.com\/art10.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.netadmintools.com\/art10.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.netadmintools.com\/"},{"@type":"ListItem","position":2,"name":"Kernel recompile"}]},{"@type":"WebSite","@id":"https:\/\/www.netadmintools.com\/#website","url":"https:\/\/www.netadmintools.com\/","name":"Network Admin Tools","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.netadmintools.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.netadmintools.com\/#\/schema\/person\/eee9a07392c4bee0964628c706e86a7f","name":"Paul Anderson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cdn.netadmintools.com\/wp-content\/uploads\/paul-anderson-150x150.jpg","url":"https:\/\/cdn.netadmintools.com\/wp-content\/uploads\/paul-anderson-150x150.jpg","contentUrl":"https:\/\/cdn.netadmintools.com\/wp-content\/uploads\/paul-anderson-150x150.jpg","caption":"Paul Anderson"},"description":"Paul is an Avid Tech Geek who Loves writing, Cycling and All Things Linux! He comes from a Background of Windows Administration along with Ubuntu\/Centos Server administration. Paul holds industry wide certifications include CompTIA & Microsoft Accredited certifications.","sameAs":["https:\/\/www.netadmintools.com\/author\/editor\/","https:\/\/x.com\/Paul_AndersonNA"],"url":"https:\/\/www.netadmintools.com\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.netadmintools.com\/wp-json\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.netadmintools.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netadmintools.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netadmintools.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netadmintools.com\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":1,"href":"https:\/\/www.netadmintools.com\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":53,"href":"https:\/\/www.netadmintools.com\/wp-json\/wp\/v2\/posts\/52\/revisions\/53"}],"wp:attachment":[{"href":"https:\/\/www.netadmintools.com\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netadmintools.com\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netadmintools.com\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}