Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #159517 > unrolled thread

64bit run on mips64r2

Started byMehmet CELIK <mehmet.celik@qetra.com>
First post2015-10-20 11:10 +0200
Last post2015-10-25 04:50 +0100
Articles 6 — 5 participants

Back to article view | Back to linux.debian.user


Contents

  64bit run on mips64r2 Mehmet CELIK <mehmet.celik@qetra.com> - 2015-10-20 11:10 +0200
    Re: 64bit run on mips64r2 <tomas@tuxteam.de> - 2015-10-20 11:40 +0200
      Re: 64bit run on mips64r2 Cindy-Sue Causey <butterflybytes@gmail.com> - 2015-10-20 16:10 +0200
        Re: 64bit run on mips64r2 <tomas@tuxteam.de> - 2015-10-21 09:00 +0200
          Re: 64bit run on mips64r2 tomas@tuxteam.de - 2015-10-21 19:00 +0200
    Re: 64bit run on mips64r2 Stuart Longland <stuartl@longlandclan.id.au> - 2015-10-25 04:50 +0100

#159517 — 64bit run on mips64r2

FromMehmet CELIK <mehmet.celik@qetra.com>
Date2015-10-20 11:10 +0200
Subject64bit run on mips64r2
Message-ID<qlB5E-7z4-15@gated-at.bofh.it>
Hi all..

How can I run amd64 application in mips64r2 OS. I'm trying multiarch, but doesnt support amd64 in mips64r2 (Octeon CPU/Standart Glibc).

Is It possible ??


Thanks in
advance.

[toc] | [next] | [standalone]


#159520

From<tomas@tuxteam.de>
Date2015-10-20 11:40 +0200
Message-ID<qlByG-87B-13@gated-at.bofh.it>
In reply to#159517
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Oct 20, 2015 at 11:58:13AM +0300, Mehmet CELIK wrote:
> Hi all..
> 
> How can I run amd64 application in mips64r2 OS. I'm trying multiarch, but doesnt support amd64 in mips64r2 (Octeon CPU/Standart Glibc).

I don't think you can, at least without processor emulation.

Perhaps Qemu? Information on the 'nets is sparse about Qemu running on
MIPS64 hosts, but MIPS32 seems to have been done.

Performance won't be stellar, though...

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlYmAXYACgkQBcgs9XrR2kbPJgCeMrfhW4Miga/KeN6hR9C5giyp
oScAnRrQLB7fR3Ex4l0ipZ4NyKhgU6nK
=rxTH
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


#159531

FromCindy-Sue Causey <butterflybytes@gmail.com>
Date2015-10-20 16:10 +0200
Message-ID<qlFLZ-5WV-37@gated-at.bofh.it>
In reply to#159520
On 10/20/15, tomas@tuxteam.de <tomas@tuxteam.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tue, Oct 20, 2015 at 11:58:13AM +0300, Mehmet CELIK wrote:
>> Hi all..
>>
>> How can I run amd64 application in mips64r2 OS. I'm trying multiarch, but
>> doesnt support amd64 in mips64r2 (Octeon CPU/Standart Glibc).
>
> I don't think you can, at least without processor emulation.
>
> Perhaps Qemu? Information on the 'nets is sparse about Qemu running on
> MIPS64 hosts, but MIPS32 seems to have been done.


Having just recently installed Qemu myself and so having at least
wandered around a TINY bit, I honestly wondered if Qemu would help
here after first reading the question. Since it's now officially a
suggestion, I just entered "qemu-" and tab-tabbed in my terminal. Got
this back:

qemu-mips
qemu-mips64
qemu-mips64el
qemu-mipsel
qemu-mipsn32
qemu-mipsn32el

qemu-system-mips
qemu-system-mips64
qemu-system-mips64el
qemu-system-mipsel

Since I'm not versed in "mips" so as to know the difference, I
included all the ones that popped up here on my end in case they
provide any kind of insight into availability of Qemu services. Yeah,
I know, I don't see the "r2" specifically, either. :)

The more I think on that, here's the complete (*extended*) list. I've
only ventured into Qemu long enough to stumble on the necessity of
knowing these are out there but not if there exists more of something
else that complements and/or builds beyond the function of these. My
thought process in sharing is that perhaps there's something there
that MIGHT serve as a viable fallback if you must absolutely
declare/see that "r2":

