LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-27-2003, 05:45 AM   #1
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Rep: Reputation: 30
Compiling kernel on Athlon64


I'm trying to compile the 2.4.23 kernel for my new Athlon64 processor. I select the 'Opteron/Athlon64/Hammer/K8' processor type and all appears to go well, but it still compiles '-march=athlon'. Also, when I do 'make menuconfig' again, the pocessor type has been set back to 'Athlon/Duron/K7'. Does anyone have a clue about what's causing this? Is the Athlon64 Processor not yet fully supported in 2.4.23?
The kernel works fine, by the way, but I'd like to optimize it for my processor.

Thanks in advance.
 
Old 12-27-2003, 08:50 AM   #2
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
i don't have an opteron so i don't know, but perhaps try a 2.6 kernel?

maybe in the 2.4.23 kernel, 64-bit processors aren't fully implemented and is just a choice to avoid confusing users.
 
Old 12-27-2003, 10:14 AM   #3
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Original Poster
Rep: Reputation: 30
All goes fine when compiling the 2.6 kernel, but I'm having trouble compiling my ethernet driver with that kernel. That's why I wanted to stick with the 2.4.23.
 
Old 01-05-2004, 11:18 AM   #4
srenar
Member
 
Registered: Jul 2003
Posts: 31

Rep: Reputation: 15
ethernet driver

look for the "forcedeth" patch, its an open source driver for the nvidia network card thats most likely the one on your motherboard. you can get it here ----> http://www.hailfinger.org/carldani/l...hes/forcedeth/

then copy the patch to your /usr/src/linux-2.6.0 directory, and use the patch command

"patch -p1 < patchname"

to patch the kenel

p.s. they have a driver for both the 2.4.xx and the 2.6.xx kernels
 
Old 01-05-2004, 12:39 PM   #5
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Original Poster
Rep: Reputation: 30
Yup, that's my ethernet controller. Thanks a bunch, I'm off to try it right away! If it works I can finally start using my 2.6.0 kernel...
 
Old 07-20-2004, 09:04 PM   #6
abaxial
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
Thats not all

Sorry to say, you will need a copy of binutils that supports x86_64 code. You can download it from www.kernel.org and compile it to support your athlon64. Unfortunately I don't know much as I also recently purchased an athlon64 laptop and am new at this. I think that to compile for this processor you need to add an 'ARCH=x86_64' at the end of your make commands.

make menuconfig ARCH=x86_64
make all modules_install ARCH=x64_64

Then you'd fetch your bzImage from the arch/x86_64/ directory.

This is my guess, I've got more to sift through, like...
cc1: error: code model 'kernel' not supported in the 32 bit mode

good luck, I'll need it too...

One more thing, you might want to download gcc-3.4.1. It supports the -march=athlon64 option.

Last edited by abaxial; 07-20-2004 at 09:09 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling kernel for Athlon64 apinta10 Slackware 1 10-11-2005 08:20 AM
[Kernel] Athlon64, k7 or k8? Creak Debian 4 06-17-2005 04:47 AM
Best Mandrake for Athlon64? Passive Mandriva 1 09-16-2004 07:40 AM
Athlon64+Slack10 paulinimus Linux - Hardware 0 08-17-2004 06:16 AM
Athlon64 @ Linux yanger Linux - Hardware 1 07-26-2004 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:47 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