1ed36323fSMasahiro Yamadamenu "Command line interface" 2ed36323fSMasahiro Yamada 36c775090SMasahiro Yamadaconfig HUSH_PARSER 46c775090SMasahiro Yamada bool "Use hush shell" 56c775090SMasahiro Yamada select SYS_HUSH_PARSER 66c775090SMasahiro Yamada help 76c775090SMasahiro Yamada This option enables the "hush" shell (from Busybox) as command line 86c775090SMasahiro Yamada interpreter, thus enabling powerful command line syntax like 96c775090SMasahiro Yamada if...then...else...fi conditionals or `&&' and '||' 106c775090SMasahiro Yamada constructs ("shell scripts"). 116c775090SMasahiro Yamada 126c775090SMasahiro Yamada If disabled, you get the old, much simpler behaviour with a somewhat 136c775090SMasahiro Yamada smaller memory footprint. 146c775090SMasahiro Yamada 156c775090SMasahiro Yamadaconfig SYS_HUSH_PARSER 166c775090SMasahiro Yamada bool 176c775090SMasahiro Yamada help 186c775090SMasahiro Yamada Backward compatibility. 196c775090SMasahiro Yamada 2060296a83SMasahiro Yamadacomment "Commands" 2160296a83SMasahiro Yamada 2260296a83SMasahiro Yamadamenu "Info commands" 2360296a83SMasahiro Yamada 2460296a83SMasahiro Yamadaconfig CMD_BDI 2560296a83SMasahiro Yamada bool "bdinfo" 2660296a83SMasahiro Yamada help 2760296a83SMasahiro Yamada Print board info 2860296a83SMasahiro Yamada 2960296a83SMasahiro Yamadaconfig CMD_CONSOLE 3060296a83SMasahiro Yamada bool "coninfo" 3160296a83SMasahiro Yamada help 3260296a83SMasahiro Yamada Print console devices and information. 3360296a83SMasahiro Yamada 3460296a83SMasahiro Yamadaconfig CMD_LICENSE 3560296a83SMasahiro Yamada bool "license" 3660296a83SMasahiro Yamada help 3760296a83SMasahiro Yamada Print GPL license text 3860296a83SMasahiro Yamada 3960296a83SMasahiro Yamadaendmenu 4060296a83SMasahiro Yamada 4160296a83SMasahiro Yamadamenu "Boot commands" 4260296a83SMasahiro Yamada 4360296a83SMasahiro Yamadaconfig CMD_BOOTD 4460296a83SMasahiro Yamada bool "bootd" 4560296a83SMasahiro Yamada help 4660296a83SMasahiro Yamada Run the command stored in the environment "bootcmd", i.e. 4760296a83SMasahiro Yamada "bootd" does the same thing as "run bootcmd". 4860296a83SMasahiro Yamada 49dba16970SMasahiro Yamadaconfig CMD_BOOTM 5060296a83SMasahiro Yamada bool "bootm" 51dba16970SMasahiro Yamada default y 52dba16970SMasahiro Yamada help 53dba16970SMasahiro Yamada Boot an application image from the memory. 54dba16970SMasahiro Yamada 5560296a83SMasahiro Yamadaconfig CMD_GO 5660296a83SMasahiro Yamada bool "go" 57ca05ee9dSMasahiro Yamada default y 58ca05ee9dSMasahiro Yamada help 5960296a83SMasahiro Yamada Start an application at a given address. 6060296a83SMasahiro Yamada 6160296a83SMasahiro Yamadaconfig CMD_RUN 6260296a83SMasahiro Yamada bool "run" 6360296a83SMasahiro Yamada help 6460296a83SMasahiro Yamada Run the command in the given environment variable. 6560296a83SMasahiro Yamada 6660296a83SMasahiro Yamadaconfig CMD_IMI 6760296a83SMasahiro Yamada bool "iminfo" 6860296a83SMasahiro Yamada help 6960296a83SMasahiro Yamada Print header information for application image. 7060296a83SMasahiro Yamada 7160296a83SMasahiro Yamadaconfig CMD_IMLS 7260296a83SMasahiro Yamada bool "imls" 7360296a83SMasahiro Yamada help 7460296a83SMasahiro Yamada List all images found in flash 7560296a83SMasahiro Yamada 7660296a83SMasahiro Yamadaconfig CMD_XIMG 7760296a83SMasahiro Yamada bool "imxtract" 7860296a83SMasahiro Yamada help 7960296a83SMasahiro Yamada Extract a part of a multi-image. 8060296a83SMasahiro Yamada 8160296a83SMasahiro Yamadaendmenu 8260296a83SMasahiro Yamada 8360296a83SMasahiro Yamadamenu "Environment commands" 84ca05ee9dSMasahiro Yamada 85cccee189SMasahiro Yamadaconfig CMD_EXPORTENV 8660296a83SMasahiro Yamada bool "env export" 87cccee189SMasahiro Yamada default y 88cccee189SMasahiro Yamada help 89cccee189SMasahiro Yamada Export environments. 90cccee189SMasahiro Yamada 911d5c2015SMasahiro Yamadaconfig CMD_IMPORTENV 9260296a83SMasahiro Yamada bool "env import" 931d5c2015SMasahiro Yamada default y 941d5c2015SMasahiro Yamada help 951d5c2015SMasahiro Yamada Import environments. 961d5c2015SMasahiro Yamada 9760296a83SMasahiro Yamadaconfig CMD_EDITENV 9860296a83SMasahiro Yamada bool "editenv" 9960296a83SMasahiro Yamada help 10060296a83SMasahiro Yamada Edit environment variable. 10160296a83SMasahiro Yamada 10260296a83SMasahiro Yamadaconfig CMD_SAVEENV 10360296a83SMasahiro Yamada bool "saveenv" 10460296a83SMasahiro Yamada help 10560296a83SMasahiro Yamada Run the command in the given environment variable. 10660296a83SMasahiro Yamada 10760296a83SMasahiro Yamadaendmenu 10860296a83SMasahiro Yamada 10960296a83SMasahiro Yamadamenu "Memory commands" 11060296a83SMasahiro Yamada 11160296a83SMasahiro Yamadaconfig CMD_MEMORY 11260296a83SMasahiro Yamada bool "md, mm, nm, mw, cp, cmp, base, loop" 11360296a83SMasahiro Yamada help 11460296a83SMasahiro Yamada Memeory commands. 11560296a83SMasahiro Yamada md - memory display 11660296a83SMasahiro Yamada mm - memory modify (auto-incrementing address) 11760296a83SMasahiro Yamada nm - memory modify (constant address) 11860296a83SMasahiro Yamada mw - memory write (fill) 11960296a83SMasahiro Yamada cp - memory copy 12060296a83SMasahiro Yamada cmp - memory compare 12160296a83SMasahiro Yamada base - print or set address offset 12260296a83SMasahiro Yamada loop - initinite loop on address range 12360296a83SMasahiro Yamada 12460296a83SMasahiro Yamadaconfig CMD_CRC32 12560296a83SMasahiro Yamada bool "crc32" 126726ac8e4SMasahiro Yamada default y 127726ac8e4SMasahiro Yamada help 12860296a83SMasahiro Yamada Compute CRC32. 12960296a83SMasahiro Yamada 13060296a83SMasahiro Yamadaconfig LOOPW 13160296a83SMasahiro Yamada bool "loopw" 13260296a83SMasahiro Yamada help 13360296a83SMasahiro Yamada Infinite write loop on address range 13460296a83SMasahiro Yamada 13560296a83SMasahiro Yamadaconfig CMD_MEMTEST 13641ffb45cSNikolaos Pasaloukos bool "memtest" 13760296a83SMasahiro Yamada help 13860296a83SMasahiro Yamada Simple RAM read/write test. 13960296a83SMasahiro Yamada 14060296a83SMasahiro Yamadaconfig CMD_MX_CYCLIC 14160296a83SMasahiro Yamada bool "mdc, mwc" 14260296a83SMasahiro Yamada help 14360296a83SMasahiro Yamada mdc - memory display cyclic 14460296a83SMasahiro Yamada mwc - memory write cyclic 14560296a83SMasahiro Yamada 14660296a83SMasahiro Yamadaconfig CMD_MEMINFO 14760296a83SMasahiro Yamada bool "meminfo" 14860296a83SMasahiro Yamada help 14960296a83SMasahiro Yamada Display memory information. 15060296a83SMasahiro Yamada 15160296a83SMasahiro Yamadaendmenu 15260296a83SMasahiro Yamada 15360296a83SMasahiro Yamadamenu "Device access commands" 15460296a83SMasahiro Yamada 155f058f154SSimon Glassconfig CMD_DM 156f058f154SSimon Glass bool "dm - Access to driver model information" 157f058f154SSimon Glass depends on DM 158f058f154SSimon Glass default y 159f058f154SSimon Glass help 160f058f154SSimon Glass Provides access to driver model data structures and information, 161f058f154SSimon Glass such as a list of devices, list of uclasses and the state of each 162f058f154SSimon Glass device (e.g. activated). This is not required for operation, but 163f058f154SSimon Glass can be useful to see the state of driver model for debugging or 164f058f154SSimon Glass interest. 165f058f154SSimon Glass 166f058f154SSimon Glassconfig CMD_DEMO 167f058f154SSimon Glass bool "demo - Demonstration commands for driver model" 168f058f154SSimon Glass depends on DM 169f058f154SSimon Glass help 170f058f154SSimon Glass Provides a 'demo' command which can be used to play around with 171f058f154SSimon Glass driver model. To use this properly you will need to enable one or 172f058f154SSimon Glass both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE). 173f058f154SSimon Glass Otherwise you will always get an empty list of devices. The demo 174f058f154SSimon Glass devices are defined in the sandbox device tree, so the easiest 175f058f154SSimon Glass option is to use sandbox and pass the -d point to sandbox's 176f058f154SSimon Glass u-boot.dtb file. 177f058f154SSimon Glass 17860296a83SMasahiro Yamadaconfig CMD_LOADB 17960296a83SMasahiro Yamada bool "loadb" 18060296a83SMasahiro Yamada help 18160296a83SMasahiro Yamada Load a binary file over serial line. 18260296a83SMasahiro Yamada 18360296a83SMasahiro Yamadaconfig CMD_LOADS 18460296a83SMasahiro Yamada bool "loads" 18560296a83SMasahiro Yamada help 18660296a83SMasahiro Yamada Load an S-Record file over serial line 18760296a83SMasahiro Yamada 18860296a83SMasahiro Yamadaconfig CMD_FLASH 18960296a83SMasahiro Yamada bool "flinfo, erase, protect" 19060296a83SMasahiro Yamada help 19160296a83SMasahiro Yamada NOR flash support. 19260296a83SMasahiro Yamada flinfo - print FLASH memory information 19360296a83SMasahiro Yamada erase - FLASH memory 19460296a83SMasahiro Yamada protect - enable or disable FLASH write protection 19560296a83SMasahiro Yamada 1964bb66506SLinus Walleijconfig CMD_ARMFLASH 1974bb66506SLinus Walleij depends on FLASH_CFI_DRIVER 1984bb66506SLinus Walleij bool "armflash" 1994bb66506SLinus Walleij help 2004bb66506SLinus Walleij ARM Ltd reference designs flash partition access 2014bb66506SLinus Walleij 20260296a83SMasahiro Yamadaconfig CMD_NAND 20360296a83SMasahiro Yamada bool "nand" 20460296a83SMasahiro Yamada help 20560296a83SMasahiro Yamada NAND support. 20660296a83SMasahiro Yamada 20760296a83SMasahiro Yamadaconfig CMD_SPI 20860296a83SMasahiro Yamada bool "sspi" 20960296a83SMasahiro Yamada help 21060296a83SMasahiro Yamada SPI utility command. 21160296a83SMasahiro Yamada 21260296a83SMasahiro Yamadaconfig CMD_I2C 21360296a83SMasahiro Yamada bool "i2c" 21460296a83SMasahiro Yamada help 21560296a83SMasahiro Yamada I2C support. 21660296a83SMasahiro Yamada 21760296a83SMasahiro Yamadaconfig CMD_USB 21860296a83SMasahiro Yamada bool "usb" 21960296a83SMasahiro Yamada help 22060296a83SMasahiro Yamada USB support. 22160296a83SMasahiro Yamada 22260296a83SMasahiro Yamadaconfig CMD_FPGA 22360296a83SMasahiro Yamada bool "fpga" 22460296a83SMasahiro Yamada help 22560296a83SMasahiro Yamada FPGA support. 22660296a83SMasahiro Yamada 22760296a83SMasahiro Yamadaendmenu 22860296a83SMasahiro Yamada 22960296a83SMasahiro Yamada 23060296a83SMasahiro Yamadamenu "Shell scripting commands" 23160296a83SMasahiro Yamada 23260296a83SMasahiro Yamadaconfig CMD_ECHO 23360296a83SMasahiro Yamada bool "echo" 23460296a83SMasahiro Yamada help 23560296a83SMasahiro Yamada Echo args to console 23660296a83SMasahiro Yamada 23760296a83SMasahiro Yamadaconfig CMD_ITEST 23860296a83SMasahiro Yamada bool "itest" 23960296a83SMasahiro Yamada help 24060296a83SMasahiro Yamada Return true/false on integer compare. 24160296a83SMasahiro Yamada 24260296a83SMasahiro Yamadaconfig CMD_SOURCE 24360296a83SMasahiro Yamada bool "source" 24460296a83SMasahiro Yamada help 24560296a83SMasahiro Yamada Run script from memory 24660296a83SMasahiro Yamada 24760296a83SMasahiro Yamadaendmenu 24860296a83SMasahiro Yamada 24960296a83SMasahiro Yamadamenu "Network commands" 25060296a83SMasahiro Yamada 25160296a83SMasahiro Yamadaconfig CMD_NET 25260296a83SMasahiro Yamada bool "bootp, tftpboot" 25360296a83SMasahiro Yamada help 25460296a83SMasahiro Yamada Network commands. 25560296a83SMasahiro Yamada bootp - boot image via network using BOOTP/TFTP protocol 25660296a83SMasahiro Yamada tftpboot - boot image via network using TFTP protocol 25760296a83SMasahiro Yamada 25860296a83SMasahiro Yamadaconfig CMD_TFTPPUT 25960296a83SMasahiro Yamada bool "tftp put" 26060296a83SMasahiro Yamada help 26160296a83SMasahiro Yamada TFTP put command, for uploading files to a server 26260296a83SMasahiro Yamada 26360296a83SMasahiro Yamadaconfig CMD_TFTPSRV 26460296a83SMasahiro Yamada bool "tftpsrv" 26560296a83SMasahiro Yamada help 26660296a83SMasahiro Yamada Act as a TFTP server and boot the first received file 26760296a83SMasahiro Yamada 26860296a83SMasahiro Yamadaconfig CMD_RARP 26960296a83SMasahiro Yamada bool "rarpboot" 27060296a83SMasahiro Yamada help 27160296a83SMasahiro Yamada Boot image via network using RARP/TFTP protocol 27260296a83SMasahiro Yamada 27360296a83SMasahiro Yamadaconfig CMD_DHCP 27460296a83SMasahiro Yamada bool "dhcp" 27560296a83SMasahiro Yamada help 27660296a83SMasahiro Yamada Boot image via network using DHCP/TFTP protocol 27760296a83SMasahiro Yamada 27860296a83SMasahiro Yamadaconfig CMD_NFS 27960296a83SMasahiro Yamada bool "nfs" 28060296a83SMasahiro Yamada help 28160296a83SMasahiro Yamada Boot image via network using NFS protocol. 28260296a83SMasahiro Yamada 28360296a83SMasahiro Yamadaconfig CMD_PING 28460296a83SMasahiro Yamada bool "ping" 28560296a83SMasahiro Yamada help 28660296a83SMasahiro Yamada Send ICMP ECHO_REQUEST to network host 28760296a83SMasahiro Yamada 28860296a83SMasahiro Yamadaconfig CMD_CDP 28960296a83SMasahiro Yamada bool "cdp" 29060296a83SMasahiro Yamada help 29160296a83SMasahiro Yamada Perform CDP network configuration 29260296a83SMasahiro Yamada 29360296a83SMasahiro Yamadaconfig CMD_SNTP 29460296a83SMasahiro Yamada bool "sntp" 29560296a83SMasahiro Yamada help 29660296a83SMasahiro Yamada Synchronize RTC via network 29760296a83SMasahiro Yamada 29860296a83SMasahiro Yamadaconfig CMD_DNS 29960296a83SMasahiro Yamada bool "dns" 30060296a83SMasahiro Yamada help 30160296a83SMasahiro Yamada Lookup the IP of a hostname 30260296a83SMasahiro Yamada 30360296a83SMasahiro Yamadaconfig CMD_DNS 30460296a83SMasahiro Yamada bool "dns" 30560296a83SMasahiro Yamada help 30660296a83SMasahiro Yamada Lookup the IP of a hostname 30760296a83SMasahiro Yamada 30860296a83SMasahiro Yamadaconfig CMD_LINK_LOCAL 30960296a83SMasahiro Yamada bool "linklocal" 31060296a83SMasahiro Yamada help 31160296a83SMasahiro Yamada Acquire a network IP address using the link-local protocol 31260296a83SMasahiro Yamada 31360296a83SMasahiro Yamadaendmenu 31460296a83SMasahiro Yamada 31560296a83SMasahiro Yamadamenu "Misc commands" 31660296a83SMasahiro Yamada 31760296a83SMasahiro Yamadaconfig CMD_TIME 31860296a83SMasahiro Yamada bool "time" 31960296a83SMasahiro Yamada help 32060296a83SMasahiro Yamada Run commands and summarize execution time. 32160296a83SMasahiro Yamada 32260296a83SMasahiro Yamada# TODO: rename to CMD_SLEEP 32360296a83SMasahiro Yamadaconfig CMD_MISC 32460296a83SMasahiro Yamada bool "sleep" 32560296a83SMasahiro Yamada help 32660296a83SMasahiro Yamada Delay execution for some time 32760296a83SMasahiro Yamada 32860296a83SMasahiro Yamadaconfig CMD_TIMER 32960296a83SMasahiro Yamada bool "timer" 33060296a83SMasahiro Yamada help 33160296a83SMasahiro Yamada Access the system timer. 33260296a83SMasahiro Yamada 33360296a83SMasahiro Yamadaconfig CMD_SETGETDCR 33460296a83SMasahiro Yamada bool "getdcr, setdcr, getidcr, setidcr" 33560296a83SMasahiro Yamada depends on 4xx 33660296a83SMasahiro Yamada help 33760296a83SMasahiro Yamada getdcr - Get an AMCC PPC 4xx DCR's value 33860296a83SMasahiro Yamada setdcr - Set an AMCC PPC 4xx DCR's value 33960296a83SMasahiro Yamada getidcr - Get a register value via indirect DCR addressing 34060296a83SMasahiro Yamada setidcr - Set a register value via indirect DCR addressing 34160296a83SMasahiro Yamada 34260296a83SMasahiro Yamadaendmenu 343726ac8e4SMasahiro Yamada 344*ee2b2434SSimon Glassmenu "Boot timing" 345*ee2b2434SSimon Glass 346*ee2b2434SSimon Glassconfig BOOTSTAGE 347*ee2b2434SSimon Glass bool "Boot timing and reporting" 348*ee2b2434SSimon Glass help 349*ee2b2434SSimon Glass Enable recording of boot time while booting. To use it, insert 350*ee2b2434SSimon Glass calls to bootstage_mark() with a suitable BOOTSTAGE_ID from 351*ee2b2434SSimon Glass bootstage.h. Only a single entry is recorded for each ID. You can 352*ee2b2434SSimon Glass give the entry a name with bootstage_mark_name(). You can also 353*ee2b2434SSimon Glass record elapsed time in a particular stage using bootstage_start() 354*ee2b2434SSimon Glass before starting and bootstage_accum() when finished. Bootstage will 355*ee2b2434SSimon Glass add up all the accumated time and report it. 356*ee2b2434SSimon Glass 357*ee2b2434SSimon Glass Normally, IDs are defined in bootstage.h but a small number of 358*ee2b2434SSimon Glass additional 'user' IDs can be used but passing BOOTSTAGE_ID_ALLOC 359*ee2b2434SSimon Glass as the ID. 360*ee2b2434SSimon Glass 361*ee2b2434SSimon Glass Calls to show_boot_progress() wil also result in log entries but 362*ee2b2434SSimon Glass these will not have names. 363*ee2b2434SSimon Glass 364*ee2b2434SSimon Glassconfig BOOTSTAGE_REPORT 365*ee2b2434SSimon Glass bool "Display a detailed boot timing report before booting the OS" 366*ee2b2434SSimon Glass depends on BOOTSTAGE 367*ee2b2434SSimon Glass help 368*ee2b2434SSimon Glass Enable output of a boot time report just before the OS is booted. 369*ee2b2434SSimon Glass This shows how long it took U-Boot to go through each stage of the 370*ee2b2434SSimon Glass boot process. The report looks something like this: 371*ee2b2434SSimon Glass 372*ee2b2434SSimon Glass Timer summary in microseconds: 373*ee2b2434SSimon Glass Mark Elapsed Stage 374*ee2b2434SSimon Glass 0 0 reset 375*ee2b2434SSimon Glass 3,575,678 3,575,678 board_init_f start 376*ee2b2434SSimon Glass 3,575,695 17 arch_cpu_init A9 377*ee2b2434SSimon Glass 3,575,777 82 arch_cpu_init done 378*ee2b2434SSimon Glass 3,659,598 83,821 board_init_r start 379*ee2b2434SSimon Glass 3,910,375 250,777 main_loop 380*ee2b2434SSimon Glass 29,916,167 26,005,792 bootm_start 381*ee2b2434SSimon Glass 30,361,327 445,160 start_kernel 382*ee2b2434SSimon Glass 383*ee2b2434SSimon Glassconfig BOOTSTAGE_USER_COUNT 384*ee2b2434SSimon Glass hex "Number of boot ID numbers available for user use" 385*ee2b2434SSimon Glass default 20 386*ee2b2434SSimon Glass help 387*ee2b2434SSimon Glass This is the number of available user bootstage records. 388*ee2b2434SSimon Glass Each time you call bootstage_mark(BOOTSTAGE_ID_ALLOC, ...) 389*ee2b2434SSimon Glass a new ID will be allocated from this stash. If you exceed 390*ee2b2434SSimon Glass the limit, recording will stop. 391*ee2b2434SSimon Glass 392*ee2b2434SSimon Glassconfig CMD_BOOTSTAGE 393*ee2b2434SSimon Glass bool "Enable the 'bootstage' command" 394*ee2b2434SSimon Glass depends on BOOTSTAGE 395*ee2b2434SSimon Glass help 396*ee2b2434SSimon Glass Add a 'bootstage' command which supports printing a report 397*ee2b2434SSimon Glass and un/stashing of bootstage data. 398*ee2b2434SSimon Glass 399*ee2b2434SSimon Glassconfig BOOTSTAGE_FDT 400*ee2b2434SSimon Glass bool "Store boot timing information in the OS device tree" 401*ee2b2434SSimon Glass depends on BOOTSTAGE 402*ee2b2434SSimon Glass help 403*ee2b2434SSimon Glass Stash the bootstage information in the FDT. A root 'bootstage' 404*ee2b2434SSimon Glass node is created with each bootstage id as a child. Each child 405*ee2b2434SSimon Glass has a 'name' property and either 'mark' containing the 406*ee2b2434SSimon Glass mark time in microsecond, or 'accum' containing the 407*ee2b2434SSimon Glass accumulated time for that bootstage id in microseconds. 408*ee2b2434SSimon Glass For example: 409*ee2b2434SSimon Glass 410*ee2b2434SSimon Glass bootstage { 411*ee2b2434SSimon Glass 154 { 412*ee2b2434SSimon Glass name = "board_init_f"; 413*ee2b2434SSimon Glass mark = <3575678>; 414*ee2b2434SSimon Glass }; 415*ee2b2434SSimon Glass 170 { 416*ee2b2434SSimon Glass name = "lcd"; 417*ee2b2434SSimon Glass accum = <33482>; 418*ee2b2434SSimon Glass }; 419*ee2b2434SSimon Glass }; 420*ee2b2434SSimon Glass 421*ee2b2434SSimon Glass Code in the Linux kernel can find this in /proc/devicetree. 422*ee2b2434SSimon Glass 423*ee2b2434SSimon Glassconfig BOOTSTAGE_STASH 424*ee2b2434SSimon Glass bool "Stash the boot timing information in memory before booting OS" 425*ee2b2434SSimon Glass depends on BOOTSTAGE 426*ee2b2434SSimon Glass help 427*ee2b2434SSimon Glass Some OSes do not support device tree. Bootstage can instead write 428*ee2b2434SSimon Glass the boot timing information in a binary format at a given address. 429*ee2b2434SSimon Glass This happens through a call to bootstage_stash(), typically in 430*ee2b2434SSimon Glass the CPU's cleanup_before_linux() function. You can use the 431*ee2b2434SSimon Glass 'bootstage stash' and 'bootstage unstash' commands to do this on 432*ee2b2434SSimon Glass the command line. 433*ee2b2434SSimon Glass 434*ee2b2434SSimon Glassconfig BOOTSTAGE_STASH_ADDR 435*ee2b2434SSimon Glass hex "Address to stash boot timing information" 436*ee2b2434SSimon Glass default 0 437*ee2b2434SSimon Glass help 438*ee2b2434SSimon Glass Provide an address which will not be overwritten by the OS when it 439*ee2b2434SSimon Glass starts, so that it can read this information when ready. 440*ee2b2434SSimon Glass 441*ee2b2434SSimon Glassconfig BOOTSTAGE_STASH_SIZE 442*ee2b2434SSimon Glass hex "Size of boot timing stash region" 443*ee2b2434SSimon Glass default 4096 444*ee2b2434SSimon Glass help 445*ee2b2434SSimon Glass This should be large enough to hold the bootstage stash. A value of 446*ee2b2434SSimon Glass 4096 (4KiB) is normally plenty. 447*ee2b2434SSimon Glass 448*ee2b2434SSimon Glassendmenu 449*ee2b2434SSimon Glass 450ed36323fSMasahiro Yamadaendmenu 451