Entware Refusing to install

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
bdrew
DD-WRT Novice


Joined: 07 Jan 2020
Posts: 5
Location: Seattle, WA

PostPosted: Tue Jan 07, 2020 12:18    Post subject: Entware Refusing to install Reply with quote
Any Assistance would be greatly appreciated....

Notice the line 43 and line 47 error's:
generic.sh: line 43: /opt/bin/opkg: not found
root@dd-wrt:/opt# ls -la /opt/bin
-rwxr-xr-x 0 root root 166920 Jan 7 04:00 opkg

however....

#!/bin/sh

TYPE='generic'

TYPE=generic
#TYPE='alternative'
unset LD_LIBRARY_PATH

unset LD_LIBRARY_PATH
unset LD_PRELOAD
unset LD_PRELOAD
echo 'Info: Checking for prerequisites and creating folders...'

echo 'Info: Checking for prerequisites and creating folders...'
if [ -d /opt ]; then
echo 'Warning: Folder /opt exists!'
else
mkdir /opt
fi
'[' -d /opt ]
echo 'Warning: Folder /opt exists!'
no need to create many folders. entware-opt package creates most
for folder in bin etc lib/opkg tmp var/lock
do
if [ -d "/opt/$folder" ]; then
echo "Warning: Folder /opt/$folder exists!"
echo 'Warning: If something goes wrong please clean /opt folder and try again.'
else
mkdir -p /opt/$folder
fi
done

'[' -d /opt/bin ]
mkdir -p /opt/bin
'[' -d /opt/etc ]
mkdir -p /opt/etc
'[' -d /opt/lib/opkg ]
mkdir -p /opt/lib/opkg
'[' -d /opt/tmp ]
mkdir -p /opt/tmp
'[' -d /opt/var/lock ]
mkdir -p /opt/var/lock
echo 'Info: Opkg package manager deployment...'

echo 'Info: Opkg package manager deployment...'
DLOADER='ld.so.1'
DLOADER=ld.so.1
URL='http://bin.entware.net/mipselsf-k3.4/installer'
URL=http://bin.entware.net/mipselsf-k3.4/installer
wget $URL/opkg -O /opt/bin/opkg
wget http://bin.entware.net/mipselsf-k3.4/installer/opkg -O /opt/bin/opkg
Connecting to bin.entware.net (104.27.177.50:80)
saving to '/opt/bin/opkg'
'/opt/bin/opkg' saved
chmod 755 /opt/bin/opkg
chmod 755 /opt/bin/opkg
wget $URL/opkg.conf -O /opt/etc/opkg.conf
wget http://bin.entware.net/mipselsf-k3.4/installer/opkg.conf -O /opt/etc/opkg.conf
Connecting to bin.entware.net (104.27.176.50:80)
saving to '/opt/etc/opkg.conf'
'/opt/etc/opkg.conf' saved
wget $URL/ld-2.27.so -O /opt/lib/ld-2.27.so
wget http://bin.entware.net/mipselsf-k3.4/installer/ld-2.27.so -O /opt/lib/ld-2.27.so
Connecting to bin.entware.net (104.27.177.50:80)
saving to '/opt/lib/ld-2.27.so'
'/opt/lib/ld-2.27.so' saved
wget $URL/libc-2.27.so -O /opt/lib/libc-2.27.so
wget http://bin.entware.net/mipselsf-k3.4/installer/libc-2.27.so -O /opt/lib/libc-2.27.so
Connecting to bin.entware.net (104.27.176.50:80)
saving to '/opt/lib/libc-2.27.so'
'/opt/lib/libc-2.27.so' saved
wget $URL/libgcc_s.so.1 -O /opt/lib/libgcc_s.so.1
wget http://bin.entware.net/mipselsf-k3.4/installer/libgcc_s.so.1 -O /opt/lib/libgcc_s.so.1
Connecting to bin.entware.net (104.27.177.50:80)
saving to '/opt/lib/libgcc_s.so.1'
'/opt/lib/libgcc_s.so.1' saved
wget $URL/libpthread-2.27.so -O /opt/lib/libpthread-2.27.so
wget http://bin.entware.net/mipselsf-k3.4/installer/libpthread-2.27.so -O /opt/lib/libpthread-2.27.so
Connecting to bin.entware.net (104.27.176.50:80)
saving to '/opt/lib/libpthread-2.27.so'
'/opt/lib/libpthread-2.27.so' saved
cd /opt/lib
cd /opt/lib
chmod 755 ld-2.27.so
chmod 755 ld-2.27.so
ln -s ld-2.27.so $DLOADER
ln -s ld-2.27.so ld.so.1
ln -s libc-2.27.so libc.so.6
ln -s libc-2.27.so libc.so.6
ln -s libpthread-2.27.so libpthread.so.0
ln -s libpthread-2.27.so libpthread.so.0
echo 'Info: Basic packages installation...'

