summaryrefslogtreecommitdiffstats
path: root/Documentation/user/memory-areas.rst
blob: d673f6e1b1b26d680a25bad2c1c9144d28d2fec9 (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
Memory areas
============

Several barebox commands like :ref:`command_md`, :ref:`command_erase`
or :ref:`command_crc32` work on an area of memory. Areas have the following form::

  <start>-<end>

or::

  <start>+<count>

start, end and count are interpreted as decimal values if not prefixed with 0x.
Additionally these can be postfixed with K, M or G for kilobyte, megabyte or
gigabyte.

Examples
--------

Display a hexdump from 0x80000000 to 0x80001000 (inclusive):

.. code-block:: sh

  md 0x80000000-0x80001000

Display 1 kilobyte of memory starting at 0x80000000:

.. code-block:: sh

  md 0x80000000+1k