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