blob: a21fbc83ccf67bce6a2c098ec4b419db325b0fc5 [file] [log] [blame]
Heinrich Schuchardt07af2ff2023-01-15 12:45:44 +01001.. SPDX-License-Identifier: GPL-2.0+
2.. Copyright 2023, Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
3
Heinrich Schuchardt1b0c3162024-01-14 14:53:13 +01004.. index::
5 single: bdinfo (command)
6
Heinrich Schuchardt07af2ff2023-01-15 12:45:44 +01007bdinfo command
8==============
9
10Synopsis
11--------
12
13::
14
15 bdinfo
16
17Description
18-----------
19
20The *bdinfo* command prints information about the board.
21
22Example
Heinrich Schuchardt474e8fd2023-01-21 10:25:04 +010023-------
Heinrich Schuchardt07af2ff2023-01-15 12:45:44 +010024
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
59boot_params
60 address of the memory area for boot parameters
61
62DRAM bank
63 index, start address and end address of a memory bank
64
65baudrate
66 baud rate of the serial console
67
68relocaddr
69 address to which U-Boot has relocated itself
70
71reloc off
72 relocation offset, difference between *relocaddr* and the text base
73
74Build
75 bitness of the system
76
77current eth
78 name of the active network device
79
80IP addr
81 network address, value of the environment variable *ipaddr*
82
83fdt_blob
84 address of U-Boot's own device tree, NULL if none
85
86new_fdt
87 location of the relocated device tree
88
89fdt_size
90 space reserved for relocated device space
91
92lmb_dump_all
93 available memory and memory reservations
94
95devicetree
96 source of the device-tree
97
98arch_number
99 unique id for the board
100
101TLB addr
102 address of the translation lookaside buffer
103
104irq_sp
105 address of the IRQ stack pointer
106
107sp start
108 initial stack pointer address
109
110Early malloc usage
111 amount of memory used in the early malloc memory and its maximum size
Simon Glassc1aae9b2023-09-26 08:14:29 -0600112 as defined by CONFIG_SYS_MALLOC_F_LEN
Heinrich Schuchardt07af2ff2023-01-15 12:45:44 +0100113
114Configuration
115-------------
116
117The bdinfo command is available if CONFIG_CMD_BDI=y.
118
119Return code
120-----------
121
122The return code $? is 0 (true).