You are not logged in.
Alright so I am compiling my own kernel and have been following the wiki here, https://wiki.archlinux.org/index.php/Ke … l_RAM_disk and I am stuck at that part, making a ramdisk for the kernel. The step before that, which was to copy bzimage to /boot and rename it the kernel name worked successfully. I am confused by the command the wiki gives me,
mkinitcpio -k FullKernelName -c /etc/mkinitcpio.conf -g /boot/initramfs-YourKernelName.imgwhat do I replace FullKernelName with? I tried running
mkinitcpio -k FullKernelName -c /etc/mkinitcpio.conf -g /boot/initramfs-vmlinuz-3.18.0-ARCH2just for the hell of it and I get
==> ERROR: '/lib/modules/FullKernelName' is not a valid kernel module directorywhich is correct, as I dont have a file named FullKernelName however in my lib/modules directory I don't have any file for the kernel or anything. Did I do something wrong when compiling?
Last edited by altiris (2015-02-20 23:02:27)
Offline
Look into your current /lib/modules/ for hints.
Offline
Look into your current /lib/modules/ for hints.
Uh actually, I think I forgot to write that I dont even have a modules folder in /lib how is that possible....I ran all of the commands
Offline
What was the output of
make modules_install"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline
what do I replace FullKernelName with?
Run the following command in the directory in which you built your kernel:
$make kernelreleaseThe result should be your FullKernelName.
Regards,
Offline
Heh I am funny. I thought by /lib/modules it was referring to that in my kernelbuild directory but it was referring to root. I will just do everything from scratch and re-try.
EDIT: Got it now its working
I think a little note should be added that mkinitcpio is referring to the root /lib/modules although maybe I just wasn't noticing that it had / and not lib/modules
Last edited by altiris (2015-02-19 23:19:57)
Offline
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline