OTRW2 (Optware the right way Take 2)

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 08:40, 16 August 2013 (edit)
James2k (Talk | contribs)

← Previous diff
Revision as of 09:04, 16 August 2013 (edit) (undo)
James2k (Talk | contribs)

Next diff →
Line 28: Line 28:
If you are using a USB hard drive you can format your partitions with ext2, ext3 or ext4. A recommendation would be to use ext3 or ext4 as journaling will benefit a USB hard drive. If you are using a USB hard drive you can format your partitions with ext2, ext3 or ext4. A recommendation would be to use ext3 or ext4 as journaling will benefit a USB hard drive.
 +
 +== Mounting your storage device to your router ==
 +
 +WIP
 +
 +== Installing Optware ==
 +
 +'''Reminder:''' The installer script only works on Kernel 2.6.
 +
 +The information below is taken from the official [http://basmaf.com/otrw2_installation/ OTRW2 installation instructions]
 +
 +You have the choice of two versions of OTRW2 to install, stable and development.
 +
 +'''Stable:'''
 +
 +In most cases you will want the stable branch for production use.
 +
 +<pre>wget -O /tmp/prep_optware http://ddwrt.basmaf.com/prep_optware
 +sh /tmp/prep_optware</pre>
 +
 +'''Development:'''
 +
 +You might want to use the development branch if you are a tester or want a feature that is not yet available in the stable branch yet. The development branch is classed as bleeding edge. Use with caution. Not recommended for production environments were stability is required.
 +
 +<pre>wget -O /tmp/prep_optware http://ddwrt-trunk.basmaf.com/prep_optware
 +sh /tmp/prep_optware</pre>
 +
 +'''Running the above commands:'''
 +
 +You will require [http://www.dd-wrt.com/wiki/index.php/SSH telnet] or [http://www.dd-wrt.com/wiki/index.php/SSH SSH] access to your router in order to run either of the above commands. Your router also needs to have a working internet connection. In telnet or SSH try pinging an external website to confirm this is the case:
 +
 +<pre>ping www.google.co.uk
 +PING www.google.co.uk (74.125.132.94): 56 data bytes
 +64 bytes from 74.125.132.94: seq=0 ttl=47 time=28.850 ms
 +64 bytes from 74.125.132.94: seq=1 ttl=47 time=24.619 ms
 +64 bytes from 74.125.132.94: seq=2 ttl=47 time=24.336 ms
 +64 bytes from 74.125.132.94: seq=3 ttl=47 time=30.179 ms
 +</pre>
 +
 +After a couple of successful pings you can stop pinging and run either of the above commands (depending on the branch of OTRW2 you want). If you can't ping external websites, try rebooting your router. If that doesn't work you'll need to investigate internet connectivity issues.

Revision as of 09:04, 16 August 2013

OTRW2 is the latest version of Optware for Broadcom routers. The original Optware project was lead by frater, but has since ceased developing OTRW. The project was then picked up by basmaf who has continued development on Optware. To provide clarity between the difference in versions, basmaf's Optware is commonly referred to as OTRW2

Information on frater's original Optware can be found here: OTRW

This page describes the newer version OTRW2.

(This is a work in progress, information is currently being added to this wiki entry)

Contents

Prerequisites

Optware runs on broadcom routers only. The installer script for OTRW2 only works on Kernel 2.6 (K26)

The following builds are supported:

  • BrainSlayer builds up to 19519
  • Fractal builds up to 20006
  • All Kong builds based on Kernel 2.6

Note: Kong AC builds are not supported

Partitioning your external storage device

To use Optware you need to partition a storage device in a certain way. Your storage device can be a external hard drive, USB flash device or even an SD card. This guide provides a how to on partitioning your storage device:

Partitioning your storage device for Optware

You should bear in mind that if you use a SD card or USB flash drive you should format your partitions with ext2. This is because ext2 does not use journaling. Using a journaling filesystem such as ext3 will potentially reduce the lifespan of your SD card or USB flashdrive.

If you are using a USB hard drive you can format your partitions with ext2, ext3 or ext4. A recommendation would be to use ext3 or ext4 as journaling will benefit a USB hard drive.

Mounting your storage device to your router

WIP

Installing Optware

Reminder: The installer script only works on Kernel 2.6.

The information below is taken from the official OTRW2 installation instructions

You have the choice of two versions of OTRW2 to install, stable and development.

Stable:

In most cases you will want the stable branch for production use.

wget -O /tmp/prep_optware http://ddwrt.basmaf.com/prep_optware
sh /tmp/prep_optware

Development:

You might want to use the development branch if you are a tester or want a feature that is not yet available in the stable branch yet. The development branch is classed as bleeding edge. Use with caution. Not recommended for production environments were stability is required.

wget -O /tmp/prep_optware http://ddwrt-trunk.basmaf.com/prep_optware
sh /tmp/prep_optware

Running the above commands:

You will require telnet or SSH access to your router in order to run either of the above commands. Your router also needs to have a working internet connection. In telnet or SSH try pinging an external website to confirm this is the case:

ping www.google.co.uk
PING www.google.co.uk (74.125.132.94): 56 data bytes
64 bytes from 74.125.132.94: seq=0 ttl=47 time=28.850 ms
64 bytes from 74.125.132.94: seq=1 ttl=47 time=24.619 ms
64 bytes from 74.125.132.94: seq=2 ttl=47 time=24.336 ms
64 bytes from 74.125.132.94: seq=3 ttl=47 time=30.179 ms

After a couple of successful pings you can stop pinging and run either of the above commands (depending on the branch of OTRW2 you want). If you can't ping external websites, try rebooting your router. If that doesn't work you'll need to investigate internet connectivity issues.