Name | Modified | Size | Downloads / Week |
---|---|---|---|
SB5101-2.11.0.0-GA-04 | 2013-06-06 | ||
README.txt | 2012-07-31 | 5.8 kB | |
Totals: 2 Items | 5.8 kB | 0 |
Contents --------- Installation Building eCos Image Compiler Used Installation ---------------- Create a directory and extract the .bz2 file: tar -xvjf filename.bz2 Go to ./rbb_cm_ecos/ecos/ecos-src/ Inside, you will have these four directories ./bcm33xx ./bcm33xx_ipv6 ./bcm33xx_smp ./ecos-2.0 Building eCos Image --------------------- To build the eCos image: cd to a directory bcm33xx or bcm33xx_ipv6 bash build.bash The output will be located in ./bcm33xx*/bcm33xx_*_install/include ./bcm33xx*/bcm33xx_*_install/lib Compiler Used ----------------- To Build the GCC-3.2.1 compiler ----------------------------------- Built on Red Hat Enterprise Linux WS release 4 (Nahant Update 5) on Linux 2.6.9-55.ELsmp #1 i686 athlon i386 GNU/Linux 1) You will need to download several things first. a) Go to http://ftp.gnu.org/gnu/binutils/ i) Download binutils-2.13.1.tar.bz2 ii) Download binutils-2.17a.tar.bz2 b) http://mirrors-us.seosue.com/gcc/releases/gcc-3.4.3/ i) Download gcc-3.4.3.tar.bz2 c) Download the GCC-3.2.1 that is with this README file 2) Create these directories a) ~/source i) ~/source/binutils-2.13.1 ii) ~/source/binutils-2.17 iii) ~/source/gcc-3.2.1 iv) ~/source/gcc-3.4.3 b) ~/opt i) ~/opt/build a) ~/opt/build/binutils-2.13.1 b) ~/opt/build/binutils-2.17 c) ~/opt/build/gcc-3.2.1 d) ~/opt/build/gcc-3.4.3 ii) ~/opt/gcc-3.2.1 iii) ~/opt/gcc-3.4.3 3) Place the downloaded files in the appropriate directores in the ~/source/... directories. a) You will need to "untar" the .bz2 files type in each directory "tar -xvjf filename" b) unzip for gcc-3.2.1 a) need to dos2unix recursively in the folder gcc-3.2.1 type "find . -type f -exec dos2unix {} \;" 4) Place the bash script files into the correct directory a) configutils1.bash to ~/opt/build/binutils-2.13.1 b) configutils.bash to ~/opt/build/binutils-2.17 c) configgcc1.bash to ~/opt/build/gcc-3.2.1 d) configgcc.bash to ~/opt/build/gcc-3.4.3 5) Finding the target of your OS a) type bash ~/source/binutils-2.17/config.guess b) Remember to save this target 6) Go to the directory ~/opt/build/binutils-2.17 a) Use your favorite editor and open up configutils.bash i) Make sure utilversion=2.17 and gnuversion=3.4.3, make sure that your target="from step 5" ii) source_dir=~/source/binutils-${utilversion} prefix_dir=~/opt/gcc-${gnuversion} a) I would recommend writing the full path instead of using ~ b) Now type "bash configgcc.bash" c) Now type "make -w all install 2>&1 | tee make.out" 7) Now type "export PATH=~/opt/gcc-3.4.3/TARGET(from 5)/bin:~/opt/gcc-3.4.3/bin:$PATH" a) Recommend typing the full path and not using ~ 8) Go to the directory ~/opt/build/gcc-3.4.3 a) Use your favorite editor and open up configgcc.bash i) Make sure gnversion=3.4.3 ii) Make sure target="from step 5" iii) source_dir=~/source/gcc-${gnuversion} prefix_dir=~/opt/gcc-${gnuversion} b) These should already be changed but make sure that with-newlib is commented out and with-gxx-include* is also commented out. Also make sure to add --includedir=/usr/include c) Now type "bash configgcc.bash" d) Now type "make -w all install 2>&1 | tee make.out" 9) Type "gcc -v" If you have setup the PATH correctly from above it should say version 3.4.3. If it isn't then other retry all the steps above, or time to go to google and search for your answers. 10) Go to the directory ~/source/gcc-3.2.1 a) You will need to change the permission of all the configure files in this directory and the subdirectories. Use chmod 777 to each configure file. b) find the file c-parse.c go to line 340 and change malloc to xmalloc, find the file tradcif.c line 153 malloc to xmalloc, find the file cp/parse.c line 495 and change malloc to xmalloc 11) Go to the directory ~/opt/build/binutils-2.13.1 a) Use your favorite editor and open up configutils1.bash i) Make sure utilversion=2.13.1 and gnuversion=3.2.1, make sure that your target=mipsisa32-elf ii) source_dir=~/source/binutils-${utilversion} prefix_dir=~/opt/gcc-${gnuversion} a) I would recommend writing the full path instead of using ~ b) Now type "bash configgcc.bash" c) Now type "make -w all install 2>&1 | tee make.out" 12) Now type "export PATH=~/opt/gcc-3.2.1/mipsisa32-elf/bin:~/opt/gcc-3.2.1/bin:$PATH" a) Recommend typing the full path and not using ~ 13) Go to the directory ~/opt/build/gcc-3.2.1 a) Use your favorite editor and open up configgcc1.bash i) Make sure gnversion=3.2.1 ii) Make sure target=mipsisa32-elf iii) source_dir=~/source/gcc-${gnuversion} prefix_dir=~/opt/gcc-${gnuversion} b) Now type "bash configgcc.bash" c) Now type "make -w all install 2>&1 | tee make.out" 14) Type "gcc -v" If you have setup the PATH correctly from above it should say version 3.2.1. If it isn't then other retry all the steps above, or time to go to google and search for your answers. ---------------------------------------------------- Misc Instructions that might or might not be needed ----------------------------------------------------- 1) ~/source/gcc-3.4.3/gcc/collect2.c on line 1535 after the O_CREAT add ", 0777" 2) sudo apt-get update && sudo apt-get install dos2unix sudo apt-get install texinfo sudo apt-get install flex sudo apt-get install bison 3)change script and add this line to CFLAGS -w 4)change Makefile - find MAKEINFO = ....missing makeinfo to just makeinfo