LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Architecture specific targets to MIPS (https://www.linuxquestions.org/questions/linux-newbie-8/architecture-specific-targets-to-mips-658725/)

greplinux 07-28-2008 04:33 AM

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,

armanox 07-29-2008 02:51 PM

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.

greplinux 07-30-2008 04:12 AM

Hi,
I am using fedora. I am not sure about the system though. :-(

Thanks,

armanox 07-30-2008 04:46 AM

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).

greplinux 07-30-2008 07:52 AM

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,


All times are GMT -5. The time now is 01:47 PM.