bootz.rst 1.6 KB

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