Kconfig 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. #
  2. # Configuration for initramfs
  3. #
  4. config INITRAMFS_SOURCE
  5. string "Initramfs source file(s)"
  6. default ""
  7. help
  8. This can be either a single cpio archive with a .cpio suffix or a
  9. space-separated list of directories and files for building the
  10. initramfs image. A cpio archive should contain a filesystem archive
  11. to be used as an initramfs image. Directories should contain a
  12. filesystem layout to be included in the initramfs image. Files
  13. should contain entries according to the format described by the
  14. "usr/gen_init_cpio" program in the kernel tree.
  15. When multiple directories and files are specified then the
  16. initramfs image will be the aggregate of all of them.
  17. See <file:Documentation/early-userspace/README> for more details.
  18. If you are not sure, leave it blank.
  19. config INITRAMFS_ROOT_UID
  20. int "User ID to map to 0 (user root)"
  21. depends on INITRAMFS_SOURCE!=""
  22. default "0"
  23. help
  24. This setting is only meaningful if the INITRAMFS_SOURCE is
  25. contains a directory. Setting this user ID (UID) to something
  26. other than "0" will cause all files owned by that UID to be
  27. owned by user root in the initial ramdisk image.
  28. If you are not sure, leave it set to "0".
  29. config INITRAMFS_ROOT_GID
  30. int "Group ID to map to 0 (group root)"
  31. depends on INITRAMFS_SOURCE!=""
  32. default "0"
  33. help
  34. This setting is only meaningful if the INITRAMFS_SOURCE is
  35. contains a directory. Setting this group ID (GID) to something
  36. other than "0" will cause all files owned by that GID to be
  37. owned by group root in the initial ramdisk image.
  38. If you are not sure, leave it set to "0".
  39. config RD_GZIP
  40. bool "Support initial ramdisks compressed using gzip" if EXPERT
  41. default y
  42. depends on BLK_DEV_INITRD
  43. select DECOMPRESS_GZIP
  44. help
  45. Support loading of a gzip encoded initial ramdisk or cpio buffer.
  46. If unsure, say Y.
  47. config RD_BZIP2
  48. bool "Support initial ramdisks compressed using bzip2" if EXPERT
  49. default !EXPERT
  50. depends on BLK_DEV_INITRD
  51. select DECOMPRESS_BZIP2
  52. help
  53. Support loading of a bzip2 encoded initial ramdisk or cpio buffer
  54. If unsure, say N.
  55. config RD_LZMA
  56. bool "Support initial ramdisks compressed using LZMA" if EXPERT
  57. default !EXPERT
  58. depends on BLK_DEV_INITRD
  59. select DECOMPRESS_LZMA
  60. help
  61. Support loading of a LZMA encoded initial ramdisk or cpio buffer
  62. If unsure, say N.
  63. config RD_XZ
  64. bool "Support initial ramdisks compressed using XZ" if EXPERT
  65. default !EXPERT
  66. depends on BLK_DEV_INITRD
  67. select DECOMPRESS_XZ
  68. help
  69. Support loading of a XZ encoded initial ramdisk or cpio buffer.
  70. If unsure, say N.
  71. config RD_LZO
  72. bool "Support initial ramdisks compressed using LZO" if EXPERT
  73. default !EXPERT
  74. depends on BLK_DEV_INITRD
  75. select DECOMPRESS_LZO
  76. help
  77. Support loading of a LZO encoded initial ramdisk or cpio buffer
  78. If unsure, say N.
  79. choice
  80. prompt "Built-in initramfs compression mode" if INITRAMFS_SOURCE!=""
  81. help
  82. This option decides by which algorithm the builtin initramfs
  83. will be compressed. Several compression algorithms are
  84. available, which differ in efficiency, compression and
  85. decompression speed. Compression speed is only relevant
  86. when building a kernel. Decompression speed is relevant at
  87. each boot.
  88. If you have any problems with bzip2 or LZMA compressed
  89. initramfs, mail me (Alain Knaff) <alain@knaff.lu>.
  90. High compression options are mostly useful for users who are
  91. low on RAM, since it reduces the memory consumption during
  92. boot.
  93. If in doubt, select 'gzip'
  94. config INITRAMFS_COMPRESSION_NONE
  95. bool "None"
  96. help
  97. Do not compress the built-in initramfs at all. This may
  98. sound wasteful in space, but, you should be aware that the
  99. built-in initramfs will be compressed at a later stage
  100. anyways along with the rest of the kernel, on those
  101. architectures that support this.
  102. However, not compressing the initramfs may lead to slightly
  103. higher memory consumption during a short time at boot, while
  104. both the cpio image and the unpacked filesystem image will
  105. be present in memory simultaneously
  106. config INITRAMFS_COMPRESSION_GZIP
  107. bool "Gzip"
  108. depends on RD_GZIP
  109. help
  110. The old and tried gzip compression. It provides a good balance
  111. between compression ratio and decompression speed.
  112. config INITRAMFS_COMPRESSION_BZIP2
  113. bool "Bzip2"
  114. depends on RD_BZIP2
  115. help
  116. Its compression ratio and speed is intermediate.
  117. Decompression speed is slowest among the four. The initramfs
  118. size is about 10% smaller with bzip2, in comparison to gzip.
  119. Bzip2 uses a large amount of memory. For modern kernels you
  120. will need at least 8MB RAM or more for booting.
  121. config INITRAMFS_COMPRESSION_LZMA
  122. bool "LZMA"
  123. depends on RD_LZMA
  124. help
  125. The most recent compression algorithm.
  126. Its ratio is best, decompression speed is between the other
  127. three. Compression is slowest. The initramfs size is about 33%
  128. smaller with LZMA in comparison to gzip.
  129. config INITRAMFS_COMPRESSION_XZ
  130. bool "XZ"
  131. depends on RD_XZ
  132. help
  133. XZ uses the LZMA2 algorithm. The initramfs size is about 30%
  134. smaller with XZ in comparison to gzip. Decompression speed
  135. is better than that of bzip2 but worse than gzip and LZO.
  136. Compression is slow.
  137. config INITRAMFS_COMPRESSION_LZO
  138. bool "LZO"
  139. depends on RD_LZO
  140. help
  141. Its compression ratio is the poorest among the four. The kernel
  142. size is about 10% bigger than gzip; however its speed
  143. (both compression and decompression) is the fastest.
  144. endchoice