Jump to content
allsystemsgo

Agent on NanoPi NEO2 (arm64)

Recommended Posts

allsystemsgo

Hey guys,

 

I'm trying to install te agent on a new piece of hardware I am testing. Its called NanoPI NEO2 and its a Allwinner H5 based Arm 64bit processor. Im not an ARM expert but my understanding is that the armhf is that forces the requirement for the hardware to have an Floating Point Unit (which was added starting at armv7~). However the NanoPI NEO2 does is in fact have floating point support as its armv8 (A53). As far as I can tell, aside from overal performance tweaks the major difference is this is a 32/64bit chip whereas the older versions were 32bit only. However they should run unmodified 32bit arm binaries. 

 

Problem I am running into is that the architecture is named arm64 and not armhf which is what your package scripts are looking for thus you get dependency problems like "lib6c missing" for armhf. Well thats expected as they would be listed under the arm64 architectures. I have installed the package as a test and forced to ignore the dependencies. While it didnt install correctly, it seems that the problem is trivial and I suspect if they package allowed for both armhf or arm64 oit would work fine. For example in you domotz.env file which seems to be the primary file that runs operations like install:

 

########################### PACKAGE INFO #######################################
export DNAME="domotz"
export DPLATFORM="raspberry"
export DARCHITECTURE="armhf"
export DTOOLCHAIN="1.0"
export DVERSION="2.1.5-0354"
export DPREFIX="domotz_"
export DTMPDIR="/tmp/domotz"
################################################################################
 

BTW the OS is Ubuntu 16.04

 

http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO2

https://en.wikipedia.org/wiki/ARM_Cortex-A53 

https://wiki.debian.org/ArmHardFloatPort

https://developer.arm.com/technologies/floating-point

 

Any chance you can release an install package for arm64 or make the current armhf package support the newer architectures? Possibly a workaround for the current package in the meantime? Thanks!

Porting to ARM 64-bit.pdf

BTW this essentially the same processor as that in the Raspberry PI 3 model B.

 

"The Raspberry Pi 3+ uses a Broadcom BCM2837B0 SoC with a 1.4 GHz 64-bit quad-core ARM Cortex-A53 processor, with 512 KB shared L2 cache." [27]

  • Upvote 1

Share this post


Link to post
Share on other sites
allsystemsgo

 

Output of installation for reference:

 

root@NanoPi-NEO2:~# sudo dpkg -i domotz-raspberry-armhf-1.0-2.1.5-0354.deb
Selecting previously unselected package domotz:armhf.
(Reading database ... 43869 files and directories currently installed.)
Preparing to unpack domotz-raspberry-armhf-1.0-2.1.5-0354.deb ...
Pre-Installation Script: install
Unpacking domotz:armhf (2.1.5-0354) ...
dpkg: dependency problems prevent configuration of domotz:armhf:
 domotz:armhf depends on libc6 (>= 2.17).
 domotz:armhf depends on libgcc1 (>= 1:4.1.1).
 domotz:armhf depends on libstdc++6 (>= 4.8).

dpkg: error processing package domotz:armhf (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (229-4ubuntu21.1) ...
Errors were encountered while processing:
 domotz:armhf
 

 

and just to show that its installed, just under a different arch:

 

root@NanoPi-NEO2:~# dpkg-query -l |grep libc6
ii  libc6:arm64                     2.23-0ubuntu10                        arm64        GNU C Library: Shared libraries
ii  libc6-dev:arm64                 2.23-0ubuntu10                        arm64        GNU C Library: Development Libraries and Header Files
r

Share this post


Link to post
Share on other sites
Giancarlo

Sorry for the delay in getting back on this great discussion.  I'm quite sure somebody else will join this discussion as well during the weekend.

 

Some months ago we created a build specifically for armhf64. Even if this is not the latest package, you can try it:

 

https://portal.domotz.com/download/agent_packages/domotz-raspberry-armhf64-1.0-2.1.0-0148.deb

sha1sum: da8b0f3a6170fe887e3f1d5a76a6566f01f2bc17

 

If that works for your scenario, we can try to build with the latest code. Let us know.  

Share this post


Link to post
Share on other sites
ccaramel

Hi, tried to install this .deb on arm64 (Pine64LTS) with jessie.

and got these errors:

(Reading database ... 38430 files and directories currently installed.)
Preparing to unpack domotz-raspberry-armhf64-1.0-2.1.0-0148.deb ...
Pre-Remove Script: upgrade
+--- domotz is not running ---+
Pre-Installation Script: upgrade
Unpacking domotz (2.1.0-0148) over (2.1.0-0148) ...
Post-Remove Script: upgrade
Setting up domotz (2.1.0-0148) ...
Post-Installation Script: configure
/opt/domotz/etc/domotz.env: line 167: /opt/domotz/bin/domotz_hello: No such file or directory
dpkg: error processing package domotz (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
 domotz

Any idea to overcome?

Regards.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...