# Trying to build on ARM

**URL:** <https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850>\
**Category:** Technical Support\
**Created:** [March 6, 2019, 7:44pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850 "2019-03-06T19:44:25Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![den](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@den](https://forum.zcashcommunity.com/u/den)\
**Post date:** [May 24, 2019, 8:30pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/81 "2019-05-24T20:30:11Z")

</div>

What prevents us from putting the blockchain data available for download as well? I wonder if that could avoid the syncing time issue and requiring extra ram not needed when synced…

I thought of some companies were selling hardware running bitcoin node including the full blockchain…

---

<div class="post-metadata">

**Author:** ![Blinky](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@Blinky](https://forum.zcashcommunity.com/u/Blinky)\
**Post date:** [May 25, 2019, 1:55pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/82 "2019-05-25T13:55:51Z")

</div>

Thank you so much for this! ( And for telling nooby ole me to use wget! )

---

<div class="post-metadata">

**Author:** ![garethtdavies](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/garethtdavies/32/210_2.png) [@garethtdavies](https://forum.zcashcommunity.com/u/garethtdavies)\
**Post date:** [May 25, 2019, 3:01pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/83 "2019-05-25T15:01:39Z")

</div>

> [@den](#):
>
> What prevents us from putting the blockchain data available for download as well? I wonder if that could avoid the syncing time issue and requiring extra ram not needed when synced…
> 
> I thought of some companies were selling hardware running bitcoin node including the full blockchain…

Yeh Casa node (and probably others) do this [https://store.casa/lightning-node/](https://store.casa/lightning-node/). It’s about trust vs. verifying the data yourself, see their entry here: [Sunsetting Casa Node and Sats App](https://blog.keys.casa/casa-node-update-1-24-19/)

> We’ve now added the option to resync from Casa, which downloads the chain from Casa’s Bitcoin node. This is much faster than syncing from scratch (it takes about half a day), but **it does require trusting Casa’s blockchain data.** It’s the same level of trust you put in Casa when we presync the node before sending it to you. **As always, there is the option to sync from scratch for users who want to verify the entire chain themselves.**

There’s also the more practical issue of the cost of hosting something like that as the chain is over 20GB so that soon adds up.

There are also a few topics mentioned in this AMA see [Technical AMA w/ Zcash team December 14, 2018 noon PST - #25 by adityapk00](https://forum.zcashcommunity.com/t/technical-ama-w-zcash-team-december-14-2018-noon-pst/32091/25) and [Technical AMA w/ Zcash team December 14, 2018 noon PST - #30 by adityapk00](https://forum.zcashcommunity.com/t/technical-ama-w-zcash-team-december-14-2018-noon-pst/32091/30).

I think best interim step is syncing on a more powerful machine then simply copying the data over.

---

<div class="post-metadata">

**Author:** ![garethtdavies](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/garethtdavies/32/210_2.png) [@garethtdavies](https://forum.zcashcommunity.com/u/garethtdavies)\
**Post date:** [May 31, 2019, 2:10pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/84 "2019-05-31T14:10:17Z")

</div>

Updated for the Nvidia Jetson Nano. I managed to sync from scratch with this but it wasn’t great. It runs a custom spin of Ubuntu 18.04. Syncing was slow and I had one out of memory error. I didn’t configure any swap but due to low memory, it was swapping out to the SD card which was obviously terribly slow. I tweaked the swappiness value via `sudo sysctl vm.swappiness=0` which helped complete the sync.

Unless you have specific needs for the Nvidia, I’d probably recommend the Odroid N2 or Pine64 RockPro (4GB) for the best out of box experience for a zcashd node with the Odroid the slight performance winner.

> | ARM Board | Sapling Spend | Sapling Output |
> | --- | --- | --- |
> | Odroid C2 | 12.25 | 1.79 |
> | Raspberry Pi 3B | 15.64 | 2.29 |
> | Raspberry Pi 3B+ | 14.71 | 1.99 |
> | Odroid N2 | 6.46 | 0.98 |
> | Nvidia Jetson Nano | 9.73 | 1.43 |
> | Pine64 RockPro64 (4GB) | 7.93 | 1.13 |

---

<div class="post-metadata">

**Author:** ![Autotunafish](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/autotunafish/32/7827_2.png) [@Autotunafish](https://forum.zcashcommunity.com/u/Autotunafish)\
**Post date:** [June 24, 2019, 10:07pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/85 "2019-06-24T22:07:29Z")

</div>

Gonna need to update that benchmark table 😅

> **[Raspberry Pi 4 on sale now from $35 - Raspberry Pi](https://www.raspberrypi.com/news/raspberry-pi-4-on-sale-now-from-35/)**
>
> We have a surprise for you today: Raspberry Pi 4 is now on sale, starting at $35.

---

<div class="post-metadata">

**Author:** ![garethtdavies](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/garethtdavies/32/210_2.png) [@garethtdavies](https://forum.zcashcommunity.com/u/garethtdavies)\
**Post date:** [June 25, 2019, 4:33am UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/86 "2019-06-25T04:33:30Z")

</div>

This is awesome. Just ordered the 4GB version 😆

---

<div class="post-metadata">

**Author:** ![johnwisdom](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/johnwisdom/32/5836_2.png) [@johnwisdom](https://forum.zcashcommunity.com/u/johnwisdom)\
**Post date:** [June 25, 2019, 2:02pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/87 "2019-06-25T14:02:33Z")

</div>

2x 4K output? x3 the cpu performance and up to 4gb of ram? 35$?! Gigabit ethernet?

Holy

---

<div class="post-metadata">

**Author:** ![CitricAcid](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@CitricAcid](https://forum.zcashcommunity.com/u/CitricAcid)\
**Post date:** [June 25, 2019, 2:07pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/88 "2019-06-25T14:07:32Z")

</div>

The version with 4GB of ram is $55.00, but still VERY inexpensive for the product you are getting.

---

<div class="post-metadata">

**Author:** ![Autotunafish](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/autotunafish/32/7827_2.png) [@Autotunafish](https://forum.zcashcommunity.com/u/Autotunafish)\
**Post date:** [June 25, 2019, 2:14pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/89 "2019-06-25T14:14:09Z")

</div>

Wasn’t completly sure but sounded like an absolute steal

---

<div class="post-metadata">

**Author:** ![garethtdavies](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/garethtdavies/32/210_2.png) [@garethtdavies](https://forum.zcashcommunity.com/u/garethtdavies)\
**Post date:** [July 13, 2019, 3:08pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/90 "2019-07-13T15:08:49Z")

</div>

My Pi4 just arrived but it looks like there aren’t any 64-bit OS for it yet so will have to wait - it seems a few are “coming soon” like Kali Linux and Ubuntu Mate but I couldn’t find any currently available.

---

<div class="post-metadata">

**Author:** ![garethtdavies](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/garethtdavies/32/210_2.png) [@garethtdavies](https://forum.zcashcommunity.com/u/garethtdavies)\
**Post date:** [September 18, 2019, 2:55pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/91 "2019-09-18T14:55:49Z")

</div>

Looks like a few 64-bit OSes are now available. I tried with Manjaro and managed to complete a full sync on the Raspberry Pi4.

 ![32%402x](https://global.discourse-cdn.com/zcash/original/2X/5/5eade72c6180e53ed63e3d34631b5a81aab54f5f.png)

Sapling spends took 8.99 seconds and Sapling outputs 1.33 seconds with this combination. So in line with the other 4GB boards.

---

<div class="post-metadata">

**Author:** ![den](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@den](https://forum.zcashcommunity.com/u/den)\
**Post date:** [September 18, 2019, 5:29pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/92 "2019-09-18T17:29:35Z")

</div>

I used to play a bit with Arch. 🙂 I’ll might get tempted with an RPi 4 too 🙂

---

<div class="post-metadata">

**Author:** ![rackL](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@rackL](https://forum.zcashcommunity.com/u/rackL)\
**Post date:** [October 25, 2019, 8:11am UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/93 "2019-10-25T08:11:17Z")

</div>

Trying to install on a Raspberry 3B+ with Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-1049-raspi2 aarch64), but can’t get the complier to install.

sudo apt-get install g+±aarch64-linux-gnu

returns:

“Package g+±aarch64-linux-gnu is not available, but is referred to by another package”

---

<div class="post-metadata">

**Author:** ![den](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@den](https://forum.zcashcommunity.com/u/den)\
**Post date:** [October 25, 2019, 11:19am UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/94 "2019-10-25T11:19:01Z")

</div>

you need to build the packages on a x64 machine for your raspberry pi. You’ll see you’ll be able to install that package on an x64 installation.

When the packages are build, transfer them on your raspberry pi.

---

<div class="post-metadata">

**Author:** ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)\
**Post date:** [November 11, 2019, 11:19pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/95 "2019-11-11T23:19:02Z")

</div>

@garethtdavies with ZecWallet full node now having ARM support, is that the easiest way to get a full node running on ARM?

---

<div class="post-metadata">

**Author:** ![garethtdavies](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/garethtdavies/32/210_2.png) [@garethtdavies](https://forum.zcashcommunity.com/u/garethtdavies)\
**Post date:** [November 11, 2019, 11:33pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/96 "2019-11-11T23:33:24Z")

</div>

@Shawn is that a recent thing - I don’t see anything here: [Releases · ZcashFoundation/zecwallet · GitHub](https://github.com/ZcashFoundation/zecwallet/releases). If there are binaries available that save the cross-compilation step then yes that’s going to be simpler. I’m not sure what impact that has if a user doesn’t want the GUI and just the daemon i.e. are there extra dependencies required?

---

<div class="post-metadata">

**Author:** ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)\
**Post date:** [November 12, 2019, 12:40am UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/97 "2019-11-12T00:40:45Z")

</div>

I was going off this tweet, I thought there was a full node version too :thinking:

> <https://twitter.com/zecwallet/status/1189239253223514113?s=19>

---

<div class="post-metadata">

**Author:** ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)\
**Post date:** [February 28, 2020, 10:36pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/98 "2020-02-28T22:36:47Z")

</div>

Wait, Pine64 made a smartphone!?

> **[PINEPHONE | PINE64](https://www.pine64.org/pinephone/)**
>
> Quad-Core Allwinner A64 @ 1.152 GHz Up to 3GB LPDDR3 RAM Quectel EG25-G with worldwide bands Bootable microSD and 16GB/32GB eMMC Kill switches for LTE, Cameras, Wifi/BT, and Microphones Six pogo pins…

Have I been living under a rock for 6 months?

---

<div class="post-metadata">

**Author:** ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)\
**Post date:** [April 30, 2020, 1:43pm UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/99 "2020-04-30T13:43:29Z")

</div>

Ok, so as a side project during quarantine I decided I would try to build and run a full Zcash node on an older Android smartphone I had laying around. I thought it would be cool the have the little device with a full node :zcash: ❤ plugged in and always running.

LGV20, Snapdragon 802, 4GB RAM, 64GB+SD ROM. It has enough RAM for a full build.

The cool thing is using a app called userLAnd you can install a Linux distribution like Ubuntu or Debian without rooting the Android device. [https://userland.tech/](https://userland.tech/) available on the app store. This guy covers a Kali Linux install, but it works for Ubuntu and Debian the same: [Run the Kali Linux Hacking OS on an Unrooted Android Phone [Tutorial] - YouTube](https://youtu.be/zFo8okxBKDc)

It’s super simple to install the app, choose the Linux distribution you want, and ssh into the instance, update/upgrade, start using it.

I was able to install all the dependencies (according to [the docs](https://zcash.readthedocs.io/en/latest/rtd_pages/user_guide.html)) required for the compile except for `g++-multilib` because for some reason it gives a `not found` error with the `-multilib` so I just installed `g++` instead.

Using the `HOST=aarch64-linux-gnu ./zcutil/build.sh` I was able to get really far with the compile until I hit:

 ![Screenshot_20200424-102718](https://global.discourse-cdn.com/zcash/original/3X/e/3/e3001487d3a16b4f0c4f81be1887b41a18b44e54.jpeg)

And that’s where I’m stuck. I believe it’s an error with the stripped down version of Ubuntu that userLAnd deploys. Anyone have any ideas how to move forward?

---

<div class="post-metadata">

**Author:** ![garethtdavies](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/garethtdavies/32/210_2.png) [@garethtdavies](https://forum.zcashcommunity.com/u/garethtdavies)\
**Post date:** [May 1, 2020, 2:28am UTC](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850/100 "2020-05-01T02:28:07Z")

</div>

Can you natively compile on ARM, I thought you had to cross-compile to get an ARM build? Was that updated? Either way, you should be able to able to run the cross-compiled binaries.

[Previous page](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850.md?page=4)

[Next page](https://forum.zcashcommunity.com/t/trying-to-build-on-arm/32850.md?page=6)
