In Debian, armhf refers to ARMv7, not ARMv6. The arm-linux-gnueabihf cross-compilers in the Debian repos compile for ARMv7, they do not support ARMv6.Code:
-mfpu=vfp -march=armv6zk -mtune=arm1176jzf-s
You'll need a version of GCC that was configured for ARMv6 specifically.
If you're going to be cross-compiling anyway, you might as well do it on an x86-64 machine instead of on the RPi5, you should be able to find an x86-64 to ARMv6 cross-compiler easily, e.g. https://github.com/tttapa/docker-arm-cross-toolchain.
I didn't immediately find any aarch64 to ARMv6 cross-compilers, so you would have to build one yourself if you want to cross-compile on the RPi5. This should be quite easy, you can just use the config files from the repo above and run crosstool-ng on your RPi5, but it may take a while to build.
Statistics: Posted by tttapa — Fri Aug 30, 2024 5:52 pm