mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
arm64/qemu: Add 9pfs configuration
Convenient for qemu debugging and adding ci check
We can learn to use the following command to mount 9pfs on qemu64:
qemu-system-aarch64 -cpu max -nographic \
-machine virt,virtualization=on,gic-version=3,mte=on \
-fsdev local,security_model=none,id=fsdev0,path=/xxxx -device virtio-9p-device,id=fs0,fsdev=fsdev0,mount_tag=host \
-chardev stdio,id=con,mux=on, -serial chardev:con \
-mon chardev=con,mode=readline -kernel ./nuttx/nutt
mkdir mnt
mount -t v9fs -o trans=virtio,tag=host mnt
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
77d993623c
commit
95ed02ec22
@@ -86,9 +86,30 @@ Getting Started
|
|||||||
NuttShell (NSH) NuttX-10.4.0
|
NuttShell (NSH) NuttX-10.4.0
|
||||||
nsh> fb
|
nsh> fb
|
||||||
|
|
||||||
3.1.3 Single Core with MTE Expansion (GICv3)
|
3.1.3 Single Core with virtio 9pFs (GICv3)
|
||||||
Configuring NuttX and compile:
|
Configuring NuttX and compile:
|
||||||
$ ./tools/configure.sh qemu-armv8a:mteqe
|
$ ./tools/configure.sh qemu-armv8a:netnsh
|
||||||
|
$ make -j
|
||||||
|
Running with qemu
|
||||||
|
$ qemu-system-aarch64 -cpu cortex-a53 -nographic \
|
||||||
|
-machine virt,virtualization=on,gic-version=3 \
|
||||||
|
-fsdev local,security_model=none,id=fsdev0,path=/mnt/xxx \
|
||||||
|
-device virtio-9p-device,id=fs0,fsdev=fsdev0,mount_tag=host \
|
||||||
|
-chardev stdio,id=con,mux=on, -serial chardev:con \
|
||||||
|
-mon chardev=con,mode=readline -kernel ./nuttx
|
||||||
|
|
||||||
|
NuttShell (NSH) NuttX-10.4.0
|
||||||
|
nsh> mkdir mnt
|
||||||
|
nsh> mount -t v9fs -o trans=virtio,tag=host mnt
|
||||||
|
nsh> ls
|
||||||
|
/:
|
||||||
|
dev/
|
||||||
|
mnt/
|
||||||
|
proc/
|
||||||
|
|
||||||
|
3.1.4 Single Core with MTE Expansion (GICv3)
|
||||||
|
Configuring NuttX and compile:
|
||||||
|
$ ./tools/configure.sh qemu-armv8a:mte
|
||||||
$ make -j
|
$ make -j
|
||||||
Running with qemu
|
Running with qemu
|
||||||
$ qemu-system-aarch64 -cpu max -nographic \
|
$ qemu-system-aarch64 -cpu max -nographic \
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ CONFIG_FAT_LFN=y
|
|||||||
CONFIG_FS_FAT=y
|
CONFIG_FS_FAT=y
|
||||||
CONFIG_FS_FATTIME=y
|
CONFIG_FS_FATTIME=y
|
||||||
CONFIG_FS_PROCFS=y
|
CONFIG_FS_PROCFS=y
|
||||||
|
CONFIG_FS_V9FS=y
|
||||||
CONFIG_HAVE_CXX=y
|
CONFIG_HAVE_CXX=y
|
||||||
CONFIG_HAVE_CXXINITIALIZE=y
|
CONFIG_HAVE_CXXINITIALIZE=y
|
||||||
CONFIG_IDLETHREAD_STACKSIZE=8192
|
CONFIG_IDLETHREAD_STACKSIZE=8192
|
||||||
@@ -110,3 +111,4 @@ CONFIG_UART1_IRQ=33
|
|||||||
CONFIG_UART1_PL011=y
|
CONFIG_UART1_PL011=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=y
|
CONFIG_UART1_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART_PL011=y
|
CONFIG_UART_PL011=y
|
||||||
|
CONFIG_V9FS_VIRTIO_9P=y
|
||||||
|
|||||||
Reference in New Issue
Block a user