From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kyyIa-0000Ft-IF for barebox@lists.infradead.org; Mon, 11 Jan 2021 14:36:01 +0000 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kyyIX-0001vN-1F for barebox@lists.infradead.org; Mon, 11 Jan 2021 15:35:57 +0100 Received: from afa by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1kyyIW-0003Ow-PV for barebox@lists.infradead.org; Mon, 11 Jan 2021 15:35:56 +0100 From: Ahmad Fatoum Date: Mon, 11 Jan 2021 15:35:55 +0100 Message-Id: <20210111143555.13002-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] Documentation: boards: sandbox: describe --image flags To: barebox@lists.infradead.org barebox partition table parsing can be tested in sandbox using the recently added ,blkdev flag. Extend the documentation to cover this. Cc: Juergen Borleis Reported-by: Lucas Stach Signed-off-by: Ahmad Fatoum --- Documentation/boards/sandbox.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/boards/sandbox.rst b/Documentation/boards/sandbox.rst index 8b24b6a64584..e9e5183653e6 100644 --- a/Documentation/boards/sandbox.rst +++ b/Documentation/boards/sandbox.rst @@ -34,6 +34,20 @@ Available sandbox invocation options include: Map a to barebox. This option can be given multiple times. The 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 `` Map to barebox. With this option s are mapped as -- 2.30.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox