sdk

14
OpenRG SDK Installation Guide Version 4.8 Jungo Software Technologies Ltd.

Upload: test22

Post on 29-Nov-2014

264 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: sdk

OpenRG SDK InstallationGuide

Version 4.8

Jungo Software Technologies Ltd.

Page 2: sdk

© 1998-2007 Jungo Software Technologies Ltd. 2

OpenRG SDK Installation Guide: Version 4.8Jungo Software Technologies Ltd.Copyright © 1998-2007 Jungo Software Technologies Ltd. All Rights Reserved. Jungo Confidential and Proprietary.

Product names mentioned in this document are trademarks of their respective manufacturers and are used here only for identification purposes.

Information in this document is subject to change without notice. The software described in this document is furnished under a license agreement.The software may be used, copied or distributed only in accordance with that agreement. No part of this publication may be reproduced, stored ina retrieval system, or transmitted in any form or any means, electronically or mechanically, including photocopying and recording for any purposewithout the written permission of Jungo Ltd.

This document is available for download at: http://www.jungo.com/openrg/install.html

Page 3: sdk

© 1998-2007 Jungo Software Technologies Ltd. 3

Page 4: sdk

© 1998-2007 Jungo Software Technologies Ltd. iv

Table of Contents1. Overview ................................................................................................................................ 1

1.1. What Does the SDK Provide? .................................................................................... 11.2. Software and Hardware Requirements ....................................................................... 21.3. Windows Users ........................................................................................................... 3

2. Installation Process ................................................................................................................ 43. Compiling an Image .............................................................................................................. 64. Burning an Image .................................................................................................................. 75. Uninstall Process ................................................................................................................... 86. Troubleshooting ..................................................................................................................... 9

6.1. I Have a Missing Package .......................................................................................... 96.2. I Have a Compilation Problem ................................................................................... 96.3. My Evaluation License has Expired ........................................................................... 96.4. How do I Perform Multiple Installations of OpenRG on a Single Download? ......... 10

Page 5: sdk

© 1998-2007 Jungo Software Technologies Ltd. 1

1OverviewThis document takes you through the OpenRG Software Development Kit (SDK) installationprocess, and assists you in solving potential installation difficulties.

1.1. What Does the SDK Provide?• A fully featured, 30-day evaluation SDK for Gateway developers.

• Available for all hardware platforms:

• All Intel-based IXP425 platforms

• ADI AD6834

• Broadcom ASUS BCM6348

• Conexant CX8620X

• Freescale MPC8272ADS

• Storlink Centroid

• Broadcom GTWX5803

• A gateway emulation (UML), which enables you to compile and run a virtual gateway onyour PC without a hardware platform.

• Includes an installation script (install.sh), which installs the following components:

• Toolchain according to your chosen platform.

Page 6: sdk

Overview

© 1998-2007 Jungo Software Technologies Ltd. 2

• License files (<*>.lic).

• Key features source code and the Linux kernel.

• Tools to help you work in the OpenRG environment such as compiler, linker, assembler,debugger and others.

1.2. Software and HardwareRequirements

Developing with OpenRG requires the following setup:

• A Residential Gateway or development platform

• A host PC running one of the following versions of the Linux operating system:

• Debian 3.1 or higher

• Mandrake 8.1 or higher

• Redhat 7.3 or higher

• Ubuntu

Note: When compiling OpenRG on Ubuntu, change the soft-link /bin/sh to pointto /bin/bash. OpenRG's UML distribution cannot be compiled on Ubuntu.

• A text editor that supports tags, such as VI or Emacs.

• The following minimum hardware requirements for the host PC:

• 1.6GHz CPU

• 256MB RAM

• 1.5GB free disk space

• 2 network cards

• Internet access, unless the installation is performed using a CD

Page 7: sdk

Overview

© 1998-2007 Jungo Software Technologies Ltd. 3

1.3. Windows UsersFor Windows users, the SDK can also be used on a virtual Linux, running on top of Windows.These emulators run the Linux as a Windows application. The following are links to downloadvirtual Linux over Windows:

• coLinux - a free and open source emulation: http://www.colinux.org

• VMWare - both a commercial version and a 30-day evaluation are available: http://www.vmware.com

Page 8: sdk

© 1998-2007 Jungo Software Technologies Ltd. 4

2Installation Process

Note: In order to install the SDK, you must have certain standard Linux packagesinstalled. If a package is missing during the installation process, you will be promptedto install it to complete the process. The Linux packages you will need are thestandard gcc, make and libc packages for your Linux distribution. If you cancompile "hello world", you are ready to install the OpenRG SDK.

To install the development environment on your host PC perform the following:

