Currently I am using the binary from this tutorial:
https://ada-pi.gitbook.io/raspi-spo/beginner-guide-1/beginner-guide/tutorial-2-testnet
wget https://ci.zw3rk.com/build/1753/download/1/aarch64-unknown-linux-musl-cardano-node-1.26.1.zip
But I am wondering if there is a update how can I go about compiling it myself?
I just made a Cardano Node on a Amazon AWS r6g.large (2 core / 16 gig ram ) ARM architecture
1 Like
I am using the same pre-built binaries from Moritz on my raspberry pi. I reached out to him for tips and he said he built it by cross compiling with nix.
let
sources = import ./nix/sources.nix {};
# Fetch the latest haskell.nix and import its default.nix
haskellNix = import sources."haskell.nix" {};
# haskell.nix provides access to the nixpkgs pins which are used by our CI, hence
# you will be more likely to get cache hits when using these.
# But you can also just use your own, e.g. '<nixpkgs>'
nixpkgsSrc = haskellNix.sources.nixpkgs-2009;
#nixpkgsSrc = sources.nixpkgs-m1; #haskellNix.sources.nixpkgs-2009; #sources.nixpkgs; #
# haskell.nix provides some arguments to be passed to nixpkgs, including some patches
# and also the haskell.nix functionality itself as an overlay.
nixpkgsArgs = haskellNix.nixpkgsArgs;
in
{ system ? __currentSystem
, nativePkgs ? import nixpkgsSrc (nixpkgsArgs // { overlays =
# [ (import ./rust.nix)] ++
nixpkgsArgs.overlays ++
[(final: prev: { libsodium = final.callPackage ./libsodium.nix {}; })]
;
inherit system;
This file has been truncated. show original
I have not yet attempted compiling my own binary because my coding skills are a bit rusty. But I was gonna play around this weekend with it. Let me know if you get anywhere!
-Sully
1 Like
tomdx
17 April 2021 14:40
3
You could run the multiarch Docker image , that already takes care of all the arm64 stuff.
$ docker run --detach \
--name=relay \
-p 3001:3001 \
-e CARDANO_UPDATE_TOPOLOGY=true \
-v node-data:/opt/cardano/data \
nessusio/cardano-node run
How to install Docker on AWS is documented here .