Kconfig.boot 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972
  1. menu "Boot options"
  2. menu "Boot images"
  3. config ANDROID_BOOT_IMAGE
  4. bool "Enable support for Android Boot Images"
  5. default y if FASTBOOT
  6. help
  7. This enables support for booting images which use the Android
  8. image format header.
  9. config FIT
  10. bool "Support Flattened Image Tree"
  11. select MD5
  12. select SHA1
  13. help
  14. This option allows you to boot the new uImage structure,
  15. Flattened Image Tree. FIT is formally a FDT, which can include
  16. images of various types (kernel, FDT blob, ramdisk, etc.)
  17. in a single blob. To boot this new uImage structure,
  18. pass the address of the blob to the "bootm" command.
  19. FIT is very flexible, supporting compression, multiple images,
  20. multiple configurations, verification through hashing and also
  21. verified boot (secure boot using RSA).
  22. if FIT
  23. config FIT_EXTERNAL_OFFSET
  24. hex "FIT external data offset"
  25. default 0x0
  26. help
  27. This specifies a data offset in fit image.
  28. The offset is from data payload offset to the beginning of
  29. fit image header. When specifies a offset, specific data
  30. could be put in the hole between data payload and fit image
  31. header, such as CSF data on i.MX platform.
  32. config FIT_ENABLE_SHA256_SUPPORT
  33. bool "Support SHA256 checksum of FIT image contents"
  34. default y
  35. select SHA256
  36. help
  37. Enable this to support SHA256 checksum of FIT image contents. A
  38. SHA256 checksum is a 256-bit (32-byte) hash value used to check that
  39. the image contents have not been corrupted.
  40. config FIT_ENABLE_SHA384_SUPPORT
  41. bool "Support SHA384 checksum of FIT image contents"
  42. default n
  43. select SHA384
  44. help
  45. Enable this to support SHA384 checksum of FIT image contents. A
  46. SHA384 checksum is a 384-bit (48-byte) hash value used to check that
  47. the image contents have not been corrupted. Use this for the highest
  48. security.
  49. config FIT_ENABLE_SHA512_SUPPORT
  50. bool "Support SHA512 checksum of FIT image contents"
  51. default n
  52. select SHA512
  53. help
  54. Enable this to support SHA512 checksum of FIT image contents. A
  55. SHA512 checksum is a 512-bit (64-byte) hash value used to check that
  56. the image contents have not been corrupted.
  57. config FIT_FULL_CHECK
  58. bool "Do a full check of the FIT before using it"
  59. default y
  60. help
  61. Enable this do a full check of the FIT to make sure it is valid. This
  62. helps to protect against carefully crafted FITs which take advantage
  63. of bugs or omissions in the code. This includes a bad structure,
  64. multiple root nodes and the like.
  65. config FIT_SIGNATURE
  66. bool "Enable signature verification of FIT uImages"
  67. depends on DM
  68. select HASH
  69. select RSA
  70. select RSA_VERIFY
  71. select IMAGE_SIGN_INFO
  72. select FIT_FULL_CHECK
  73. select HASH_CALCULATE
  74. help
  75. This option enables signature verification of FIT uImages,
  76. using a hash signed and verified using RSA. If
  77. CONFIG_SHA_PROG_HW_ACCEL is defined, i.e support for progressive
  78. hashing is available using hardware, then the RSA library will use
  79. it. See doc/uImage.FIT/signature.txt for more details.
  80. WARNING: When relying on signed FIT images with a required signature
  81. check the legacy image format is disabled by default, so that
  82. unsigned images cannot be loaded. If a board needs the legacy image
  83. format support in this case, enable it using
  84. CONFIG_LEGACY_IMAGE_FORMAT.
  85. config FIT_SIGNATURE_MAX_SIZE
  86. hex "Max size of signed FIT structures"
  87. depends on FIT_SIGNATURE
  88. default 0x10000000
  89. help
  90. This option sets a max size in bytes for verified FIT uImages.
  91. A sane value of 256MB protects corrupted DTB structures from overlapping
  92. device memory. Assure this size does not extend past expected storage
  93. space.
  94. config FIT_ENABLE_RSASSA_PSS_SUPPORT
  95. bool "Support rsassa-pss signature scheme of FIT image contents"
  96. depends on FIT_SIGNATURE
  97. default n
  98. help
  99. Enable this to support the pss padding algorithm as described
  100. in the rfc8017 (https://tools.ietf.org/html/rfc8017).
  101. config FIT_CIPHER
  102. bool "Enable ciphering data in a FIT uImages"
  103. depends on DM
  104. select AES
  105. help
  106. Enable the feature of data ciphering/unciphering in the tool mkimage
  107. and in the u-boot support of the FIT image.
  108. config FIT_VERBOSE
  109. bool "Show verbose messages when FIT images fail"
  110. help
  111. Generally a system will have valid FIT images so debug messages
  112. are a waste of code space. If you are debugging your images then
  113. you can enable this option to get more verbose information about
  114. failures.
  115. config FIT_BEST_MATCH
  116. bool "Select the best match for the kernel device tree"
  117. help
  118. When no configuration is explicitly selected, default to the
  119. one whose fdt's compatibility field best matches that of
  120. U-Boot itself. A match is considered "best" if it matches the
  121. most specific compatibility entry of U-Boot's fdt's root node.
  122. The order of entries in the configuration's fdt is ignored.
  123. config FIT_IMAGE_POST_PROCESS
  124. bool "Enable post-processing of FIT artifacts after loading by U-Boot"
  125. depends on TI_SECURE_DEVICE || SOCFPGA_SECURE_VAB_AUTH
  126. help
  127. Allows doing any sort of manipulation to blobs after they got extracted
  128. from FIT images like stripping off headers or modifying the size of the
  129. blob, verification, authentication, decryption etc. in a platform or
  130. board specific way. In order to use this feature a platform or board-
  131. specific implementation of board_fit_image_post_process() must be
  132. provided. Also, anything done during this post-processing step would
  133. need to be comprehended in how the images were prepared before being
  134. injected into the FIT creation (i.e. the blobs would have been pre-
  135. processed before being added to the FIT image).
  136. config FIT_PRINT
  137. bool "Support FIT printing"
  138. default y
  139. help
  140. Support printing the content of the fitImage in a verbose manner.
  141. if SPL
  142. config SPL_FIT
  143. bool "Support Flattened Image Tree within SPL"
  144. depends on SPL
  145. select SPL_OF_LIBFDT
  146. config SPL_FIT_PRINT
  147. bool "Support FIT printing within SPL"
  148. depends on SPL_FIT
  149. help
  150. Support printing the content of the fitImage in a verbose manner in SPL.
  151. config SPL_FIT_FULL_CHECK
  152. bool "Do a full check of the FIT before using it"
  153. help
  154. Enable this do a full check of the FIT to make sure it is valid. This
  155. helps to protect against carefully crafted FITs which take advantage
  156. of bugs or omissions in the code. This includes a bad structure,
  157. multiple root nodes and the like.
  158. config SPL_FIT_SIGNATURE
  159. bool "Enable signature verification of FIT firmware within SPL"
  160. depends on SPL_DM
  161. depends on SPL_LOAD_FIT || SPL_LOAD_FIT_FULL
  162. select FIT_SIGNATURE
  163. select SPL_FIT
  164. select SPL_CRYPTO_SUPPORT
  165. select SPL_HASH_SUPPORT
  166. select SPL_RSA
  167. select SPL_RSA_VERIFY
  168. select SPL_IMAGE_SIGN_INFO
  169. select SPL_FIT_FULL_CHECK
  170. config SPL_LOAD_FIT
  171. bool "Enable SPL loading U-Boot as a FIT (basic fitImage features)"
  172. select SPL_FIT
  173. help
  174. Normally with the SPL framework a legacy image is generated as part
  175. of the build. This contains U-Boot along with information as to
  176. where it should be loaded. This option instead enables generation
  177. of a FIT (Flat Image Tree) which provides more flexibility. In
  178. particular it can handle selecting from multiple device tree
  179. and passing the correct one to U-Boot.
  180. This path has the following limitations:
  181. 1. "loadables" images, other than FDTs, which do not have a "load"
  182. property will not be loaded. This limitation also applies to FPGA
  183. images with the correct "compatible" string.
  184. 2. For FPGA images, only the "compatible" = "u-boot,fpga-legacy"
  185. loading method is supported.
  186. 3. FDTs are only loaded for images with an "os" property of "u-boot".
  187. "linux" images are also supported with Falcon boot mode.
  188. config SPL_LOAD_FIT_ADDRESS
  189. hex "load address of fit image"
  190. depends on SPL_LOAD_FIT
  191. default 0x0
  192. help
  193. Specify the load address of the fit image that will be loaded
  194. by SPL.
  195. config SPL_LOAD_FIT_APPLY_OVERLAY
  196. bool "Enable SPL applying DT overlays from FIT"
  197. depends on SPL_LOAD_FIT
  198. select OF_LIBFDT_OVERLAY
  199. help
  200. The device tree is loaded from the FIT image. Allow the SPL is to
  201. also load device-tree overlays from the FIT image an apply them
  202. over the device tree.
  203. config SPL_LOAD_FIT_APPLY_OVERLAY_BUF_SZ
  204. depends on SPL_LOAD_FIT_APPLY_OVERLAY
  205. default 0x10000
  206. hex "size of temporary buffer used to load the overlays"
  207. help
  208. The size of the area where the overlays will be loaded and
  209. uncompress. Must be at least as large as biggest overlay
  210. (uncompressed)
  211. config SPL_LOAD_FIT_FULL
  212. bool "Enable SPL loading U-Boot as a FIT (full fitImage features)"
  213. select SPL_FIT
  214. help
  215. Normally with the SPL framework a legacy image is generated as part
  216. of the build. This contains U-Boot along with information as to
  217. where it should be loaded. This option instead enables generation
  218. of a FIT (Flat Image Tree) which provides more flexibility. In
  219. particular it can handle selecting from multiple device tree
  220. and passing the correct one to U-Boot.
  221. config SPL_FIT_IMAGE_POST_PROCESS
  222. bool "Enable post-processing of FIT artifacts after loading by the SPL"
  223. depends on SPL_LOAD_FIT
  224. help
  225. Allows doing any sort of manipulation to blobs after they got extracted
  226. from the U-Boot FIT image like stripping off headers or modifying the
  227. size of the blob, verification, authentication, decryption etc. in a
  228. platform or board specific way. In order to use this feature a platform
  229. or board-specific implementation of board_fit_image_post_process() must
  230. be provided. Also, anything done during this post-processing step would
  231. need to be comprehended in how the images were prepared before being
  232. injected into the FIT creation (i.e. the blobs would have been pre-
  233. processed before being added to the FIT image).
  234. config SPL_FIT_SOURCE
  235. string ".its source file for U-Boot FIT image"
  236. depends on SPL_FIT
  237. help
  238. Specifies a (platform specific) FIT source file to generate the
  239. U-Boot FIT image. This could specify further image to load and/or
  240. execute.
  241. config USE_SPL_FIT_GENERATOR
  242. bool "Use a script to generate the .its script"
  243. default y if SPL_FIT && !ARCH_SUNXI
  244. config SPL_FIT_GENERATOR
  245. string ".its file generator script for U-Boot FIT image"
  246. depends on USE_SPL_FIT_GENERATOR
  247. default "arch/arm/mach-rockchip/make_fit_atf.py" if SPL_LOAD_FIT && ARCH_ROCKCHIP
  248. default "arch/arm/mach-zynqmp/mkimage_fit_atf.sh" if SPL_LOAD_FIT && ARCH_ZYNQMP
  249. default "arch/riscv/lib/mkimage_fit_opensbi.sh" if SPL_LOAD_FIT && RISCV
  250. help
  251. Specifies a (platform specific) script file to generate the FIT
  252. source file used to build the U-Boot FIT image file. This gets
  253. passed a list of supported device tree file stub names to
  254. include in the generated image.
  255. endif # SPL
  256. endif # FIT
  257. config LEGACY_IMAGE_FORMAT
  258. bool "Enable support for the legacy image format"
  259. default y if !FIT_SIGNATURE
  260. help
  261. This option enables the legacy image format. It is enabled by
  262. default for backward compatibility, unless FIT_SIGNATURE is
  263. set where it is disabled so that unsigned images cannot be
  264. loaded. If a board needs the legacy image format support in this
  265. case, enable it here.
  266. config SUPPORT_RAW_INITRD
  267. bool "Enable raw initrd images"
  268. help
  269. Note, defining the SUPPORT_RAW_INITRD allows user to supply
  270. kernel with raw initrd images. The syntax is slightly different, the
  271. address of the initrd must be augmented by it's size, in the following
  272. format: "<initrd address>:<initrd size>".
  273. config OF_BOARD_SETUP
  274. bool "Set up board-specific details in device tree before boot"
  275. depends on OF_LIBFDT
  276. help
  277. This causes U-Boot to call ft_board_setup() before booting into
  278. the Operating System. This function can set up various
  279. board-specific information in the device tree for use by the OS.
  280. The device tree is then passed to the OS.
  281. config OF_SYSTEM_SETUP
  282. bool "Set up system-specific details in device tree before boot"
  283. depends on OF_LIBFDT
  284. help
  285. This causes U-Boot to call ft_system_setup() before booting into
  286. the Operating System. This function can set up various
  287. system-specific information in the device tree for use by the OS.
  288. The device tree is then passed to the OS.
  289. config OF_STDOUT_VIA_ALIAS
  290. bool "Update the device-tree stdout alias from U-Boot"
  291. depends on OF_LIBFDT
  292. help
  293. This uses U-Boot's serial alias from the aliases node to update
  294. the device tree passed to the OS. The "linux,stdout-path" property
  295. in the chosen node is set to point to the correct serial node.
  296. This option currently references CONFIG_CONS_INDEX, which is
  297. incorrect when used with device tree as this option does not
  298. exist / should not be used.
  299. config SYS_EXTRA_OPTIONS
  300. string "Extra Options (DEPRECATED)"
  301. help
  302. The old configuration infrastructure (= mkconfig + boards.cfg)
  303. provided the extra options field. If you have something like
  304. "HAS_BAR,BAZ=64", the optional options
  305. #define CONFIG_HAS
  306. #define CONFIG_BAZ 64
  307. will be defined in include/config.h.
  308. This option was prepared for the smooth migration from the old
  309. configuration to Kconfig. Since this option will be removed sometime,
  310. new boards should not use this option.
  311. config HAVE_SYS_TEXT_BASE
  312. bool
  313. depends on !NIOS2 && !XTENSA
  314. depends on !EFI_APP
  315. default y
  316. config SYS_TEXT_BASE
  317. depends on HAVE_SYS_TEXT_BASE
  318. default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3
  319. default 0x4a000000 if ARCH_SUNXI && !MACH_SUN9I && !MACH_SUN8I_V3S
  320. default 0x2a000000 if ARCH_SUNXI && MACH_SUN9I
  321. default 0x42e00000 if ARCH_SUNXI && MACH_SUN8I_V3S
  322. hex "Text Base"
  323. help
  324. The address in memory that U-Boot will be running from, initially.
  325. config SYS_CLK_FREQ
  326. depends on ARC || ARCH_SUNXI || MPC83xx
  327. int "CPU clock frequency"
  328. help
  329. TODO: Move CONFIG_SYS_CLK_FREQ for all the architecture
  330. config ARCH_FIXUP_FDT_MEMORY
  331. bool "Enable arch_fixup_memory_banks() call"
  332. default y
  333. help
  334. Enable FDT memory map syncup before OS boot. This feature can be
  335. used for booting OS with different memory setup where the part of
  336. the memory location should be used for different purpose.
  337. config CHROMEOS
  338. bool "Support booting Chrome OS"
  339. help
  340. Chrome OS requires U-Boot to set up a table indicating the boot mode
  341. (e.g. Developer mode) and a few other things. Enable this if you are
  342. booting on a Chromebook to avoid getting an error about an invalid
  343. firmware ID.
  344. config CHROMEOS_VBOOT
  345. bool "Support Chrome OS verified boot"
  346. help
  347. This is intended to enable the full Chrome OS verified boot support
  348. in U-Boot. It is not actually implemented in the U-Boot source code
  349. at present, so this option is always set to 'n'. It allows
  350. distinguishing between booting Chrome OS in a basic way (developer
  351. mode) and a full boot.
  352. endmenu # Boot images
  353. menu "Boot timing"
  354. config BOOTSTAGE
  355. bool "Boot timing and reporting"
  356. help
  357. Enable recording of boot time while booting. To use it, insert
  358. calls to bootstage_mark() with a suitable BOOTSTAGE_ID from
  359. bootstage.h. Only a single entry is recorded for each ID. You can
  360. give the entry a name with bootstage_mark_name(). You can also
  361. record elapsed time in a particular stage using bootstage_start()
  362. before starting and bootstage_accum() when finished. Bootstage will
  363. add up all the accumulated time and report it.
  364. Normally, IDs are defined in bootstage.h but a small number of
  365. additional 'user' IDs can be used by passing BOOTSTAGE_ID_ALLOC
  366. as the ID.
  367. Calls to show_boot_progress() will also result in log entries but
  368. these will not have names.
  369. config SPL_BOOTSTAGE
  370. bool "Boot timing and reported in SPL"
  371. depends on BOOTSTAGE
  372. help
  373. Enable recording of boot time in SPL. To make this visible to U-Boot
  374. proper, enable BOOTSTAGE_STASH as well. This will stash the timing
  375. information when SPL finishes and load it when U-Boot proper starts
  376. up.
  377. config TPL_BOOTSTAGE
  378. bool "Boot timing and reported in TPL"
  379. depends on BOOTSTAGE
  380. help
  381. Enable recording of boot time in SPL. To make this visible to U-Boot
  382. proper, enable BOOTSTAGE_STASH as well. This will stash the timing
  383. information when TPL finishes and load it when U-Boot proper starts
  384. up.
  385. config BOOTSTAGE_REPORT
  386. bool "Display a detailed boot timing report before booting the OS"
  387. depends on BOOTSTAGE
  388. help
  389. Enable output of a boot time report just before the OS is booted.
  390. This shows how long it took U-Boot to go through each stage of the
  391. boot process. The report looks something like this:
  392. Timer summary in microseconds:
  393. Mark Elapsed Stage
  394. 0 0 reset
  395. 3,575,678 3,575,678 board_init_f start
  396. 3,575,695 17 arch_cpu_init A9
  397. 3,575,777 82 arch_cpu_init done
  398. 3,659,598 83,821 board_init_r start
  399. 3,910,375 250,777 main_loop
  400. 29,916,167 26,005,792 bootm_start
  401. 30,361,327 445,160 start_kernel
  402. config BOOTSTAGE_RECORD_COUNT
  403. int "Number of boot stage records to store"
  404. depends on BOOTSTAGE
  405. default 30
  406. help
  407. This is the size of the bootstage record list and is the maximum
  408. number of bootstage records that can be recorded.
  409. config SPL_BOOTSTAGE_RECORD_COUNT
  410. int "Number of boot stage records to store for SPL"
  411. depends on SPL_BOOTSTAGE
  412. default 5
  413. help
  414. This is the size of the bootstage record list and is the maximum
  415. number of bootstage records that can be recorded.
  416. config TPL_BOOTSTAGE_RECORD_COUNT
  417. int "Number of boot stage records to store for TPL"
  418. depends on TPL_BOOTSTAGE
  419. default 5
  420. help
  421. This is the size of the bootstage record list and is the maximum
  422. number of bootstage records that can be recorded.
  423. config BOOTSTAGE_FDT
  424. bool "Store boot timing information in the OS device tree"
  425. depends on BOOTSTAGE
  426. help
  427. Stash the bootstage information in the FDT. A root 'bootstage'
  428. node is created with each bootstage id as a child. Each child
  429. has a 'name' property and either 'mark' containing the
  430. mark time in microseconds, or 'accum' containing the
  431. accumulated time for that bootstage id in microseconds.
  432. For example:
  433. bootstage {
  434. 154 {
  435. name = "board_init_f";
  436. mark = <3575678>;
  437. };
  438. 170 {
  439. name = "lcd";
  440. accum = <33482>;
  441. };
  442. };
  443. Code in the Linux kernel can find this in /proc/devicetree.
  444. config BOOTSTAGE_STASH
  445. bool "Stash the boot timing information in memory before booting OS"
  446. depends on BOOTSTAGE
  447. help
  448. Some OSes do not support device tree. Bootstage can instead write
  449. the boot timing information in a binary format at a given address.
  450. This happens through a call to bootstage_stash(), typically in
  451. the CPU's cleanup_before_linux() function. You can use the
  452. 'bootstage stash' and 'bootstage unstash' commands to do this on
  453. the command line.
  454. config BOOTSTAGE_STASH_ADDR
  455. hex "Address to stash boot timing information"
  456. default 0
  457. help
  458. Provide an address which will not be overwritten by the OS when it
  459. starts, so that it can read this information when ready.
  460. config BOOTSTAGE_STASH_SIZE
  461. hex "Size of boot timing stash region"
  462. default 0x1000
  463. help
  464. This should be large enough to hold the bootstage stash. A value of
  465. 4096 (4KiB) is normally plenty.
  466. config SHOW_BOOT_PROGRESS
  467. bool "Show boot progress in a board-specific manner"
  468. help
  469. Defining this option allows to add some board-specific code (calling
  470. a user-provided function show_boot_progress(int) that enables you to
  471. show the system's boot progress on some display (for example, some
  472. LEDs) on your board. At the moment, the following checkpoints are
  473. implemented:
  474. Legacy uImage format:
  475. Arg Where When
  476. 1 common/cmd_bootm.c before attempting to boot an image
  477. -1 common/cmd_bootm.c Image header has bad magic number
  478. 2 common/cmd_bootm.c Image header has correct magic number
  479. -2 common/cmd_bootm.c Image header has bad checksum
  480. 3 common/cmd_bootm.c Image header has correct checksum
  481. -3 common/cmd_bootm.c Image data has bad checksum
  482. 4 common/cmd_bootm.c Image data has correct checksum
  483. -4 common/cmd_bootm.c Image is for unsupported architecture
  484. 5 common/cmd_bootm.c Architecture check OK
  485. -5 common/cmd_bootm.c Wrong Image Type (not kernel, multi)
  486. 6 common/cmd_bootm.c Image Type check OK
  487. -6 common/cmd_bootm.c gunzip uncompression error
  488. -7 common/cmd_bootm.c Unimplemented compression type
  489. 7 common/cmd_bootm.c Uncompression OK
  490. 8 common/cmd_bootm.c No uncompress/copy overwrite error
  491. -9 common/cmd_bootm.c Unsupported OS (not Linux, BSD, VxWorks, QNX)
  492. 9 common/image.c Start initial ramdisk verification
  493. -10 common/image.c Ramdisk header has bad magic number
  494. -11 common/image.c Ramdisk header has bad checksum
  495. 10 common/image.c Ramdisk header is OK
  496. -12 common/image.c Ramdisk data has bad checksum
  497. 11 common/image.c Ramdisk data has correct checksum
  498. 12 common/image.c Ramdisk verification complete, start loading
  499. -13 common/image.c Wrong Image Type (not PPC Linux ramdisk)
  500. 13 common/image.c Start multifile image verification
  501. 14 common/image.c No initial ramdisk, no multifile, continue.
  502. 15 arch/<arch>/lib/bootm.c All preparation done, transferring control to OS
  503. -30 arch/powerpc/lib/board.c Fatal error, hang the system
  504. -31 post/post.c POST test failed, detected by post_output_backlog()
  505. -32 post/post.c POST test failed, detected by post_run_single()
  506. 34 common/cmd_doc.c before loading a Image from a DOC device
  507. -35 common/cmd_doc.c Bad usage of "doc" command
  508. 35 common/cmd_doc.c correct usage of "doc" command
  509. -36 common/cmd_doc.c No boot device
  510. 36 common/cmd_doc.c correct boot device
  511. -37 common/cmd_doc.c Unknown Chip ID on boot device
  512. 37 common/cmd_doc.c correct chip ID found, device available
  513. -38 common/cmd_doc.c Read Error on boot device
  514. 38 common/cmd_doc.c reading Image header from DOC device OK
  515. -39 common/cmd_doc.c Image header has bad magic number
  516. 39 common/cmd_doc.c Image header has correct magic number
  517. -40 common/cmd_doc.c Error reading Image from DOC device
  518. 40 common/cmd_doc.c Image header has correct magic number
  519. 41 common/cmd_ide.c before loading a Image from a IDE device
  520. -42 common/cmd_ide.c Bad usage of "ide" command
  521. 42 common/cmd_ide.c correct usage of "ide" command
  522. -43 common/cmd_ide.c No boot device
  523. 43 common/cmd_ide.c boot device found
  524. -44 common/cmd_ide.c Device not available
  525. 44 common/cmd_ide.c Device available
  526. -45 common/cmd_ide.c wrong partition selected
  527. 45 common/cmd_ide.c partition selected
  528. -46 common/cmd_ide.c Unknown partition table
  529. 46 common/cmd_ide.c valid partition table found
  530. -47 common/cmd_ide.c Invalid partition type
  531. 47 common/cmd_ide.c correct partition type
  532. -48 common/cmd_ide.c Error reading Image Header on boot device
  533. 48 common/cmd_ide.c reading Image Header from IDE device OK
  534. -49 common/cmd_ide.c Image header has bad magic number
  535. 49 common/cmd_ide.c Image header has correct magic number
  536. -50 common/cmd_ide.c Image header has bad checksum
  537. 50 common/cmd_ide.c Image header has correct checksum
  538. -51 common/cmd_ide.c Error reading Image from IDE device
  539. 51 common/cmd_ide.c reading Image from IDE device OK
  540. 52 common/cmd_nand.c before loading a Image from a NAND device
  541. -53 common/cmd_nand.c Bad usage of "nand" command
  542. 53 common/cmd_nand.c correct usage of "nand" command
  543. -54 common/cmd_nand.c No boot device
  544. 54 common/cmd_nand.c boot device found
  545. -55 common/cmd_nand.c Unknown Chip ID on boot device
  546. 55 common/cmd_nand.c correct chip ID found, device available
  547. -56 common/cmd_nand.c Error reading Image Header on boot device
  548. 56 common/cmd_nand.c reading Image Header from NAND device OK
  549. -57 common/cmd_nand.c Image header has bad magic number
  550. 57 common/cmd_nand.c Image header has correct magic number
  551. -58 common/cmd_nand.c Error reading Image from NAND device
  552. 58 common/cmd_nand.c reading Image from NAND device OK
  553. -60 common/env_common.c Environment has a bad CRC, using default
  554. 64 net/eth.c starting with Ethernet configuration.
  555. -64 net/eth.c no Ethernet found.
  556. 65 net/eth.c Ethernet found.
  557. -80 common/cmd_net.c usage wrong
  558. 80 common/cmd_net.c before calling net_loop()
  559. -81 common/cmd_net.c some error in net_loop() occurred
  560. 81 common/cmd_net.c net_loop() back without error
  561. -82 common/cmd_net.c size == 0 (File with size 0 loaded)
  562. 82 common/cmd_net.c trying automatic boot
  563. 83 common/cmd_net.c running "source" command
  564. -83 common/cmd_net.c some error in automatic boot or "source" command
  565. 84 common/cmd_net.c end without errors
  566. FIT uImage format:
  567. Arg Where When
  568. 100 common/cmd_bootm.c Kernel FIT Image has correct format
  569. -100 common/cmd_bootm.c Kernel FIT Image has incorrect format
  570. 101 common/cmd_bootm.c No Kernel subimage unit name, using configuration
  571. -101 common/cmd_bootm.c Can't get configuration for kernel subimage
  572. 102 common/cmd_bootm.c Kernel unit name specified
  573. -103 common/cmd_bootm.c Can't get kernel subimage node offset
  574. 103 common/cmd_bootm.c Found configuration node
  575. 104 common/cmd_bootm.c Got kernel subimage node offset
  576. -104 common/cmd_bootm.c Kernel subimage hash verification failed
  577. 105 common/cmd_bootm.c Kernel subimage hash verification OK
  578. -105 common/cmd_bootm.c Kernel subimage is for unsupported architecture
  579. 106 common/cmd_bootm.c Architecture check OK
  580. -106 common/cmd_bootm.c Kernel subimage has wrong type
  581. 107 common/cmd_bootm.c Kernel subimage type OK
  582. -107 common/cmd_bootm.c Can't get kernel subimage data/size
  583. 108 common/cmd_bootm.c Got kernel subimage data/size
  584. -108 common/cmd_bootm.c Wrong image type (not legacy, FIT)
  585. -109 common/cmd_bootm.c Can't get kernel subimage type
  586. -110 common/cmd_bootm.c Can't get kernel subimage comp
  587. -111 common/cmd_bootm.c Can't get kernel subimage os
  588. -112 common/cmd_bootm.c Can't get kernel subimage load address
  589. -113 common/cmd_bootm.c Image uncompress/copy overwrite error
  590. 120 common/image.c Start initial ramdisk verification
  591. -120 common/image.c Ramdisk FIT image has incorrect format
  592. 121 common/image.c Ramdisk FIT image has correct format
  593. 122 common/image.c No ramdisk subimage unit name, using configuration
  594. -122 common/image.c Can't get configuration for ramdisk subimage
  595. 123 common/image.c Ramdisk unit name specified
  596. -124 common/image.c Can't get ramdisk subimage node offset
  597. 125 common/image.c Got ramdisk subimage node offset
  598. -125 common/image.c Ramdisk subimage hash verification failed
  599. 126 common/image.c Ramdisk subimage hash verification OK
  600. -126 common/image.c Ramdisk subimage for unsupported architecture
  601. 127 common/image.c Architecture check OK
  602. -127 common/image.c Can't get ramdisk subimage data/size
  603. 128 common/image.c Got ramdisk subimage data/size
  604. 129 common/image.c Can't get ramdisk load address
  605. -129 common/image.c Got ramdisk load address
  606. -130 common/cmd_doc.c Incorrect FIT image format
  607. 131 common/cmd_doc.c FIT image format OK
  608. -140 common/cmd_ide.c Incorrect FIT image format
  609. 141 common/cmd_ide.c FIT image format OK
  610. -150 common/cmd_nand.c Incorrect FIT image format
  611. 151 common/cmd_nand.c FIT image format OK
  612. endmenu
  613. menu "Boot media"
  614. config NOR_BOOT
  615. bool "Support for booting from NOR flash"
  616. depends on NOR
  617. help
  618. Enabling this will make a U-Boot binary that is capable of being
  619. booted via NOR. In this case we will enable certain pinmux early
  620. as the ROM only partially sets up pinmux. We also default to using
  621. NOR for environment.
  622. config NAND_BOOT
  623. bool "Support for booting from NAND flash"
  624. default n
  625. imply MTD_RAW_NAND
  626. help
  627. Enabling this will make a U-Boot binary that is capable of being
  628. booted via NAND flash. This is not a must, some SoCs need this,
  629. some not.
  630. config ONENAND_BOOT
  631. bool "Support for booting from ONENAND"
  632. default n
  633. imply MTD_RAW_NAND
  634. help
  635. Enabling this will make a U-Boot binary that is capable of being
  636. booted via ONENAND. This is not a must, some SoCs need this,
  637. some not.
  638. config QSPI_BOOT
  639. bool "Support for booting from QSPI flash"
  640. default n
  641. help
  642. Enabling this will make a U-Boot binary that is capable of being
  643. booted via QSPI flash. This is not a must, some SoCs need this,
  644. some not.
  645. config SATA_BOOT
  646. bool "Support for booting from SATA"
  647. default n
  648. help
  649. Enabling this will make a U-Boot binary that is capable of being
  650. booted via SATA. This is not a must, some SoCs need this,
  651. some not.
  652. config SD_BOOT
  653. bool "Support for booting from SD/EMMC"
  654. default n
  655. help
  656. Enabling this will make a U-Boot binary that is capable of being
  657. booted via SD/EMMC. This is not a must, some SoCs need this,
  658. some not.
  659. config SPI_BOOT
  660. bool "Support for booting from SPI flash"
  661. default n
  662. help
  663. Enabling this will make a U-Boot binary that is capable of being
  664. booted via SPI flash. This is not a must, some SoCs need this,
  665. some not.
  666. endmenu
  667. menu "Autoboot options"
  668. config AUTOBOOT
  669. bool "Autoboot"
  670. default y
  671. help
  672. This enables the autoboot. See doc/README.autoboot for detail.
  673. config BOOTDELAY
  674. int "delay in seconds before automatically booting"
  675. default 2
  676. depends on AUTOBOOT
  677. help
  678. Delay before automatically running bootcmd;
  679. set to 0 to autoboot with no delay, but you can stop it by key input.
  680. set to -1 to disable autoboot.
  681. set to -2 to autoboot with no delay and not check for abort
  682. If this value is >= 0 then it is also used for the default delay
  683. before starting the default entry in bootmenu. If it is < 0 then
  684. a default value of 10s is used.
  685. See doc/README.autoboot for details.
  686. config AUTOBOOT_KEYED
  687. bool "Stop autobooting via specific input key / string"
  688. default n
  689. help
  690. This option enables stopping (aborting) of the automatic
  691. boot feature only by issuing a specific input key or
  692. string. If not enabled, any input key will abort the
  693. U-Boot automatic booting process and bring the device
  694. to the U-Boot prompt for user input.
  695. config AUTOBOOT_PROMPT
  696. string "Autoboot stop prompt"
  697. depends on AUTOBOOT_KEYED
  698. default "Autoboot in %d seconds\\n"
  699. help
  700. This string is displayed before the boot delay selected by
  701. CONFIG_BOOTDELAY starts. If it is not defined there is no
  702. output indicating that autoboot is in progress.
  703. Note that this define is used as the (only) argument to a
  704. printf() call, so it may contain '%' format specifications,
  705. provided that it also includes, sepearated by commas exactly
  706. like in a printf statement, the required arguments. It is
  707. the responsibility of the user to select only such arguments
  708. that are valid in the given context.
  709. config AUTOBOOT_ENCRYPTION
  710. bool "Enable encryption in autoboot stopping"
  711. depends on AUTOBOOT_KEYED
  712. help
  713. This option allows a string to be entered into U-Boot to stop the
  714. autoboot. The string itself is hashed and compared against the hash
  715. in the environment variable 'bootstopkeysha256'. If it matches then
  716. boot stops and a command-line prompt is presented.
  717. This provides a way to ship a secure production device which can also
  718. be accessed at the U-Boot command line.
  719. config AUTOBOOT_DELAY_STR
  720. string "Delay autobooting via specific input key / string"
  721. depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
  722. help
  723. This option delays the automatic boot feature by issuing
  724. a specific input key or string. If CONFIG_AUTOBOOT_DELAY_STR
  725. or the environment variable "bootdelaykey" is specified
  726. and this string is received from console input before
  727. autoboot starts booting, U-Boot gives a command prompt. The
  728. U-Boot prompt will time out if CONFIG_BOOT_RETRY_TIME is
  729. used, otherwise it never times out.
  730. config AUTOBOOT_STOP_STR
  731. string "Stop autobooting via specific input key / string"
  732. depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
  733. help
  734. This option enables stopping (aborting) of the automatic
  735. boot feature only by issuing a specific input key or
  736. string. If CONFIG_AUTOBOOT_STOP_STR or the environment
  737. variable "bootstopkey" is specified and this string is
  738. received from console input before autoboot starts booting,
  739. U-Boot gives a command prompt. The U-Boot prompt never
  740. times out, even if CONFIG_BOOT_RETRY_TIME is used.
  741. config AUTOBOOT_KEYED_CTRLC
  742. bool "Enable Ctrl-C autoboot interruption"
  743. depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
  744. default n
  745. help
  746. This option allows for the boot sequence to be interrupted
  747. by ctrl-c, in addition to the "bootdelaykey" and "bootstopkey".
  748. Setting this variable provides an escape sequence from the
  749. limited "password" strings.
  750. config AUTOBOOT_STOP_STR_SHA256
  751. string "Stop autobooting via SHA256 encrypted password"
  752. depends on AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION
  753. help
  754. This option adds the feature to only stop the autobooting,
  755. and therefore boot into the U-Boot prompt, when the input
  756. string / password matches a values that is encypted via
  757. a SHA256 hash and saved in the environment variable
  758. "bootstopkeysha256". If the value in that variable
  759. includes a ":", the portion prior to the ":" will be treated
  760. as a salt value.
  761. config AUTOBOOT_USE_MENUKEY
  762. bool "Allow a specify key to run a menu from the environment"
  763. depends on !AUTOBOOT_KEYED
  764. help
  765. If a specific key is pressed to stop autoboot, then the commands in
  766. the environment variable 'menucmd' are executed before boot starts.
  767. config AUTOBOOT_MENUKEY
  768. int "ASCII value of boot key to show a menu"
  769. default 0
  770. depends on AUTOBOOT_USE_MENUKEY
  771. help
  772. If this key is pressed to stop autoboot, then the commands in the
  773. environment variable 'menucmd' will be executed before boot starts.
  774. For example, 33 means "!" in ASCII, so pressing ! at boot would take
  775. this action.
  776. config AUTOBOOT_MENU_SHOW
  777. bool "Show a menu on boot"
  778. depends on CMD_BOOTMENU
  779. help
  780. This enables the boot menu, controlled by environment variables
  781. defined by the board. The menu starts after running the 'preboot'
  782. environmnent variable (if enabled) and before handling the boot delay.
  783. See README.bootmenu for more details.
  784. endmenu
  785. config USE_BOOTARGS
  786. bool "Enable boot arguments"
  787. help
  788. Provide boot arguments to bootm command. Boot arguments are specified
  789. in CONFIG_BOOTARGS option. Enable this option to be able to specify
  790. CONFIG_BOOTARGS string. If this option is disabled, CONFIG_BOOTARGS
  791. will be undefined and won't take any space in U-Boot image.
  792. config BOOTARGS
  793. string "Boot arguments"
  794. depends on USE_BOOTARGS && !USE_DEFAULT_ENV_FILE
  795. help
  796. This can be used to pass arguments to the bootm command. The value of
  797. CONFIG_BOOTARGS goes into the environment value "bootargs". Note that
  798. this value will also override the "chosen" node in FDT blob.
  799. config BOOTARGS_SUBST
  800. bool "Support substituting strings in boot arguments"
  801. help
  802. This allows substituting string values in the boot arguments. These
  803. are applied after the commandline has been built.
  804. One use for this is to insert the root-disk UUID into the command
  805. line where bootargs contains "root=${uuid}"
  806. setenv bootargs "console= root=${uuid}"
  807. # Set the 'uuid' environment variable
  808. part uuid mmc 2:2 uuid
  809. # Command-line substitution will put the real uuid into the
  810. # kernel command line
  811. bootm
  812. config USE_BOOTCOMMAND
  813. bool "Enable a default value for bootcmd"
  814. help
  815. Provide a default value for the bootcmd entry in the environment. If
  816. autoboot is enabled this is what will be run automatically. Enable
  817. this option to be able to specify CONFIG_BOOTCOMMAND as a string. If
  818. this option is disabled, CONFIG_BOOTCOMMAND will be undefined and
  819. won't take any space in U-Boot image.
  820. config BOOTCOMMAND
  821. string "bootcmd value"
  822. depends on USE_BOOTCOMMAND && !USE_DEFAULT_ENV_FILE
  823. default "run distro_bootcmd" if DISTRO_DEFAULTS
  824. help
  825. This is the string of commands that will be used as bootcmd and if
  826. AUTOBOOT is set, automatically run.
  827. config USE_PREBOOT
  828. bool "Enable preboot"
  829. help
  830. When this option is enabled, the existence of the environment
  831. variable "preboot" will be checked immediately before starting the
  832. CONFIG_BOOTDELAY countdown and/or running the auto-boot command resp.
  833. entering interactive mode.
  834. This feature is especially useful when "preboot" is automatically
  835. generated or modified. For example, the boot code can modify the
  836. "preboot" when a user holds down a certain combination of keys.
  837. config PREBOOT
  838. string "preboot default value"
  839. depends on USE_PREBOOT && !USE_DEFAULT_ENV_FILE
  840. default "usb start" if USB_KEYBOARD
  841. default ""
  842. help
  843. This is the default of "preboot" environment variable.
  844. config DEFAULT_FDT_FILE
  845. string "Default fdt file"
  846. help
  847. This option is used to set the default fdt file to boot OS.
  848. endmenu # Booting