diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 18:11:11 +1300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-27 15:04:31 +1300 |
commit | 1758551ec9526d56303a2b5cf1f58147e66945ed (patch) | |
tree | 8e8b35f4dadae793cd6668d10f958f0337191806 /doc | |
parent | 803e9c1c94d06cfab43606056c653268e12926d8 (diff) | |
download | u-boot-1758551ec9526d56303a2b5cf1f58147e66945ed.tar.gz |
sandbox: Provide a way to bind fixed/removeable devices
At present when a file is bound to a host device it is always marked as
removeable. Arguably the device is removeable, since it can be unbound at
will. However while it is bound, it is not considered removable by the
user. Also it is useful to be able to model both fixed and removeable
devices for code that distinguishes them.
Add a -r flag to the 'host bind' command and plumb it through to provide
this feature.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/arch/sandbox.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/arch/sandbox.rst b/doc/arch/sandbox.rst index 8b18a22117..e052b6bdb0 100644 --- a/doc/arch/sandbox.rst +++ b/doc/arch/sandbox.rst @@ -389,6 +389,8 @@ the contents of the root directory on the second partion of the image =>host bind 0 ./disk.raw =>ls host 0:2 +The device can be marked removeable with 'host bind -r'. + A disk image can be created using the following commands:: $> truncate -s 1200M ./disk.raw |