2019-05-19 12:07:45 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2009-01-22 07:56:54 +00:00
|
|
|
config CRAMFS
|
2017-10-12 06:16:13 +00:00
|
|
|
tristate "Compressed ROM file system support (cramfs)"
|
2009-01-22 07:56:54 +00:00
|
|
|
select ZLIB_INFLATE
|
|
|
|
help
|
|
|
|
Saying Y here includes support for CramFs (Compressed ROM File
|
|
|
|
System). CramFs is designed to be a simple, small, and compressed
|
|
|
|
file system for ROM based embedded systems. CramFs is read-only,
|
|
|
|
limited to 256MB file systems (with 16MB files), and doesn't support
|
|
|
|
16/32 bits uid/gid, hard links and timestamps.
|
|
|
|
|
2020-04-14 16:48:37 +00:00
|
|
|
See <file:Documentation/filesystems/cramfs.rst> and
|
2009-01-22 07:56:54 +00:00
|
|
|
<file:fs/cramfs/README> for further information.
|
|
|
|
|
|
|
|
To compile this as a module, choose M here: the module will be called
|
|
|
|
cramfs. Note that the root file system (the one containing the
|
|
|
|
directory /) cannot be compiled as a module.
|
|
|
|
|
2017-10-12 06:16:13 +00:00
|
|
|
This filesystem is limited in capabilities and performance on
|
|
|
|
purpose to remain small and low on RAM usage. It is most suitable
|
|
|
|
for small embedded systems. If you have ample RAM to spare, you may
|
|
|
|
consider a more capable compressed filesystem such as SquashFS
|
|
|
|
which is much better in terms of performance and features.
|
2013-11-12 23:08:35 +00:00
|
|
|
|
2009-01-22 07:56:54 +00:00
|
|
|
If unsure, say N.
|
2017-10-13 20:09:23 +00:00
|
|
|
|
|
|
|
config CRAMFS_BLOCKDEV
|
|
|
|
bool "Support CramFs image over a regular block device" if EXPERT
|
|
|
|
depends on CRAMFS && BLOCK
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This option allows the CramFs driver to load data from a regular
|
|
|
|
block device such a disk partition or a ramdisk.
|
|
|
|
|
|
|
|
config CRAMFS_MTD
|
|
|
|
bool "Support CramFs image directly mapped in physical memory"
|
2018-02-08 03:08:08 +00:00
|
|
|
depends on CRAMFS && CRAMFS <= MTD
|
2017-10-13 20:09:23 +00:00
|
|
|
default y if !CRAMFS_BLOCKDEV
|
|
|
|
help
|
|
|
|
This option allows the CramFs driver to load data directly from
|
2023-01-24 18:16:31 +00:00
|
|
|
a linear addressed memory range (usually non-volatile memory
|
2017-10-13 20:09:23 +00:00
|
|
|
like flash) instead of going through the block device layer.
|
|
|
|
This saves some memory since no intermediate buffering is
|
|
|
|
necessary.
|
|
|
|
|
|
|
|
The location of the CramFs image is determined by a
|
|
|
|
MTD device capable of direct memory mapping e.g. from
|
|
|
|
the 'physmap' map driver or a resulting MTD partition.
|
|
|
|
For example, this would mount the cramfs image stored in
|
|
|
|
the MTD partition named "xip_fs" on the /mnt mountpoint:
|
|
|
|
|
|
|
|
mount -t cramfs mtd:xip_fs /mnt
|
|
|
|
|
|
|
|
If unsure, say N.
|