Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Other Distributions > Yoper Linux Help > Compiling Gentoo kernel for Laptop with AMD64

Forgot Password?
 Yoper Linux Help   Officially recognised support forum for Yoper Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-04-2006   #1 (permalink)
Just Joined!
 
Join Date: May 2006
Location: Lake Wales, Florida, USA
Posts: 4
Compiling Gentoo kernel for Laptop with AMD64

I have been trying to compile kernel for my HP zv6000 with AMD Athlon64 CPU.I go all the way but during compilation there is a choice where one has to choose processor x86_64 or AMD opteron/Athlon64. I am not sure which is is correct choice and why at the end I am unable to copy it to my boot sector. Any help will be appreciated.

Lost in Compilation
RKSingh is offline  


Reply With Quote
Old 05-05-2006   #2 (permalink)
Linux Engineer
 
spencerf's Avatar
 
Join Date: Jan 2005
Location: Syracuse, NY
Posts: 1,144
what kernel are you trying to compile. In mine which is 2.6.16-gentoo-r4 there is only one option which is the athlon/opteron/k8 one. So I would choose that.

You probably can't copy it to /boot because you set /boot up as a seperate partition and if you followed the handbook you also probably have noauto in your fstab which means that /boot will not be automatically mounted at startup. So just

mount /boot ---then try it
__________________
All right, brain. You don't like me and I don't like you, but let's just do this and I can get back to killing you with beer. All New Users Read This!!! If you have a grub problem please look at GRUB MANUAL
spencerf is offline   Reply With Quote
Old 05-05-2006   #3 (permalink)
Just Joined!
 
Join Date: May 2006
Location: Lake Wales, Florida, USA
Posts: 4
Quote:
Originally Posted by spencerf
what kernel are you trying to compile. In mine which is 2.6.16-gentoo-r4 there is only one option which is the athlon/opteron/k8 one. So I would choose that.

You probably can't copy it to /boot because you set /boot up as a seperate partition and if you followed the handbook you also probably have noauto in your fstab which means that /boot will not be automatically mounted at startup. So just

mount /boot ---then try it
Thanks Spence,

I am using 2.6.15 r-4, that is what I get when I follow the installation document from Gentoo. I am also confused about the their instruction of partitioning the hard disk.

I have an 80 GB disk on which there is a primary partition hda1 (35 GB) and holds Windows XP. I would like to load Gentoo and save some space for "just in case" future use. So I created an extended partition hda2 (20 GB). The extended partition hda2 I subdivided in to three logical partition, hda5 for boot sector and GRUB, hda6 for SWAP and hda7 for Root. Instructions document from Gentoo suggests all three partitions, Boot, Swap and Root, for Gentoo should be in three primary sectors. If I follow their instruction, I have used up option of having 4 primary partition on my hard disk. But I do not want to do so. Anyone thinks that my plan would work?

Please help!!
RKSingh is offline   Reply With Quote
Old 05-08-2006   #4 (permalink)
Linux Engineer
 
spencerf's Avatar
 
Join Date: Jan 2005
Location: Syracuse, NY
Posts: 1,144
I don't know what you mean by I use up the option to have four primary partitions.

This is the partition scheme I would recommend.

/dev/hda1 ---already used
/dev/hda2 +32M /boot
/dev/hda3 +512M swap
/dev/hda4 spit into logical for /dev/hda5 + 6
/dev/hda5 20 gig / logical
/dev/hda6 rest or your space no mount point (save for future distro or storage) logical


if in the future you want anothe distro you can reuse both your /boot and your swap and just put your / mount point on /dev/hda6
__________________
All right, brain. You don't like me and I don't like you, but let's just do this and I can get back to killing you with beer. All New Users Read This!!! If you have a grub problem please look at GRUB MANUAL
spencerf is offline   Reply With Quote
Old 05-08-2006   #5 (permalink)
Just Joined!
 
Join Date: May 2006
Location: Lake Wales, Florida, USA
Posts: 4
Compiling Gentoo kernel for Laptop with AMD64

Thank you Sir.
RKSingh is offline   Reply With Quote
Old 05-10-2006   #6 (permalink)
Just Joined!
 
Join Date: May 2006
Location: Lake Wales, Florida, USA
Posts: 4
Compile error

After compiling and

# cp arch/x86_64/boot/bzImage /boot/<kernel-version>

I have to find with:

# find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko'

at this point I get the error message,:

Find: Path must proceed expression
Usage find [path] expression

I am stuck here, please help.
RKSingh is offline   Reply With Quote
Old 05-10-2006   #7 (permalink)
Linux Engineer
 
spencerf's Avatar
 
Join Date: Jan 2005
Location: Syracuse, NY
Posts: 1,144
you have to enter your actual kernel version not the words kernel version. but it doesn't really matter you can skip this step as its not really that important.

if you want certain modules to autoload later you can still do it.

edit:

you can find out your exact kernel version by typing

uname -a

though this may not work since you haven't rebooted and aren't actually using that kernel yet but you should know your kernel version by going to

cd /usr/src

then

ls -a

you should only have one version which will be symlinked to /usr/src/linux
__________________
All right, brain. You don't like me and I don't like you, but let's just do this and I can get back to killing you with beer. All New Users Read This!!! If you have a grub problem please look at GRUB MANUAL
spencerf is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 07:35 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2