Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
linux-dopx:/usr/src/linux-3.2.1 # make install
scripts/kconfig/conf --silentoldconfig Kconfig
sh /usr/src/linux-3.2.1/arch/x86/boot/install.sh 3.2.1-12-desktop arch/x86/boot/bzImage \
System.map "/boot"
You may need to create an initial ramdisk now.
Code:
linux-dopx:/boot # mkinitrd initrd-3.2.1-12-desktop.img 3.2.1-12-desktop
Kernel image: /boot/vmlinuz-2.6.34-12-desktop
Initrd image: /boot/initrd-2.6.34-12-desktop
Kernel Modules: <not available>
Could not find map initrd-3.2.1-12-desktop.img/boot/System.map, please specify a correct file with -M.
There was an error generating the initrd (9)
See the error during mkinitrd command. What's the point that I am missing?
What does this indicate? Kernel Modules: <not available>
This is easy on Slackware, running the script /usr/share/mkinitrd/mkinitrd_command_generator.sh gives you the command to run to create an initrd. It's another bit of Alien Bob's magic.
SOLVED:
The reason for these errors was that I was trying to make an initrd image before running make modules_install. So, now I ran make modules_install and initrd image got automatically created in /boot.
CONCLUSION:
On Kernel 3 onwards we don't have to create an initrd image, it gets created automatically after make modules_install.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.