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.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Other Distributions > Yoper Linux Help
Reload this Page Compiling Gentoo kernel for Laptop with AMD64
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Yoper Linux Help Officially recognised support forum for Yoper Linux.

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
__________________
"Challenge your mind. Open new doors to your intellectual dimension and soar".
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,143
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!!
__________________
"Challenge your mind. Open new doors to your intellectual dimension and soar".
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,143
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.
__________________
"Challenge your mind. Open new doors to your intellectual dimension and soar".
RKSingh is offline   Reply With Quote
Old 05-09-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.
__________________
"Challenge your mind. Open new doors to your intellectual dimension and soar".
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,143
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
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



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




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

Content Relevant URLs by vBSEO 3.2.0