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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-25-2006, 02:18 PM
|
#1
|
LQ Newbie
Registered: Jan 2006
Location: northeast
Distribution: fc5- suse 10.0
Posts: 18
Rep:
|
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...
|
|
|
03-25-2006, 03:59 PM
|
#2
|
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460
Rep:
|
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 
|
|
|
03-25-2006, 06:05 PM
|
#3
|
LQ Newbie
Registered: Jan 2006
Location: northeast
Distribution: fc5- suse 10.0
Posts: 18
Original Poster
Rep:
|
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
|
|
|
03-25-2006, 06:42 PM
|
#4
|
LQ Newbie
Registered: Jan 2006
Location: northeast
Distribution: fc5- suse 10.0
Posts: 18
Original Poster
Rep:
|
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!
|
|
|
03-25-2006, 06:54 PM
|
#5
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
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...
|
|
|
03-25-2006, 07:11 PM
|
#6
|
Member
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259
Rep:
|
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
|
|
|
03-25-2006, 07:43 PM
|
#7
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
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
|
|
|
03-25-2006, 09:11 PM
|
#8
|
LQ Newbie
Registered: Jan 2006
Location: northeast
Distribution: fc5- suse 10.0
Posts: 18
Original Poster
Rep:
|
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.
|
|
|
03-26-2006, 12:09 AM
|
#9
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
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
|
|
|
03-26-2006, 11:14 AM
|
#10
|
LQ Newbie
Registered: Jan 2006
Location: northeast
Distribution: fc5- suse 10.0
Posts: 18
Original Poster
Rep:
|
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
|
|
|
03-26-2006, 06:25 PM
|
#11
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
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
|
|
|
03-28-2006, 09:31 AM
|
#12
|
LQ Newbie
Registered: Jan 2006
Location: northeast
Distribution: fc5- suse 10.0
Posts: 18
Original Poster
Rep:
|
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
|
|
|
03-28-2006, 04:19 PM
|
#13
|
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:
|
sometimes it is really useless to help 
|
|
|
All times are GMT -5. The time now is 10:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|