You are not logged in.

#1 2013-08-27 08:07:44

forkenbrock
Member
Registered: 2011-12-06
Posts: 43

Problem with Booting New Kernel

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

#2 2013-08-27 08:19:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Problem with Booting New Kernel

Did you make modules_install prior to trying to generate the initrd?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-08-27 12:33:40

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Problem with Booting New Kernel

How did you install your custom kernel, with pacman or by hand?

Offline

#4 2013-08-27 17:31:33

forkenbrock
Member
Registered: 2011-12-06
Posts: 43

Re: Problem with Booting New Kernel

jasonwryan wrote:

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.


tomk wrote:

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

#5 2013-08-27 18:36:32

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Problem with Booting New Kernel

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

#6 2013-08-27 18:57:09

forkenbrock
Member
Registered: 2011-12-06
Posts: 43

Re: Problem with Booting New Kernel

tomk wrote:

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

#7 2013-08-27 19:07:48

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: Problem with Booting New Kernel

@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 smile  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

#8 2013-08-27 19:20:58

forkenbrock
Member
Registered: 2011-12-06
Posts: 43

Re: Problem with Booting New Kernel

graysky wrote:

@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 smile  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

#9 2013-08-27 19:56:40

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Problem with Booting New Kernel

forkenbrock wrote:

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

Board footer

Powered by FluxBB