С каких пор под x64/x86 можно запускать статаческие арм бинарники? o_O
azq2@zhumarin:~/dev/fly/boot/lal$ arm-linux-gnueabi-gcc -Os main.c -o main -static
azq2@zhumarin:~/dev/fly/boot/lal$ ./main
ash: can't open '/init.sh'
Return code: 512
azq2@zhumarin:~/dev/fly/boot/lal$ uname -a
Linux zhumarin 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
azq2@zhumarin:~/dev/fly/boot/lal$ file ./main
./main: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=0x893528e3c29763fcbb00e923d09e5bd8e4b6bdd7, not stripped
azq2@zhumarin:~/dev/fly/boot/ramdisk4$ sbin/busybox
BusyBox v1.21.0-Stericson (2013-01-28 21:49:55 GMT) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2012.
Licensed under GPLv2. See source distribution for detailed
copyright notices.
Usage: busybox [function [arguments]...]
or: busybox --list[-full]
or: busybox --install [-s] [DIR]
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, ash, awk, base64, basename, blkid, bunzip2, bzcat, bzip2, cal,
cat, chat, chattr, chgrp, chmod, chown, chroot, chrt, cksum, clear,
comm, cp, crond, crontab, cut, date, dd, depmod, devmem, df, diff,
dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, echo, egrep, env,
ether-wake, expand, expr, fakeidentd, fdflush, fdformat, fdisk, fgrep,
find, fold, free, freeramdisk, fsck, fsync, ftpd, ftpget, ftpput,
getopt, grep, groups, gunzip, gzip, hd, head, hexdump, hostid,
hostname, httpd, hwclock, id, ifconfig, ifenslave, inetd, inotifyd,
insmod, install, ionice, iostat, ip, ipaddr, ipcalc, iplink, iproute,
iprule, iptunnel, kill, killall, killall5, less, ln, logname, losetup,
ls, lsattr, lsmod, lsof, lsusb, lzop, lzopcat, md5sum, microcom, mkdir,
mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.vfat, mknod, mkswap, modinfo,
modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite,
nc, netstat, nice, nmeter, nslookup, ntpd, od, patch, pgrep, pidof,
ping, ping6, pkill, pmap, powertop, printenv, printf, ps, pscan, pwd,
rdate, rdev, readahead, realpath, renice, reset, rev, rfkill, rm,
rmdir, rmmod, route, run-parts, script, scriptreplay, sed, seq,
setkeycodes, setlogcons, setsid, sha1sum, sha256sum, sha3sum,
sha512sum, showkey, sleep, smemcap, sort, split, stat, strings, stty,
sum, swapoff, swapon, sync, sysctl, tac, tail, tar, tee, telnet,
telnetd, test, tftp, tftpd, time, timeout, top, touch, tr, traceroute,
traceroute6, tty, ttysize, tunctl, umount, uname, uncompress, unexpand,
uniq, unix2dos, unlzop, unzip, uptime, usleep, uudecode, uuencode,
vconfig, vi, watch, wc, wget, which, who, whoami, whois, xargs, zcat
azq2@zhumarin:~/dev/fly/boot/ramdisk4$ file sbin/busybox
sbin/busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, stripped
O_O