How to enable 32 bit binary support on x86-64bit openwrt?
I have a x86-64 openwrt system. For some purpose, I want to compile x86-32 bit application and run on x86-64 openwrt system.
file InitMgr
InitMgr: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-i386.so.1, with debug_info, not stripped
InitMgr
bash: /usr/bin/InitMgr: No such file or directory
As I know, it's the problem of interpreter. On my x86-64 openwrt, it' only have /lib/ld-musl-x86_64.so.1 -> libc.so
Do you know how to enable to support to run 32 bit application on x86-64 openwrt?
Thank you very much!
With OpenWrt supporting LXC these days you have more options like OpenWrt/LXC/Alpine/qemu-i386 for 32bit-ELFs on x86-64 hosts. Works on standard kernel so you're still good to go with imagebuilder supporting server-side kmods (that wouldn't work anymore if you'd have compiled your own kernel with CONFIG_IA32_EMULATION=y).
Alpine Linux is a minimalistic Linux distribution starting from ~15MB (musl-libc, openrc, busybox, package manager) to ~100MB for a normally polluted system (when used in LXC).