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