Results 1 to 7 of 7

Thread: BUG? x86_64 code on RasPi 4/arm64

  1. #1

    Exclamation BUG? x86_64 code on RasPi 4/arm64

    I followed the instructions here: but whenever I try to run some amd64 linux binary I get "uncaught target signal 5" and similar errors, or "Exec format error", but no successfully running app...

    PNG image.jpg

    What am I doing wrong here?

  2. #2
    Join Date
    It does say how to run x86 code, i.e. 32 bit code NOT x86_64 code i.e. 64 bit, i.e. its an emulated x86 CPU so AMD64 code will always fail..

  3. #3
    Oh! OK 🤦🏻*♂️

    Seriously, though, who?s still running 32-bit code on x86? Especially on a recent release OS?

    The only reason I need this, is for some commercial software not released for arm64 (essentially cloud services) and it?s all x86_64.

    Any chance something like that can be done for amd64/x86_64? That would be a lot more useful?

  4. #4
    Join Date
    Because x86 MEANS a 32 bit CPU i.e. it cannot process more than 32 bits at a time..

    x86_64 MEANS a 64 bit CPU that is backwards compatible with x86 (32 bit) programs, i.e. it will run 64 bit OR 32 bit programmes

    (technically speaking modern CPU's don't actually use the full 64 bits but only 48 bits for the instruction set and memory addressing, but were getting way out of scope here..)

    If you need emulation for different platforms your in the world of virtual machines, try virtual box

  5. #5
    I?m fully aware of what you write, it was simply so far out of the range of the expected, that this day and age anyone, on a modern platform, would want to care running ancient 32-bit code, when the real need is to run modern code, almost all exclusively 64-bit code, which isn?t available on arm64, because boneheaded commercial software providers are still stuck in an intel-only world from a decade ago.
    So, yes, my mistake for not reading precisely enough?
    To be clear: had this been a retro gaming platform, or a legacy systems emulation tool, I would have read x86 to mean 32-bit; but in to context of running another CPU family?s code on a 64-bit modern platform, the false default assumption was that ?x86? was used generically to contrast ?arm?, not specifically to contrast ?x86_64?, given that it?s probably a decade or more since intel introduced a non x86_64 x86-compatible CPU.

  6. #6
    Join Date
    There are lots of architectural differences that make it impractical to do so, like x86_64 code being big endian and CISC instruction sets, whereas ARM64 is little endian and RISC architecture, i.e Complex OR Reduced Instruction Set Computing, architectures respectively. The 'endianess' is relatively easy to fix, the far reduced instruction set on the other hand much more so)

    The only people I know of who do actualy offer x86_64 emulation on any ARM based platform are Microsoft with their Windows ARM edition OS, but thats it.

  7. #7
    All x86 and x86_64 is little-endian. m68k and possibly PPC are big-endian.

    Besides M$, there?s Apple?s Rosetta, QEMU, and of particular interest in this context, Box64!
    They all do just fine despite the CISC-RISC thing.
    Heck, many CISC implementations internally use microcode, which isn?t all that different from RISC instructions.

    After reading the above benchmarks, I wonder if it wouldn?t be useful to have box86/box64 packages as part or arm64 Kali; as unfortunately there?s still too much software that?s not arm64 native.
    Last edited by rcfa; 2022-08-03 at 13:55. Reason: added text

Similar Threads

  1. Audio issues with Linux 5.14.0-kali2-amd64 x86_64
    By keaka in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2022-04-23, 19:00
  2. code/code-oss do not take optional arguments
    By c01dc0ff33 in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2021-09-04, 10:15
  3. Kali and raspi-gpio for arm64
    By krogstad in forum ARM Archive
    Replies: 3
    Last Post: 2020-08-26, 17:11
  4. Replies: 2
    Last Post: 2019-03-17, 22:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts