pololu / nixcrpkgs

Tools for cross-compiling standalone applications using Nix.
Other
202 stars 17 forks source link

Nix for arm64 platform #1

Open dragonlost opened 5 years ago

dragonlost commented 5 years ago

Hello I would like to know if NIX is compatible with the platform aarch64 / arm64? I would like to be able to use "Tic Stepper Motor Controller software" on a card on a form armv8 / aarch64 / arm64 (nanopi-m4 and rockpi 4).

thanks

DavidEGrayson commented 5 years ago

I have not tried running Nix itself on a 64-bit ARM machine.

Nixcrpkgs has no support for 64-bit ARM currently, but it should be possible to add it if we can figure out the right options for configuring GCC. This would allow you to use a normal x64 Linux machine to cross-compile software for your 64-bit ARM machine. Can you run gcc -v on your 64-bit ARM boards and post the results here?

Also, can you try downloading the Tic software for Raspberry Pi from the Tic user's guide and running that on your boards? What happens when you try to do that?

The fastest way to get the Tic software running on your boards would be to compile it from source using the native development tools running on the boards.

dragonlost commented 5 years ago

OK, I'll watch this. Like that, it will be more accessible. It would be great if the first version of sofware TIC is available in arm64 !

DavidEGrayson commented 5 years ago

Just to be clear: it's definitely worthwhile for you to try running the Tic software that we compiled for the Raspberry Pi, since there is a chance it might just work for you.

Also, again, you can probably get the Tic software working today if you compile it from source without using nix or nixcrpkgs. See the instructions in BUILDING.md in the section "Building from source on Linux (for Linux)".

If you do want to use nixcrpkgs, I might be able to help with that if you answer the questions from my last post.

Please let me know what you try and what results you get!