problem compiling new kernel
Hi to Everyone, With my old SARGE system, as stated here last week, I was unable to boot newly compiled kernels, most likely because of the faulty initrd.img that I got using 'mkinitrd'. For this reason, I decided to install Lenny. 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. Thanks in advance for your help P.S. I did find a doc about some related subjects in the /Documentation directory of the downloaded kernel... but it was so old and obsolete that it was useless, dated 1998 and mentioning only lilo, not grub... this in a recent kernel doc (2008-2009) ! -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: problem compiling new kernel
bdebreil 写道: Hi to Everyone, With my old SARGE system, as stated here last week, I was unable to boot newly compiled kernels, most likely because of the faulty initrd.img that I got using 'mkinitrd'. For this reason, I decided to install Lenny. 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. Thanks in advance for your help P.S. I did find a doc about some related subjects in the /Documentation directory of the downloaded kernel... but it was so old and obsolete that it was useless, dated 1998 and mentioning only lilo, not grub... this in a recent kernel doc (2008-2009) ! 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. Good luck. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: problem compiling new kernel
On Fri, 28 Aug 2009 19:07:45 +0800 Niu Kun haoniu...@gmail.com 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-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: problem compiling new kernel
On Fri, Aug 28 2009, Celejar wrote: 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/ You might also want to clean things up: cp /usr/share/doc/kernel-package/examples/etc/kernel/postrm.d/initramfs \ /etc/kernel/postrm.d/ This clean up files created in the postinst. manoj -- Now here's something you're really going to like! Rocket J. Squirrel Manoj Srivastava sriva...@acm.org http://www.golden-gryphon.com/ 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org