MINI2440 embedded projects

From Kenneth Noyens
Revision as of 11:47, 9 January 2010 by Kenneth (talk | contribs) (Nieuwe pagina aangemaakt met 'This page is currently under constructions, I'm doing this all over with the new versions of all the software == Toolchain == First of all, we need a toolchain contai...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page is currently under constructions, I'm doing this all over with the new versions of all the software

Toolchain

First of all, we need a toolchain containing some command-line tools for our ARM platform:

  • C and C++ compilers
  • assembler
  • linker
  • C and C++ runtime libraries
  • GNU debugger


I'm going to use the Sourcery G++ Lite ARM that is available for free.
You can get the last version from http://www.codesourcery.com/sgpp/lite/arm/portal/subscription3053
Downloading and unpacking:


<source lang="bash"> mkdir mini2440 cd mini2440 wget http://www.codesourcery.com/sgpp/lite/arm/portal/package5353/public/arm-none-eabi/arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 tar jxf arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 export PATH=/home/ttts/mini2440/arm-2008q3/bin:$PATH </source>


The last line will add the bin directory the $PATH variable so that we can use the commands in that directory like normal commands.

Uboot

Download uboot for mini2440:


<source lang="bash"> mkdir uboot cd uboot git clone git://repo.or.cz/u-boot-openmoko/mini2440.git </source>


Compile uboot:


<source lang="bash"> export CROSS_COMPILE=arm-none-eabi- cd mini2440 make mini2440_config make all </source>