{"id":463,"date":"2010-01-07T10:47:48","date_gmt":"2010-01-07T10:47:48","guid":{"rendered":"http:\/\/www.codingfriends.com\/?p=463"},"modified":"2010-01-07T10:50:26","modified_gmt":"2010-01-07T10:50:26","slug":"compile-a-kubuntu-kernel","status":"publish","type":"post","link":"https:\/\/www.codingfriends.com\/index.php\/2010\/01\/07\/compile-a-kubuntu-kernel\/","title":{"rendered":"Compile a k\/ubuntu kernel"},"content":{"rendered":"<p>Because of the issues that I have had with a 4GB of RAM and the nvidia onboard graphics trying to grab memory where the system RAM was placed.  The nvidia onboard graphics was told to grab the memory from 0xb0000000 &#8211; 0xbfffffff because that was where the ACER BIOS was telling it where to go!!. (<a href=\"http:\/\/www.codingfriends.com\/index.php\/2009\/10\/18\/4gb-32bit-northbridge-bar1-error\/\">Here<\/a> for more details)<\/p>\n<p>Anyway, because of this, I am having to compile up the linux kernel ubuntu style.  I am using 9.10 <a href=\"http:\/\/www.kubuntu.org\/\">kubuntu<\/a> at present.<\/p>\n<p>I have used this ubuntu guide on how to compile up a linux kernel from this ubuntu website, <a href=\"https:\/\/help.ubuntu.com\/community\/Kernel\/Compile\">kernel\/compile<\/a>. <\/p>\n<p>The main parts that I have run are, (I am not using sudo because I setup the root password so that I do not have to type in sudo all of the time, I setup the root password by sudo passwd root)<\/p>\n<pre lang=\"bash\">\r\ncd \/usr\/src\/\r\napt-get install fakeroot kernel-wedge build-essential makedumpfile\r\n\r\napt-get build-dep linux\r\n\r\napt-get build-dep linux-image-$(uname -r)\r\napt-get source linux-image-$(uname -r)\r\n\r\ndebian\/rules updateconfigs\r\n\r\ncd debian.master\/scripts\/misc \r\nchmod a+x *\r\ncd -\r\ndebian\/rules updateconfigs\r\n<\/pre>\n<p>I go into the \/usr\/src, because when you get the apt-get source of a the latest linux-image it places the files within the present directory that you are using and usually the linux kernel source files are placed in \/usr\/src.<\/p>\n<p>The reason for the chmod a+x * is because some of the debian(.master)\/scripts\/misc need to be updated to have there execute permissions granted.<\/p>\n<p>Make some changes to the kernel files, in my case the arch\/x86\/pci\/i386.c file.  Then to compile up the kernel<\/p>\n<pre lang=\"bash\">\r\nfakeroot debian\/rules clean\r\nCONCURRENCY_LEVEL=2 AUTOBUILD=1 NOEXTRAS=1 fakeroot debian\/rules binary-generic\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Because of the issues that I have had with a 4GB of RAM and the nvidia onboard graphics trying to grab memory where the system RAM was placed. The nvidia onboard graphics was told to grab the memory from 0xb0000000 &#8211; 0xbfffffff because that was where the ACER BIOS was telling it where to go!!. &hellip; <a href=\"https:\/\/www.codingfriends.com\/index.php\/2010\/01\/07\/compile-a-kubuntu-kernel\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Compile a k\/ubuntu kernel<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,37],"tags":[43],"class_list":["post-463","post","type-post","status-publish","format-standard","hentry","category-linux","category-linux_install_configure","tag-kernel"],"_links":{"self":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/comments?post=463"}],"version-history":[{"count":4,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/463\/revisions"}],"predecessor-version":[{"id":466,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/463\/revisions\/466"}],"wp:attachment":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/media?parent=463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/categories?post=463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/tags?post=463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}