This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 58aa7f1abd859d139a3c0d61d5a29deaceb2e635
Author: wangmingrong1 <[email protected]>
AuthorDate: Mon Nov 2 19:00:13 2026 +0800

    fvp: support tmpfs
    
    Signed-off-by: wangmingrong1 <[email protected]>
---
 boards/arm64/fvp-v8r/fvp-armv8r/src/fvp_bringup.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/boards/arm64/fvp-v8r/fvp-armv8r/src/fvp_bringup.c 
b/boards/arm64/fvp-v8r/fvp-armv8r/src/fvp_bringup.c
index f048a428552..9c68762b479 100644
--- a/boards/arm64/fvp-v8r/fvp-armv8r/src/fvp_bringup.c
+++ b/boards/arm64/fvp-v8r/fvp-armv8r/src/fvp_bringup.c
@@ -57,6 +57,16 @@ int fvp_bringup(void)
     }
 #endif
 
+#ifdef CONFIG_FS_TMPFS
+  /* Mount the tmp file system */
+
+  ret = nx_mount(NULL, CONFIG_LIBC_TMPDIR, "tmpfs", 0, NULL);
+  if (ret < 0)
+    {
+      syslog(LOG_ERR, "ERROR: Failed to mount tmpfs at /tmp: %d\n", ret);
+    }
+#endif
+
   UNUSED(ret);
   return OK;
 }

Reply via email to