1. Download the SDK from http://www.jungo.com/openrg/download.html.

2. Extract the SDK archive, usually rg_sdk_install.tgz:

$ tar xvzf rg_sdk_install.tgz

3. Change the directory to rg_sdk_install and run the install script.

$ cd rg_sdk_install$ ./install.sh

4. The install script is interactive. Follow its instructions:

1. If prompted, select the target architecture to install. Enter 'y' to confirm theinstallation. The script will fetch and extract source packages and toolchains from theInternet. These actions may take some time, depending on your Internet connectionspeed.

2. If interested, change the default directory of the development tree when prompted toenter the installation directory. For example, ~/rg-4_0_11.

The install script copies the toolchain to the /usr/local/openrg directory, andthe OpenRG development tree and license file to the <~/rg-4_0_11>/rg directory.

Page 9: sdk

Installation Process

© 1998-2007 Jungo Software Technologies Ltd. 5

Have the root password ready, you will need to provide it to the script when installing thetoolchain.

5. After a successful installation, instructions for compiling the image appear on the screen(refer to chapterchap_compile).

Note: After installing the SDK, most OpenRG configurations will require:Bison - GNU Project parser generator. Flex - Contains a utility for generatingprograms that perform pattern-matching on text.

Page 10: sdk

© 1998-2007 Jungo Software Technologies Ltd. 6

3Compiling an Image

1. Change the directory to where you installed the OpenRG development tree, for example:$ cd ~/rg.4_8_11/rg

2. Execute the following command to automatically configure the development tree:make config DIST=<platform-specific distribution> LIC=<license file path>

The "platform-specific distribution" part correlates with your board's model. The license isprovided with your distribution.

3. To build the image files, execute:make

4. The compilation process will produce openrg.img, which is a binary that can bedownloaded and burnt using OpenRG's 'flash load' CLI command. You can find the imagein the build subdirectory of the OpenRG development tree (i.e. rg.4_8_11/rg/build). Thefactory settings can be found in the build/pkg/main subdirectory (i.e. rg.4_8_11/rg/build/pkg/main/rg_factory).

Page 11: sdk

© 1998-2007 Jungo Software Technologies Ltd. 7

4Burning an ImageBurn the image to the board according to the installation guide of your chosen platform. Youcan download installation guides for each of the platforms from: http://www.jungo.com/openrg/install.html .

Page 12: sdk

© 1998-2007 Jungo Software Technologies Ltd. 8

5Uninstall ProcessIn order to uninstall the SDK, follow these steps:

1. Remove sources:

$ rm -rf rg-<version>

Specify the version of OpenRG you wish to remove.

2. Become a super-user:

$ su

Provide an administrator password.

3. Remove toolchains, which are copied by the install script to /usr/local/openrg:

# rm -rf /usr/local/openrg

Page 13: sdk

© 1998-2007 Jungo Software Technologies Ltd. 9

6Troubleshooting

6.1. I Have a Missing PackageThe following is an example of an error message that can appear during your installationprocess:

CRITICAL: Could not find package rg-build_4.0.30_src.ejpkgjpkg failed to download/extract required package.

In this case, the rg-build_4.0.30_src.ejpkg package could not be found. If youencounter a similar message, please:

1. Make sure you are connected to the Internet.

2. If this error still appears, contact Jungo's support team at [email protected], and wewill provide you with the missing package.

6.2. I Have a Compilation ProblemIf you encounter compilation problems:

1. Make sure you are able to compile "hello world".

2. If "hello world" compiles and the SDK does not, please contact Jungo's support team [email protected].

6.3. My Evaluation License has ExpiredIf your evaluation license has expired, you have the following options:

Page 14: sdk

Troubleshooting

© 1998-2007 Jungo Software Technologies Ltd. 10

1. You may extend your evaluation for an additional 30-day period, by contacting Jungo'ssupport team at [email protected].

2. If you wish to purchase a commercial license, please contact your local representative,which you can locate at http://www.jungo.com/contact.html , or write directly [email protected].

6.4. How do I Perform MultipleInstallations of OpenRG on a SingleDownload?

1. Install OpenRG once on one computer. The OpenRG packages will be cached in ~/.jpkg_cache/*.ejpkg.

2. Copy all the *.ejpkg files to a file server in your own network, or to a local computer towhich you would like to install.

3. Set JPKG_SEARCH_PATH to the path of the OpenRG packages:

• If the server is a Web server:

$ export JPKG_SEARCH_PATH=<path to HTTP server>

• If the server is a file server:

$ export JPKG_SEARCH_PATH=<path to file server>

4. Run install.sh to install OpenRG.