blob: 005840a27bb0e6d779d55039dfb8d4e6b828ab18 [file] [log] [blame]
Rui Miguel Silva433f15a2022-05-11 10:55:40 +01001.. SPDX-License-Identifier: GPL-2.0+:
2
Heinrich Schuchardt1b0c3162024-01-14 14:53:13 +01003.. index::
4 single: loadm (command)
5
Rui Miguel Silva433f15a2022-05-11 10:55:40 +01006loadm command
7=============
8
9Synopsis
10--------
11
12::
13
14 loadm <src_addr> <dst_addr> <len>
15
16Description
17-----------
18
19The loadm command is used to copy memory content from source address
20to destination address and, if efi is enabled, will setup a "Mem" efi
21boot device.
22
23The number of transferred bytes must be set by bytes parameter
24
25src_addr
26 start address of the memory location to be loaded
27
28dst_addr
29 destination address of the byte stream to be loaded
30
31len
32 number of bytes to be copied in hexadecimal. Can not be 0 (zero).
33
34Example
35-------
36
37::
38
39 => loadm ${kernel_addr} ${kernel_addr_r} ${kernel_size}
40 loaded bin to memory: size: 12582912
41
42Configuration
43-------------
44
45The command is only available if CONFIG_CMD_LOADM=y.
46
47Return value
48------------
49
50The return value $? is set 0 (true) if the loading is succefull, and
51is set to 1 (false) in case of error.
52