diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-01-11 15:35:55 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-01-13 10:05:13 +0100 |
commit | e76ee82934e0ce7a704eadbe83adda73d0fc58f0 (patch) | |
tree | 5203370841fdb997b4c62ab67edb769e09696dfc | |
parent | 46ea14fc83360b885f9ba0954892694a1102e20e (diff) | |
download | barebox-e76ee82934e0ce7a704eadbe83adda73d0fc58f0.tar.gz barebox-e76ee82934e0ce7a704eadbe83adda73d0fc58f0.tar.xz |
Documentation: boards: sandbox: describe --image flags
barebox partition table parsing can be tested in sandbox using the
recently added ,blkdev flag. Extend the documentation to cover this.
Cc: Juergen Borleis <jbe@pengutronix.de>
Reported-by: Lucas Stach <lst@pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | Documentation/boards/sandbox.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/boards/sandbox.rst b/Documentation/boards/sandbox.rst index 8b24b6a645..e9e5183653 100644 --- a/Documentation/boards/sandbox.rst +++ b/Documentation/boards/sandbox.rst @@ -34,6 +34,20 @@ Available sandbox invocation options include: Map a <file> to barebox. This option can be given multiple times. The <file>s will show up as ``/dev/fd0`` ... ``/dev/fdX`` in the barebox simulator. + How the file is mapped in barebox can be controlled by a number of flags: + + * ``,ro``: The host file is mapped read-only + + * ``,blkdev``: The host file is to be mapped as block device. This is the + default when passing block devices from the host. The file's size must + be a multiple of the barebox sector size of 512 bytes. + + * ``,cdev``: The host file is mapped as character device. This is the default, + unless the the host file is a block device. + + Multiple options can be appended if they don't clash. Literal commas within the + file path can be escaped with a backslash. Example: ``-i './0\,0.hdimg,blkdev,ro'``. + ``-e <file>`` Map <file> to barebox. With this option <file>s are mapped as |