echo 'Info: Basic packages installation...'
/opt/bin/opkg update
/opt/bin/opkg update
generic.sh: line 43: /opt/bin/opkg: not found
if [ $TYPE = 'alternative' ]; then
/opt/bin/opkg install busybox
fi
'[' generic '=' alternative ]
/opt/bin/opkg install entware-opt
/opt/bin/opkg install entware-opt
generic.sh: line 47: /opt/bin/opkg: not found
Fix for multiuser environment
chmod 777 /opt/tmp

chmod 777 /opt/tmp
for file in passwd group shells shadow gshadow localtime; do
if [ $TYPE = 'generic' ]; then
if [ -f /etc/$file ]; then
ln -sf /etc/$file /opt/etc/$file
else
[ -f /opt/etc/$file.1 ] && cp /opt/etc/$file.1 /opt/etc/$file
fi
else
if [ -f /opt/etc/$file.1 ]; then
cp /opt/etc/$file.1 /opt/etc/$file
else
[ -f /etc/$file ] && ln -sf /etc/$file /opt/etc/$file
fi
fi
done

'[' generic '=' generic ]
'[' -f /etc/passwd ]
ln -sf /etc/passwd /opt/etc/passwd
'[' generic '=' generic ]
'[' -f /etc/group ]
ln -sf /etc/group /opt/etc/group
'[' generic '=' generic ]
'[' -f /etc/shells ]
'[' -f /opt/etc/shells.1 ]
'[' generic '=' generic ]
'[' -f /etc/shadow ]
'[' -f /opt/etc/shadow.1 ]
'[' generic '=' generic ]
'[' -f /etc/gshadow ]
'[' -f /opt/etc/gshadow.1 ]
'[' generic '=' generic ]
'[' -f /etc/localtime ]
'[' -f /opt/etc/localtime.1 ]
echo 'Info: Congratulations!'

echo 'Info: Congratulations!'
echo 'Info: If there are no errors above then Entware was successfully initialized.'
echo 'Info: If there are no errors above then Entware was successfully initialized.'
echo 'Info: Add /opt/bin & /opt/sbin to $PATH variable'
echo 'Info: Add /opt/bin & /opt/sbin to $PATH variable'
echo 'Info: Add "/opt/etc/init.d/rc.unslung start" to startup script for Entware services to start'
echo 'Info: Add "/opt/etc/init.d/rc.unslung start" to startup script for Entware services to start'
if [ $TYPE = 'alternative' ]; then
echo 'Info: Use ssh server from Entware for better compatibility.'
fi
'[' generic '=' alternative ]
echo 'Info: Found a Bug? Please report at https://github.com/Entware/Entware/issues'
echo 'Info: Found a Bug? Please report at https://github.com/Entware/Entware/issues'
so here's some info about my system:

Iam running dd-wrt latest firmware 1/05/2020:
Router Model Linksys E1200 v2
Firmware Version DD-WRT v3.0-r41892 mega (01/05/20)
Kernel Version Linux 3.10.108-d8 #1348 Sun Jan 5 13:46:22 +04 2020 mips

