# Pine64

**URL:** <https://hub.mender.io/t/pine64/671>\
**Category:** General Discussions\
**Created:** [June 6, 2019, 5:45am UTC](https://hub.mender.io/t/pine64/671 "2019-06-06T05:45:31Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![SegFault](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/segfault/32/687_2.png) [@SegFault](https://hub.mender.io/u/SegFault)\
**Post date:** [June 6, 2019, 5:45am UTC](https://hub.mender.io/t/pine64/671/1 "2019-06-06T05:45:31Z")

</div>

Hello,  
I am a cs student trying to build the mender client from source for a arm64 version 8 chip on a pine A64 board however I am having trouble with the build instructions has anyone done a build for the V8 chips and has some advice. I would greatly appreciate it!

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [June 6, 2019, 6:07am UTC](https://hub.mender.io/t/pine64/671/2 "2019-06-06T06:07:32Z")

</div>

Hi,

Please share what you are trying to do and the error you get.

---

<div class="post-metadata">

**Author:** ![SegFault](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/segfault/32/687_2.png) [@SegFault](https://hub.mender.io/u/SegFault)\
**Post date:** [June 6, 2019, 2:39pm UTC](https://hub.mender.io/t/pine64/671/3 "2019-06-06T14:39:10Z")

</div>

Hello,  
Thanks for the quick response. I am trying to build the client from source for this board ([https://wiki.pine64.org/index.php/PINE\_A64-LTS/SOPine\_Main\_Page](https://wiki.pine64.org/index.php/PINE_A64-LTS/SOPine_Main_Page)) since I don’t need full OS updates just a single program update periodically, I run through the instructions on the GitHub repo however I am not sure if it is building correctly as it does generate a mender folder however during the build process returns several “Nothing to do” print outs. Once I transfer this to my single board computer in the `/etc/systemd/system’ directory and attempt to run systemctl enable mender && systemctl start mender is says not such file or directory found. I am pretty confused as to if the build is even working or if its how I’m trying to run it on my embedded system. Thank you in advance for any help!

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [June 6, 2019, 3:13pm UTC](https://hub.mender.io/t/pine64/671/4 "2019-06-06T15:13:59Z")

</div>

It is still not clear to me what your issues is.

Please share the steps you are trying to perform in detail for us to be able to comment.

---

<div class="post-metadata">

**Author:** ![SegFault](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/segfault/32/687_2.png) [@SegFault](https://hub.mender.io/u/SegFault)\
**Post date:** [June 7, 2019, 5:05am UTC](https://hub.mender.io/t/pine64/671/5 "2019-06-07T05:05:55Z")

</div>

Sorry hope this is in more detail,  
I start by installing a cross compiler for armV8 aarch64 from sudo apt-get install gcc-aarch64-linux-gnu g+±aarch64-linux-gnu at which point I follow the mender guide on the repo and after cloning execute “export PATH=$PATH:/usr/aarch64-linux-gnu/bin” from within the cloned repo, I then am running “export CC=aarch64-linux” at which point I am running

wget -q [https://tukaani.org/xz/xz-5.2.4.tar.gz](https://tukaani.org/xz/xz-5.2.4.tar.gz)  
tar -xzf xz-5.2.4.tar.gz  
cd xz-5.2.4  
sudo ./configure --host=aarch64-linux-gnu --prefix=$(pwd)/install  
make  
make install

it runs and I execute  
export LIBLZMA\_INSTALL\_PATH=$(pwd)/install

at which point I cross compile with  
make CGO\_CFLAGS="-I${LIBLZMA\_INSTALL\_PATH}/include" CGO\_LDFLAGS="-L$  
{LIBLZMA\_INSTALL\_PATH}/lib" CGO\_ENABLED=1 GOOS=linux GOARCH=arm64

and it returns several lines many outputting things such as  
“Making all in tests  
make[2]: Entering directory ‘/home/christian/go/src/github.com/mendersoftware/mender/xz-5.2.4/tests’  
make[2]: Nothing to be done for ‘all’.”

I then run  
sudo make prefix=/home/test install  
to install it to a separate folder on my build machine which is then copied to the embedded machine through ssh using sudo scp -r test/ [ubuntu@192.168.0.88](mailto:ubuntu@192.168.0.88): and moving it to /etc/systemd/system

When I then try to run  
systemctl enable mender && systemctl start mender on the pine64 it gives Failed to execute operation: No such file or directory  
I am quite confused Thank you

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [June 7, 2019, 9:53am UTC](https://hub.mender.io/t/pine64/671/6 "2019-06-07T09:53:28Z")

</div>

> [@SegFault](#):
>
> to install it to a separate folder on my build machine which is then copied to the embedded machine through ssh using sudo scp -r test/ [ubuntu@192.168.0.88](mailto:ubuntu@192.168.0.88): and moving it to /etc/systemd/system

Why are you moving it to /etc/systemd/system?

I would image that the command should be something like this to install on a remote target:

```
 scp -r test/ ubuntu@192.168.0.88:/

```

This means that the content of `prefix=/home/test install` needs to be installed in the root directory (`/`) of your device.

---

<div class="post-metadata">

**Author:** ![SegFault](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/segfault/32/687_2.png) [@SegFault](https://hub.mender.io/u/SegFault)\
**Post date:** [June 7, 2019, 2:41pm UTC](https://hub.mender.io/t/pine64/671/7 "2019-06-07T14:41:26Z")

</div>

That was the initial install location for the test folder however it also resulted in the not found error so I had assumed it could not find it in system services and moved it there however it also could not see it. Also seriously thank you for helping me with this

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [June 7, 2019, 2:53pm UTC](https://hub.mender.io/t/pine64/671/8 "2019-06-07T14:53:54Z")

</div>

Can you share the content of `prefix=/home/test` (just a list of what it contains, not the actual files 😛) and then compare this what is on the system.

The location of the systemd service should be `/lib/systemd/system/mender.service` on your device, and step one would be verifying this.

---

<div class="post-metadata">

**Author:** ![SegFault](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/segfault/32/687_2.png) [@SegFault](https://hub.mender.io/u/SegFault)\
**Post date:** [June 7, 2019, 3:10pm UTC](https://hub.mender.io/t/pine64/671/9 "2019-06-07T15:10:55Z")

</div>

Oh okay awesome I just got to the office so I will as soon as I’m home this evening!

---

<div class="post-metadata">

**Author:** ![SegFault](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/segfault/32/687_2.png) [@SegFault](https://hub.mender.io/u/SegFault)\
**Post date:** [June 8, 2019, 3:42am UTC](https://hub.mender.io/t/pine64/671/10 "2019-06-08T03:42:42Z")

</div>

Okay sorry for the delay just got done with work this is a screen capture of the test folder generated I moved the folder to the /lib/systemd/system/ and named it mender.service however as its a directory it wont run.

 ![test](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/34b7022bef48ea98e4427147df17b0319d98bea4.png)

---

<div class="post-metadata">

**Author:** ![SegFault](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/segfault/32/687_2.png) [@SegFault](https://hub.mender.io/u/SegFault)\
**Post date:** [June 8, 2019, 4:10am UTC](https://hub.mender.io/t/pine64/671/11 "2019-06-08T04:10:38Z")

</div>

I think I just realized I need to be installing mender from this folder before I have a .service file however im looking at the docs and it does not mention how since I have no Make file

---

<div class="post-metadata">

**Author:** ![SegFault](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/segfault/32/687_2.png) [@SegFault](https://hub.mender.io/u/SegFault)\
**Post date:** [June 8, 2019, 6:33pm UTC](https://hub.mender.io/t/pine64/671/12 "2019-06-08T18:33:55Z")

</div>

Okay I believe I got it running on my system (I will have a follow up post about the documentation clarification, as I had to piece a lot of it together) and not I am trying to have the client authenticate with the demo server I have running on my desktop and there is zero documentation for that what step should I take this is my mender.conf file and the error I get. ![confFile](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/b466930d0ea5e33dc4fd366f7b25651d84d670e0.png)

 ![error](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/130daea312b0fc1b96ef21af3247e2461fc4ecfc.png)

---

<div class="post-metadata">

**Author:** ![SegFault](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/segfault/32/687_2.png) [@SegFault](https://hub.mender.io/u/SegFault)\
**Post date:** [June 8, 2019, 6:51pm UTC](https://hub.mender.io/t/pine64/671/13 "2019-06-08T18:51:17Z")

</div>

It will show on the server if i pass the flag -skipverify Im okay with this for dev operations but wondering what the true cause is and how I fix it thank you in advance

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [June 9, 2019, 3:01pm UTC](https://hub.mender.io/t/pine64/671/14 "2019-06-09T15:01:34Z")

</div>

I would recommend you to consult our documentation for the various ways of configuring the Mender client,

[https://docs.mender.io/](https://docs.mender.io/)

The demo `server.crt` file is only valid for `mender.docker.io` and `s3.docker.mender.io` domains. And to properly setup this in a demo environment you will have to make sure that the mentioned domains are resolved to the IP address of your server.

Example,

```auto
echo "192.168.0.78 docker.mender.io s3.docker.mender.io" >> /etc/host

```
