Since my router doesn’t have opkg
, I had to downloaded Mudfish from http://mudfish.net/releases/openwrt/packages-22.03/bcm53xx-generic/base/mudfish-pi_2.1.26-1_arm_cortex-a9.ipk and https://mudfish.net/releases/openwrt/packages-18.06/arm_cortex-a7_neon-vfpv4/base/mudfish-pi_2.1.15-1_arm_cortex-a7_neon-vfpv4.ipk. I extracted that package and moved those files to their proper location.
This is my script that I use to copy those files to proper location:
#!/bin/sh
cp -r /mnt/circle/mudfish/etc/mudfish-pi /etc/
cp -r /mnt/circle/mudfish/opt/mudfish-pi/ /opt
cp /mnt/circle/mudfish/etc/init.d/mudfish-pi /etc/init.d
cp /mnt/circle/mudfish/etc/config/mudfish-pi /etc/config
ln -s /usr/lib/libssl.so.1.0.0 /usr/lib/libssl.so.3
ln -s /usr/lib/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.3
but when I execute the binary, it shows this
-ash: /opt/mudfish-pi/2.1.26/bin/mudrun: not found
I assume it’s because I downloaded the wrong one, or the packages aren’t at the correct location.
This is my CPU architectures, so I can confirm did I download the correct package.
root@RBR20:~/mnt/circle/mudfish# uname -p
unknown
root@RBR20:~/mnt/circle/mudfish# uname -m
armv7l
root@RBR20:~/mnt/circle/mudfish# uname -i
unknown
root@RBR20:~/mnt/circle/mudfish# cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 96.00
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
processor : 1
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 96.00
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
processor : 2
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 96.00
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
processor : 3
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 96.00
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
Hardware : Qualcomm (Flattened Device Tree)
Revision : 0000
Serial : 0000000000000000
root@RBR20:~/mnt/circle/mudfish# ubus call system board
{
"kernel": "3.14.77",
"hostname": "RBR20",
"system": "ARMv7 Processor rev 5 (v7l)",
"model": "Qualcomm Technologies, Inc. IPQ40xx\/AP-DK04.1-C1",
"release": {
"distribution": "OpenWrt",
"version": "Chaos Calmer",
"revision": "r6043",
"codename": "chaos_calmer",
"target": "ipq806x\/generic",
"description": "OpenWrt Chaos Calmer 15.05.1"
}
}
I think my router have all the packages required to run Mudfish
root@RBR20:~/mnt/circle/mudfish# ls /usr/lib/
dbus-1 libcurses.so libexpat.so.1.6.0 libieee1905.so libjson-c.so.2.0.1 libncurses.so.5 libpcre.so.1 libsmartcols.so.1 libwolfssl.so
ebtables libcyassl.so libext2fs.so.2 libintl.so liblbcmnlibs.so libncurses.so.5.9 libpcre.so.1.2.6 libsmartcols.so.1.1.0 libwolfssl.so.3
iptables libd2bst.a libext2fs.so.2.4 libintl.so.8 liblua.so.5.1.5 libnetlink.so libpcreposix.so.0 libsqlite3.so.0 libwolfssl.so.3.1.0
libaio.so.1 libd2bst.so libform.so libintl.so.8.1.4 liblzo2.so libnl-3.so.200 libpcreposix.so.0.0.3 libsqlite3.so.0.8.6 libwpa2.so
libaio.so.1.0.1 libd2dil.so libform.so.5 libip4tc.so liblzo2.so.2 libnl-3.so.200.16.1 libpluginManager.so libssl.so.1.0.0 libxtables.so
libblkid.so libd2dynlog.so libform.so.5.9 libip4tc.so.0 liblzo2.so.2.0.0 libnl-genl-3.so.200 libpolarssl.so libstdc++.so.6 libxtables.so.10
libblkid.so.1 libd2lib.so libfwcheck.a libip4tc.so.0.1.0 libmbedtls.so.1.3.15 libnl-genl-3.so.200.16.1 libpopt.so.0 libstdc++.so.6.0.21 libxtables.so.10.0.0
libblkid.so.1.1.0 libdal.so libfwcheck.so libip6tc.so libmbedtls.so.9 libnl-nf-3.so.200 libpopt.so.0.0.0 libstdc++.so.6.0.21-gdb.py libz.so
libbz2.so.1.0 libdalcjson.so libgcrypt.so.20 libip6tc.so.0 libmcfwdtbleswitch.so libnl-nf-3.so.200.16.1 libproc-3.2.8.so libstorage.so libz.so.1
libbz2.so.1.0.6 libdbus-1.so.3 libgcrypt.so.20.2.4 libip6tc.so.0.1.0 libmcfwdtblwlan2g.so libnl-route-3.so.200 libpsService.so libtlvcmdrsp.so libz.so.1.2.8
libcfgmtd.so libdbus-1.so.3.13.0 libgpg-error.so.0 libipset.so libmcfwdtblwlan5g.so libnl-route-3.so.200.16.1 libqca_wifison_ext.so libtlvencoder.so lighttpd
libcom_err.so.0 libdevmapper.so.1.02 libgpg-error.so.0.24.3 libipset.so.3 libmenu.so libnl-tiny.so libreadline.so libtlvparser.so lua
libcom_err.so.0.0 libdni-common-api.so libhistory.so libipset.so.3.6.0 libmenu.so.5 libntgrcrypt.so libreadline.so.6 libtlvtemplate.so opkg
libconfig.so libdniutil.so libhistory.so.6 libiptext.so libmenu.so.5.9 libpanel.so libreadline.so.6.3 libtlvutil.so pkgconfig
libcrypto.so.1.0.0 libe2p.so.2 libhistory.so.6.3 libiptext4.so libmnl.so.0 libpanel.so.5 libsafec-3.3.a libuClibc++-0.2.4.so pppd
libcryptsetup.so libe2p.so.2.3 libhyfi-bridge.so libiptext6.so libmnl.so.0.1.0 libpanel.so.5.9 libsafec-3.3.la libuClibc++.so.0 stainfo.awk
libcryptsetup.so.12 libebtc.so libhyficommon.so libjansson.so libmtd.so libpcap.so libsafec-3.3.so libusi.so stainfo_11ad.awk
libcryptsetup.so.12.3.0 libevent-2.0.so.5 libiconv.so libjansson.so.4 libmxml.so.1 libpcap.so.1.3 libsafec-3.3.so.3 libuuid.so sysstat
libcurl.so.4 libevent-2.0.so.5.1.10 libiconv.so.2 libjansson.so.4.7.0 libmxml.so.1.5 libpcap.so.1.3.0 libsafec-3.3.so.3.0.3 libuuid.so.1
libcurl.so.4.6.0 libexpat.so.1 libiconv.so.2.4.0 libjson-c.so.2 libncurses.so libpcre.so libsmartcols.so libuuid.so.1.3.0
root@RBR20:~/mnt/circle/mudfish# ls /lib
armor firmware ld-uClibc.so.1 libdl-1.0.14.so libpthread-1.0.14.so libssp.so.0 libutil-1.0.14.so network upgrade
cfgmgr functions libbdbroker.so libdl.so.1 libpthread.so.1 libssp.so.0.0.0 libutil.so.1 preinit usfd
circle functions.sh libblobmsg_json.so libgcc_s.so.1 librpc.so libuClibc-1.0.14.so libvalidate.so read_caldata_to_fs.sh wifi
config ipq806x.sh libc.so.1 libjson_script.so librt-1.0.14.so libubox.so libvendor.so sbin
debug ld-uClibc-1.0.14.so libcrypt-1.0.14.so libm-1.0.14.so librt.so.1 libubus.so modules update_smp_affinity.sh
dni_platform ld-uClibc.so.0 libcrypt.so.1 libm.so.1 libsetlbf.so libuci.so netifd update_system_params.sh
and my router is running a supported version of Openwrt
root@RBR20:~/mnt/circle/mudfish# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Chaos Calmer'
DISTRIB_REVISION='r6043'
DISTRIB_CODENAME='chaos_calmer'
DISTRIB_TARGET='ipq806x/generic'
DISTRIB_DESCRIPTION='OpenWrt Chaos Calmer 15.05.1'
DISTRIB_TAINTS='no-all'
Update 1:
After a bit of debugging, I discovered that the problem might be because of /lib/ld-musl-armhf.so.1
is missing from my router, so I downloaded it from somewhere, now it shows this
root@RBR20:/lib# /opt/mudfish-pi/2.6.9/bin/mudfish
-ash: /opt/mudfish-pi/2.6.9/bin/mudfish: Permission denied
Update 2:
I solved the problem of it being permission denied by giving ld-musl-armhf.so.1
777 permission, now it shows this
root@RBR20:~/mnt/circle# ldd /opt/mudfish-pi/2.6.9/bin/mudrun
Error relocating /usr/lib/libcrypto.so.3: __ctype_tolower: symbol not found
Error relocating /usr/lib/libcrypto.so.3: __ctype_b: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: OPENSSL_init_ssl: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: __select_time64: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: __ctime64: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: __stat_time64: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: __fstat_time64: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: __gettimeofday_time64: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: OPENSSL_init_crypto: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: __clock_gettime64: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: __gmtime64_r: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: __time64: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: TLS_client_method: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: __wait4_time64: symbol not found
Error relocating /opt/mudfish-pi/2.6.9/bin/mudrun: __pthread_cond_timedwait_time64: symbol not found
I downloaded mudfish from https://mudfish.net/releases/openwrt/archived/chaos_calmer/15.05.1/ar71xx/packages/base/mudfish-pi_2.1.13-5_ar71xx.ipk, now it says this
root@RBR20:~/mnt/circle# /opt/mudfish-pi/2.1.13/bin/mudrun
/opt/mudfish-pi/2.1.13/bin/mudrun: line 2: syntax error: unexpected word (expecting ")")