User:RichardJune/Build Environment Update

From ImageStream Router Documentation

< User:RichardJune(Difference between revisions)
Jump to: navigation, search
(Installation)
(Installation)
 
(4 intermediate revisions not shown)
Line 1: Line 1:
 +
==Installation==
 +
#download ubuntu and make CD http://mirrors.us.kernel.org/ubuntu-releases/intrepid/ubuntu-8.10-desktop-i386.iso
 +
#Just do the default installation
 +
# After installation, reboot and login, open a terminal(Applications->Accessories->Terminal) and run the following:
 +
sudo apt-get update
 +
sudo apt-get -y upgrade
 +
sudo reboot
 +
sudo apt-get -y install patch gcc-3.4 cvs bison flex
 +
sudo rm /bin/sh
 +
sudo ln -s /bin/bash /bin/sh
 +
export CVSROOT=":pserver:USERNAME@cvs.imagestream.com:/server/usr/local/oem"
 +
cvs login
 +
# This will take a while, it downloads about thirty five MegaBytes
 +
cvs co rbe
 +
cd rbe
 +
# This will take a while, it downloads quite a bit and then builds gcc, glibc, and a few other tools
 +
make crosscomp
 +
cd router-src
 +
./build -b
 +
# your PATH is now set to use the compiler just built, gcc -v should show gcc version 3.2.3
 +
 +
:The build environment is now setup, you will find gcc, etc in crosscomp/gcc-3.2.3-glibc-2.2.2/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/. Use those tools to build.
 +
==Notes==
==Notes==
# Ubuntu is the distribution most commonly used internally, other distributions should work, but are unknown.
# Ubuntu is the distribution most commonly used internally, other distributions should work, but are unknown.
Line 4: Line 27:
# /bin/sh should be a symlink to /bin/bash.
# /bin/sh should be a symlink to /bin/bash.
# You must have a username and password from us to download the build environment.
# You must have a username and password from us to download the build environment.
-
 
+
# The system must have functional internet access to download and build the router environment.
-
==Installation==
+
-
#download ubuntu and make CD http://mirrors.us.kernel.org/ubuntu-releases/intrepid/ubuntu-8.10-desktop-i386.iso
+
-
#Just do the default installation
+
-
# After installation, reboot and login, open a terminal and run the following
+
-
# sudo apt-get upgrade
+
-
# sudo apt-get install patch gcc-3.4 cvs bison flex
+
-
# sudo rm /bin/sh
+
-
# sudo ln -s /bin/bash /bin/sh
+
-
# export CVSROOT=":pserver:USERNAME@cvs.imagestream.com:/server/usr/local/oem"
+
-
# cvs login
+
-
# cvs co rbe
+
-
# cd rbe
+
-
# make crosscomp
+
-
:The build environment is now setup, you will find gcc, etc in crosscomp/gcc-3.2.3-glibc-2.2.2/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/. Use those tools to build.
+

Latest revision as of 17:50, 11 March 2009

Installation

  1. download ubuntu and make CD http://mirrors.us.kernel.org/ubuntu-releases/intrepid/ubuntu-8.10-desktop-i386.iso
  2. Just do the default installation
  3. After installation, reboot and login, open a terminal(Applications->Accessories->Terminal) and run the following:
sudo apt-get update
sudo apt-get -y upgrade
sudo reboot
sudo apt-get -y install patch gcc-3.4 cvs bison flex
sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh
export CVSROOT=":pserver:USERNAME@cvs.imagestream.com:/server/usr/local/oem"
cvs login
# This will take a while, it downloads about thirty five MegaBytes
cvs co rbe 
cd rbe
# This will take a while, it downloads quite a bit and then builds gcc, glibc, and a few other tools
make crosscomp
cd router-src
./build -b
# your PATH is now set to use the compiler just built, gcc -v should show gcc version 3.2.3
The build environment is now setup, you will find gcc, etc in crosscomp/gcc-3.2.3-glibc-2.2.2/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/. Use those tools to build.

Notes

  1. Ubuntu is the distribution most commonly used internally, other distributions should work, but are unknown.
  2. Gcc 3.3 and Gcc 3.4 are the only versions known to work. One of them should be /usr/bin/gcc-3.3 or /usr/bin/gcc-3.4
  3. /bin/sh should be a symlink to /bin/bash.
  4. You must have a username and password from us to download the build environment.
  5. The system must have functional internet access to download and build the router environment.
Personal tools
Router software releases