All of lore.kernel.org
 help / color / mirror / Atom feed
* Change Endianess for MIPS build
@ 2011-04-05 10:43 Robert Berger
  2011-04-05 12:56 ` Bruce Ashfield
  2011-04-10  2:13 ` Khem Raj
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Berger @ 2011-04-05 10:43 UTC (permalink / raw)
  To: yocto

Hi,

I was wondering what needs to be done to build (at least) a little
endian qemu root file system for MIPS.

Yocto builds this:

ELF 32-bit MSB executable, MIPS, MIPS64 version 1 (SYSV), dynamically
linked (uses shared libs), not stripped

I would need this:

ELF 32-bit LSB executable, MIPS, MIPS64 version 1 (SYSV), dynamically
linked (uses shared libs), not stripped

I guess SITEINFO_ENDIANESS (endian-big, endian-little) needs to be
changed to endian-little somewhere.

Can you please point me to where this needs to be done?

... or maybe I'm completely wrong and it needs to be done elsewhere ...

Regards,

Robert

..."I'm afraid that I've seen too many people fix bugs by looking at
debugger output, and that almost inevitably leads to fixing the symptoms
rather than the underlying problems." --Linus

My public pgp key is available at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Change Endianess for MIPS build
  2011-04-05 10:43 Change Endianess for MIPS build Robert Berger
@ 2011-04-05 12:56 ` Bruce Ashfield
  2011-04-10  2:13 ` Khem Raj
  1 sibling, 0 replies; 3+ messages in thread
From: Bruce Ashfield @ 2011-04-05 12:56 UTC (permalink / raw)
  To: gmane; +Cc: yocto

On 11-04-05 06:43 AM, Robert Berger wrote:
> Hi,
>
> I was wondering what needs to be done to build (at least) a little
> endian qemu root file system for MIPS.
>
> Yocto builds this:
>
> ELF 32-bit MSB executable, MIPS, MIPS64 version 1 (SYSV), dynamically
> linked (uses shared libs), not stripped
>
> I would need this:
>
> ELF 32-bit LSB executable, MIPS, MIPS64 version 1 (SYSV), dynamically
> linked (uses shared libs), not stripped
>
> I guess SITEINFO_ENDIANESS (endian-big, endian-little) needs to be
> changed to endian-little somewhere.
>
> Can you please point me to where this needs to be done?

For the kernel, you'll need to modify the configuration to
be little endian. There is latent support in the kernel tree,
and I'll see about making the switch here so I can send some
better steps/changes for the kernel.

As for the rest of the system, you'd likely also need
to modify TARGET_ARCH to be mipsle, and adjust the
compile flags as required. I'm sure that there is an
example of this, but my quick check didn't reveal it.

Hopefully others will jump in with the right pointers!

Cheers,

Bruce

>
> ... or maybe I'm completely wrong and it needs to be done elsewhere ...
>
> Regards,
>
> Robert
>
> ..."I'm afraid that I've seen too many people fix bugs by looking at
> debugger output, and that almost inevitably leads to fixing the symptoms
> rather than the underlying problems." --Linus
>
> My public pgp key is available at:
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Change Endianess for MIPS build
  2011-04-05 10:43 Change Endianess for MIPS build Robert Berger
  2011-04-05 12:56 ` Bruce Ashfield
@ 2011-04-10  2:13 ` Khem Raj
  1 sibling, 0 replies; 3+ messages in thread
From: Khem Raj @ 2011-04-10  2:13 UTC (permalink / raw)
  To: yocto

On 4/5/2011 3:43 AM, Robert Berger wrote:
> Hi,
>
> I was wondering what needs to be done to build (at least) a little
> endian qemu root file system for MIPS.
>
> Yocto builds this:
>
> ELF 32-bit MSB executable, MIPS, MIPS64 version 1 (SYSV), dynamically
> linked (uses shared libs), not stripped
>
> I would need this:
>
> ELF 32-bit LSB executable, MIPS, MIPS64 version 1 (SYSV), dynamically
> linked (uses shared libs), not stripped
>
> I guess SITEINFO_ENDIANESS (endian-big, endian-little) needs to be
> changed to endian-little somewhere.
>
> Can you please point me to where this needs to be done?
>

mipsel is treated as a different machine. Its not supported (yet) in 
oe-core. Its on my todo list unless someone beats me to it. You need
to add machine support and infra support. You can look at classic 
openembedded as reference. Where it is supported.


> ... or maybe I'm completely wrong and it needs to be done elsewhere ...
>
> Regards,
>
> Robert
>
> ..."I'm afraid that I've seen too many people fix bugs by looking at
> debugger output, and that almost inevitably leads to fixing the symptoms
> rather than the underlying problems." --Linus
>
> My public pgp key is available at:
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-10  2:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-05 10:43 Change Endianess for MIPS build Robert Berger
2011-04-05 12:56 ` Bruce Ashfield
2011-04-10  2:13 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.