You are not logged in.

#26 2008-12-08 14:00:52

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: Compiling kernel: what are the cons against arch kernel?

When CK was still writing patches I compiled all my kernels without fail.  Now that a decent scheduler is in there I can't notice a difference between the arch kernel and anything I compile, so I just use the arch one.

Occasionally I'll have to patch something and then I'll custom compile until it shows up in the main branch, but that hasn't happened in a while.


Cthulhu For President!

Offline

#27 2008-12-08 15:01:57

mentallaxative
Member
From: Australia
Registered: 2008-07-14
Posts: 134
Website

Re: Compiling kernel: what are the cons against arch kernel?

Hey guys, thanks for the tip about ccache. I can't believe I compiled eight kernels without it. =.= It halves compilation time from an hour to half an hour, so I'd say it's very very useful.

Also, I'd like to add that compiling your own kernel should be mostly done out for fun with a possible speed increase as a pleasant side effect, or if you badly need a certain feature.

Offline

#28 2008-12-09 09:29:24

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: Compiling kernel: what are the cons against arch kernel?

broch wrote:

sudo sh NVIDIA-Linux-x86_64-180.06-pkg2.run

you can make it a little bit faster by running

sudo sh NVIDIA-Linux-x86_64-180.06-pkg2.run -s -N

Thanks, I'll give it a try.

Offline

#29 2008-12-09 09:54:16

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Compiling kernel: what are the cons against arch kernel?

That should be:

sh NVIDIA...run -a -q -s -N --no-opengl-headers

Offline

#30 2008-12-09 19:40:42

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

Re: Compiling kernel: what are the cons against arch kernel?

brebs wrote:

That should be:

sh NVIDIA...run -a -q -s -N --no-opengl-headers

why would anyone run -s altogether  -q and -a switches?
-s means silent so (if you would read about this):
Run silently; no questions are asked and no output is printed, except for error messages to stderr.  This option implies '--ui=none --no-questions --accept-license'.
taken from nvidia installer help

--no-opengl-headers
overwriting mesa files?
unless you simply want to make point, there is no advantage of using mesa over optimized nvidia/whatever card you have headers.

Last edited by broch (2008-12-09 20:06:39)

Offline

#31 2008-12-09 22:26:36

The_ouroboros
Member
From: Pavia, Italy
Registered: 2007-05-28
Posts: 140

Re: Compiling kernel: what are the cons against arch kernel?

broch wrote:

you can make it a little bit faster by running

sudo sh NVIDIA-Linux-x86_64-180.06-pkg2.run -s -N

I only have to download pkg2 for a x86_64 to install nvidia driver?


Gnu/Linux User on Arch(x86_64)

Offline

#32 2008-12-09 22:53:08

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

Re: Compiling kernel: what are the cons against arch kernel?

The_ouroboros wrote:
broch wrote:

you can make it a little bit faster by running

sudo sh NVIDIA-Linux-x86_64-180.06-pkg2.run -s -N

I only have to download pkg2 for a x86_64 to install nvidia driver?

yes,
if you have nvidia installed with pacman, maybe uninstall it first. I don't know how pacman will handle de-installation by nvidia-installer of driver installed by pacman (i think about pacman db not being updated correctly).

I hope that it will work for you

Offline

#33 2008-12-09 23:19:03

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Compiling kernel: what are the cons against arch kernel?

I include those options because, it works. Doesn't matter in the slightest whether there's overlap. They may change the options in the future, so I want it as clear as possible.

broch wrote:

there is no advantage of using mesa over optimized nvidia/whatever card you have headers.

The difference is whether compiling xorg is possible.

Offline

#34 2008-12-10 01:49:09

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

Re: Compiling kernel: what are the cons against arch kernel?

brebs wrote:

I include those options because, it works. Doesn't matter in the slightest whether there's overlap. They may change the options in the future, so I want it as clear as possible.

broch wrote:

there is no advantage of using mesa over optimized nvidia/whatever card you have headers.

The difference is whether compiling xorg is possible.

never had a problem compiling X.
as with everything, you need to know what are you doing. Same thing as with kernel (tread topic): if you don't know what you do kernel may not boot at all.
I don't consider Fedora as an example OS.

You have listed overlapping flags stating that these should be used which is absolutely not true.

Offline

#35 2008-12-10 20:20:42

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 628

Re: Compiling kernel: what are the cons against arch kernel?

mentallaxative wrote:

Also, I'd like to add that compiling your own kernel should be mostly done out for fun with a possible speed increase as a pleasant side effect, or if you badly need a certain feature.

Couldn't agree more smile


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#36 2009-01-11 18:46:17

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: Compiling kernel: what are the cons against arch kernel?

Has anyone built a kernel with the nerwest mm patch for 2.6.28-rc2 ?

http://www.kernel.org/pub/linux/kernel/ … .6.28-rc2/

I am trying to find other patches to use for the kernel other than the zen patch..... but it seems like all of the patches in the wiki are finished..... and I can't find any other patches on google (or even in gentoo that are different than the zen patch).

Last edited by methuselah (2009-01-11 18:47:01)

Offline

#37 2009-01-11 21:14:50

FaN_OnLy1
Member
From: Montpellier, France
Registered: 2008-09-22
Posts: 126

Re: Compiling kernel: what are the cons against arch kernel?

I made up a quick and dirty bash script to build your custom kernel if you're interested.

#!/bin/bash
#
#kernel_build.sh
#
echo ">>> Kernel build process starting..."
echo "  Hit CTRL+C to stop"
echo "5..." && sleep 1 && echo "4..." && sleep 1 && echo "3..." && sleep 1 && echo "2..." && sleep 1 && echo "1..." && sleep 1 
echo ">>> Backing up .config file"
cp .config .config.bak
sleep 2
# Use menuconfig for an ncurses GUI , xconfig for a QT GUI or gconfig for a GTK GUI.
echo ">>> Starting menuconfig"
make menuconfig
echo ">>> Building the kernel"
# use -j4 if you have two cores, -j8 if you have four, else use none.
make -j4
echo ">>> Regenerating the kernel package"
makepkg -cf
echo ">>> Installing the kernel package"
sudo pacman -U *.tar.gz
echo ">>> Done, now add a GRUB entry for your custom kernel"

Place it in your freshly downloaded kernel source directory and it will do the job for you, tho you have to put a PKGBUILD and a kernel26.install following the archwiki.

Compiling a custom kernel isn't hard at all using arch, it just as simple as knowing your hardware well, and not touching options you don't know
about.

Personnaly i'm using zen kernel sources against 2.6.28 , using zen fastboot option i got my comp to boot pretty fast (including some rc.sysvinit , udev, etc tweaks, i think i'm around 15 - 16 s GRUB to vc/1)

Oh , also , i've put the mkinitcpio procedure in my kernel26.install, so i don't have to do it manually.

Last edited by FaN_OnLy1 (2009-01-11 21:15:32)

Offline

Board footer

Powered by FluxBB