LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-11-2004, 12:48 PM   #1
Hobbiticus
LQ Newbie
 
Registered: Sep 2004
Distribution: Debian
Posts: 6

Rep: Reputation: 0
Compiling linux for amd64


I've searched everywhere and I can't find anywhere explaining how to compile linux for x86_64. I downloaded the ltest kernel source off of kernel.org (2.6.8.1), and configured it for an Athlon64 chip. However, it appears that it's still a 32 bit kernel, due to the fact that the nforce3 64 bit drivers do not install, and the ut2k4 64 bit client won't execute.

I just can't seem to find anywhere to configure the kernel or my a64 bit architecture.



I guess the standard info is necessary:
Debian unstable
Kernel 2.6.8.1
ASUS K8N-E with nForce3 250GB chipset
AMD Athlon64 3000+
 
Old 09-11-2004, 02:26 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

maybe this link will help u in compiling ur kernel

http://www.amd.com/us-en/assets/cont...Technology.htm

regards
 
Old 09-11-2004, 04:45 PM   #3
Hobbiticus
LQ Newbie
 
Registered: Sep 2004
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
That article makes it seem that you have to edit the kernel source in order to compile for amd64 architecture. Isn't there just some option that I have to switch in order to build a 64 bit kernel?

I also don't need to port any drivers (that I know of), i just want to build a 64 bit kernel, preferably using the standard make menuconfig, make modules_install, make install. Isn't there a quick and easy way of doing this?
 
Old 09-11-2004, 05:54 PM   #4
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
When you use make menuconfig, go to Processor type and features -> Processor Family and select Opteron/Athlon64/Hammer/K8. Can't help you any further. Don't have a AMD64 yet.


Maybe this can help you.
http://users.idf.de/~fs/debian-amd64-howto.html
 
Old 09-12-2004, 01:58 PM   #5
Hobbiticus
LQ Newbie
 
Registered: Sep 2004
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
Ok, that helps a bit more. I still don't quite understand how it all works, but I compiled a 64 bit kernel in a chroot which i can boot into (with some errors). If I'm understanding this correctly, I _HAVE_ to reinstall linux from scratch on a new partition to get a 64 bit kernel, and even then, there is no module support. Is this true? It also makes it sound that I'll need to run some 32 bit applications in a 32 bit chroot on the 64 bit kernel, which is pretty lame.

Oh well, even if I have to, I'm supposed to get a new sata drive tomorrow and I'll probably have to reinstall from scratch anyway. Maybe I'll give it a shot.

Thanks for the help!
 
Old 10-08-2004, 07:40 AM   #6
MadnessASAP
Member
 
Registered: Oct 2004
Distribution: Gentoo AMD64 2005.0
Posts: 36

Rep: Reputation: 15
I'm working on trying to do the same thing and not 100% successful (yet) but have figured out that you need to add ARCH="x86_64" to the make options IE. "make ARCH="x86_64" menuconfig"
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP!!! Compiling Hexen for AMD64 thelin-xportal Linux - Software 0 10-23-2005 09:55 PM
Compiling for AMD64 processor gsrikanth Linux - General 1 04-13-2005 02:49 AM
Compiling an AMD64 kernel from a 32-bit environment justinmc Linux - General 3 01-16-2005 06:47 PM
Compiling programs from source in Mandrake 10 AMD64 RC1 hydroxy Linux - Software 7 05-12-2004 03:55 PM
suse 9 for amd64 and kernel compiling dick220369 Linux - Newbie 0 01-14-2004 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:46 PM.

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