qemu-aarch64              qemu-ppc                  qemu-system-mips64
qemu-alpha                qemu-ppc64                qemu-system-mips64el
qemu-arm                  qemu-ppc64abi32           qemu-system-mipsel
qemu-armeb                qemu-ppc64le              qemu-system-moxie
qemu-cris                 qemu-s390x                qemu-system-or32
qemu-i386                 qemu-sh4                  qemu-system-ppc
qemu-img                  qemu-sh4eb                qemu-system-ppc64
qemu-io                   qemu-sparc                qemu-system-ppcemb
qemu-launcher             qemu-sparc32plus          qemu-system-s390x
qemu-m68k                 qemu-sparc64              qemu-system-sh4
qemu-microblaze           qemu-system-aarch64       qemu-system-sh4eb
qemu-microblazeel         qemu-system-alpha         qemu-system-sparc
qemu-mips                 qemu-system-arm           qemu-system-sparc64
qemu-mips64               qemu-system-cris          qemu-system-tricore
qemu-mips64el             qemu-system-i386          qemu-system-unicore32
qemu-mipsel               qemu-system-lm32          qemu-system-x86_64
qemu-mipsn32              qemu-system-m68k          qemu-system-xtensa
qemu-mipsn32el            qemu-system-microblaze    qemu-system-xtensaeb
qemu-nbd                  qemu-system-microblazeel  qemu-unicore32
qemu-or32                 qemu-system-mips          qemu-x86_64

Good luck!

Cindy :)

-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape *

[toc] | [prev] | [next] | [standalone]


#159558

From<tomas@tuxteam.de>
Date2015-10-21 09:00 +0200
Message-ID<qlVxo-3Et-15@gated-at.bofh.it>
In reply to#159531
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Oct 20, 2015 at 10:03:33AM -0400, Cindy-Sue Causey wrote:
> On 10/20/15, tomas@tuxteam.de <tomas@tuxteam.de> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Tue, Oct 20, 2015 at 11:58:13AM +0300, Mehmet CELIK wrote:
> >> Hi all..
> >>
> >> How can I run amd64 application in mips64r2 OS. I'm trying multiarch, but
> >> doesnt support amd64 in mips64r2 (Octeon CPU/Standart Glibc).
> >
> > I don't think you can, at least without processor emulation.
> >
> > Perhaps Qemu? Information on the 'nets is sparse about Qemu running on
> > MIPS64 hosts, but MIPS32 seems to have been done.
> 
> 
> Having just recently installed Qemu myself and so having at least
> wandered around a TINY bit, I honestly wondered if Qemu would help
> here after first reading the question. Since it's now officially a
> suggestion, I just entered "qemu-" and tab-tabbed in my terminal. Got
> this back:

Cindy,

if I've understood the original poster, (s)he wants to run X86_64 binaries
on a MIPS64 hardware: that'd be "the other way around" to what we are
used to. Mehmet: did I understand you correctly?

What you've found is very useful in the "normal" case, i.e. you have
an X86_64 hardware and want to run MIPS (32 or 64) binaries.

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlYnLeMACgkQBcgs9XrR2kbCAACfR/SDIaY77Q1EoRM3vNWNOPT8
nIQAn2Xo9NJ+37nV9uKjKu8ruzz2rWbN
=qD6y
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


#159594

Fromtomas@tuxteam.de
Date2015-10-21 19:00 +0200
Message-ID<qm4U2-zk-1@gated-at.bofh.it>
In reply to#159558
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Oct 21, 2015 at 10:47:23AM +0300, Mehmet CELIK wrote:
> I understand Tomas :)) Its not true method (amd64 binary in mips64)

But there seems to be something for MIPS32:

  <http://wiki.qemu.org/Features#Host_CPU_support>

(trying to emulate a 64 bit system on that might be a bit slow, though)

Regards
- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlYnux8ACgkQBcgs9XrR2kZDoACfY7KfAV2zMdUtz0pbK0TTuLja
IF4AnR57EeVUL5Q+V50nNTEk326Tm/O/
=+2Z+
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


#159746

FromStuart Longland <stuartl@longlandclan.id.au>
Date2015-10-25 04:50 +0100
Message-ID<qnktI-3Wl-5@gated-at.bofh.it>
In reply to#159517

[Multipart message — attachments visible in raw view] — view raw

On 20/10/15 18:58, Mehmet CELIK wrote:
> Hi all..
> 
> How can I run amd64 application in mips64r2 OS. I'm trying multiarch, but doesnt support amd64 in mips64r2 (Octeon CPU/Standart Glibc).
> 
> Is It possible ??

Possible, yes.
Viable, no.

The CPU will not understand AMD64 instructions, so they need to be
translated to the host's native CPU instruction set.  This results in a
reduction of performance.  Two options exist for doing this: QEMU and Bochs.

e.g. it's possible to run Linux on an 8-bit AVR (ATMega1284P) computer:
http://hackaday.com/2012/03/28/building-the-worst-linux-pc-ever/

In that case, code to emulate an ARM machine was programmed into the AVR
chip.

Given that MIPS machines are generally both more expensive and slower
than modern AMD64 systems, one has to question the logic in such an
endeavour except maybe to prove it can be done.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web