Heinrich Schuchardt | 3dcc041 | 2022-06-11 08:23:31 +0200 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+: |
| 2 | |
Heinrich Schuchardt | 1b0c316 | 2024-01-14 14:53:13 +0100 | [diff] [blame] | 3 | .. index:: |
| 4 | single: bootz (command) |
| 5 | |
Heinrich Schuchardt | 3dcc041 | 2022-06-11 08:23:31 +0200 | [diff] [blame] | 6 | bootz command |
| 7 | ============= |
| 8 | |
| 9 | Synopsis |
| 10 | -------- |
| 11 | |
| 12 | :: |
| 13 | |
| 14 | bootz [<addr> [<initrd>[:<size>]] [<fdt>]] |
| 15 | |
| 16 | Description |
| 17 | ----------- |
| 18 | |
| 19 | The bootz command is used to boot a Linux kernel in 'zImage' format. |
| 20 | |
| 21 | addr |
| 22 | address of kernel image, defaults to the value of the environment |
| 23 | variable $loadaddr. |
| 24 | |
| 25 | initrd |
| 26 | address of the initial RAM disk. Use '-' to boot a kernel with a device |
| 27 | tree but without an initial RAM disk. |
| 28 | |
| 29 | size |
| 30 | size of the initial RAM disk. This parameter must be specified for raw |
| 31 | initial RAM disks. |
| 32 | |
| 33 | fdt |
| 34 | address of the device tree. |
| 35 | |
| 36 | Example |
| 37 | ------- |
| 38 | |
| 39 | This 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 | |
| 59 | Configuration |
| 60 | ------------- |
| 61 | |
| 62 | The bootz command is only available if CONFIG_CMD_BOOTZ=y. |
| 63 | |
| 64 | Return value |
| 65 | ------------ |
| 66 | |
| 67 | Normally this command does not return. If an error occurs, the return value $? |
| 68 | is set to 1 (false). If the operating system returns to U-Boot, the system is |
| 69 | reset. |