also:
root@dd-wrt:/opt# export
export HOME='/tmp/root'
export LD_LIBRARY_PATH='/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib:/opt/lib:/opt/usr/lib'
export LOGNAME='root'
export OLDPWD='/tmp'
export PATH='/bin:/usr/bin:/sbin:/usr/sbin:/jffs/sbin:/jffs/bin:/jffs/usr/sbin:/jffs/usr/bin:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin'

All the files seem to have installed correctly and exist where they should be at howeve when i try to run opkg....

root@dd-wrt:/opt# /opt/bin/opkg
-sh: /opt/bin/opkg: not found

Wtf???

Shocked

_________________
Router Model Linksys E1200 v2
Firmware Version DD-WRT v3.0-r41892 mega (01/05/20)
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Tue Jan 07, 2020 13:22    Post subject: Reply with quote
Do you have a properly formatted usb drive installed, and mounted and is Entware installed on it?
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6410
Location: UK, London, just across the river..

PostPosted: Tue Jan 07, 2020 15:26    Post subject: Reply with quote
https://wiki.dd-wrt.com/wiki/index.php/Installing_Entware

first format drive to appropriate drive format...
thumb drive ext2, hdd ext3/4
than mount it to opt
than install entware...follow the guide from the link, it works ok...

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55179 WAP
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55460 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55460 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55363 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
bdrew
DD-WRT Novice


Joined: 07 Jan 2020
Posts: 5
Location: Seattle, WA

PostPosted: Tue Jan 07, 2020 16:20    Post subject: Reply with quote
kernel-panic69 wrote:
Do you have a properly formatted usb drive installed, and mounted and is Entware installed on it?


I'm using cifs mounted drive

_________________
Router Model Linksys E1200 v2
Firmware Version DD-WRT v3.0-r41892 mega (01/05/20)
bdrew
DD-WRT Novice


Joined: 07 Jan 2020
Posts: 5
Location: Seattle, WA

PostPosted: Tue Jan 07, 2020 16:21    Post subject: Reply with quote
Alozaros wrote:
https://wiki.dd-wrt.com/wiki/index.php/Installing_Entware

first format drive to appropriate drive format...
thumb drive ext2, hdd ext3/4
than mount it to opt
than install entware...follow the guide from the link, it works ok...


I'm using a cifs mounted drive

_________________
Router Model Linksys E1200 v2
Firmware Version DD-WRT v3.0-r41892 mega (01/05/20)
tinkeruntilitworks
Guest





PostPosted: Tue Jan 07, 2020 17:51    Post subject: Reply with quote
is there enough space to install entware?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Tue Jan 07, 2020 18:29    Post subject: Reply with quote
In either of the Entware wikis, I don't see a thing about CIFS. That might be part of your problem, or not.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Mr.R™
DD-WRT Novice


Joined: 01 Jun 2010
Posts: 28

PostPosted: Fri Jan 10, 2020 14:16    Post subject: Reply with quote
Have you actually added the unslung command to your start up and shut down and restarted or manually started entware using the command it mentions?

As your using cifs i assume that's on another drive or system? Could be if you have done the above its running the command before cifs is mounted, you could try delaying the start of entware in case.
I can't think of any other issue if you have enough space on your drive (and its formatted/allocated correctly) as you can find opkg in opt/bin
wabe
DD-WRT Guru


Joined: 17 Jun 2006
Posts: 889

PostPosted: Wed Jan 15, 2020 10:44    Post subject: Reply with quote
bdrew wrote:


I'm using a cifs mounted drive


Have you formatted the drive to have two partitions?

You need at least two partitions. One may be mounted as as cifs and used for storage in general. Opt needs to be on a separate partition.

_________________
Netgear R7000 on Build 55109
Asus AC-AC68U rev. C1 (AP) on Build 55109
Asus AC-68U rev. A1 on Build 54604
Asus AC-68U rev. A1 on Build 53339
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Thu Jan 16, 2020 18:15    Post subject: Reply with quote
$(PATH) seems to be rattling around in my brain re-reading this thread. You shouldn't have had to export the default firmware command path for it to work, instead use the variable $(PATH), if my brain is functioning right today.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum