Author Topic: Custom Kernel  (Read 1072 times)

Offline theedo

  • New Friend
  • *
  • Posts: 5
Custom Kernel
« on: June 09, 2010, 09:37:03 AM »
First a big thanks for a wonderful distro! Here's what I wrote in a comment in an article on PCLinuxOS at Linux Journal http://www.linuxjournal.com/content/spotlight-linux-pclinuxos-2010?page=1

I've been a full time linux user since 2000. I've tried most distos out there and settled on Red Hat/Fedora for the longest time.

I switched to PCLinuxOS in 2008 because I got tired of the flatten and re-install treadmill. With the exception of the flatten and re-install with the 2010 release I have greatly enjoyed the rolling release nature and out of the box quality of PCLinuxOS.

Even though I'm running a quad core 64 bit capable proc I'll be staying with PCLinuxOS. Hopefully they will eventually go 64 bit, but in the mean time my 8 gig of ram is recognized and fully available by using the pae kernel available through synaptic.

Keep up the great work folks!

Asus M3A76-CM Motherboard
AMD Phenom II x 4 965 Quad Core 3.4 ghz
8 gig Ram Crucial Ballistic DDR2 800mhz
5 x Seagate SATA II 500gb 7200 rpm Drive
1 x Lite-On SATA DVD RW DL
1 gig DDR3 Nvidia 9800 GT


With that said, I would now like to attempt a custom kernel build. I am currently running
kernel-2.6.33.5-pclos1.pae. Ive also installed the kernel-2.6.33.5-pclos1.a64.

The a64 kernel seem peppier (not very scientific I know) on my AMD proc. I would like to use the a64 kernel, but I would also still like to utilize all of my 8gb of ram.

I want to attempt a recompile to get the pae extension in the a64 kernel.


I've searched all over the forums with no specific tutorial or guide to kernel building.
I want to do this the PCLinuxOS way. I've started with the New packagers guide found in other post but would appreciate something more kernel related.

Can anyone point me in the right direction?

Thanks in advance
Carey

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Custom Kernel
« Reply #1 on: June 09, 2010, 11:08:51 AM »
I've been trying to read up on this too.  Once you get the src.rpm the secret to modifying the kernel is in the kernel config but I haven't tried it yet.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15296
  • ┌∩┐(◕_◕)┌∩┐
Re: Custom Kernel
« Reply #2 on: June 09, 2010, 11:20:24 AM »
I'll be following this with a lot of interest.
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Custom Kernel
« Reply #3 on: June 09, 2010, 02:06:17 PM »
Are you building this to package it for PCLinuxOS? Or for personal use?

Offline theedo

  • New Friend
  • *
  • Posts: 5
Re: Custom Kernel
« Reply #4 on: June 09, 2010, 02:08:44 PM »
Are you building this to package it for PCLinuxOS? Or for personal use?

It would be for personal use, but I would gladly provide it to the community as a whole. I'm sure there are others out there with AMD cpu's that have more than 4 gig of ram.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Custom Kernel
« Reply #5 on: June 09, 2010, 02:15:17 PM »
Are you building this to package it for PCLinuxOS? Or for personal use?

It would be for personal use, but I would gladly provide it to the community as a whole. I'm sure there are others out there with AMD cpu's that have more than 4 gig of ram.

If it is for the community, it is fine here, but if it is for your personal use, this thread needs to be moved to the Advanced Users section. It's your call. Are you going to package it?

Offline theedo

  • New Friend
  • *
  • Posts: 5
Re: Custom Kernel
« Reply #6 on: June 09, 2010, 03:15:29 PM »
Are you building this to package it for PCLinuxOS? Or for personal use?

It would be for personal use, but I would gladly provide it to the community as a whole. I'm sure there are others out there with AMD cpu's that have more than 4 gig of ram.

If it is for the community, it is fine here, but if it is for your personal use, this thread needs to be moved to the Advanced Users section. It's your call. Are you going to package it?

I'd gladly package it if I can get answers to my original query. Or at least pointed in the right direction

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Custom Kernel
« Reply #7 on: June 09, 2010, 03:28:20 PM »
I'm not a kernel man. Wish I were, then I could help. I believe that adding PAE support to the a64 kernel is possible, but I do not know for sure, nor do I know how.

Perhaps these links will help:
http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html

http://www.linuxplanet.com/linuxplanet/tutorials/202/1/

http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html

http://tldp.org/LDP/lkmpg/2.6/html/x181.html

http://www.tuxradar.com/content/how-compile-linux-kernel

Hope those help.

Offline siamer

  • Sr. Member
  • ****
  • Posts: 284
    • ZEN-mini
Re: Custom Kernel
« Reply #8 on: June 13, 2010, 11:47:36 PM »
Hi.

I think it shouldn't be too hard. In srpm package You have config campressed archive + config for kernel + spec + script (script to build right kernel - remember script going to build not spec folder...). Open this archive and there You will find patches + kernel configs. So just download 2 srpm from kernel pae and a64 than check config files (compare them) and patches with are used for with kernel. I'm not sure (didn't check that before) but I think only difference between pae and a64 kernel are config (selected special option) file... Than just connect difference between them in one config and make new kernel :D sounds easy ;)

good luck!
siamer
Every man dies, but not every man really lives... !!