LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-07-2004, 01:07 PM   #1
veritas
Member
 
Registered: Aug 2003
Location: Dallas,TX
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241

Rep: Reputation: 30
has anyone successfully compiled a kernel for a diff arch. other than i386?


First of all, I put this post in slackware so I can work to eliminate the possibility that I am having trouble compiling because of the distro I'm working from.

Anyways, here are the questions: has anyone ever compiled a kernel for a processor architecture other than the default i386? Anyone know the exact steps you need to take to do this? I am trying to do it for MIPS64 architecture. This is what i do:

1) unzip a 2.4.x kernel into /usr/src
2) change to the directory
3) copy the premade kernel config file into the directory
4) 'make menuconfig ARCH=mips64' <-- that actually loads a default mips64 config but i want to use another config file so i just specify that at the bottom of the menuconfig program
5) 'make dep ARCH=mips64'
6) 'make bzImage'

And immediately I get allll of these errors (note: i get the same errors if I use their default mips64 configuration, instead of mine) http://home.comcast.net/~stray_dog50.../mips64-errors
 
Old 06-07-2004, 03:21 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,340

Rep: Reputation: 73
and if you export CFLAGS="-march=mips64 -mcpu=mips64" before make ?

at least from man gcc :

MIPS Options -mabicalls -march=cpu-type
-mtune=cpu=type -mcpu=cpu-type -membedded-data
-muninit-const-in-rodata -membedded-pic -mfp32
-mfp64 -mfused-madd -mno-fused-madd -mgas -mgp32
-mgp64 -mgpopt -mhalf-pic -mhard-float -mint64
-mips1 -mips2 -mips3 -mips4 -mlong64 -mlong32
-mlong-calls -mmemcpy -mmips-as -mmips-tfile -mno-
abicalls -mno-embedded-data -mno-uninit-const-in-
rodata -mno-embedded-pic -mno-gpopt -mno-long-calls
-mno-memcpy -mno-mips-tfile -mno-rnames -mno-stats
-mrnames -msoft-float -m4650 -msingle-float -mmad
-mstats -EL -EB -G num -nocpp -mabi=32 -mabi=n32
-mabi=64 -mabi=eabi -mfix7000 -mno-crt0 -mflush-
func=func -mno-flush-func -mbranch-likely -mno-
branch-likely
 
Old 06-07-2004, 08:27 PM   #3
veritas
Member
 
Registered: Aug 2003
Location: Dallas,TX
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241

Original Poster
Rep: Reputation: 30
Just tried your CFLAG tip and i got the same erros :/

I am confused as to why the people over at kernel.org would provide you with a default mips64 configuration if the configuration doesn't compile correctly.

Note: if this helps anyone with a response, i am not compiling this on a mips64 processor. I am compiling FOR a mips64 ON a regular duron processor.

Last edited by veritas; 06-07-2004 at 08:29 PM.
 
Old 06-07-2004, 09:22 PM   #4
veritas
Member
 
Registered: Aug 2003
Location: Dallas,TX
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241

Original Poster
Rep: Reputation: 30
cross-compiler

Just an update. I read on a mailing list I have to build a cross-compiler tool chain if I want to successfully compile a working kernel for mips architecture. Man, this is going to be a royal pain in the behind. But I have no choice. I'm missing two IRIX 6.5 cds and now I must pay with the eternal struggle to compile a mips kernel. This is definitely going in member success stories if I ever get this working.
 
Old 06-16-2004, 05:19 PM   #5
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora 16
Posts: 160

Rep: Reputation: 41
You may find http://www.linux-mips.org/ useful for MIPS toolchain, i386 cross compiler construction etc.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cross compiled kernel-2.6.13 for x86-64 arch stops booting under Slackware-10.1 Basel Slackware 4 09-09-2005 12:57 PM
new kernel compiled successfully, but the kernel-source package is the same old? luqman Red Hat 2 03-03-2005 08:41 AM
Someone has successfully compiled X.org 6.8.2?? Shagrath239 Slackware 1 02-15-2005 10:54 PM
Compiled successfully - now what? dbc001 Linux - Software 5 02-22-2004 10:04 AM
how can i tell if my kernel has compiled successfully Goatdemon Linux - General 6 05-24-2002 01:08 AM


All times are GMT -5. The time now is 03:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration