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