Heinrich Schuchardt | 07af2ff | 2023-01-15 12:45:44 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | .. Copyright 2023, Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
| 3 | |
| 4 | bdinfo command |
| 5 | ============== |
| 6 | |
| 7 | Synopsis |
| 8 | -------- |
| 9 | |
| 10 | :: |
| 11 | |
| 12 | bdinfo |
| 13 | |
| 14 | Description |
| 15 | ----------- |
| 16 | |
| 17 | The *bdinfo* command prints information about the board. |
| 18 | |
| 19 | Example |
Heinrich Schuchardt | 474e8fd | 2023-01-21 10:25:04 +0100 | [diff] [blame] | 20 | ------- |
Heinrich Schuchardt | 07af2ff | 2023-01-15 12:45:44 +0100 | [diff] [blame] | 21 | |
| 22 | :: |
| 23 | |
| 24 | => bdinfo |
| 25 | boot_params = 0x0000000000000000 |
| 26 | DRAM bank = 0x0000000000000000 |
| 27 | -> start = 0x0000000040000000 |
| 28 | -> size = 0x0000000100000000 |
| 29 | flashstart = 0x0000000000000000 |
| 30 | flashsize = 0x0000000004000000 |
| 31 | flashoffset = 0x00000000000e87f8 |
| 32 | baudrate = 115200 bps |
| 33 | relocaddr = 0x000000013fefb000 |
| 34 | reloc off = 0x000000013fefb000 |
| 35 | Build = 64-bit |
| 36 | current eth = virtio-net#32 |
| 37 | ethaddr = 52:52:52:52:52:52 |
| 38 | IP addr = 10.0.2.15 |
| 39 | fdt_blob = 0x000000013edbadb0 |
| 40 | new_fdt = 0x000000013edbadb0 |
| 41 | fdt_size = 0x0000000000100000 |
| 42 | lmb_dump_all: |
| 43 | memory.cnt = 0x1 |
| 44 | memory[0] [0x40000000-0x13fffffff], 0x100000000 bytes flags: 0 |
| 45 | reserved.cnt = 0x2 |
| 46 | reserved[0] [0x13ddb3000-0x13fffffff], 0x0224d000 bytes flags: 0 |
| 47 | reserved[1] [0x13edb6930-0x13fffffff], 0x012496d0 bytes flags: 0 |
| 48 | devicetree = board |
| 49 | arch_number = 0x0000000000000000 |
| 50 | TLB addr = 0x000000013fff0000 |
| 51 | irq_sp = 0x000000013edbada0 |
| 52 | sp start = 0x000000013edbada0 |
| 53 | Early malloc usage: 3a8 / 2000 |
| 54 | => |
| 55 | |
| 56 | boot_params |
| 57 | address of the memory area for boot parameters |
| 58 | |
| 59 | DRAM bank |
| 60 | index, start address and end address of a memory bank |
| 61 | |
| 62 | baudrate |
| 63 | baud rate of the serial console |
| 64 | |
| 65 | relocaddr |
| 66 | address to which U-Boot has relocated itself |
| 67 | |
| 68 | reloc off |
| 69 | relocation offset, difference between *relocaddr* and the text base |
| 70 | |
| 71 | Build |
| 72 | bitness of the system |
| 73 | |
| 74 | current eth |
| 75 | name of the active network device |
| 76 | |
| 77 | IP addr |
| 78 | network address, value of the environment variable *ipaddr* |
| 79 | |
| 80 | fdt_blob |
| 81 | address of U-Boot's own device tree, NULL if none |
| 82 | |
| 83 | new_fdt |
| 84 | location of the relocated device tree |
| 85 | |
| 86 | fdt_size |
| 87 | space reserved for relocated device space |
| 88 | |
| 89 | lmb_dump_all |
| 90 | available memory and memory reservations |
| 91 | |
| 92 | devicetree |
| 93 | source of the device-tree |
| 94 | |
| 95 | arch_number |
| 96 | unique id for the board |
| 97 | |
| 98 | TLB addr |
| 99 | address of the translation lookaside buffer |
| 100 | |
| 101 | irq_sp |
| 102 | address of the IRQ stack pointer |
| 103 | |
| 104 | sp start |
| 105 | initial stack pointer address |
| 106 | |
| 107 | Early malloc usage |
| 108 | amount of memory used in the early malloc memory and its maximum size |
Simon Glass | c1aae9b | 2023-09-26 08:14:29 -0600 | [diff] [blame^] | 109 | as defined by CONFIG_SYS_MALLOC_F_LEN |
Heinrich Schuchardt | 07af2ff | 2023-01-15 12:45:44 +0100 | [diff] [blame] | 110 | |
| 111 | Configuration |
| 112 | ------------- |
| 113 | |
| 114 | The bdinfo command is available if CONFIG_CMD_BDI=y. |
| 115 | |
| 116 | Return code |
| 117 | ----------- |
| 118 | |
| 119 | The return code $? is 0 (true). |