Try remote.it on OpenWrt

@benoitm Thanks for your reply.

I have done a clean install of the whole system and then run opkg to install the remoteit_4.13.5.ipk file locally and with increased verbosity. The result is below.

After opkg install completed, I looked at what was in /usr/share/remoteit and the result is below. The list of files in the directory does not include the four binaries that you pointed to which are normally present in that directory.

How should these files get into the directory - are they unpacked from the .ipk file or are they downloaded from somewhere?

The opkg install is failing for some reason that is not obvious to me.

Any ideas appreciated.

Terry

Postscript: I have installed an earlier system firmware based on OpenWrt 19.07.3 and then installed the package dependencies curl and jq, then installed the remoteit_4.13.5.ipk file, and it all went perfectly. I could then register normally.

So it appears that there is some difference between the two firmware builds that affects the installation of the remoteit package. That should not be too hard to find!

# opkg -V2  install ./remoteit_4.13.5.ipk 

opkg_conf_parse_file: Loading conf file /etc/opkg.conf.
opkg_conf_parse_file: Loading conf file /etc/opkg/customfeeds.conf.
opkg_conf_parse_file: Loading conf file /etc/opkg/distfeeds.conf.
pkg_hash_load_feeds: 
pkg_hash_load_feeds: 
pkg_hash_load_feeds: 
pkg_hash_load_feeds: 
pkg_hash_load_status_files: 
pkg_info_preinstall_check: Updating file owner list.
Installing remoteit (4.13.5) to root...
pkg_run_script: Running script /tmp/opkg-JlBaPl/remoteit-aKPFJi/preinst.
opkg_install_pkg: Installing maintainer scripts.
opkg_install_pkg: Installing data files for remoteit.
install_data_files: Extracting data files to /.
pkg_write_filelist: Creating //usr/lib/opkg/info/remoteit.list file for pkg remoteit.
opkg_install_pkg: Resolving conf files for remoteit
opkg_configure_packages: Configuring unpacked packages.
opkg_configure_packages: Reordering packages before configuring them...
Configuring remoteit.
pkg_run_script: Running script //usr/lib/opkg/info/remoteit.postinst.
remoteit: Error: Unknown architecture "mips_24kc".
write_status_files_if_changed: Writing status file.
pkg_write_changed_filelists: Saving changed filelists.
Collected errors:
 * pkg_run_script: package "remoteit" postinst script returned status 1.
 * opkg_configure: remoteit.postinst returned 1.


# ls /usr/share/remoteit/
functions.sh    oem.sh          procd.sh        refresh.sh      remoteit.sh     schannel.conf   task_notify.sh  version.txt


Hi Terry, sorry for the late response, you have the correct installer, but somehow it cannot download or install the binaries.

Could you try the following commands?

curl -o binaries.tgz https://downloads.remote.it/openwrt/v4.13.0/mips_24kc/binaries.tgz
mkdir -p /usr/share/remoteit
tar xzf binaries.tgz -C /usr/share/remoteit

This will download the correct binaries for your device and puts them in /usr/share/remoteit after that you can try to reinstall the package.

I assume you may have an issue with the download, please let me know if you get any error with these commands as we would like to make the installation more robust

Thanks you.

@benoitm

I took a look at our OpenWrt build configuration for this board as well as other similar boards, and realised that the selection of packages for the problem board was different to the other boards - there were additional packages present that were redundant for the current work. For some reason the config for this particular board had not been cleaned up properly.

So I cleaned up the config and brought it back to the correct set of packages and made a new build.

And of course everything works just fine for the Remoteit installation and registration process!!

So my conclusion is that something that was in the .config file for the problem board was not compatible with installing the Remoteit .ipk with opkg.

I looked through the list of differences between the configs to see if there was anything obvious, but nothing leapt out as an obvious problem. There are too many differences to exhaustively go through the elimination process of repeated builds unfortunately.

There is possibly also a potential issue of migrating the OpenWrt .config files through new releases (eg 19.07.3 - 19.07.7 - 19.07.8) I have a bit of a suspicion that the automated migration does not always go perfectly…

Anyway, I guess it is just something to watch out for in future.

Many thanks for your help with this.

Regards

