LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-28-2008, 04:33 AM   #1
greplinux
Member
 
Registered: Jun 2007
Posts: 118

Rep: Reputation: 17
Architecture specific targets to MIPS


Hi,

I am trying to build Linux kernel for MIPS architecture. I am getting the compilation, making modules and installing modules clean. but when I try to make for specific targets like zImage or uImage I am getting "No targets specified" error. I guess it is not configured for these targets.

Since this is the first time I am building for MIPS, I don't really know the solution for this problem. How can I get image while compiling for MIPS architecture? I am getting vmlinux file but not zImage type of file.

Can anyone please shed more light on this issue?

Thanks,
 
Old 07-29-2008, 02:51 PM   #2
armanox
Member
 
Registered: Sep 2005
Location: Baltimore, MD, USA
Distribution: Fedora, Gentoo, Debian, Slackware, IRIX, OS X
Posts: 192

Rep: Reputation: 32
Ok, so now I must ask, what distro are you under?
And, what MIPS system are you using? SGI O2, etc?

It makes a big difference.
 
Old 07-30-2008, 04:12 AM   #3
greplinux
Member
 
Registered: Jun 2007
Posts: 118

Original Poster
Rep: Reputation: 17
Hi,
I am using fedora. I am not sure about the system though. :-(

Thanks,
 
Old 07-30-2008, 04:46 AM   #4
armanox
Member
 
Registered: Sep 2005
Location: Baltimore, MD, USA
Distribution: Fedora, Gentoo, Debian, Slackware, IRIX, OS X
Posts: 192

Rep: Reputation: 32
In order to build a kernel for MIPS we need to know what computer the kernel is going to be running on. MIPS, like Intel-based archetecture, has 32-bit and 64-bit. But, unlike Intel, you also have to consider "endianess"* when building you kernel. And a 32-bit kernel will not run on a 64-bit machine, and vice-verca. Therefore, we have 4 very different versions of MIPS:

MIPS,
MIPS64,
MIPSEL,
MIPSEL64,

In order to tell you how to cross-compile a MIPS kernel (because Fedora won't run on MIPS, but you can build for MIPS on Fedora) I need to know the processor that it will be running on (I can find out processor from system name usually).

*Endianness describes how the processor runs instructors, whether it's Least Significant (0 0 1 1 1 gets run as 1 first, then 1, 1, 0, and 0) bit first or Most Significant bit first (0 0 1 1 1 is processed as 0 first, then 0, 1, 1, and 1).
 
Old 07-30-2008, 07:52 AM   #5
greplinux
Member
 
Registered: Jun 2007
Posts: 118

Original Poster
Rep: Reputation: 17
Hi,
But Armanox, My doubt is why I am not getting any image like what I got for building for ARM/X86 (bzImage,zImage uImage), after the successful compilation.

I have also looked in to the Makefiles in ../Arch/Mips/boot. They have no targets for zImage etc like we have for arm/X86.

Is there any specific steps to be followed? Am I missing some thing.

I think the board which is going to run this image is BCM7405. Does this helps buddy??

Thanks,
 
  


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
How to force compile for a specific architecture ie Athlon ? hadding Programming 6 02-15-2016 04:00 PM
Architecture-specific CFLAGS Captain_Bodge Programming 1 01-30-2008 10:55 AM
How to make cross compilation toolchain for mips architecture kennithwang Linux - Embedded & Single-board computer 3 10-20-2007 08:03 AM
LXer: CodeSourcery Joins MIPS(R) Alliance Program and Delivers GNU/Linux Prelinker for MIPS-Based(TM) Processors LXer Syndicated Linux News 0 10-31-2006 07:54 PM
how to do architecture specific compiles? irfanhab Linux - Software 1 03-26-2005 07:40 AM


All times are GMT -5. The time now is 04:21 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration