Canop/rhit

Add arm64 and arm32 binaries on release

patrickelectric opened this issue · 9 comments

Add arm64 and arm32 binaries on release
Canop commented

What platforms are you interested into ? You want to run rhit on what kind of system ?

Raspberry Pi 3 and 4. We are working in an image and would like to add your software as one of the available tools on the system by default.

Canop commented

For arm32, armv7-unknown-linux-gnueabihf should be OK. I've put it here for verification: https://dystroy.org/rhit/download/

I'm not sure there's a ready to use image for arm64 but I don't really know the Raspberry world.

For arm32, armv7-unknown-linux-gnueabihf should be OK. I've put it here for verification: https://dystroy.org/rhit/download/

I'm not sure there's a ready to use image for arm64 but I don't really know the Raspberry world.

aarch64-unknown-linux-gnu for 64 bit Raspberry Pi.

I built using cross build --target aarch64-unknown-linux-gnu --release, and it worked perfectly on my pi 4 running 64bit piOS.

Although it might be worth building statically, as in for musl? With:

cross build --target aarch64-unknown-linux-musl --release
Canop commented

Unless you see a problem, I'll merge this: #27

It's possible to build for 32bit arm with musl as well. I only suggested musl targets because I've had issues, with other projects, in the past where the GCC (I think) version on the build machine didn't match with the target machine, and then the cross compiled binary won't work on the pi.

But maybe the cross docker image handles this better than building using cargo and any installed targets.

Canop commented

I already build for MUSL for x86 because those problems exist. I guess I can do it for arm32 too.

Currently away from computers, but next week I can build and run on real hardware, both 32 and 64 bit arm pi's, but can't see any reason why it won't work

Yup, can confirm, works on real hardware.

For Pi4 64Bit pi OS:
cross build --target aarch64-unknown-linux-musl --release

and for pi zero W 32bit pi OS:
cross build --target arm-unknown-linux-musleabihf --release