Revision as of 07:33, 6 October 2008 by Dirk (talk | contribs) (Start new page about (cross-) compiling MTD utils. Some people out there having problems with this ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This article is about (cross-) compiling MTD-Utils. MTD-Utils(MTD == memory technology device) are user space tools to work with MTD kernel subsystem. As these tools are often necessary to write embedded file system to MTD (NOR/NAND) devices and there are some dependencies, we briefly describe here how to cross compile them.

Source and dependencies

MTD utils are available from MTD utils git. You can get them by

  • Using gitweb "snapshot" feature (use "snapshot" link at latest commit at the right side)
  • Using git

git pull git:// mtd-utils

Compiling MTD utils depend on zlib and LZO. Download latest archives using the given links. For this example we use

  • zlib-1.2.3.tar.bz2
  • lzo-2.03.tar.gz
  • mtd-utils.git-snapshot-20081004.tar.gz

Cross compile

As example for cross compilation, we use CodeSourcery ARM tool chain as popular for BeagleBoard.

Note: If you use other cross compiler, replace tool chain prefix arm-none-linux-gnueabi- below by prefix of your (cross-) toolchain.