We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How to enable share folders between fvp and host linux
Can you tell me which FVP you are using? The Base & VE FVPs along with the System Guidance and Reference Design FVPs include a Virtio P9 component. It implements a subset of the Plan 9 file protocol over a virtio transport. It enables accessing a directory on the host's filesystem within Linux, or another operating system that implements the protocol, running on a platform model.
You can find the documentation of the component here:
developer.arm.com/.../virtio-p9-device-component
Hello I am using the Base_RevC_AEMv8A_pkg. I already checked the document in the fvp guide.
And I have added the -C bp.virtiop9device.root_path=/home/fvptest/work/fvp/share in model-scripts/fvp/run_model.sh
And I have configue the linux with virtio enabled:
CONFIG_NET_9P=y CONFIG_NET_9P_VIRTIO=y CONFIG_NET_9P_DEBUG=y (Optional) CONFIG_9P_FS=y CONFIG_9P_FS_POSIX_ACL=y CONFIG_PCI=y CONFIG_VIRTIO_PCI=y
CONFIG_PCI=y CONFIG_VIRTIO_PCI=y CONFIG_PCI_HOST_GENERIC=y And dtsi with linux/arch/arm64/boot/dts/arm$ vi fvp-base.dtsi virtio_p9@0140000 { compatible = "virtio,mmio"; reg = <0x0 0x1c140000 0x0 0x1000>; interrupts = <0x0 0x2b 0x4>; };And I can see the 9pnet probe success, in fvp linux:cat /sys/devices/platform/1c140000.virtio_p9/virtio1/mount_taggot:FM/sys/devices/platform/1c140000.virtio_p9/virt1However,when use the command:mount -t 9p trans=virtio,version=9p2000.L FM /shareIt shows that:
mount: mounting FM on /share failed: Inavlid argument
And there is no other message, since I already change the loglevel to 15.
Could you help me for this.
The version is :
Armv8-A Base Platform FVP based on Fast Models 11.8 (Linux):
I can make an example that demonstrates how to enable shared folder based on the Arm Reference Platform (See this page). I will let you know once this is done.
Attached, please find an example. Please follow the README_9p.txt contained in this TGZ. If you have any questions, please feel free to contact me through support-esl@arm.com.
/cfs-file/__key/communityserver-discussions-components-files/80/19.01_5F00_9p.diff.tgz.txt
Awesome, it works, thanks very much.
BTW, why not make this a default config. I think people need it always :)
We will make this change in a future release of the FVP. Thanks for the suggestion.