loadm.rst 918 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .. SPDX-License-Identifier: GPL-2.0+:
  2. loadm command
  3. =============
  4. Synopsis
  5. --------
  6. ::
  7. loadm <src_addr> <dst_addr> <len>
  8. Description
  9. -----------
  10. The loadm command is used to copy memory content from source address
  11. to destination address and, if efi is enabled, will setup a "Mem" efi
  12. boot device.
  13. The number of transferred bytes must be set by bytes parameter
  14. src_addr
  15. start address of the memory location to be loaded
  16. dst_addr
  17. destination address of the byte stream to be loaded
  18. len
  19. number of bytes to be copied in hexadecimal. Can not be 0 (zero).
  20. Example
  21. -------
  22. ::
  23. => loadm ${kernel_addr} ${kernel_addr_r} ${kernel_size}
  24. loaded bin to memory: size: 12582912
  25. Configuration
  26. -------------
  27. The command is only available if CONFIG_CMD_LOADM=y.
  28. Return value
  29. ------------
  30. The return value $? is set 0 (true) if the loading is succefull, and
  31. is set to 1 (false) in case of error.