~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: b6571140437dc985a7a45bda74500a26829ae411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.. SPDX-License-Identifier: GPL-2.0+:

loadm command
=============

Synopsis
--------

::

    loadm <src_addr> <dst_addr> <len>

Description
-----------

The loadm command is used to copy memory content from source address
to destination address and, if efi is enabled, will setup a "Mem" efi
boot device.

The number of transferred bytes must be set by bytes parameter

src_addr
    start address of the memory location to be loaded

dst_addr
    destination address of the byte stream to be loaded

len
    number of bytes to be copied in hexadecimal. Can not be 0 (zero).

Example
-------

::

    => loadm ${kernel_addr} ${kernel_addr_r} ${kernel_size}
    loaded bin to memory: size: 12582912

Configuration
-------------

The command is only available if CONFIG_CMD_LOADM=y.

Return value
------------

The return value $? is set 0 (true) if the loading is succefull, and
is set to 1 (false) in case of error.