The starter application runs a BSD Network Stack with HTTPD using the SDHC card as a file system, and supports Telnet, Shell, and Lua.
First find the IMX6-Example.tar.gz file in the Getting Started Folder on this site, and the ECM files IMXBSDWandboard.ecm and/or IMX6BSDSabre.ecm.
Using the eCos configuration tool or Code Confidence, create an eCos project. Choose the "Freescale Wandboard or Freescale Saber SD Board."
Import the IMXBSDWandboard.ecm or IMX6BSDSabre.ecm file. Remove the "ISO C library signals" package. Compile the configuration.
Using the source files from the zip, create and application and compile it against the configuration library.
Using a JTAG tool, load the application into a Wandboard or Sabre SD board and run it.
The application will use DHCP to get an address, which will be printed on the RS232 port. Using the IP number, use TFTP to copy an index.htm file, or use the example provided.
Open a web browser and go to nnn.nnn.nnn.nnn/index.htm. The web page should be displayed.
Then enter nnn.nnn.nnn.nnn/monitor and use the builtin monitor functions.
Telent to nnn.nnn.nnn.nnn and type "ls" on the command line.
TFTP a lua file and run it as "lua filename.lua".
Wiki: Getting Started with iMX6 and eCos SMP
Hi,
I am planning to build ecos for sabresd board, I have followed steps in getting started page and completed installation, applied patch for pre-built tool chain. But not able to get clarity on compilation and running image on target.
I have run configtool, but not able to see any provision for new project creation, selecting freescale sabre SD board, importing .ecm files.
Any input on this will be helpful.
Thanks.
I assume you compiled the tool chain per the Wiki. You need to do that because the standard eCos prebuilt tool chains don't have support for the ARM A9. Once you have the tool chain, using the configtool is the same as any other standard eCos project. In the Build Menu, there is an item called Templates. When the dialog appears, there is a choice "Freescale Sabre SD Board." Once you apply the template you can apply any .ecm file from File | Import. Creating an application is the same as any other eCos application.
As per your suggestion I have built toolchain. For ecos compilation, I ran configtool -> build->templates; I can't see Freescale sabre SD board option. "Freescale M5272c3 evaluation kit" is the only option I can see. Let me know if I am missing something.
On my system, under M5272C3 is:
Freescale Sabre SD board
Freescale Wandboard
These choices come from the ecos.db file found in the packages directory. Look in that file and make sure you see Sabre and Wandboard packages.
In the config tool, go to menu Build | Repository... and make sure it points to the root of the tree. Mine has: /opt/ecos/ecos-3.0
On my system, that directory contains the packages tree. I put my toolchain at /opt/ecos/gnutools