Linux - GeneralThis 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
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.
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.
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+
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?
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.
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.
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"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.