{"id":21,"date":"2006-12-06T16:11:00","date_gmt":"2006-12-06T23:11:00","guid":{"rendered":"http:\/\/blog.brandonking.net\/?p=21"},"modified":"2006-12-06T16:11:00","modified_gmt":"2006-12-06T23:11:00","slug":"custom-debian-linux-kernel-debian-package-w-initrd","status":"publish","type":"post","link":"https:\/\/brandonking.net\/blog\/2006\/12\/06\/custom-debian-linux-kernel-debian-package-w-initrd\/","title":{"rendered":"Custom Debian Linux Kernel Debian package w\/ initrd"},"content":{"rendered":"<p>My attempt to build a new <span style=\"font-weight: bold;\">Debian Linux Kernel<\/span> was thwarted by initrd! Thanks to <a href=\"http:\/\/alienghic.livejournal.com\/\">Diane Trout<\/a> mentioning that when using <span style=\"font-weight: bold;\">make-kpkg<\/span>, to build a kernel image, doesn&#8217;t automatically make an initrd image. I investigated further and found out if you use <span style=\"font-weight: bold;\">&#8211;initrd<\/span>, it will automatically generate the initrd image.<\/p>\n<p>Below are the instructions for building a custom Debian Linux Kernel Debian package:<\/p>\n<p>1) Install the following Debian packages (Need access to Universe repository for Ubuntu):<\/p>\n<ul>\n<li>kernel-package<\/li>\n<li>initrd-tools<\/li>\n<\/ul>\n<p>2) Get the kernel source (choose version, I used 2.6.17):<\/p>\n<p>apt-get install linux-source-2.6.17<\/p>\n<p>3) Decompress \/usr\/src\/linux-source-2.6.17.tar.bz2<\/p>\n<p>4) cd \/usr\/src\/linux-source-2.6.17<\/p>\n<p>5) Switch to root if you haven&#8217;t done so already (sudo -s)<\/p>\n<p>6) type &#8216;make menuconfig&#8217; to configure your kernel<\/p>\n<p>It may require installing libncurses5 and libcurses5-dev.<\/p>\n<p>7) type &#8216;make-kpkg &#8211;revision 1.0 &#8211;append-to-version -custom &#8211;initrd kernel_image&#8217;<\/p>\n<p>Feel free to change the revision number or and use something other than custom (or omit &#8211;revision and &#8211;append-to-version to use defaults).<\/p>\n<p>8) type &#8216;cd ..&#8217;<\/p>\n<p>9) dpkg &#8211;install linux-image-2.6.17-custom_1.0_amd64.deb<\/p>\n<p>Except using the .deb package name which was generated on your computer.<\/p>\n<p>10) Reboot and enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My attempt to build a new Debian Linux Kernel was thwarted by initrd! Thanks to Diane Trout mentioning that when using make-kpkg, to build a kernel image, doesn&#8217;t automatically make an initrd image. I investigated further and found out if you use &#8211;initrd, it will automatically generate the initrd image. Below are the instructions for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,15,4],"tags":[26,28,40,91],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-computers_it","category-error-fixes","category-linux-it","tag-debian","tag-debian-package","tag-kernel","tag-linux-it"],"_links":{"self":[{"href":"https:\/\/brandonking.net\/blog\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brandonking.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brandonking.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brandonking.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/brandonking.net\/blog\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":0,"href":"https:\/\/brandonking.net\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"wp:attachment":[{"href":"https:\/\/brandonking.net\/blog\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brandonking.net\/blog\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brandonking.net\/blog\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}