blob: b85875adde39fdebbb413d44e5b7e215b35c2016 [file] [log] [blame]
Heinrich Schuchardt3dcc0412022-06-11 08:23:31 +02001.. SPDX-License-Identifier: GPL-2.0+:
2
Heinrich Schuchardt1b0c3162024-01-14 14:53:13 +01003.. index::
4 single: bootz (command)
5
Heinrich Schuchardt3dcc0412022-06-11 08:23:31 +02006bootz command
7=============
8
9Synopsis
10--------
11
12::
13
14 bootz [<addr> [<initrd>[:<size>]] [<fdt>]]
15
16Description
17-----------
18
19The bootz command is used to boot a Linux kernel in 'zImage' format.
20
21addr
22 address of kernel image, defaults to the value of the environment
23 variable $loadaddr.
24
25initrd
26 address of the initial RAM disk. Use '-' to boot a kernel with a device
27 tree but without an initial RAM disk.
28
29size
30 size of the initial RAM disk. This parameter must be specified for raw
31 initial RAM disks.
32
33fdt
34 address of the device tree.
35
36Example
37-------
38
39This is the boot log of an OrangePi PC board:
40
41::
42
43 => load mmc 0:2 $fdt_addr_r dtb
44 23093 bytes read in 7 ms (3.1 MiB/s)
45 => load mmc 0:2 $kernel_addr_r vmlinuz
46 5079552 bytes read in 215 ms (22.5 MiB/s)
47 => load mmc 0:2 $ramdisk_addr_r initrd.img
48 23854965 bytes read in 995 ms (22.9 MiB/s)
49 => bootz $kernel_addr_r $ramdisk_addr_r:$filesize $fdt_addr_r
50 Kernel image @ 0x42000000 [ 0x000000 - 0x4d8200 ]
51 ## Flattened Device Tree blob at 43000000
52 Booting using the fdt blob at 0x43000000
53 EHCI failed to shut down host controller.
54 Loading Ramdisk to 48940000, end 49ffff75 ... OK
55 Loading Device Tree to 48937000, end 4893fa34 ... OK
56
57 Starting kernel ...
58
59Configuration
60-------------
61
62The bootz command is only available if CONFIG_CMD_BOOTZ=y.
63
64Return value
65------------
66
67Normally this command does not return. If an error occurs, the return value $?
68is set to 1 (false). If the operating system returns to U-Boot, the system is
69reset.