Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
I am building a distro based in debian. But I'm having problems with
load linux.
I made a rootfs, I compiled the kernel, and I installed GRUB on CF.
But when kernel is loading it gave a string:
modprobe: FATAL: Could not load /lib/modules/<version>/modules.dep: No such file or directory
But the path is in rootfs.
I follow the steps to compile kernel:
sudo make menuconfig
sudo make
sudo make modules_install
sudo cp .config /boot/config-2.6.27.9-vortex86dx
sudo cp System.map /boot/System.map-2.6.27.9-vortex86dx
sudo cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.27.9
mkinitramfs -o /boot/initrd.img-2.6.27.9-vortex86dx 2.6.27.9-vortex86dx
After this I installed the GRUB and cofig the menu.lst like that:
default 0
timeout 5
title LINUX
root (hd0,1)
kernel (hd0,0)/boot/vmlinuz-2.6.27.9 root=/dev/hdc2 ro vga=792
initrd (hd0,0)/boot/initrd.img-2.6.27.9-vortex86dx
quiet
Now I dont know if the problem is in the configuration GRUB
or something wrong in the command mkinitramfs.
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,540
Does the directory /usr/lib/modules/2.6.27.9-vortex86dx exist when the system is booting up? That's where the modules.dep file has to reside, along with a lot of other cruft.
__________________
Sometimes, real fast is almost as good as real time.
Actually, I dont know how to use mkinitramfs.
I run mkinitramfs -o /boot/initrd.img-2.6.27.9-vortex86dx 2.6.27.9-vortex86dx
but he used the conf of my host(ubuntu). So searching in "/lib/modules/2.6.28-13-generic/modules.dep".
How do I create a initrd for my distro?
I elaborate a Root File System and put on partition different of the boot partition.
When the Linux finishes it search a init program, but it could because didn't load the modules of kernel. ( it is right ? ).
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe