LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2006, 02:18 PM   #1
xcaliber
LQ Newbie
 
Registered: Jan 2006
Location: northeast
Distribution: fc5- suse 10.0
Posts: 18

Rep: Reputation: 0
Help recompiling kernel


I now realize that my FC5 x86_64 is optimized for Pentium 4 processors and not my AMD X2 4400+.. I was wondering if anyone has some directions for recompiling my kernel and booting it with GRUB... i have an LPI certification book that does go into detail but it is out-dated and I don't want to screw it all up. It would be great if someone could either post or link me some straight forward directions for recompiling it to work with my AMD chip...
Thanks people...
 
Old 03-25-2006, 03:59 PM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Well, if you've got the kernel sources & the config file used to compile your current kernel, it should be as simple as going to the /usr/src/linux directory, running "make menuconfig" and changing the processor option.

Then make, make modules_install, copy the kernel to /boot & update your bootloader to use the new kernel

If you don't have the current config file, and/or need a more in-depth explanation, just let us know
 
Old 03-25-2006, 06:05 PM   #3
xcaliber
LQ Newbie
 
Registered: Jan 2006
Location: northeast
Distribution: fc5- suse 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
yeah!

thanks... how do i configure my grub bootloader ? where is the config file for that? so obviously the config file for the kernel should be there... and if the sources aren't i can just get the most recent kernel sources? from where? fedora site?
thanks again you guys are quick to respond

-x
 
Old 03-25-2006, 06:42 PM   #4
xcaliber
LQ Newbie
 
Registered: Jan 2006
Location: northeast
Distribution: fc5- suse 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
more help

Yeah i installed FC5 from the bootable DVD. and under /usr/src directory there is a redhat directory but it that and all subdirectories are empty. where can i get the kernel sources and how can i create a config file?? help appreciated thanks!
 
Old 03-25-2006, 06:54 PM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
It probably wouldn't hurt to wait for more than 37mins between posts, I believe the bumping rule says not to at all because the forum automatically does it after 24hrs but I'm not sure.

Use Yum to install the kernel source, it should also install the default Fedora .config which will get you started. If you have a AMD64 why don't you just install the x86_64 version of Fedora....? Then instead of just have a kernel built for your CPU you get all the packages built that way too...
 
Old 03-25-2006, 07:11 PM   #6
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
for Fedroa kernels go to fedora site.
to modify grub go to /etc/grub.conf
what modification you want to be in grub.conf
 
Old 03-25-2006, 07:43 PM   #7
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Quote:
to modify grub go to /etc/grub.conf
More like /boot/grub/menu.lst or for a couple of distros /boot/grub/grub.conf
 
Old 03-25-2006, 09:11 PM   #8
xcaliber
LQ Newbie
 
Registered: Jan 2006
Location: northeast
Distribution: fc5- suse 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
cs-cam : I did install the x86_64 version and was told it was still optimized for Pentium 4... and to recompile my kernel for my processor. This all developed originally because my FC5 is running incredibly slow copying files and USB - IDE throughput... as well as terminal windows are slowing down and everything else when doing copies that should only take a couple of minutes.

and your next post... I want to be able to boot my new compiled kernel with grub and not exactly sure how to do that, i imagine once I have my kernel I can just copy it in to boot and list it in Grub.conf???? I have never done this stuff before still new to linux and even though it takes forever to get some stuff working it's still the best.
 
Old 03-26-2006, 12:09 AM   #9
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
You haven't yet replied to my question in this thread. You say is slows down so much when you're copying, DMA is probably not turned on for your drives because of a wrong module being loaded for your motherboard or something.

Let me know the output of this and we'll go from there, you might not need to compile a new kernel.
Code:
/sbin/hdparm /dev/hda
 
Old 03-26-2006, 11:14 AM   #10
xcaliber
LQ Newbie
 
Registered: Jan 2006
Location: northeast
Distribution: fc5- suse 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
cs-cam : here is the output for hda :

/dev/hda:
multcount = 16 (on)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 65535/16/63, sectors = 120103200, start = 0

and here is hdb :

/dev/hdb:
multcount = 0 (off)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 16383/255/63, sectors = 234441648, start = 0

both are IDE HD with SMART activated. i guess hdb has some issues... hda is obviously where the os is installed and hdb is most of my music where i am having trouble copying etc...
i was told in an earlier post that i should recompile my kernel... i tried to install the kernel package rpm that is my distro but obviously it said it was already installed ...(kernel-2.6.15-1.2054_FC5.x86_64.rpm) and the /usr/src/* directories are all empty.. no config file and no kernel sources so i'm not exactly sure where to go from here...
waiting to hear from you...
thanks cs-cam
 
Old 03-26-2006, 06:25 PM   #11
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Well we have a winner with the problem, the thing is that there is another problem causing it to begin with By default, the kernel will enable DMA on all drives that it can because as you can see, the performance benefits are enormous. For it to be not enabled on your drive, it generally means an incorrect module is being loaded somewhere or in my case a while ago, I compiled support for the wrong motherboard into my kernel heh. Try running this to see if it works, otherwise you may need to do some research into what modules should be loaded for your hardware and why they aren't.

Code:
/sbin/hdparm -d1 /dev/hdb
 
Old 03-28-2006, 09:31 AM   #12
xcaliber
LQ Newbie
 
Registered: Jan 2006
Location: northeast
Distribution: fc5- suse 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
yeah i enabled the dma successfully but i don't know if it has boosted the performance much...
are there any quick instructions online for re-compiling my kernel for my sysem? like i said before there are no kernel config files and sources and i was unable to install the kernel rpm package... and in terms of checking all the modules loaded how do i do that?
thanks
 
Old 03-28-2006, 04:19 PM   #13
seelenbild28
Member
 
Registered: Oct 2005
Location: Germany, Berlin
Distribution: SuSE Linux 9.1/9.2/9.3/10.0/10.1, openSuSE 10.2, 10.3, Slackware, Debian, Redhat, BSD
Posts: 315

Rep: Reputation: 30
sometimes it is really useless to help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
recompiling kernel safil Slackware 1 02-17-2004 07:15 PM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Recompiling the kernel bluethundr Linux - Newbie 6 07-24-2003 01:47 PM
Recompiling kernel 2.4.7-10 newvivs Linux - Newbie 1 10-02-2002 06:47 AM
recompiling the kernel gui10 Linux - General 25 12-29-2001 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration