Set arch configuration for "has no valid architecture" issue

It output many error info has no valid architecture when to run opkg install package .
List my openwrt version:

root@OpenWrt:~# uname -a
Linux OpenWrt 4.14.221 #0 Mon Feb 15 15:22:37 2021 armv5tel GNU/Linux

List cpu info:

cat /proc/cpuinfo
processor : 0
model name : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS : 400.00
Features : swp half fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1

Hardware : Marvell Kirkwood (Flattened Device Tree)
Revision : 0000
Serial : 0000000000000000

Set arch argument in opkg.conf

vim /etc/opkg.conf
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
option check_signature
option force_space
arch armv5tel 100

How to write lines to config repository in /etc/opkg/distfeeds.conf then?

@luofeiyu, welcome to the community!

Did you run opkg update first?

1 Like

Even I am facing the same issue with my device can someone please explain how to set distfeeds.conf file.

Here is my output for the command /proc/cpuinfo command
oot@Teltonika-RUT955:~# cat /proc/cpuinfo
system type : Atheros AR9344 rev2 2
machine : TELTONIKA TLT-RUT900
processor : 0
cpu model : MIPS 74Kc V4.12
BogoMIPS : 274.02
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp dsp2
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available

Are you running OpenWrt???

You don't appear to be.

1 Like

Inside the Teltonika device OPENWRT OS is installed.

Can you paste the output of: cat /etc/openwrt_release
And the contents of your distfeeds.conf?

2 Likes

Sorry for the late reply.
Please find the below response for your question

Contents inside distfeeds.comf :
src/gz chaos_calmer_base http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/base
src/gz chaos_calmer_packages http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages
src/gz chaos_calmer_luci http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/luci

output of cat /proc/cpu_info :
system type : Atheros AR9344 rev2 2
machine : TELTONIKA TLT-RUT900
processor : 0
cpu model : MIPS 74Kc V4.12
BogoMIPS : 274.02
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp dsp2
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available