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