diff options
Diffstat (limited to 'doc/usage/cmd/cp.rst')
-rw-r--r-- | doc/usage/cmd/cp.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/usage/cmd/cp.rst b/doc/usage/cmd/cp.rst index 12a24e19fee..434dfedfc2b 100644 --- a/doc/usage/cmd/cp.rst +++ b/doc/usage/cmd/cp.rst @@ -1,5 +1,8 @@ .. SPDX-License-Identifier: GPL-2.0+: +.. index:: + single: cp (command) + cp command ========== @@ -19,7 +22,8 @@ Description The cp command is used to copy *count* chunks of memory from the *source* address to the *target* address. If the *target* address points to NOR flash, -the flash is programmed. +the flash is programmed. When the *target* address points at ordinary memory, +memmove() is used, so the two regions may overlap. The number bytes in one chunk is defined by the suffix defaulting to 4 bytes: @@ -73,7 +77,7 @@ Configuration ------------- The cp command is available if CONFIG_CMD_MEMORY=y. Support for 64 bit words -(cp.q) depends on CONFIG_MEM_SUPPORT_64BIT_DATA=y. Copying to flash depends on +(cp.q) is only available on 64-bit targets. Copying to flash depends on CONFIG_MTD_NOR_FLASH=y. Return value |