You are not logged in.

#1 2008-01-12 20:18:19

signal11
Member
From: bangalore, india
Registered: 2008-01-09
Posts: 30

creating a custom kernel using kernel26 as a starting point

hi,

i want to create a custom kernel starting from official kernel26 sources. since i have just started using arch, i am a newbie wrt to the best way of doing this.

one possibility (that i can think of) is to use abs. the problem here is that makepkg (after downloading + patching the kernel sources) uses the default kernel-config.

is it possible to do the following (or its equivalent):

- download + patch the kernel26 code as usual.
- run make menuconfig and choose appropriate options
- continue with makepkg as usual with the new config ?

or if there is a better way to doing the same, can you please let me know ?

thanks
anupam

Offline

#2 2008-01-12 20:35:08

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: creating a custom kernel using kernel26 as a starting point

Offline

#3 2008-01-13 08:43:13

signal11
Member
From: bangalore, india
Registered: 2008-01-09
Posts: 30

Re: creating a custom kernel using kernel26 as a starting point

Offline

#4 2008-01-14 18:00:10

signal11
Member
From: bangalore, india
Registered: 2008-01-09
Posts: 30

Re: creating a custom kernel using kernel26 as a starting point

signal11 wrote:

just wanted to update this with my experience: basically, i followed the instructions in the above url, and it all worked fine (almost).

the custom kernel-package is created fine and gets installed, as usual with a "pacman -U ...". this also creates appropriate hierarchy at "/usr/src/<kernel-package>" for building out-of-tree modules (i guess e.g. nvidia). in the end, i had to run "mkinitcpio" for creating the initrd image for the custom kernel.

the only issue i had was during compilation of nvidia-kernel module. apparently, "arch/i386/Makefile.cpu" was not copied over during the installation of the custom-kernel-package above. this had to be done by "hand", after which i had no issues creating the custom nvidia module which works fine.

Offline

#5 2008-01-14 18:39:25

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: creating a custom kernel using kernel26 as a starting point

I'm glad things went well.  I don't use the abs method for compiling my kernel, so I can't comment on te missing file problem.  If you believe the missing file is a packaging problem, you might want to notify the devs using the bugtracker.  However, since may people use "the abs way" to compile their kernels, I'm thinking it's not a bug, otherwise it would have been reported long ago.

Cheers,
peart

Offline

#6 2008-01-14 21:45:32

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: creating a custom kernel using kernel26 as a starting point

i've had that problem too. copying by hand is the only way i've gotten nvidia to compile. getting nvidia to work is another story sad


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#7 2008-01-15 07:32:51

signal11
Member
From: bangalore, india
Registered: 2008-01-09
Posts: 30

Re: creating a custom kernel using kernel26 as a starting point

rson451 wrote:

i've had that problem too. copying by hand is the only way i've gotten nvidia to compile. getting nvidia to work is another story sad

hmm, i had no issues getting nvidia to work. i can post my xorg settings here if that might help you out (just let me know). another thing that you can try (if not done already) is to use "nvidia-xconfig" to generate an xorg.conf as a starting point. then you can tweak it as you see fit.

Offline

#8 2008-01-15 15:55:19

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: creating a custom kernel using kernel26 as a starting point

@signal11: Maybe this http://bbs.archlinux.org/viewtopic.php?id=34815 might help aswell.

Offline

#9 2008-01-15 18:38:00

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: creating a custom kernel using kernel26 as a starting point

signal11 wrote:

hmm, i had no issues getting nvidia to work. i can post my xorg settings here if that might help you out (just let me know). another thing that you can try (if not done already) is to use "nvidia-xconfig" to generate an xorg.conf as a starting point. then you can tweak it as you see fit.

eh, i've tried just about everything i can think of.  i know my xorg.conf works because it works on the default kernel with the default module. i'll figure it out soon i suppose.  thanks for the offer though.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

Board footer

Powered by FluxBB