Difference between revisions of "Linuxstamp mx27"

From OpenCircuits
Jump to navigation Jump to search
Line 6: Line 6:
 
First pull the installer
 
First pull the installer
 
  $ wget --passive-ftp ftp://ecos.sourceware.org/pub/ecos/ecos-install.tcl
 
  $ wget --passive-ftp ftp://ecos.sourceware.org/pub/ecos/ecos-install.tcl
Then run it:
+
Then run it, be sure to include the arm-elf tools as that's what the freescale version wants.
 
  $ ./ecos-install.tcl
 
  $ ./ecos-install.tcl
 
It wants to run ecosenv.sh so set up the environment correctly. It says to stick it in .profile or .login. I think .bashrc will also work.
 
It wants to run ecosenv.sh so set up the environment correctly. It says to stick it in .profile or .login. I think .bashrc will also work.
 
Install old compat-libstdc
 
Install old compat-libstdc
 
  # yum install compat-libstdc++-3
 
  # yum install compat-libstdc++-3
 +
 +
Freescale has a version of ecos that they have patched to work with the imx27. First you need to download redboot_200719.tar.gz, that has both the base as well as the patches. to convert all the dos files to unix files use:
 +
$ find . -type f -exec dos2unix {} \;
 +
Then you can patch the tree:
 +
$  bunzip2 -c ../patch-redboot-200719-base.bz2 | patch -p1
 +
$  bunzip2 -c ../patch-redboot-200719-mx27.bz2 | patch -p1
 +
Next set the ECOS_REPOSITORY environment variable:
 +
$ export ECOS_REPOSITORY=/path_to_redboot/redboot_200719/src/ecos_20050912/packages/
 +
Configure for imx27
 +
$ ecosconfig new mx27ads redboot
 +
$ ecosconfig import $ECOS_REPOSITORY/hal/arm/mx27/ads/current/misc/redboot_ROMRAM.ecm
 +
$ ecosconfig tree
 +
And finally make:
 +
$ make
 +
Now you should have redboot.bin under install/bin

Revision as of 17:14, 11 May 2009

Main

This is a place holder for the Linuxstamp mx27 board. Details will be posted as they are available.

Redboot

Redboot is based on ecos. A good starting point is here First pull the installer

$ wget --passive-ftp ftp://ecos.sourceware.org/pub/ecos/ecos-install.tcl

Then run it, be sure to include the arm-elf tools as that's what the freescale version wants.

$ ./ecos-install.tcl

It wants to run ecosenv.sh so set up the environment correctly. It says to stick it in .profile or .login. I think .bashrc will also work. Install old compat-libstdc

# yum install compat-libstdc++-3

Freescale has a version of ecos that they have patched to work with the imx27. First you need to download redboot_200719.tar.gz, that has both the base as well as the patches. to convert all the dos files to unix files use:

$ find . -type f -exec dos2unix {} \;

Then you can patch the tree:

$  bunzip2 -c ../patch-redboot-200719-base.bz2 | patch -p1
$  bunzip2 -c ../patch-redboot-200719-mx27.bz2 | patch -p1

Next set the ECOS_REPOSITORY environment variable:

$ export ECOS_REPOSITORY=/path_to_redboot/redboot_200719/src/ecos_20050912/packages/

Configure for imx27

$ ecosconfig new mx27ads redboot
$ ecosconfig import $ECOS_REPOSITORY/hal/arm/mx27/ads/current/misc/redboot_ROMRAM.ecm
$ ecosconfig tree

And finally make:

$ make

Now you should have redboot.bin under install/bin