You are not logged in.
Hi all, some days ago I wanted to compile a kernel on my system, and everything was fine but I have a simple problem.
Compile the kernel in the traditional manner, but no logo create the ramdisk image.
https://wiki.archlinux.org/index.php/Ke … raditional
Example:
cp -v arch/x86/boot/bzImage /boot/vmlinuz-NewKernel
And:
mkinitcpio -k NewKernel -g /boot/initramfs-NewKernel.img
But I get this error:
Error: unable to locate module directory for NewKernel.
What am I doing wrong?
PD:Sorry for my English
Last edited by Linpandro (2012-10-03 13:50:43)
Offline
is your kernel modularized ?
Also from the wiki :
# mkinitcpio -k FullKernelName -g /boot/initramfs-YourKernelName.img
Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github
Offline
Did you do a make modules_install?
Offline
This:
mkinitcpio -k NewKernel -g /boot/initramfs-NewKernel.img
Should be this:
mkinitcpio -k 3.x.x-RCn-NewKernel -g /boot/initramfs-NewKernel.img
To clarify, the wiki tells you to run this:
# mkinitcpio -k FullKernelName -g /boot/initramfs-YourKernelName.img
If you need any modules loaded in order to mount the root filesystem, build a ramdisk (most users need this). The -k parameter accepts the kernel version and appended string you set in menuconfig and is used to locate the corresponding modules directory in '/usr/lib/modules':
If you used the sources for, say, 3.5.4, "FullKernelName" would be 3.5.4-NewKernel.
If you're not sure about what the "FullKernelName" should be, simply check which directory was created after running modules_install
ls -l /lib/modules
This should show you something like this:
[stefan@archsteef scrub]$ ls -l /lib/modules/
total 8
drwxr-xr-x 3 root root 4096 Sep 30 01:30 3.5.4-1-ARCH
drwxr-xr-x 2 root root 4096 Sep 30 01:30 extramodules-3.5-ARCH
drwxr-xr-x 2 root root 4096 Oct 1 03:25 3.5.4-NewKernel
The directory name is the full name of your kernel and can be used after the -k flag.
p.s. this is all assuming that you used make menuconfig to set the local version name to "NewKernel"
Last edited by stefanwilkens (2012-10-03 08:15:26)
Arch i686 on Phenom X4 | GTX760
Offline
It worked, thank you very much for helping.
Offline