You are not logged in.

#1 2021-11-17 09:30:40

shinji01
Member
Registered: 2021-11-17
Posts: 2

Unable to run any binary with QEMU (ARM, MIPS)

Hi !
I'm trying to run some binaries ARM or MIPS32 for example.
I've installed qemu, qemu-arch-extra and tried also with gnueabi et gnueabihf packages.
Each time I try to run a program the dynamic libraries are not present on my system (/lib/ld-uClibc.so.0 for MIPS).
Isn't the packages previously installed supposed to give me those ? Thanks for help

Offline

#2 2021-11-17 17:56:34

aldyrius
Member
Registered: 2015-12-31
Posts: 39

Re: Unable to run any binary with QEMU (ARM, MIPS)

The binary is built to require certain libraries and look for them in certain places. Installing emulators/toolchains is not the same as having and using a uClibc library specific to your targeted binary's needs. The field of emulation related to embedded systems code is complex; you'll want to be quite familiar with the likes of Binutils and what's really going on when you attempt to load and run an ELF, as a start.

A hint to get you started off in the right direction:
https://aur.archlinux.org/packages/qemu-user-static

And because I suppose we're closing in on Christmas:
https://www.novetta.com/2018/02/emulati … with-qemu/

Offline

#3 2021-11-20 13:56:35

shinji01
Member
Registered: 2021-11-17
Posts: 2

Re: Unable to run any binary with QEMU (ARM, MIPS)

Thanks for your answer ! I have to admit I tried to run an ARM binary but didn't understand what's really going on behind. Thank you for your resources. I'll try to get it all !

Offline

Board footer

Powered by FluxBB