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