1) Download mtd-utils from the link.
ftp://ftp.infradead.org/pub/mtd-utils/
(PS: Reference link http://elinux.org/CompilingMTDUtils)
2) Preparation for x86 build.
i) zlib
ii) lzo
iii) uuid
(PS: For ubuntu 10.04, user can install the packages from "Synaptic Package Manager" or "apt-get".)
3) Build with the following command.
WITHOUT_XATTR=1 make
sudo su
DESTDIR=/usr/local make install
To compile external mtd-utils-1.3.x, build e2fsprogs, lzo, zlib in ltib first. No need to modify the Makefile.
Then run the following:
Setting the following flags.
ZLIBCPPFLAGS="-I/home/usr/include" ZLIBLDFLAGS="-L/home/usr/lib" CROSS=arm-none-linux-gnueabi- WITHOUT_XATTR=1 make
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment