Changing opkg repository

I'm running a custom build for the Cavium Octeon III Pass1_2 CPU. Because of this, I have the CPU defined as CPU_TYPE:=OCTEON_CN70XX_PASS1_2 because the Kernel has CPU specific defines for it.

root@OpenWrt:/etc/opkg# uname -a
Linux OpenWrt 4.19.65 #0 SMP Sun Aug 11 19:12:34 2019 mips64 GNU/Linux

Unfortunately, this means that opkg tries to pull from http://downloads.openwrt.org/snapshots/packages/mips64_OCTEON_CN70XX_PASS1_2/base, which isn't valid.

I changed /etc/opkg/distfeeds.conf to reflect:

src/gz openwrt_core http://downloads.openwrt.org/snapshots/targets/octeon/generic/packages
src/gz openwrt_base http://downloads.openwrt.org/snapshots/packages/mips64_octeon/base

but it gives me the following errors on opkg update

root@OpenWrt:/etc# opkg update
Package base-files version 205-r10756-7546be6007 has no valid architecture, ignoring.
Package block-mount version 2019-03-28-ff1ded63-5 has no valid architecture, ignoring.
Package blockd version 2019-03-28-ff1ded63-5 has no valid architecture, ignoring.
Package comgt-directip version 0.32-32 has no valid architecture, ignoring.
...
Package uboot-envtools version 2018.03-3 has no valid architecture, ignoring.
Package umbim version 2019-03-11-24f9dc71-1 has no valid architecture, ignoring.
Package uqmi version 2019-06-27-1965c713-7 has no valid architecture, ignoring.
Downloading http://downloads.openwrt.org/snapshots/targets/octeon/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/snapshots/targets/octeon/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/mips64_octeon/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/snapshots/packages/mips64_octeon/base/Packages.sig
Signature check passed.

The CPU arch is mips64. So, what can I do? Any suggestions would be most appreciated!

In /etc/opkg.conf add arch mips64_octeon 100.

1 Like

Thanks @jow

I tried updating the /etc/opkg.conf with the arch mips64_octeon 100 line and tried to also do opkg --add-arch mips64_octeon:100 update, but both gave me the same "has no valid architecture, ignoring" responses as in the OP.

I'm guessing I did something wrong, but I'm not sure what it is.