You are not logged in.

#1 2011-12-15 15:19:03

MagicMavrik
Member
Registered: 2011-12-15
Posts: 2

Kernel compilation failed

Hi,

I'm new to the forums, but really excited as a new user of Arch Linux. I'm doing some experiments with Arch and Linux at the moment. I learned a bit about the kernel and tried to compile it from source myself. I never tried it before so I'm pretty newbie at it. What I did: I downloaded the 3.0.9-kernel from kernel.org and followed all of the steps which were described very well on the ArchWiki (https://wiki.archlinux.org/index.php/Ke … raditional). I did it the traditional way, to learn more about the traditional process and so i would know how to do it when my job required it on a different distribution.

It worked pretty well, except that it didn't :-) I always get this nasty error message when booting the "new" kernel from GRUB: "could not load /lib/modules/3.0.9/modules.dep". Now when I check it, I acutally see the modules.dep so that's not a problem. I notice it's dependencies though. I'm not really experienced enough to know why I get the error.

I was hoping someone could tell me!

Offline

#2 2011-12-15 15:42:09

ViruSzZ
Member
From: The Streets
Registered: 2010-10-14
Posts: 202
Website

Re: Kernel compilation failed

Welcome to the Arch forums MagicMavrik. I'm not that experienced in kernels too, but I guess you didn't build the modules for your custom kernel. When I'm building a custom kernel for Arch I always do that using the Arch Way and have never had problems with it.

This morning, I needed to build a custom linux-vserver patched kernel on CentOS 6 and I've got the same error message as you. What I've done was to rebuild the modules. Here are the steps I've taken in order to successfully build my CentOS 6 linux 3.0.9 kernel:

make -j3 bzImage
make -j3 modules
make
make modules_install
make install

Is your kernel panic`N and you're unable to boot in it?

Last edited by ViruSzZ (2011-12-15 15:42:50)


Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog

Offline

#3 2011-12-15 15:44:31

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

Re: Kernel compilation failed

Don't compile by hand, use the pkgbuild for the Linux package from ABS.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2011-12-16 09:08:52

MagicMavrik
Member
Registered: 2011-12-15
Posts: 2

Re: Kernel compilation failed

Thans for the advice, ViruSsZ. It doesn't seem to work, though. I can't seem to grasp the problem. I keep on getting the exact same message while booting.
Pretty weird, I do everything exactly the wiki tells me to do it.

@graysky: I really want to try it manually. I know it's easier to use the pkgbuild but I just wanted to try it this way.

Offline

#5 2011-12-16 12:51:04

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: Kernel compilation failed

MagicMavrik wrote:

I really want to try it manually.

When learning new things, consider using either a virtual machine, or a 1:1 copy of your current system on a separate partition. In both cases there won't be a problem with booting the currently working system in case things go wrong. Besides, study the kernel PKGBUILD; there's a bunch of useful things to remember about when preparing a custom kernel.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#6 2011-12-16 12:57:04

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

Re: Kernel compilation failed

MagicMavrik wrote:

@graysky: I really want to try it manually. I know it's easier to use the pkgbuild but I just wanted to try it this way.

Pacman is a cornerstone of Arch.  Not using it (and makepkg/PKGBUILD in this case) is silly.  Pacman should be used to manage all your files on / (except for tmp files created by the PKG's themselves).  If you want to learn about kernel compilation, great, just do it within your own PKGBUILD.

Use ABS to build your own kernel or use one of the many fine examples in the AUR as a model.

Last edited by graysky (2011-12-16 12:57:44)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB