Difference between revisions of "Hammer Board Software System"

From eLinux.org
Jump to: navigation, search
m (Buildroot)
(OpenOCD)
Line 46: Line 46:
  
 
[[Media:blink.ocd| Openocd Script to blink onboard LED]]
 
[[Media:blink.ocd| Openocd Script to blink onboard LED]]
 +
 +
SVN R1888
 +
Note: This is not the latest revision, but it is one that many folks use.
 +
 +
You must get the source from openocd from SVN
 +
 +
--->svn checkout svn://svn.berlios.de/openocd/trunk -r 1888
 +
 +
You will also have comment out line 16 of config.in
 +
 +
---># AC_CHECK_HEADERS(jtag_minidriver.h)
 +
 +
then run bootstrap.sh followed by
 +
 +
--->./configure --enable-ft2232-ftd2xx --enable-maintainer-mode
 +
 +
then make
 +
 +
followed by make install as root
 +
 +
I used Ubuntu 9.04 and had many of the essential tools already installed, you may need to install
 +
additional tools for your own dist
 +
 +
I had to add these specifically for openocd:
 +
 +
subversion (1.5.4dfsg1-1ubuntu2)
 +
 +
libtool (2.2.6a-1ubuntu1)
 +
 +
automake1.9 (1.9.6+nogfdl-3ubuntu2)
 +
 +
texinfo (4.11.dfsg.1-4)
 +
 +
See the readme.txt for additional info.
 +
 +
Once installed, you need to run openocd as root from the directory that contains the .cfg files and scripts you want to run.
 +
 +
Here are some useful scripts:
 +
 +
*blinker.ocd
 +
*dump_apex.ocd
 +
*erase_check.ocd
 +
*flash_all.ocd
 +
*flash_apex.ocd
 +
*load_apex.ocd
 +
*probe_info.ocd
 +
 +
Here are the .cfg files for the hammer:
 +
 +
*flyswatter.cfg
 +
*hammer.cfg
 +
 +
Invoke openocd like this:
 +
 +
-->openocd -f flyswatter.cfg -f hammer.cfg -f load_apex.ocd
  
 
== Other Important Stuff ==
 
== Other Important Stuff ==

Revision as of 15:44, 21 June 2009

Source Code

APEX Boot Loader

Current APEX bootloader source

Current APEX bootloader config

Kernel

Current - Hammer is supported in the main kernel tree as of linux-2.6.26 (Be careful : there are some problems with S3C2410 USB host support which appear to fixed in 2.6.28).

mmc-patch for adding sd/mmc configuration to 2.6.26

kernel patch against 2.6.22

The s3c2410_udc patch (required for Gadget support)

Current Kernel Config

Buildroot

Current supported Buildroot
It seems buildroot above will not build properly on ubuntu 9.04 -- if anyone has a solution please post it...Im trying the latest buildroot now and will update if it works Fix for mpfr buildroot config

Current buildroot config

Buildroot Configuration with C++ enabled

Tool Chain

No patches are needed. The tool chain is built using buildroot.

OpenOCD

Current Stable as of 10-06-2008

NOTE: SVN734 is from a date of 2008-06-27, newer versions of OpenOCD from the SVN are not considered stable

Older Stable Version


Openocd Script to blink onboard LED

SVN R1888 Note: This is not the latest revision, but it is one that many folks use.

You must get the source from openocd from SVN

--->svn checkout svn://svn.berlios.de/openocd/trunk -r 1888

You will also have comment out line 16 of config.in

---># AC_CHECK_HEADERS(jtag_minidriver.h)

then run bootstrap.sh followed by

--->./configure --enable-ft2232-ftd2xx --enable-maintainer-mode

then make

followed by make install as root

I used Ubuntu 9.04 and had many of the essential tools already installed, you may need to install additional tools for your own dist

I had to add these specifically for openocd:

subversion (1.5.4dfsg1-1ubuntu2)

libtool (2.2.6a-1ubuntu1)

automake1.9 (1.9.6+nogfdl-3ubuntu2)

texinfo (4.11.dfsg.1-4)

See the readme.txt for additional info.

Once installed, you need to run openocd as root from the directory that contains the .cfg files and scripts you want to run.

Here are some useful scripts:

  • blinker.ocd
  • dump_apex.ocd
  • erase_check.ocd
  • flash_all.ocd
  • flash_apex.ocd
  • load_apex.ocd
  • probe_info.ocd

Here are the .cfg files for the hammer:

  • flyswatter.cfg
  • hammer.cfg

Invoke openocd like this:

-->openocd -f flyswatter.cfg -f hammer.cfg -f load_apex.ocd

Other Important Stuff

Source for devmem utility - devmem

Binary Reference Images

APEX Boot Loader

Kernel 2.6.22 image

Root File System

devmen utility binary