We now have an improved installer for OpenWrt. Please see:

Hi im having problems installing remote.it on linksys EA8500 with openwrt, is there support for this architecture ?

Installing remoteit (4.14.1) to root…
Configuring remoteit.
remoteit: Error: Unknown architecture “arm_cortex-a15_neon-vfpv4”.
Collected errors:

  • pkg_run_script: package “remoteit” postinst script returned status 1.
  • opkg_configure: remoteit.postinst returned 1.

Regards.

@rogerkrush can you confirm whether you used the 1-line installer, or did you download the ipk file directly and then try to install it with opkg?

Can you please send the results of these commands:

uname -a
cat /etc/os-release
cat /etc/openwrt_release
cat /proc/cpuinfo

Thanks,

Gary W.

Thanks @gary, here is the information:

I tried with install_agent.sh and remoteit_4.14.1.ipk, i got the same error.

uname -a

Linux OpenWrt 5.4.179 #0 SMP Wed Feb 16 20:29:10 2022 armv7l GNU/Linux

/etc/os-release

NAME=“OpenWrt”
VERSION=“21.02.2”
ID=“openwrt”
ID_LIKE=“lede openwrt”
PRETTY_NAME=“OpenWrt 21.02.2”
VERSION_ID=“21.02.2”
HOME_URL=“https://openwrt.org/
BUG_URL=“https://bugs.openwrt.org/
SUPPORT_URL=“forum”
BUILD_ID=“r16495-bf0c965af0”
OPENWRT_BOARD=“ipq806x/generic”
OPENWRT_ARCH=“arm_cortex-a15_neon-vfpv4”
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER=“OpenWrt”
OPENWRT_DEVICE_MANUFACTURER_URL=“openwrt”
OPENWRT_DEVICE_PRODUCT=“Generic”
OPENWRT_DEVICE_REVISION=“v0”
OPENWRT_RELEASE=“OpenWrt 21.02.2 r16495-bf0c965af0”

/etc/openwrt_release

DISTRIB_ID=‘OpenWrt’
DISTRIB_RELEASE=‘21.02.2’
DISTRIB_REVISION=‘r16495-bf0c965af0’
DISTRIB_TARGET=‘ipq806x/generic’
DISTRIB_ARCH=‘arm_cortex-a15_neon-vfpv4’
DISTRIB_DESCRIPTION=‘OpenWrt 21.02.2 r16495-bf0c965af0’
DISTRIB_TAINTS=’’

/proc/cpuinfo

processor : 0
model name : ARMv7 Processor rev 0 (v7l)
BogoMIPS : 9.37
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32
CPU implementer : 0x51
CPU architecture: 7
CPU variant : 0x2
CPU part : 0x04d
CPU revision : 0

processor : 1
model name : ARMv7 Processor rev 0 (v7l)
BogoMIPS : 19.53
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32
CPU implementer : 0x51
CPU architecture: 7
CPU variant : 0x2
CPU part : 0x04d
CPU revision : 0

Hardware : Generic DT based system
Revision : 0000
Serial : 0000000000000000

Hi @rogerkrush looks like this might be a bug in our file naming. I was told that we have support for this architecture, but with a “+” in the file name as described in /etc/openwrt_release. If you like, please try the following:

  1. Clean up remote.it
opkg rm remoteit
rm /etc/remoteit/*
rm /usr/share/remoteit/*
  1. Modify the architecture line in /etc/openwrt_release to read:
DISTRIB_ARCH=‘arm_cortex-a15+neon-vfpv4’
  1. Finally, run the installer again:

sh -c "$(curl -L " https://downloads.remote.it/remoteit/install_agent.sh ")"

Let me know if this works for you.

I would suggest reverting the contents of the /etc/openwrt_release file afterwards, as I cannot predict what effect this change might have on your system. From our perspective I’m pretty sure it’s only used during initial download and installation.

Thanks,

@gary thanks a lot, editing my /etc/openwrt_release file as you wrote, i could install remote.it package.

Signature check passed.
Installing remoteit (4.14.1) to root...
Configuring remoteit.

--------------------- Claim this device ---------------------

Use the code XXXXXX

Regards,

Great! Thanks for the update.

1 Like