Re: problem compiling new kernel



On Fri, 28 Aug 2009 19:07:45 +0800
Niu Kun <haoniukun@xxxxxxxxx> wrote:

bdebreil 写道:

...

Now, with Lenny, I haven't so far been able to go any further in
recompiling usable kernels. 2.6.30.4 did compile without errors, but
then I found that I had no 'mkinitrd' on my new system. How am I to
generate an initrd.img ? I was unable to find any package that I could
install using apt-get with the name 'mkinitrd', there is no such thing
either in the cache base. However, when I installed Lenny (72 hours
ago), the install program did generate an initrd.img-2.6.26-2-686 that
is now installed in my /boot directory, and my /boot/grub/menu.lst file
does specify this file in the boot menu.

...

update-initramfs maybe the tool you are after.
Google it or man it.
It should be installed on your system. Or you can install it with
initramfs-tools.

Assuming that you're building kernel packages with kernel-package, you
may be being hit by this:

"The image postinst no longer runs the initramfs creation commands.
Instead, there are example scripts provided that will perform the task.
These scripts will work for official kernel images as well."

/usr/share/doc/NEWS.Debian.gz

Basically, the short version of what you need to do is:

cp /usr/share/doc/kernel-package/examples/etc/kernel/postinst.d/initramfs /etc/kernel/postinst.d/

[This really needs to be in a faq somewhere, if it
isn't already. It comes up frequently on the list.]

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • input method on fc3?
    ... FC3 and soundcard ... >> without problems and sound works fine. ... What modules were loaded with kernel ... I can install and configure samba on Linux as easily as I can install ...
    (Fedora)
  • Re: Looooong Horror story, 10.04.4 LTS on an amd turion 64 bit laptop version
    ... I used a procedure which installed a custom combo of kernel 3.5.7 ... which appeared to install without any gotchas. ... The update-manager finished, I had it recheck, nothing left to do ... No networking at all, usb detection of my plugging in the radio ...
    (Ubuntu)
  • Re: mkinitrd on missing list?
    ... should be able to install yaird. ... My question really attempted to see if you had considered using some other distro for your needs - like openSUSE where everything you need to compile your own kernel is most readily available by simply ticking a box or two to have the necessary files installed (like kernel-source, mkinitrd, etc etc etc). ...
    (Ubuntu)
  • Re: 2.6.16-1.2080_FC5 kernel panic (nv raid0, 86_64 architecture)
    ... is but whether its the kernel or dmraid I never found out. ... Having raid1 I was able to boot off 1 of the raid disks and ended up ... The thread you reference is exactly what I experienced trying to install ... the solution that was suggested in the thread, mkinitrd is updated using ...
    (Fedora)
  • Fedora Core 2, Averatec 3220 notebook
    ... I recently bought an Averatec 3220 notebook computer and have spent some ... Following is a detailed "howto" guide for installing Linux (Fedora Core ... Linux distro, which is easy to install and use, and for lots of answers ... We need one because the default Fedora Core kernel doesn't grok NTFS ...
    (Fedora)