blob: 33d3fcd6247f2447e8ef4ded630634aeb14c1f22 [file] [log] [blame]
Simon Glass33eb0b92023-10-01 19:13:06 -06001.. SPDX-License-Identifier: GPL-2.0+:
2
3history command
4===============
5
6Synopis
7-------
8
9::
10
11 history
12
13Description
14-----------
15
16The *history* command shows a list of previously entered commands on the
17command line. When U-Boot starts, this it is initially empty. Each new command
18entered is added to the list.
19
20Normally these commands can be accessed by pressing the `up arrow` and
21`down arrow` keys, which cycle through the list. The `history` command provides
22a simple way to view the list.
23
24Example
25-------
26
27This example shows entering three commands, then `history`. Note that `history`
28itself is added to the list.
29
30::
31
32 => bootflow scan -l
33 Scanning for bootflows in all bootdevs
34 Seq Method State Uclass Part Name Filename
35 --- ----------- ------ -------- ---- ------------------------ ----------------
36 Scanning global bootmeth 'firmware0':
37 Hunting with: simple_bus
38 Found 2 extension board(s).
39 Scanning bootdev 'mmc2.bootdev':
40 Scanning bootdev 'mmc1.bootdev':
41 0 extlinux ready mmc 1 mmc1.bootdev.part_1 /extlinux/extlinux.conf
42 No more bootdevs
43 --- ----------- ------ -------- ---- ------------------------ ----------------
44 (1 bootflow, 1 valid)
45 => bootflow select 0
46 => bootflow info
47 Name: mmc1.bootdev.part_1
48 Device: mmc1.bootdev
49 Block dev: mmc1.blk
50 Method: extlinux
51 State: ready
52 Partition: 1
53 Subdir: (none)
54 Filename: /extlinux/extlinux.conf
55 Buffer: aebdea0
56 Size: 253 (595 bytes)
57 OS: Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)
58 Cmdline: (none)
59 Logo: (none)
60 FDT: <NULL>
61 Error: 0
62 => history
63 bootflow scan -l
64 bootflow select 0
65 bootflow info
66 history
67 =>