Hello. Some people said Apple M1 doesn't support arm32: https://news.ycombinator.com/item?id=27277351 In contrast, Raspberry Pi 4 SoC supports both arm32 and arm64.
This difference results in Apple M1 can't run this busybox armv8l binary https://busybox.net/downloads/binaries/1.31.0-defconfig-multiarch-musl/busybox-armv8l but Raspberry Pi 4 can. This is the error log of executing busybox-armv8l<https://busybox.net/downloads/binaries/1.31.0-defconfig-multiarch-musl/busybox-armv8l> on Ubuntu 21 arm64 on Apple M1. " myh@ubuntu:~$ wget https://busybox.net/downloads/binaries/1.31.0-defconfig-multiarch-musl/busybox-armv8l && chmod 755 busybox-armv8l && ./busybox-armv8l --2022-02-15 12:46:15-- https://busybox.net/downloads/binaries/1.31.0-defconfig-multiarch-musl/busybox-armv8l Resolving busybox.net (busybox.net)... 140.211.167.122 Connecting to busybox.net (busybox.net)|140.211.167.122|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1148524 (1.1M) Saving to: ‘busybox-armv8l’ busybox-armv8l 100%[==================================================================>] 1.09M 1.05MB/s in 1.0s 2022-02-15 12:46:17 (1.05 MB/s) - ‘busybox-armv8l’ saved [1148524/1148524] bash: ./busybox-armv8l: cannot execute binary file: Exec format error myh@ubuntu:~$ file busybox-armv8l busybox-armv8l: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, stripped " Unfortunately, some downstream apps use the busybox-armv8l<https://busybox.net/downloads/binaries/1.31.0-defconfig-multiarch-musl/busybox-armv8l> in their arm64 apps. For example, distroless container image: https://github.com/GoogleContainerTools/distroless/blob/6028308845393e394c650ce5c1332f8182451f17/busybox_archives.bzl#L19-L24 Thus, their apps work only on CPUs supporting both arm32 and arm64, not arm64 only CPUs as Apple M1. Could provide an arm64 busybox binary on busybox.net to help fixing this problem? Regards, Meng-Yuan Huang
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
