You are not logged in.
Pages: 1
I have some experience with Ubuntu, but I'm new to Arch. My old setup used to have a few kernels that I could switch with a quick reboot back into my regular system and I'm trying to do this with Arch, now that I have all the packages set up the way I want them. I compiled a RT kernel with 3.10.9.
The first problem comes when I run the mkinitcpio command:
sudo mkinitcpio -g /boot/linux.img -k 3.10.9-rt5
It shows this error:
Warning: No modules were added to the image. This is probably not what you want.
When I run the command below the error does not show.
sudo mkinitcpio -p linux
However, when I update GRUB and reboot I get a command prompt preceeded by these messages.
mount: unknown filesystem type 'devtemps'
error: device 'uuid=2dbd3aaf-0aca-42ca-a764-afcf502f98b7' not found. skipping fsck
error: unable to find root device 'uuid=2dbd3aaf-0aca-42ca-a764-afcf502f98b7'
Offline
Did you make modules_install prior to trying to generate the initrd?
Offline
How did you install your custom kernel, with pacman or by hand?
Offline
Did you make modules_install prior to trying to generate the initrd?
Yes, I did make_modules immediately after compiling and it showed about half a dozen modules being created. Although when I was troubleshooting I found a post that described the command to list the modules in the kernel and it didn't return anything.
How did you install your custom kernel, with pacman or by hand?
I used the kernel building interface with make menuconfig to build the kernel.
Offline
Half-a-dozen? Did you compile everything else into the kernel? If there are (almost) no modules, mkinitcpio's response is clearly correct.
Also, I'd recommend building packages for your custom kernels, so that pacman can manage them for you. The wiki has the details.
Offline
Half-a-dozen? Did you compile everything else into the kernel? If there are (almost) no modules, mkinitcpio's response is clearly correct.
Also, I'd recommend building packages for your custom kernels, so that pacman can manage them for you. The wiki has the details.
Thank you for the suggestion. I will try building the kernel into a package
I don't follow about the mkinitcpio response being correct. Even if there are half a dozen modules, shouldn't those be built into the image?
Offline
@forken - One of Arch's strengths is the simplicity that is makepkg and pacman. Read the wiki on makepkg and the AUR if you haven't yet. Building by hand can be done... but why
I recommend that you either adapt a current PKGBUILD for your kernel or use the linux-rt package in the AUR.
Current PKGBUILD of main kernel: https://projects.archlinux.org/svntogit … ages/linux
AUR: https://aur.archlinux.org/packages/linux-rt/
Note that you can build any package in the official repo from ABS and modify it to your liking (the ARCH kernel + whatever patchsets interest you for example).
Welcome to Arch.
Last edited by graysky (2013-08-27 19:08:15)
Offline
@forken - One of Arch's strengths is the simplicity that is makepkg and pacman. Read the wiki on makepkg and the AUR if you haven't yet. Building by hand can be done... but why
I recommend that you either adapt a current PKGBUILD for your kernel or use the linux-rt package in the AUR.
Note that you can build any package in the official repo from ABS and modify it to your liking (the ARCH kernel + whatever patchsets interest you for example)..
I had avoided using the tarball on the RT kernel page, thinking it might be built for a lot of functions that will not apply to my situation. When I started I intended to go the ABS route, but ran into some issues I couldn't figure out and backtracked to the traditional route.
Sounds like most reliable track for me would be to revisit ABS. I'll give it a shot and let you know how it works out. thanks
Offline
I don't follow about the mkinitcpio response being correct. Even if there are half a dozen modules, shouldn't those be built into the image?
No. I strongly recommend you read a lot more about all this, as you seem to be missing some fundamentals. The Arch wiki's mkinitcpio page would be a good resource, but of course there are many more sites out there, some generic and some for other distros that would nevertheless be of use to you.
Some basics to get you going:
- much (maybe most) of the kernel's functionality can be compiled in two ways: as a module that will require loading whenever that functionality is required, or built-in to the kernel which means that functionality is always available. Hopefully, you are familiar with this choice from your use of menuconfig.
- mkinitcpio is a tool that creates an initramfs image. This image incorporates scripts, binaries, and selected kernel modules that enable the kernel to boot your system. I trust it is clear that mkinitcpio can only incorporate kernel functionality that has been compiled as modules, as described above.
Offline
Pages: 1