CRAMFS Utilities
From Texas Instruments Embedded Processors Wiki
Contents |
What are the CRAMFS Utilities?
The [CRAMFS Utilities] are used to create a CRAMFS file system image and to run a check of that file system image. The following utilites are part of the [CRAMFS Utilities] package:
- mkcramfs - Creates a CRAMFS file system image from the contents of a specified directory.
- cramfsck - Checks a CRAMFS file system image for errors.
At the very least you will need the mkcramfs tool installed on your host Linux workstation in order to create the cramfs file system image.
Where to Obtain the CRAMFS Utilities
The CRAMFS utilities can be obtained from the sourceforge project page at [[1]]. Here you can obtain the latest version of the utilities as well as submit bugs.
Compilation
Obtain the latest version of the tool at [[2]]. After downloading the tools (Here we assume the tools were downloaded to the /home/user directory) you can perform the following steps to compile and install the tools.
- Untar the tools package
host $ cd /home/user/ host $ tar xzf cramfs-1.1.tar.gz host $ cd cramfs-1.1
- Compile the tools
host $ make
This creates the mkcramfs and cramfsck utilities. You can install both if you want but you only need the mkcramfs utility in most cases.
- Install the tools
Since the Makefile does not have an install section it is up to you to install the utilities yourself. This can be done by simply copying the tools to the /usr/bin directory.
host $ cp mkcramfs /usr/bin/ host $ cp cramfsck /usr/bin/ (optional)
Conclusion
You should now have the CRAMFS utilities installed on your host Linux workstation. To verify that the tools are installed an available in your path do:
host$ which mkcramfs
You should see output similar to:
host$ which mkcramfs /usr/bin/mkcramfs
If you do not see this output please make sure that /usr/bin is in your PATH variable.
Leave a CommentComments
Comments on CRAMFS Utilities
Keshini said ...
Keshini said ...
hi,
in debian linux while i am compiling cramfs1.1 it is giving error i.e."-lz not found in usr/bin/ld,and ld returned 1 exit status".
please reply to me asap.
--Keshini 07:31, 7 July 2011 (CDT)

hi,
in debian linux while i am compiling cramfs1.1 it is giving error i.e."-lz not found in usr/bin/ld,and ld returned 1 exit status".
please reply to me asap.
--Keshini 07:31, 7 July 2011 (CDT)