OpenWrt Package Manager for Yun Rev2

I am having the same issue. I am on 17.11 and having the same issues. So the package is available on the arduino downloads page, but doesn't seem to be compatible for some reason.

http://downloads.arduino.cc/openwrtyun/1/packages/

For example, for the package 'distribute'

$ wget http://downloads.arduino.cc/openwrtyun/1/packages/distribute_0.6.21-1_ar71xx.ipk

Downloading 'http://downloads.arduino.cc/openwrtyun/1/packages/distribute_0.6.21-1_ar71xx.ipk'
Connecting to 104.20.190.47:80
Writing to 'distribute_0.6.21-1_ar71xx.ipk'
distribute_0.6.21-1_ 100% |*******************************| 150k 0:00:00 ETA
Download completed (154232 bytes)

$ opkg install distribute_0.6.21-1_ar71xx.ipk
Unknown package 'distribute'.
Collected errors:

  • pkg_hash_fetch_best_installation_candidate: Packages for distribute found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package distribute.

So, you can download it fine from the package page, but opkg won't install it, with the error being an architectural flag.

Looking at a clue here from another device, perhaps the packages aren't properly cross complied... or perhaps something in opkg.conf that could be changed to make this work???

SO - looking at the architecture of a couple other packages, it is clear the architecture we are looking for is 'mips_24kc'

Confirmed by looking at:

$ cat /etc/openwrt_release
DISTRIB_ID='LEDEYun'
DISTRIB_RELEASE='17.11'
DISTRIB_REVISION='r6773+1-8dd3a6e'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_ARCH='mips_24kc'
DISTRIB_DESCRIPTION='LEDEYun 17.11 r6773+1-8dd3a6e'
DISTRIB_TAINTS='busybox'

BUT, I can't seem to find any other repo to find the distribute package that is cross compiled for the mips_24kg architecture. My guess is the downloads.arduino.cc page that opkg pulls from just grabs those files from the LEDE repo. So, if that source is down, maybe it can't get updated cross-compiled files and maybe it could fail.

So, the referenced repo there is down... so that might explain the problem of the referenced opkg package on the arduino downloads page not matching the architecture, but not sure.

There is another download source for the mips_24kc architecture, and 'distribute' is not in the package list:

http://downloads.openwrt.org/snapshots/packages/mips_24kc/packages/

I really don't know what to do.. I'm not sure how one would cross-compile a given package against the architecture, and not sure how to find a workaround for distribute.

Any other thoughts from someone with more experience here would be hugely helpful.

Thanks!