Sunday, April 13, 2008

compiling the tools for ARM My experience

********************************************************
Building tool chain for ARM using Build root in Linux.
********************************************************

make a directory with ur favourite name some directory.
$mkdir MyFavaouriteDir

copy the build root compressed file buildroot-snapshot.tar.bz2 into the directory created.
$cd MyFavouriteDir

untar the compressed file into the directory
$tar -jxvf buildroot-snapshot.tar.bz2

A directory by name buildroot will be created.Change the directory to buildroot directory.
$cd buildroot
$pwd
MyFavouritedirectory/buildroot/

create a directory by name dl inside the build root directory
$mkdir dl

$ls
dl binaries build_arm Config.in docs Makefile package project
project_build_arm scripts target TODO toolchain toolchain_build_arm

copy the following files into the dl directory

bash-3.2.tar.gz
binutils-2.18.tar.bz2
binutils.tar.bz2
buildroot-snapshot.tar.bz2
busybox-1.9.1.tar.bz2
ccache-2.4.tar.gz
fakeroot_1.9.tar.gz
gcc-4.2.0.tar.bz2
genext2fs-1.4.tar.gz
glibc-2.2.4.tar.gz
gmp-4.2.2.tar.bz2
linux-2.6.23.tar.bz2
mpfr-2.3.0.patch
mpfr-2.3.0.tar.bz2
uClibc-0.9.29.tar.bz2

$ls dl
bash-3.2.tar.gz binutils-2.18.tar.bz2 binutils.tar.bz2 buildroot buildroot-snapshot.tar.bz2
busybox-1.9.1.tar.bz2 ccache-2.4.tar.gz fakeroot_1.9.tar.gz gcc-4.2.0.tar.bz2 genext2fs-1.4.tar.gz
glibc-2.2.4.tar.gz gmp-4.2.2.tar.bz2 linux-2.6.23.tar.bz2 mpfr-2.3.0.patch mpfr-2.3.0.tar.bz2
uClibc-0.9.29.tar.bz2

now the process of building the tool chain starts

************************************************
ncurses development library is needed for make menuconfig to work
about:
ncurses is a programming library providing an API, allowing the programmer to write text user interfaces in a terminal-independent manner
************************************************

$make menuconfig
select the configuration options u wish from the options and save the configuration
$make
The following programs are needed for the building the tool chain by make.
Hopefully these will be preinstalled in the system.If not installed system will prompt you to install the required programs after u run make.

************************************************
bison not found
about bison :
Bison is a general-purpose parser generator that converts an annotated context-free grammar into an LALR(1) or GLR parser for that grammar. Once you are proficient with Bison, you can use it to develop a wide range of language parsers, from those used in simple desk calculators to complex programming languages.

Bison is upward compatible with Yacc: all properly-written Yacc grammars ought to work with Bison with no change. Anyone familiar with Yacc should be able to use Bison with little trouble. You need to be fluent in C or C++ programming in order to use Bison.
installed bison with documentation

************************************************
flex not found
about flex:
Flex

Flex (The Fast Lexical Analyzer)
Flex is a fast lexical analyser generator. It is a tool for generating programs that perform pattern-matching on text. Flex is a non-GNU free implementation of the well known Lex program.

installed flex
************************************************
makeinfo not found
about:
makeinfo is a program for converting Texinfo files into Info files. Texinfo is a documentation system that uses a single source file to produce both on-line information and printed output.
************************************************
After running make wait for some time u will get the output if every thing is correct other wise with error message as happened to me.
Lets learn by experimenting so start experimenting Today.

No comments: