You are not logged in.

#1 2012-07-19 05:20:24

ilkyest
Member
From: Brazil
Registered: 2010-02-13
Posts: 269

The correct way of compiling kernel, by myself

I'm looking for patches, mods, and other kind of things that could, or promisses to, makes a kernel better

What is the correct way of compiling kernel on arch? there's a "standard way"?


I'm following this
http://maltzsama.blogspot.com.br/2009/0 … linux.html

But my kernel doesn't starts, I'll see tomorrow what happens


To who compiles kernel....what "method" do you use?

Offline

#2 2012-07-19 06:14:16

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

Re: The correct way of compiling kernel, by myself

I would recommend this:
https://wiki.archlinux.org/index.php/Cu … n_with_ABS
You could also read this:
https://wiki.archlinux.org/index.php/Ke … _Patchsets

And that's just from our wiki. Google has a lot more. Also, "better" is vague and subjective - you need to decide what kind of changes you want in your kernel, and then find patches that suit that purpose.

If all available patches were "better", they wouldn't be patches - the kernel devs would have included them in mainline. Remember that patches are not in general use, which means they are not tested as thoroughly, which means they are more likely to introduce instability.

Offline

#3 2012-07-19 15:59:05

ilkyest
Member
From: Brazil
Registered: 2010-02-13
Posts: 269

Re: The correct way of compiling kernel, by myself

I've read about ABS but I couldn't understand.

Yeah, I know the things about patches, including some of them are avoidable 'cause security is take off.

Offline

#4 2012-07-19 18:05:24

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

Re: The correct way of compiling kernel, by myself

You're still being vague. If you have specific questions about ABS, ask them.

Offline

#5 2012-07-19 18:51:05

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,366

Re: The correct way of compiling kernel, by myself

The only kernels I compile are Linus' git releases, and to add patches/make changes with that is trivial.

Which kernel are you trying to patch? We may be able to help more with that information available.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#6 2012-07-19 22:07:13

ilkyest
Member
From: Brazil
Registered: 2010-02-13
Posts: 269

Re: The correct way of compiling kernel, by myself

okay... let's try., tomk.... I've read your arcticles, but, I don't know where to start

Roken. I mind the last kernel 3.4.5. This are the patches I've used.
http://users.on.net/~ckolivas/kernel/

3.4-sched-bfs-424.patch
mm-minimal_swappiness.patch
mm-enable_swaptoken_only_when_swap_full.patch
mm-drop_swap_cache_aggressively.patch
mm-kswapd_inherit_prio-1.patch
mm-idleprio_prio-1.patch
mm-decrease_default_dirty_ratio-1.patch
kconfig-expose_vmsplit_option.patch
hz-default_1000.patch
hz-no_default_250.patch
hz-raise_max.patch
preempt-desktop-tune.patch
ck3-version.patch

I did all that are described here.
http://maltzsama.blogspot.com.br/2009/0 … linux.html

what means
#make mrproper
#zcat /proc/config.gz > .config
#make menuconfig
#make clean
#make dep
#make modules
#make bzImage
#make modules_install
# cp -v /usr/src/linux-3.4.4-5-ck/vmlinux /boot/vmlinux
#depmod 2.6.31-arch (depmod 3.4.5-ck3-ARCH)
#mkinitcpio -k 2.6.31-arch -g /boot/kernel26.img (mkinitcpio -k 3.4.5-ck3-ARCH -g /boot/kernel3.4.5-ck3-ARCH)

and make changes on syslinux

What I've mind.
->The patch isn't to 3.4.5 kernel
-> I've forgot compile BRTFS filesystem (I use on root BRTFS)

I'll post the log of this kernel. I receive a panic.
==============
not panic... "invalid or corrupted "
===============
I'll try compile again after your help. Another annoying thing is this:
No protocol specified
kate: cannot connect to X server :0

on this case, kate, but I receive this on xconfig. I should exit from root, run make xconfig, and turn back root. (There are links, and things on xconfig I prefer insted of menu or nconfig)

I don't remember, on ubuntu 7, what I did to run xconfig on root user

Last edited by ilkyest (2012-07-19 22:26:03)

Offline

#7 2012-07-20 09:35:55

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

Re: The correct way of compiling kernel, by myself

OK - so you have no specific questions about ABS, just more vagueness. You said "let's try" but I don't see you trying.

Next problem - in your manual method, you have not applied the ck patchset.

And next, post exact complete error messages, not random snippets. You are not knowledgeable enough to know which snippets are important, so we need to see everything.

Finally, you do not need to be root to run xconfig, or any other X application - if you find that you do, you have not configured xorg properly. Start another thread about that.

Offline

Board footer

Powered by FluxBB