Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cross-compilation to aarch64 target #25

Merged
merged 4 commits into from
Mar 8, 2024

Conversation

samderanova
Copy link
Contributor

@samderanova samderanova commented Mar 7, 2024

Resolves #24.

Changes

  • Update .cargo/config.toml to use the 64-bit target aarch64-unknown-linux-gnu and its respective linker (aarch64-unknown-linux-gnu-gcc for MacOS and aarch64-none-linux-gnu-gcc for other OS's).
    • The MacOS based one is commented out so that Mac users can simply uncomment and use this linker instead when compiling.
  • Update README.md to instruct the reader to download the new target.
  • Update GitHub workflow to use new target.

Testing

  • Attempt to build a release version of the program, either via cross build --release or cargo build --release. Both should run without errors.
  • Copy the executable located at target/aarch64-unknown-linux-gnu-gcc/release/pod-operation to the Raspberry Pi. Then log into the Pi, either via SSH or other means.
  • Make the file executable on the Pi by running chmod +x ./pod-operation.
  • Run the executable by running ./pod-operation. Both the blink demo and the socket server should start up properly.

@samderanova samderanova linked an issue Mar 7, 2024 that may be closed by this pull request
@samderanova samderanova force-pushed the update/cross-compilation-target branch 2 times, most recently from 8b84afb to 85f206a Compare March 7, 2024 08:58
Copy link
Member

@taesungh taesungh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this up, will test on the Pi on the pod in lab with the new 64-bit OS but trusting it works otherwise.

@samderanova samderanova force-pushed the update/cross-compilation-target branch from 85f206a to 23697e7 Compare March 8, 2024 04:49
@taesungh taesungh changed the title Update/cross compilation target Update cross-compilation to aarch64 target Mar 8, 2024
@taesungh taesungh merged commit 3533a05 into main Mar 8, 2024
2 checks passed
@taesungh taesungh deleted the update/cross-compilation-target branch April 30, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch cross-compilation to 64-bit architecture target
2 participants