You are not logged in.

#1 2009-06-20 12:05:43

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 391

Compiling kernel

Just one question...when I make PKBUILD an install script of kernel, then my kernel says that modules exista in sistem when I try to install it? Does that means that new kernel will uninstall old generic or what? Or I need to remove /lib/modules/2.6.29-ARCH? I now how to compile to get initrd and img with old school way, thats OK, I use custom kernel, but I don`t now how to get pkg.tar.gz of custom kernel, because of that problem...

Thanks

Last edited by Pyntux (2009-06-20 12:07:01)


I do not speak English, but I understand...

Offline

#2 2009-06-20 16:18:00

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: Compiling kernel

change kernel name in Makefile and/or .config
this will install new kernel in parallel to the existing one. This is safer. In the case that your custom is borked, you will be able to boot to one that works.

Offline

#3 2009-06-21 10:03:34

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 391

Re: Compiling kernel

I have good (for my comp only big_smile) config file, so that`s not a problem...I was renamed kernel in config file, but when I go for install, he says modules exist...I gonna try again...thanks


I do not speak English, but I understand...

Offline

#4 2009-06-21 17:04:21

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: Compiling kernel

I don't use AUR script, I build custom kernels directly from sources. It seems way better that using scripts over scripts.
I believe though that you will need to check also PKGBUILD script to chenge kernel name.
This is one of the reasons why I fing using AUR for kernel so troublesome: it requires too much of extra editing in contrast to stright kernel build/installation. Of course AUR is indispensable for other software installation... usually as it provides easy way to administer software installation.

Offline

#5 2009-06-21 17:20:53

s3kt0r
Member
Registered: 2009-01-20
Posts: 208

Re: Compiling kernel

You don't need to edit PKGBUILD that much, only:

pkgname=kernel26-custom       # Build kernel with a different name, you can name it as you wish, just delete the line that refers to kernel26 default
_basekernel=2.6.30

and uncomment one of these (I prefer configuring it through CLI):

# Configure the kernel. Replace the line below with one of your choice.
  make menuconfig # CLI menu for configuration
  #make xconfig # X-based configuration
  #make oldconfig # using old config from previous kernel version

Yeah, you have to edit these, but after it builds the kernel you can install/remove it through pacman. Advantage AUR.

Last edited by s3kt0r (2009-06-21 17:24:17)


box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle

Offline

#6 2009-06-21 22:44:32

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: Compiling kernel

actually, kernel is one of these rare instances where AUR provides no advantage at all. On the contrary it poses several problems.

Offline

#7 2009-06-21 22:51:33

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Compiling kernel

broch wrote:

actually, kernel is one of these rare instances where AUR provides no advantage at all. On the contrary it poses several problems.

Yes, especially since, if you're compiling your own kernel, you INHERENTLY want to customize it to your own requirements.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#8 2009-06-22 01:27:23

s3kt0r
Member
Registered: 2009-01-20
Posts: 208

Re: Compiling kernel

Well, I didn't mean AUR, I meant ABS. And I do like to compile my own kernel, customizing it to my needs/requirements.

p.s.: Imho, ABS/PKGBUILD's are a great way to compile a kernel. It's not like configuring from source, sure.

Last edited by s3kt0r (2009-06-22 01:33:32)


box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle

Offline

#9 2009-06-22 01:44:17

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Compiling kernel

Ah, ABS then yes, a good idea. Except that if the kernel is bumped a version you have to recompile again or just set the package ignore in pacman's conf.

I'd go for a separate kernel with a separate package name myself, more stable.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#10 2009-06-22 16:27:52

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 391

Re: Compiling kernel

I don`t use ABS also, not for kernel...I install and build from source, but I`m gonna use PKBUILD to save that kernel in pkg.tar.gz, only for that! Thanks to all


I do not speak English, but I understand...

Offline

Board footer

Powered by FluxBB