On 29/06/2023 15:21, Harry Ramsey wrote:
Hello,
This patch aims to enable the FVP shared folder for Morello Linux docker image. This would allow files to be shared between the host and the FVP session.
Thanks, Harry.
README.md | 8 ++++++++ usr/bin/morello | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md index fdc31f9..d7e183f 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,11 @@ Create the following workspace structure:
workspace/ |-> morello/ + |-> shared_folder/ |-> docker-compose.yml
Create a `docker-compose.yml` file and map the morello directory into /morello as follows:
@@ -112,6 +114,12 @@ Username: root Password: morello
+## Shared Folder +To mount the shared folder to share files between host and FVP: +``` +$ mount -t 9p -o trans=virtio,version=9p2000.L FM shared_folder +```
## Shutdown the FVP Model To shutdown the FVP correctly type on a root shell: diff --git a/usr/bin/morello b/usr/bin/morello index f7a515a..25f507b 100755 --- a/usr/bin/morello +++ b/usr/bin/morello @@ -16,4 +16,4 @@ export OUTPUT_DIR=/morello/logs mkdir -p $OUTPUT_DIR -morello-run.sh -f distro -i /usr/share/morello/images/morello-fvp/morello-fvp.img +morello-run.sh -f distro -i /usr/share/morello/images/morello-fvp/morello-fvp.img -v /morello/shared_folder
While you're touching this, please also add "$@" at the end. It's quite frustrating to run `morello --help` only for --help to be ignored :)
Worth noting that FVP will fail to start if shared_folder does not exist. We could check if it exists before adding the flag.
Kevin