OTRW2 on a Cellspot (RT-AC68U)

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


Joined: 04 Feb 2007
Posts: 426
Location: Fountain of Youth

PostPosted: Tue Jul 28, 2015 2:32    Post subject: OTRW2 on a Cellspot (RT-AC68U) Reply with quote
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:

sh: /opt/bin/opkg: Permission denied


Inspection revealed:

Code:

root@ECHO:/opt/install# ls -l /opt/bin/
-rwxr-xr-x    1 root     root        125960 Jul 27 19:10 opkg

root@ECHO:/opt/install# ls -l /opt | grep bin
drwxr-xr-x    2 root     root          4096 Jul 27 19:10 bin
drwxr-xr-x    2 root     root          4096 Jul 27 19:10 sbin


Note that opkg.conf was not copied /opt/bin

I am hoping that someone can comment on why permission was denied. Hopefully this data point can improve the script:


Code:
wget http://dd-ware.googlecode.com/svn/otrw2/prep_k3_dd-ware -O ./ /opt/install



I think this portion of the script threw the error:

Code:

################################
## Install libc & opkg
################################

opkg print-architecture >/dev/null 2>&1

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.

UPDATE: I now understand that the Firmware is a Brainslayer build and not a Kong build. I think this implies that FPU emulation is absent and is problematic for OTRW2. Any test to test / confirm that the FPU emulation is absent?

_________________
My Routers | RT-N16 Wiki | TMO Cellspot Wiki
Peacock Flashing | Wireless N Conf | Linking Routers |
DD-WRT Wiki | DD-WRT Builds | Broadcom FAQ| QoS| OTRW
Sponsor
Magnetron1.1
DD-WRT User


Joined: 21 Nov 2010
Posts: 278
Location: North America

PostPosted: Wed Jul 29, 2015 15:40    Post subject: Re: OTRW2 on a Cellspot (RT-AC68U) Reply with quote
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

Hardware : Northstar Prototype
Revision : 0000[/code]

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

- Magnetron1.1
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