Featured Posts

SciPy 2008 - Software & Tools STATUS: Day 1 - Thursday: Concluded. Day 2 - Friday: In progress. Astronomy: Enzo [ home ] yt (related to Enzo) [ home | scipy ] Books: Computational Modeling and Complexity Science...


An example of checking out a git tag using Qt 4.6.0... Clone the Qt repository: $ git clone git://gitorious.org/qt/qt.git Show available tags: $ git tag -l output: v4.5.1 v4.5.2 v4.5.3 v4.6.0 v4.6.0-beta1 v4.6.0-rc1 v4.6.0-tp1 Checkout v4.6.0: $...


Building 64-bit/32-bit Debug&Release Universal Build... See my directions on checking out Qt 4.6.0 from the git repository if you do not already have the source code. Launch a Terminal and cd to the source directory. Run configure w/ 64-bit & 32-bit...


  • Prev
  • Next

Custom Debian Linux Kernel Debian package w/ initrd

Posted on : 06-12-2006 | By : Brandon W. King | In : Computers/IT, Error Fixes, Linux

Tags: , , ,


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’t automatically make an initrd image. I investigated further and found out if you use –initrd, it will automatically generate the initrd image.

Below are the instructions for building a custom Debian Linux Kernel Debian package:

1) Install the following Debian packages (Need access to Universe repository for Ubuntu):

  • kernel-package
  • initrd-tools

2) Get the kernel source (choose version, I used 2.6.17):

apt-get install linux-source-2.6.17

3) Decompress /usr/src/linux-source-2.6.17.tar.bz2

4) cd /usr/src/linux-source-2.6.17

5) Switch to root if you haven’t done so already (sudo -s)

6) type ‘make menuconfig’ to configure your kernel

It may require installing libncurses5 and libcurses5-dev.

7) type ‘make-kpkg –revision 1.0 –append-to-version -custom –initrd kernel_image’

Feel free to change the revision number or and use something other than custom (or omit –revision and –append-to-version to use defaults).

8) type ‘cd ..’

9) dpkg –install linux-image-2.6.17-custom_1.0_amd64.deb

Except using the .deb package name which was generated on your computer.

10) Reboot and enjoy!

Write a comment