Simon Glass | 33eb0b9 | 2023-10-01 19:13:06 -0600 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+: |
| 2 | |
| 3 | history command |
| 4 | =============== |
| 5 | |
| 6 | Synopis |
| 7 | ------- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | history |
| 12 | |
| 13 | Description |
| 14 | ----------- |
| 15 | |
| 16 | The *history* command shows a list of previously entered commands on the |
| 17 | command line. When U-Boot starts, this it is initially empty. Each new command |
| 18 | entered is added to the list. |
| 19 | |
| 20 | Normally these commands can be accessed by pressing the `up arrow` and |
| 21 | `down arrow` keys, which cycle through the list. The `history` command provides |
| 22 | a simple way to view the list. |
| 23 | |
| 24 | Example |
| 25 | ------- |
| 26 | |
| 27 | This example shows entering three commands, then `history`. Note that `history` |
| 28 | itself 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 | => |