Joined: 04 Feb 2007 Posts: 426 Location: Fountain of Youth
Posted: Tue Jul 28, 2015 2:32 Post subject: OTRW2 on a Cellspot (RT-AC68U)
OTRW is a marvel on the RT-N16 and now that I have upgraded my T-Mobile Cellspot with "DD-WRT v3.0-r27413 (06/22/15) std", I am looking forward to installing OTRW2 on this powerful new hardware.
Attempts to follow the OTRW2 Wiki are documented here:
Code:
root@ECHO:/opt# wget -O /tmp/prep_optware http://dd-ware.googlecode.com/svn/otrw
2/prep_optware
Connecting to dd-ware.googlecode.com (74.125.21.82:80)
prep_optware 100% |*******************************| 3054 0:00:00 ETA
root@ECHO:/opt# sh /tmp/prep_optware
Connecting to dd-ware.googlecode.com (74.125.21.82:80)
prep 100% |*******************************| 15825 0:00:00 ETA
Opkg is not installed... Let's install it
Connecting to dd-ware.googlecode.com (74.125.21.82:80)
- 100% |*******************************| 366 0:00:00 ETA
Connecting to dd-ware.googlecode.com (74.125.21.82:80)
opkg 100% |*******************************| 123k 0:00:00 ETA
Connecting to dd-ware.googlecode.com (74.125.21.82:80)
opkg.conf 100% |*******************************| 146 0:00:00 ETA
sh: /opt/bin/opkg: Permission denied
######
Opkg installation was NOT successful...
Your hardware is probably not compatible
model name : ARMv7 Processor rev 0 (v7l)
processor : 0
BogoMIPS : 1594.16
Features : swp half thumb fastmult edsp tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc09
CPU revision : 0
model name : ARMv7 Processor rev 0 (v7l)
processor : 1
BogoMIPS : 1594.16
Features : swp half thumb fastmult edsp tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc09
CPU revision : 0
Hardware : Northstar Prototype
Revision : 0000
I have been able to read/write to a ext2 USB memory stick mounted at /opt. I noticed this line in the log above:
if [ ${?} -eq 0 ] ; then
echo -e "You already installed opkg!"
if [ -f /opt/etc/release ] ; then
echo -e "Checking the installed revision...".
wget http://"${dom}"/ -qO - | grep Rev | tail -n1 | awk {' print $4 '} | cut -d: -f1 > /tmp/release
cur_version=`cat /tmp/release`
my_version=`cat /opt/etc/release`
if [ "$my_version" -ge "$cur_version" ] ; then
echo -e "No changes have been made to the scripts since your last install/update\n"
while true ; do
read -p "Continue install? (Yes|No) " yn
case $yn in
[Yy]* ) echo -e "Continuing upgrade" ; break ;;
[Nn]* ) echo "Exiting...." ; exit;;
* ) echo "Please answer yes or no.";;
esac
done
else
echo -e "Upgrades available!\nI will execute an update\n"
fi
rm /tmp/release
else
echo -e "I will execute an update\n"
fi
else
echo -e "\nOpkg is not installed... Let's install it\n"
wget http://dd-ware.googlecode.com/svn/install/install.sh -O - | sh
opkg update 2>/dev/null
if [ $? -ne 0 ] ; then
echo -e "\n######\n\nOpkg installation was NOT successful...\nYour hardware is probably not compatible"
cat /proc/cpuinfo
exit 1
fi
opkg_install opkg 2> /dev/null
fi
Hopefully someone with more experience can pose some questions to diagnose the issue.
Joined: 21 Nov 2010 Posts: 278 Location: North America
Posted: Wed Jul 29, 2015 15:40 Post subject: Re: OTRW2 on a Cellspot (RT-AC68U)
gatorback wrote:
sh: /opt/bin/opkg: Permission denied
######
Opkg installation was NOT successful...
Your hardware is probably not compatible
model name : ARMv7 Processor rev 0 (v7l)
processor : 0
BogoMIPS : 1594.16
Features : swp half thumb fastmult edsp tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc09
CPU revision : 0
model name : ARMv7 Processor rev 0 (v7l)
processor : 1
BogoMIPS : 1594.16
Features : swp half thumb fastmult edsp tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc09
CPU revision : 0
I have been able to read/write to a ext2 USB memory stick mounted at /opt. I noticed this line in the log above:
sh: /opt/bin/opkg: Permission denied
The cause of the problem is staring you in the face. Optware runs on MIPS processors not ARMv.7 processors. There are usually 2 errors that occur when executing incompatible code : 1.) "Permission denied" eventhough execute permissions are clearly set, and 2.) "Not found" eventhough the file clearly exists and you have expliciitly used the full path name to it.
To solve the problem, switch to Entware which is an Optware work-alike. To get started with installing a version that is compatible with ARMv.7, follow the instructions here: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=284490