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 4497bbee8850f0b373f6f66bbc03c3a045e70453
Author: raiden00pl <[email protected]>
AuthorDate: Sun Oct 11 19:11:58 2026 +0200

    boards/arm: mount procfs and tmpfs in the common STM32 board init
    
    Mount procfs at CONFIG_NSH_PROC_MOUNTPOINT (or /proc) and tmpfs at
    CONFIG_LIBC_TMPDIR in stm32_common_initialize() and remove the copies
    from the Nucleo boards, together with their now unused HAVE_PROC and
    STM32_PROCFS_MOUNTPOINT definitions and <sys/mount.h> includes.
    
    A failed mount is logged and the initialization continues. Some boards
    returned an error from the bringup in this case.
    
    Signed-off-by: raiden00pl <[email protected]>
    Assisted-by: Claude Code
---
 boards/arm/common/stm32/src/board_common.c         | 46 ++++++++++++++++++++++
 .../arm/stm32c5/nucleo-c562re/src/stm32_bringup.c  | 10 -----
 .../arm/stm32f0/nucleo-f072rb/src/stm32_bringup.c  | 10 -----
 .../arm/stm32f0/nucleo-f091rc/src/stm32_bringup.c  | 10 -----
 .../arm/stm32f4/nucleo-f412zg/src/nucleo-f412zg.h  | 10 -----
 .../arm/stm32f4/nucleo-f412zg/src/stm32_bringup.c  | 11 ------
 boards/arm/stm32f4/nucleo-f429zi/src/nucleo-144.h  | 10 -----
 boards/arm/stm32f4/nucleo-f429zi/src/stm32_boot.c  | 11 ------
 .../arm/stm32f4/nucleo-f446re/src/nucleo-f446re.h  | 10 -----
 .../arm/stm32f4/nucleo-f446re/src/stm32_bringup.c  | 11 ------
 .../arm/stm32f7/nucleo-f722ze/src/nucleo-f722ze.h  | 10 -----
 .../arm/stm32f7/nucleo-f722ze/src/stm32_bringup.c  | 11 ------
 .../arm/stm32f7/nucleo-f746zg/src/nucleo-f746zg.h  | 10 -----
 .../arm/stm32f7/nucleo-f746zg/src/stm32_bringup.c  | 11 ------
 .../arm/stm32f7/nucleo-f767zi/src/nucleo-f767zi.h  | 10 -----
 .../arm/stm32f7/nucleo-f767zi/src/stm32_bringup.c  | 11 ------
 .../arm/stm32g4/nucleo-g431rb/src/nucleo-g431rb.h  | 10 -----
 .../arm/stm32g4/nucleo-g431rb/src/stm32_bringup.c  | 11 ------
 .../arm/stm32h5/nucleo-h503rb/src/nucleo-h503rb.h  | 10 -----
 .../arm/stm32h5/nucleo-h503rb/src/stm32_bringup.c  | 11 ------
 .../arm/stm32h5/nucleo-h533re/src/nucleo-h533re.h  | 10 -----
 .../arm/stm32h5/nucleo-h533re/src/stm32_bringup.c  | 11 ------
 .../arm/stm32h5/nucleo-h563zi/src/nucleo-h563zi.h  | 10 -----
 .../arm/stm32h5/nucleo-h563zi/src/stm32_bringup.c  | 11 ------
 .../arm/stm32h7/nucleo-h723zg/src/nucleo-h723zg.h  | 11 ------
 .../arm/stm32h7/nucleo-h723zg/src/stm32_bringup.c  | 11 ------
 .../arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h  | 11 ------
 .../arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c  | 22 -----------
 .../arm/stm32h7/nucleo-h743zi2/src/stm32_bringup.c | 11 ------
 .../arm/stm32h7/nucleo-h745zi/src/nucleo-h745zi.h  | 11 ------
 .../arm/stm32h7/nucleo-h745zi/src/stm32_bringup.c  | 11 ------
 .../arm/stm32h7/nucleo-h753zi/src/stm32_bringup.c  | 11 ------
 .../arm/stm32h7/nucleo-h7s3l8/src/nucleo-h7s3l8.h  |  8 ----
 .../arm/stm32h7/nucleo-h7s3l8/src/stm32_bringup.c  | 11 ------
 .../arm/stm32l1/nucleo-l152re/src/nucleo-l152re.h  |  9 -----
 boards/arm/stm32l1/nucleo-l152re/src/stm32_boot.c  | 11 ------
 .../arm/stm32l4/nucleo-l432kc/src/nucleo-l432kc.h  | 10 -----
 .../arm/stm32l4/nucleo-l432kc/src/stm32_bringup.c  | 14 -------
 .../arm/stm32l4/nucleo-l452re/src/nucleo-l452re.h  | 10 -----
 .../arm/stm32l4/nucleo-l452re/src/stm32_bringup.c  | 10 -----
 .../arm/stm32l4/nucleo-l476rg/src/nucleo-l476rg.h  | 10 -----
 .../arm/stm32l4/nucleo-l476rg/src/stm32_bringup.c  | 14 -------
 boards/arm/stm32l4/nucleo-l496zg/src/nucleo-144.h  | 10 -----
 .../arm/stm32l4/nucleo-l496zg/src/stm32_bringup.c  | 11 ------
 .../arm/stm32l5/nucleo-l552ze/src/nucleo-l552ze.h  | 10 -----
 .../arm/stm32l5/nucleo-l552ze/src/stm32_bringup.c  | 11 ------
 .../stm32u3/nucleo-u3c5zi-q/src/stm32_bringup.c    | 11 +-----
 .../stm32u5/nucleo-u5a5zj-q/src/nucleo-u5a5zj-q.h  | 10 -----
 .../stm32u5/nucleo-u5a5zj-q/src/stm32_bringup.c    | 11 ------
 .../arm/stm32wb/nucleo-wb55rg/src/nucleo-wb55rg.h  | 10 -----
 boards/arm/stm32wb/nucleo-wb55rg/src/stm32_boot.c  | 16 --------
 .../arm/stm32wl5/nucleo-wl55jc/src/nucleo-wl55jc.h | 11 ------
 boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_boot.c | 14 -------
 53 files changed, 47 insertions(+), 570 deletions(-)

diff --git a/boards/arm/common/stm32/src/board_common.c 
b/boards/arm/common/stm32/src/board_common.c
index e31706756a8..b9b7fcd772f 100644
--- a/boards/arm/common/stm32/src/board_common.c
+++ b/boards/arm/common/stm32/src/board_common.c
@@ -27,6 +27,9 @@
 #include <nuttx/config.h>
 
 #include <sys/types.h>
+#include <syslog.h>
+
+#include <nuttx/fs/fs.h>
 
 #include <arch/board/board.h>
 
@@ -36,6 +39,24 @@
 
 #include "board_common.h"
 
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_DISABLE_MOUNTPOINT)
+#  define HAVE_PROCFS
+#endif
+
+#if defined(CONFIG_FS_TMPFS) && !defined(CONFIG_DISABLE_MOUNTPOINT)
+#  define HAVE_TMPFS
+#endif
+
+#ifdef CONFIG_NSH_PROC_MOUNTPOINT
+#  define PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
+#else
+#  define PROCFS_MOUNTPOINT "/proc"
+#endif
+
 /****************************************************************************
  * Public Functions
  ****************************************************************************/
@@ -50,6 +71,30 @@
 
 int stm32_common_initialize(void)
 {
+  int ret;
+
+#ifdef HAVE_PROCFS
+  /* Mount the procfs file system */
+
+  ret = nx_mount(NULL, PROCFS_MOUNTPOINT, "procfs", 0, NULL);
+  if (ret < 0)
+    {
+      syslog(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n",
+             PROCFS_MOUNTPOINT, ret);
+    }
+#endif
+
+#ifdef HAVE_TMPFS
+  /* Mount the tmpfs file system */
+
+  ret = nx_mount(NULL, CONFIG_LIBC_TMPDIR, "tmpfs", 0, NULL);
+  if (ret < 0)
+    {
+      syslog(LOG_ERR, "ERROR: Failed to mount tmpfs at %s: %d\n",
+             CONFIG_LIBC_TMPDIR, ret);
+    }
+#endif
+
 #ifdef CONFIG_STM32_IWDG
   /* Initialize the independent watchdog */
 
@@ -62,5 +107,6 @@ int stm32_common_initialize(void)
   stm32_wwdginitialize("/dev/watchdog1");
 #endif
 
+  UNUSED(ret);
   return OK;
 }
diff --git a/boards/arm/stm32c5/nucleo-c562re/src/stm32_bringup.c 
b/boards/arm/stm32c5/nucleo-c562re/src/stm32_bringup.c
index d84c84abdfc..8c73d8f51d9 100644
--- a/boards/arm/stm32c5/nucleo-c562re/src/stm32_bringup.c
+++ b/boards/arm/stm32c5/nucleo-c562re/src/stm32_bringup.c
@@ -26,8 +26,6 @@
 
 #include <nuttx/config.h>
 
-#include <sys/mount.h>
-
 #include <nuttx/debug.h>
 #include <nuttx/board.h>
 #include <nuttx/input/buttons.h>
@@ -51,14 +49,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  ret = mount(NULL, "/proc", "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      return ret;
-    }
-#endif
-
 #ifdef CONFIG_INPUT_BUTTONS
   /* Register the BUTTON lower-half driver. */
 
diff --git a/boards/arm/stm32f0/nucleo-f072rb/src/stm32_bringup.c 
b/boards/arm/stm32f0/nucleo-f072rb/src/stm32_bringup.c
index ce06f09b1cc..09e6d99ed58 100644
--- a/boards/arm/stm32f0/nucleo-f072rb/src/stm32_bringup.c
+++ b/boards/arm/stm32f0/nucleo-f072rb/src/stm32_bringup.c
@@ -81,16 +81,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, "/proc", "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      ferr("ERROR: Failed to mount procfs at /proc: %d\n", ret);
-    }
-#endif
-
 #ifdef HAVE_I2C_DRIVER
   /* Get the I2C lower half instance */
 
diff --git a/boards/arm/stm32f0/nucleo-f091rc/src/stm32_bringup.c 
b/boards/arm/stm32f0/nucleo-f091rc/src/stm32_bringup.c
index 874918c193b..8fb4f5faa66 100644
--- a/boards/arm/stm32f0/nucleo-f091rc/src/stm32_bringup.c
+++ b/boards/arm/stm32f0/nucleo-f091rc/src/stm32_bringup.c
@@ -62,16 +62,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, "/proc", "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      ferr("ERROR: Failed to mount procfs at /proc: %d\n", ret);
-    }
-#endif
-
 #ifdef CONFIG_LPWAN_SX127X
   ret = stm32_lpwaninitialize();
   if (ret < 0)
diff --git a/boards/arm/stm32f4/nucleo-f412zg/src/nucleo-f412zg.h 
b/boards/arm/stm32f4/nucleo-f412zg/src/nucleo-f412zg.h
index 203f5ce9273..b5f2cbbdba1 100644
--- a/boards/arm/stm32f4/nucleo-f412zg/src/nucleo-f412zg.h
+++ b/boards/arm/stm32f4/nucleo-f412zg/src/nucleo-f412zg.h
@@ -87,16 +87,6 @@
                            GPIO_PUSHPULL|GPIO_PORTD|GPIO_PIN5)
 #endif
 
-/* procfs File System */
-
-#ifdef CONFIG_FS_PROCFS
-#  ifdef CONFIG_NSH_PROC_MOUNTPOINT
-#    define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-#  else
-#    define STM32_PROCFS_MOUNTPOINT "/proc"
-#  endif
-#endif
-
 /****************************************************************************
  * Public Data
  ****************************************************************************/
diff --git a/boards/arm/stm32f4/nucleo-f412zg/src/stm32_bringup.c 
b/boards/arm/stm32f4/nucleo-f412zg/src/stm32_bringup.c
index 310a5c88794..33563d20e12 100644
--- a/boards/arm/stm32f4/nucleo-f412zg/src/stm32_bringup.c
+++ b/boards/arm/stm32f4/nucleo-f412zg/src/stm32_bringup.c
@@ -80,16 +80,5 @@ int stm32_bringup(void)
     }
 #endif
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      ferr("ERROR: Failed to mount procfs at %s: %d\n",
-           STM32_PROCFS_MOUNTPOINT, ret);
-    }
-#endif
-
   return ret;
 }
diff --git a/boards/arm/stm32f4/nucleo-f429zi/src/nucleo-144.h 
b/boards/arm/stm32f4/nucleo-f429zi/src/nucleo-144.h
index 60e0078b43c..df0e096e83b 100644
--- a/boards/arm/stm32f4/nucleo-f429zi/src/nucleo-144.h
+++ b/boards/arm/stm32f4/nucleo-f429zi/src/nucleo-144.h
@@ -37,16 +37,6 @@
 
 /* Configuration ************************************************************/
 
-/* procfs File System */
-
-#ifdef CONFIG_FS_PROCFS
-#  ifdef CONFIG_NSH_PROC_MOUNTPOINT
-#    define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-#  else
-#    define STM32_PROCFS_MOUNTPOINT "/proc"
-#  endif
-#endif
-
 /* Nucleo-144 GPIO Pin Definitions ******************************************/
 
 /* LED
diff --git a/boards/arm/stm32f4/nucleo-f429zi/src/stm32_boot.c 
b/boards/arm/stm32f4/nucleo-f429zi/src/stm32_boot.c
index 13b1853844a..fcfbe649548 100644
--- a/boards/arm/stm32f4/nucleo-f429zi/src/stm32_boot.c
+++ b/boards/arm/stm32f4/nucleo-f429zi/src/stm32_boot.c
@@ -151,17 +151,6 @@ void board_late_initialize(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n",
-             STM32_PROCFS_MOUNTPOINT, ret);
-    }
-#endif
-
 #ifdef CONFIG_STM32_ROMFS
   /* Mount the romfs partition */
 
diff --git a/boards/arm/stm32f4/nucleo-f446re/src/nucleo-f446re.h 
b/boards/arm/stm32f4/nucleo-f446re/src/nucleo-f446re.h
index 223adba0ba7..67730ffe488 100644
--- a/boards/arm/stm32f4/nucleo-f446re/src/nucleo-f446re.h
+++ b/boards/arm/stm32f4/nucleo-f446re/src/nucleo-f446re.h
@@ -40,16 +40,6 @@
 
 /* Configuration ************************************************************/
 
-/* procfs File System */
-
-#ifdef CONFIG_FS_PROCFS
-#  ifdef CONFIG_NSH_PROC_MOUNTPOINT
-#    define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-#  else
-#    define STM32_PROCFS_MOUNTPOINT "/proc"
-#  endif
-#endif
-
 #define HAVE_MMCSD 1
 #if !defined(CONFIG_STM32_SDIO) || !defined(CONFIG_MMCSD) || \
     !defined(CONFIG_MMCSD_SDIO)
diff --git a/boards/arm/stm32f4/nucleo-f446re/src/stm32_bringup.c 
b/boards/arm/stm32f4/nucleo-f446re/src/stm32_bringup.c
index 6875792c45a..cabda7fed9a 100644
--- a/boards/arm/stm32f4/nucleo-f446re/src/stm32_bringup.c
+++ b/boards/arm/stm32f4/nucleo-f446re/src/stm32_bringup.c
@@ -103,17 +103,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR,
-             "ERROR: Failed to mount the PROC filesystem: %d\n",  ret);
-    }
-#endif /* CONFIG_FS_PROCFS */
-
 #ifdef CONFIG_STM32_ROMFS
   ret = stm32_romfs_initialize();
   if (ret < 0)
diff --git a/boards/arm/stm32f7/nucleo-f722ze/src/nucleo-f722ze.h 
b/boards/arm/stm32f7/nucleo-f722ze/src/nucleo-f722ze.h
index 4b4039a3e9b..e119f98e0b9 100644
--- a/boards/arm/stm32f7/nucleo-f722ze/src/nucleo-f722ze.h
+++ b/boards/arm/stm32f7/nucleo-f722ze/src/nucleo-f722ze.h
@@ -37,16 +37,6 @@
 
 /* Configuration ************************************************************/
 
-/* procfs File System */
-
-#ifdef CONFIG_FS_PROCFS
-#  ifdef CONFIG_NSH_PROC_MOUNTPOINT
-#    define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-#  else
-#    define STM32_PROCFS_MOUNTPOINT "/proc"
-#  endif
-#endif
-
 /* nucleo-f722ze GPIO Pin Definitions ***************************************/
 
 /* LED
diff --git a/boards/arm/stm32f7/nucleo-f722ze/src/stm32_bringup.c 
b/boards/arm/stm32f7/nucleo-f722ze/src/stm32_bringup.c
index f9ef15cbfd0..4ffd648e7d6 100644
--- a/boards/arm/stm32f7/nucleo-f722ze/src/stm32_bringup.c
+++ b/boards/arm/stm32f7/nucleo-f722ze/src/stm32_bringup.c
@@ -97,17 +97,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n",
-             STM32_PROCFS_MOUNTPOINT, ret);
-    }
-#endif
-
 #ifdef CONFIG_STM32_ROMFS
   /* Mount the romfs partition */
 
diff --git a/boards/arm/stm32f7/nucleo-f746zg/src/nucleo-f746zg.h 
b/boards/arm/stm32f7/nucleo-f746zg/src/nucleo-f746zg.h
index 5b53859c280..21796b786ec 100644
--- a/boards/arm/stm32f7/nucleo-f746zg/src/nucleo-f746zg.h
+++ b/boards/arm/stm32f7/nucleo-f746zg/src/nucleo-f746zg.h
@@ -37,16 +37,6 @@
 
 /* Configuration ************************************************************/
 
-/* procfs File System */
-
-#ifdef CONFIG_FS_PROCFS
-#  ifdef CONFIG_NSH_PROC_MOUNTPOINT
-#    define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-#  else
-#    define STM32_PROCFS_MOUNTPOINT "/proc"
-#  endif
-#endif
-
 /* nucleo-f746zg GPIO Pin Definitions ***************************************/
 
 /* LED
diff --git a/boards/arm/stm32f7/nucleo-f746zg/src/stm32_bringup.c 
b/boards/arm/stm32f7/nucleo-f746zg/src/stm32_bringup.c
index f1dca28d61a..2028404da7d 100644
--- a/boards/arm/stm32f7/nucleo-f746zg/src/stm32_bringup.c
+++ b/boards/arm/stm32f7/nucleo-f746zg/src/stm32_bringup.c
@@ -101,17 +101,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n",
-             STM32_PROCFS_MOUNTPOINT, ret);
-    }
-#endif
-
 #ifdef CONFIG_STM32_ROMFS
   /* Mount the romfs partition */
 
diff --git a/boards/arm/stm32f7/nucleo-f767zi/src/nucleo-f767zi.h 
b/boards/arm/stm32f7/nucleo-f767zi/src/nucleo-f767zi.h
index 2816cc143d2..54bf05c6f33 100644
--- a/boards/arm/stm32f7/nucleo-f767zi/src/nucleo-f767zi.h
+++ b/boards/arm/stm32f7/nucleo-f767zi/src/nucleo-f767zi.h
@@ -37,16 +37,6 @@
 
 /* Configuration ************************************************************/
 
-/* procfs File System */
-
-#ifdef CONFIG_FS_PROCFS
-#  ifdef CONFIG_NSH_PROC_MOUNTPOINT
-#    define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-#  else
-#    define STM32_PROCFS_MOUNTPOINT "/proc"
-#  endif
-#endif
-
 /* nucleo-f767zi GPIO Pin Definitions ***************************************/
 
 /* LED
diff --git a/boards/arm/stm32f7/nucleo-f767zi/src/stm32_bringup.c 
b/boards/arm/stm32f7/nucleo-f767zi/src/stm32_bringup.c
index cf1e12f6592..3d666441cb9 100644
--- a/boards/arm/stm32f7/nucleo-f767zi/src/stm32_bringup.c
+++ b/boards/arm/stm32f7/nucleo-f767zi/src/stm32_bringup.c
@@ -112,17 +112,6 @@ int stm32_bringup(void)
 #endif
 #endif
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n",
-             STM32_PROCFS_MOUNTPOINT, ret);
-    }
-#endif
-
 #ifdef CONFIG_STM32_ROMFS
   /* Mount the romfs partition */
 
diff --git a/boards/arm/stm32g4/nucleo-g431rb/src/nucleo-g431rb.h 
b/boards/arm/stm32g4/nucleo-g431rb/src/nucleo-g431rb.h
index 917c3909fa2..44f8beda171 100644
--- a/boards/arm/stm32g4/nucleo-g431rb/src/nucleo-g431rb.h
+++ b/boards/arm/stm32g4/nucleo-g431rb/src/nucleo-g431rb.h
@@ -33,16 +33,6 @@
  * Pre-processor Definitions
  ****************************************************************************/
 
-/* procfs File System */
-
-#ifdef CONFIG_FS_PROCFS
-#  ifdef CONFIG_NSH_PROC_MOUNTPOINT
-#    define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-#  else
-#    define STM32_PROCFS_MOUNTPOINT "/proc"
-#  endif
-#endif
-
 /* LED definitions **********************************************************/
 
 /* LED definitions **********************************************************/
diff --git a/boards/arm/stm32g4/nucleo-g431rb/src/stm32_bringup.c 
b/boards/arm/stm32g4/nucleo-g431rb/src/stm32_bringup.c
index a1d9321114d..dbbcf6dc97e 100644
--- a/boards/arm/stm32g4/nucleo-g431rb/src/stm32_bringup.c
+++ b/boards/arm/stm32g4/nucleo-g431rb/src/stm32_bringup.c
@@ -87,17 +87,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR,
-             "ERROR: Failed to mount the PROC filesystem: %d\n",  ret);
-    }
-#endif /* CONFIG_FS_PROCFS */
-
 #ifdef CONFIG_INPUT_BUTTONS
   /* Register the BUTTON driver */
 
diff --git a/boards/arm/stm32h5/nucleo-h503rb/src/nucleo-h503rb.h 
b/boards/arm/stm32h5/nucleo-h503rb/src/nucleo-h503rb.h
index 00bdb2595bb..a30506260d9 100644
--- a/boards/arm/stm32h5/nucleo-h503rb/src/nucleo-h503rb.h
+++ b/boards/arm/stm32h5/nucleo-h503rb/src/nucleo-h503rb.h
@@ -39,18 +39,8 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC             1
 #define HAVE_RTC_DRIVER       1
 
-#if !defined(CONFIG_FS_PROCFS)
-#  undef HAVE_PROC
-#endif
-
-#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)
-#  warning Mountpoints disabled.  No procfs support
-#  undef HAVE_PROC
-#endif
-
 /* Check if we can support the RTC driver */
 
 #if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)
diff --git a/boards/arm/stm32h5/nucleo-h503rb/src/stm32_bringup.c 
b/boards/arm/stm32h5/nucleo-h503rb/src/stm32_bringup.c
index 22c3de49afd..5f76478b48d 100644
--- a/boards/arm/stm32h5/nucleo-h503rb/src/stm32_bringup.c
+++ b/boards/arm/stm32h5/nucleo-h503rb/src/stm32_bringup.c
@@ -26,7 +26,6 @@
 
 #include <nuttx/config.h>
 
-#include <sys/mount.h>
 #include <sys/types.h>
 #include <nuttx/debug.h>
 
@@ -68,16 +67,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = mount(NULL, "/proc", "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      ferr("ERROR: Failed to mount procfs at /proc: %d\n", ret);
-    }
-#endif
-
 #if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER)
   /* Register the LED driver */
 
diff --git a/boards/arm/stm32h5/nucleo-h533re/src/nucleo-h533re.h 
b/boards/arm/stm32h5/nucleo-h533re/src/nucleo-h533re.h
index 8a73d03b8cc..c264ee79502 100644
--- a/boards/arm/stm32h5/nucleo-h533re/src/nucleo-h533re.h
+++ b/boards/arm/stm32h5/nucleo-h533re/src/nucleo-h533re.h
@@ -39,18 +39,8 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC             1
 #define HAVE_RTC_DRIVER       1
 
-#if !defined(CONFIG_FS_PROCFS)
-#  undef HAVE_PROC
-#endif
-
-#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)
-#  warning Mountpoints disabled.  No procfs support
-#  undef HAVE_PROC
-#endif
-
 /* Check if we can support the RTC driver */
 
 #if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)
diff --git a/boards/arm/stm32h5/nucleo-h533re/src/stm32_bringup.c 
b/boards/arm/stm32h5/nucleo-h533re/src/stm32_bringup.c
index f6207256b0e..c214e234d60 100644
--- a/boards/arm/stm32h5/nucleo-h533re/src/stm32_bringup.c
+++ b/boards/arm/stm32h5/nucleo-h533re/src/stm32_bringup.c
@@ -26,7 +26,6 @@
 
 #include <nuttx/config.h>
 
-#include <sys/mount.h>
 #include <sys/types.h>
 #include <nuttx/debug.h>
 
@@ -68,16 +67,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = mount(NULL, "/proc", "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      ferr("ERROR: Failed to mount procfs at /proc: %d\n", ret);
-    }
-#endif
-
 #if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER)
   /* Register the LED driver */
 
diff --git a/boards/arm/stm32h5/nucleo-h563zi/src/nucleo-h563zi.h 
b/boards/arm/stm32h5/nucleo-h563zi/src/nucleo-h563zi.h
index 10c8a5061f5..96866ab06f3 100644
--- a/boards/arm/stm32h5/nucleo-h563zi/src/nucleo-h563zi.h
+++ b/boards/arm/stm32h5/nucleo-h563zi/src/nucleo-h563zi.h
@@ -39,18 +39,8 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC             1
 #define HAVE_RTC_DRIVER       1
 
-#if !defined(CONFIG_FS_PROCFS)
-#  undef HAVE_PROC
-#endif
-
-#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)
-#  warning Mountpoints disabled.  No procfs support
-#  undef HAVE_PROC
-#endif
-
 /* Check if we can support the RTC driver */
 
 #if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)
diff --git a/boards/arm/stm32h5/nucleo-h563zi/src/stm32_bringup.c 
b/boards/arm/stm32h5/nucleo-h563zi/src/stm32_bringup.c
index 398526a4a48..7bfe6d24ad6 100644
--- a/boards/arm/stm32h5/nucleo-h563zi/src/stm32_bringup.c
+++ b/boards/arm/stm32h5/nucleo-h563zi/src/stm32_bringup.c
@@ -26,7 +26,6 @@
 
 #include <nuttx/config.h>
 
-#include <sys/mount.h>
 #include <sys/types.h>
 #include <nuttx/debug.h>
 
@@ -74,16 +73,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = mount(NULL, "/proc", "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      ferr("ERROR: Failed to mount procfs at /proc: %d\n", ret);
-    }
-#endif
-
 #if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER)
   /* Register the LED driver */
 
diff --git a/boards/arm/stm32h7/nucleo-h723zg/src/nucleo-h723zg.h 
b/boards/arm/stm32h7/nucleo-h723zg/src/nucleo-h723zg.h
index 4302c7eec2e..12150f10779 100644
--- a/boards/arm/stm32h7/nucleo-h723zg/src/nucleo-h723zg.h
+++ b/boards/arm/stm32h7/nucleo-h723zg/src/nucleo-h723zg.h
@@ -38,7 +38,6 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC            1
 #define HAVE_USBDEV          1
 #define HAVE_USBMONITOR      1
 #define HAVE_MTDCONFIG       1
@@ -87,16 +86,6 @@
 #  define FLASH_BASED_PARAMS
 #endif
 
-/* procfs File System */
-
-#ifdef CONFIG_FS_PROCFS
-#  ifdef CONFIG_NSH_PROC_MOUNTPOINT
-#    define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-#  else
-#    define STM32_PROCFS_MOUNTPOINT "/proc"
-#  endif
-#endif
-
 /* Check if we can support the RTC driver */
 
 #define HAVE_RTC_DRIVER 1
diff --git a/boards/arm/stm32h7/nucleo-h723zg/src/stm32_bringup.c 
b/boards/arm/stm32h7/nucleo-h723zg/src/stm32_bringup.c
index 03d5b7dbfb9..428304e6cf6 100644
--- a/boards/arm/stm32h7/nucleo-h723zg/src/stm32_bringup.c
+++ b/boards/arm/stm32h7/nucleo-h723zg/src/stm32_bringup.c
@@ -147,17 +147,6 @@ int stm32_bringup(void)
   stm32_i2ctool();
 #endif
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR,
-             "ERROR: Failed to mount the PROC filesystem: %d\n",  ret);
-    }
-#endif /* CONFIG_FS_PROCFS */
-
 #ifdef CONFIG_INPUT_BUTTONS
   /* Register the BUTTON driver */
 
diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h 
b/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h
index 2523adbe4a9..f4d9678ae05 100644
--- a/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h
+++ b/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h
@@ -38,7 +38,6 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC            1
 #define HAVE_USBDEV          1
 #define HAVE_USBHOST         1
 #define HAVE_USBMONITOR      1
@@ -95,16 +94,6 @@
 #  define FLASH_BASED_PARAMS
 #endif
 
-/* procfs File System */
-
-#ifdef CONFIG_FS_PROCFS
-#  ifdef CONFIG_NSH_PROC_MOUNTPOINT
-#    define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-#  else
-#    define STM32_PROCFS_MOUNTPOINT "/proc"
-#  endif
-#endif
-
 /* Check if we can support the RTC driver */
 
 #define HAVE_RTC_DRIVER 1
diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c 
b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c
index 392b1427b18..913ab2abe50 100644
--- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c
+++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c
@@ -270,28 +270,6 @@ int stm32_bringup(void)
   stm32_i2ctool();
 #endif
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR,
-             "ERROR: Failed to mount the PROC filesystem: %d\n",  ret);
-    }
-#endif /* CONFIG_FS_PROCFS */
-
-#ifdef CONFIG_FS_TMPFS
-  /* Mount the tmpfs file system */
-
-  ret = nx_mount(NULL, CONFIG_LIBC_TMPDIR, "tmpfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR, "ERROR: Failed to mount tmpfs at %s: %d\n",
-             CONFIG_LIBC_TMPDIR, ret);
-    }
-#endif
-
 #ifdef CONFIG_STM32_ROMFS
   /* Mount the romfs partition */
 
diff --git a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_bringup.c 
b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_bringup.c
index f39257d5a93..b2027f9005f 100644
--- a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_bringup.c
+++ b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_bringup.c
@@ -99,17 +99,6 @@ int stm32_bringup(void)
 
   UNUSED(ret);
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, "/proc", "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR,
-             "ERROR: Failed to mount the PROC filesystem: %d\n",  ret);
-    }
-#endif /* CONFIG_FS_PROCFS */
-
 #if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER)
   /* Register the LED driver */
 
diff --git a/boards/arm/stm32h7/nucleo-h745zi/src/nucleo-h745zi.h 
b/boards/arm/stm32h7/nucleo-h745zi/src/nucleo-h745zi.h
index fa2747b2f48..d6aecdbab69 100644
--- a/boards/arm/stm32h7/nucleo-h745zi/src/nucleo-h745zi.h
+++ b/boards/arm/stm32h7/nucleo-h745zi/src/nucleo-h745zi.h
@@ -38,7 +38,6 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC            1
 #define HAVE_USBDEV          1
 #define HAVE_USBHOST         1
 #define HAVE_USBMONITOR      1
@@ -95,16 +94,6 @@
 #  define FLASH_BASED_PARAMS
 #endif
 
-/* procfs File System */
-
-#ifdef CONFIG_FS_PROCFS
-#  ifdef CONFIG_NSH_PROC_MOUNTPOINT
-#    define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-#  else
-#    define STM32_PROCFS_MOUNTPOINT "/proc"
-#  endif
-#endif
-
 /* Check if we can support the RTC driver */
 
 #define HAVE_RTC_DRIVER 1
diff --git a/boards/arm/stm32h7/nucleo-h745zi/src/stm32_bringup.c 
b/boards/arm/stm32h7/nucleo-h745zi/src/stm32_bringup.c
index d94cc6ffeba..b55fd75ebd5 100644
--- a/boards/arm/stm32h7/nucleo-h745zi/src/stm32_bringup.c
+++ b/boards/arm/stm32h7/nucleo-h745zi/src/stm32_bringup.c
@@ -103,17 +103,6 @@ int stm32_bringup(void)
 
   UNUSED(ret);
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR,
-             "ERROR: Failed to mount the PROC filesystem: %d\n",  ret);
-    }
-#endif /* CONFIG_FS_PROCFS */
-
 #ifdef CONFIG_RPTUN
 #  ifdef CONFIG_ARCH_CHIP_STM32H7_CORTEXM7
   stm32_rptun_init("cm4");
diff --git a/boards/arm/stm32h7/nucleo-h753zi/src/stm32_bringup.c 
b/boards/arm/stm32h7/nucleo-h753zi/src/stm32_bringup.c
index 04a9a3dffc7..c4cc607a87c 100644
--- a/boards/arm/stm32h7/nucleo-h753zi/src/stm32_bringup.c
+++ b/boards/arm/stm32h7/nucleo-h753zi/src/stm32_bringup.c
@@ -93,17 +93,6 @@ int stm32_bringup(void)
 
   UNUSED(ret);
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, "/proc", "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR,
-             "ERROR: Failed to mount the PROC filesystem: %d\n",  ret);
-    }
-#endif /* CONFIG_FS_PROCFS */
-
 #if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER)
   /* Register the LED driver */
 
diff --git a/boards/arm/stm32h7/nucleo-h7s3l8/src/nucleo-h7s3l8.h 
b/boards/arm/stm32h7/nucleo-h7s3l8/src/nucleo-h7s3l8.h
index de83d353fc0..d24d8e9cce5 100644
--- a/boards/arm/stm32h7/nucleo-h7s3l8/src/nucleo-h7s3l8.h
+++ b/boards/arm/stm32h7/nucleo-h7s3l8/src/nucleo-h7s3l8.h
@@ -64,14 +64,6 @@
 
 /* procfs file system */
 
-#ifdef CONFIG_FS_PROCFS
-#  ifdef CONFIG_NSH_PROC_MOUNTPOINT
-#    define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-#  else
-#    define STM32_PROCFS_MOUNTPOINT "/proc"
-#  endif
-#endif
-
 /****************************************************************************
  * Public Function Prototypes
  ****************************************************************************/
diff --git a/boards/arm/stm32h7/nucleo-h7s3l8/src/stm32_bringup.c 
b/boards/arm/stm32h7/nucleo-h7s3l8/src/stm32_bringup.c
index 1def13e400f..b41f253ace3 100644
--- a/boards/arm/stm32h7/nucleo-h7s3l8/src/stm32_bringup.c
+++ b/boards/arm/stm32h7/nucleo-h7s3l8/src/stm32_bringup.c
@@ -71,17 +71,6 @@ int stm32_bringup(void)
 
   UNUSED(ret);
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR,
-             "ERROR: Failed to mount the PROC filesystem: %d\n", ret);
-    }
-#endif /* CONFIG_FS_PROCFS */
-
 #if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER)
   /* Register the LED driver */
 
diff --git a/boards/arm/stm32l1/nucleo-l152re/src/nucleo-l152re.h 
b/boards/arm/stm32l1/nucleo-l152re/src/nucleo-l152re.h
index 7533f5860f9..2a27333cc1f 100644
--- a/boards/arm/stm32l1/nucleo-l152re/src/nucleo-l152re.h
+++ b/boards/arm/stm32l1/nucleo-l152re/src/nucleo-l152re.h
@@ -110,15 +110,6 @@ struct lcd_dev_s *stm32_ili93418b_initialize(void);
 int stm32_spisd_initialize(int port, int minor);
 #endif
 
-/* procfs File System */
-
-#ifdef CONFIG_FS_PROCFS
-    #ifdef CONFIG_NSH_PROC_MOUNTPOINT
-    #define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-    #else
-    #define STM32_PROCFS_MOUNTPOINT "/proc"
-    #endif
-#endif /* CONFIG_FS_PROCFS */
 #endif /* __BOARDS_ARM_STM32_NUCLEO_L152RE_SRC_NUCLEO_L152RE_H */
 
 /****************************************************************************
diff --git a/boards/arm/stm32l1/nucleo-l152re/src/stm32_boot.c 
b/boards/arm/stm32l1/nucleo-l152re/src/stm32_boot.c
index 80892d840ed..ef9740ea9c4 100644
--- a/boards/arm/stm32l1/nucleo-l152re/src/stm32_boot.c
+++ b/boards/arm/stm32l1/nucleo-l152re/src/stm32_boot.c
@@ -179,17 +179,6 @@ void board_late_initialize(void)
     }
 #endif
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(0, STM32_PROCFS_MOUNTPOINT, "procfs", 0, 0);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n",
-             STM32_PROCFS_MOUNTPOINT, ret);
-    }
-#endif
-
 #ifdef CONFIG_MMCSD_SPI
 
   /* Initialize the MMC/SD SPI driver (SPI1 is used) */
diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/nucleo-l432kc.h 
b/boards/arm/stm32l4/nucleo-l432kc/src/nucleo-l432kc.h
index d9165452be7..8158cf82fb1 100644
--- a/boards/arm/stm32l4/nucleo-l432kc/src/nucleo-l432kc.h
+++ b/boards/arm/stm32l4/nucleo-l432kc/src/nucleo-l432kc.h
@@ -40,19 +40,9 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC             1
 #define HAVE_RTC_DRIVER       1
 #define HAVE_AT45DB           1
 
-#if !defined(CONFIG_FS_PROCFS)
-#  undef HAVE_PROC
-#endif
-
-#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)
-#  warning Mountpoints disabled.  No procfs support
-#  undef HAVE_PROC
-#endif
-
 /* Check if we can support the RTC driver */
 
 #if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)
diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_bringup.c 
b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_bringup.c
index bb23cc493ee..dd99dab8afd 100644
--- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_bringup.c
+++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_bringup.c
@@ -105,20 +105,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef HAVE_PROC
-  /* Mount the proc filesystem */
-
-  syslog(LOG_INFO, "Mounting procfs to /proc\n");
-
-  ret = nx_mount(NULL, CONFIG_NSH_PROC_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR, "ERROR: Failed to mount the PROC filesystem: %d\n",
-             ret);
-      return ret;
-    }
-#endif
-
 #if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER)
   /* Register the LED driver */
 
diff --git a/boards/arm/stm32l4/nucleo-l452re/src/nucleo-l452re.h 
b/boards/arm/stm32l4/nucleo-l452re/src/nucleo-l452re.h
index 50a629b7677..ec7a0f798c1 100644
--- a/boards/arm/stm32l4/nucleo-l452re/src/nucleo-l452re.h
+++ b/boards/arm/stm32l4/nucleo-l452re/src/nucleo-l452re.h
@@ -39,19 +39,9 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC             1
 #define HAVE_RTC_DRIVER       1
 #define HAVE_MMCSD 1
 
-#if !defined(CONFIG_FS_PROCFS)
-#  undef HAVE_PROC
-#endif
-
-#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)
-#  warning Mountpoints disabled.  No procfs support
-#  undef HAVE_PROC
-#endif
-
 /* Check if we can support the RTC driver */
 
 #if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)
diff --git a/boards/arm/stm32l4/nucleo-l452re/src/stm32_bringup.c 
b/boards/arm/stm32l4/nucleo-l452re/src/stm32_bringup.c
index 8616fe51e62..01d59511480 100644
--- a/boards/arm/stm32l4/nucleo-l452re/src/stm32_bringup.c
+++ b/boards/arm/stm32l4/nucleo-l452re/src/stm32_bringup.c
@@ -82,16 +82,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, "/proc", "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      ferr("ERROR: Failed to mount procfs at /proc: %d\n", ret);
-    }
-#endif
-
 #ifdef CONFIG_INPUT_BUTTONS
 #ifdef CONFIG_INPUT_BUTTONS_LOWER
   iinfo("Initializing button driver\n");
diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/nucleo-l476rg.h 
b/boards/arm/stm32l4/nucleo-l476rg/src/nucleo-l476rg.h
index 1a566a24ea1..902e07de319 100644
--- a/boards/arm/stm32l4/nucleo-l476rg/src/nucleo-l476rg.h
+++ b/boards/arm/stm32l4/nucleo-l476rg/src/nucleo-l476rg.h
@@ -40,21 +40,11 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC           1
 #define HAVE_RTC_DRIVER     1
 
 #define HAVE_MMCSD_SPI      1
 #define HAVE_MMCSD_SDIO     1
 
-#if !defined(CONFIG_FS_PROCFS)
-#  undef HAVE_PROC
-#endif
-
-#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)
-#  warning Mountpoints disabled.  No procfs support
-#  undef HAVE_PROC
-#endif
-
 /* Check if we can support the RTC driver */
 
 #if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)
diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_bringup.c 
b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_bringup.c
index a05231db885..e3e8fcee608 100644
--- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_bringup.c
+++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_bringup.c
@@ -173,20 +173,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef HAVE_PROC
-  /* Mount the proc filesystem */
-
-  syslog(LOG_INFO, "Mounting procfs to /proc\n");
-
-  ret = nx_mount(NULL, CONFIG_NSH_PROC_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR,
-             "ERROR: Failed to mount the PROC filesystem: %d\n", ret);
-      return ret;
-    }
-#endif
-
 #ifdef HAVE_RTC_DRIVER
   /* Instantiate the STM32L4 lower-half RTC driver */
 
diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/nucleo-144.h 
b/boards/arm/stm32l4/nucleo-l496zg/src/nucleo-144.h
index f13694a49e5..4d90765abf9 100644
--- a/boards/arm/stm32l4/nucleo-l496zg/src/nucleo-144.h
+++ b/boards/arm/stm32l4/nucleo-l496zg/src/nucleo-144.h
@@ -40,16 +40,6 @@
 
 /* Configuration ************************************************************/
 
-/* procfs File System */
-
-#ifdef CONFIG_FS_PROCFS
-#  ifdef CONFIG_NSH_PROC_MOUNTPOINT
-#    define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
-#  else
-#    define STM32_PROCFS_MOUNTPOINT "/proc"
-#  endif
-#endif
-
 /* Nucleo-144 GPIO Pin Definitions ******************************************/
 
 /* LED
diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_bringup.c 
b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_bringup.c
index 05bd260b69a..e513261b52a 100644
--- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_bringup.c
+++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_bringup.c
@@ -82,17 +82,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = nx_mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n",
-             STM32_PROCFS_MOUNTPOINT, ret);
-    }
-#endif
-
 #if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER)
   /* Register the LED driver */
 
diff --git a/boards/arm/stm32l5/nucleo-l552ze/src/nucleo-l552ze.h 
b/boards/arm/stm32l5/nucleo-l552ze/src/nucleo-l552ze.h
index ac322b4f505..3114ad96e44 100644
--- a/boards/arm/stm32l5/nucleo-l552ze/src/nucleo-l552ze.h
+++ b/boards/arm/stm32l5/nucleo-l552ze/src/nucleo-l552ze.h
@@ -39,18 +39,8 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC             1
 #define HAVE_RTC_DRIVER       1
 
-#if !defined(CONFIG_FS_PROCFS)
-#  undef HAVE_PROC
-#endif
-
-#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)
-#  warning Mountpoints disabled.  No procfs support
-#  undef HAVE_PROC
-#endif
-
 /* Check if we can support the RTC driver */
 
 #if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)
diff --git a/boards/arm/stm32l5/nucleo-l552ze/src/stm32_bringup.c 
b/boards/arm/stm32l5/nucleo-l552ze/src/stm32_bringup.c
index 40333ead5e4..b9066cc586b 100644
--- a/boards/arm/stm32l5/nucleo-l552ze/src/stm32_bringup.c
+++ b/boards/arm/stm32l5/nucleo-l552ze/src/stm32_bringup.c
@@ -26,7 +26,6 @@
 
 #include <nuttx/config.h>
 
-#include <sys/mount.h>
 #include <sys/types.h>
 #include <nuttx/debug.h>
 
@@ -72,16 +71,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = mount(NULL, "/proc", "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      ferr("ERROR: Failed to mount procfs at /proc: %d\n", ret);
-    }
-#endif
-
 #if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER)
   /* Register the LED driver */
 
diff --git a/boards/arm/stm32u3/nucleo-u3c5zi-q/src/stm32_bringup.c 
b/boards/arm/stm32u3/nucleo-u3c5zi-q/src/stm32_bringup.c
index 3058defac4b..f5166e166d8 100644
--- a/boards/arm/stm32u3/nucleo-u3c5zi-q/src/stm32_bringup.c
+++ b/boards/arm/stm32u3/nucleo-u3c5zi-q/src/stm32_bringup.c
@@ -26,10 +26,9 @@
 
 #include <nuttx/config.h>
 
+#include <sys/types.h>
 #include <syslog.h>
 
-#include <sys/mount.h>
-
 #include <nuttx/board.h>
 
 #include "board_common.h"
@@ -51,13 +50,5 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  ret = mount(NULL, "/proc", "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      return ret;
-    }
-#endif
-
   return OK;
 }
diff --git a/boards/arm/stm32u5/nucleo-u5a5zj-q/src/nucleo-u5a5zj-q.h 
b/boards/arm/stm32u5/nucleo-u5a5zj-q/src/nucleo-u5a5zj-q.h
index 2fa799df2c3..45538ae3cf1 100644
--- a/boards/arm/stm32u5/nucleo-u5a5zj-q/src/nucleo-u5a5zj-q.h
+++ b/boards/arm/stm32u5/nucleo-u5a5zj-q/src/nucleo-u5a5zj-q.h
@@ -39,18 +39,8 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC             1
 #define HAVE_RTC_DRIVER       1
 
-#if !defined(CONFIG_FS_PROCFS)
-#  undef HAVE_PROC
-#endif
-
-#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)
-#  warning Mountpoints disabled.  No procfs support
-#  undef HAVE_PROC
-#endif
-
 /* Check if we can support the RTC driver */
 
 #if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)
diff --git a/boards/arm/stm32u5/nucleo-u5a5zj-q/src/stm32_bringup.c 
b/boards/arm/stm32u5/nucleo-u5a5zj-q/src/stm32_bringup.c
index 038a58b5460..6cb3990df16 100644
--- a/boards/arm/stm32u5/nucleo-u5a5zj-q/src/stm32_bringup.c
+++ b/boards/arm/stm32u5/nucleo-u5a5zj-q/src/stm32_bringup.c
@@ -26,7 +26,6 @@
 
 #include <nuttx/config.h>
 
-#include <sys/mount.h>
 #include <sys/types.h>
 #include <nuttx/debug.h>
 
@@ -102,16 +101,6 @@ int stm32_bringup(void)
              ret);
     }
 
-#ifdef CONFIG_FS_PROCFS
-  /* Mount the procfs file system */
-
-  ret = mount(NULL, "/proc", "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      ferr("ERROR: Failed to mount procfs at /proc: %d\n", ret);
-    }
-#endif
-
 #if defined(CONFIG_I2C)
   i2c1_m = stm32_i2cbus_initialize(1);
   if (i2c1_m == NULL)
diff --git a/boards/arm/stm32wb/nucleo-wb55rg/src/nucleo-wb55rg.h 
b/boards/arm/stm32wb/nucleo-wb55rg/src/nucleo-wb55rg.h
index 3a3dc06255c..8ce3c9b7e1b 100644
--- a/boards/arm/stm32wb/nucleo-wb55rg/src/nucleo-wb55rg.h
+++ b/boards/arm/stm32wb/nucleo-wb55rg/src/nucleo-wb55rg.h
@@ -39,18 +39,8 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC             1
 #define HAVE_RTC_DRIVER       1
 
-#if !defined(CONFIG_FS_PROCFS)
-#  undef HAVE_PROC
-#endif
-
-#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)
-#  warning Mountpoints disabled.  No procfs support
-#  undef HAVE_PROC
-#endif
-
 /* Check if we can support the RTC driver */
 
 #if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)
diff --git a/boards/arm/stm32wb/nucleo-wb55rg/src/stm32_boot.c 
b/boards/arm/stm32wb/nucleo-wb55rg/src/stm32_boot.c
index 5bf0f180286..187732b357a 100644
--- a/boards/arm/stm32wb/nucleo-wb55rg/src/stm32_boot.c
+++ b/boards/arm/stm32wb/nucleo-wb55rg/src/stm32_boot.c
@@ -29,7 +29,6 @@
 #include <nuttx/debug.h>
 
 #include <sys/types.h>
-#include <sys/mount.h>
 #include <stdio.h>
 #include <syslog.h>
 #include <errno.h>
@@ -123,21 +122,6 @@ void board_late_initialize(void)
              ret);
     }
 
-#ifdef HAVE_PROC
-  /* Mount the proc filesystem */
-
-  syslog(LOG_INFO, "Mounting procfs to /proc\n");
-
-  ret = nx_mount(NULL, CONFIG_NSH_PROC_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR,
-             "ERROR: Failed to mount the PROC filesystem: %d (%d)\n",
-             ret, errno);
-      return;
-    }
-#endif
-
 #ifdef CONFIG_RTC_DRIVER
   /* Instantiate the STM32WB lower-half RTC driver */
 
diff --git a/boards/arm/stm32wl5/nucleo-wl55jc/src/nucleo-wl55jc.h 
b/boards/arm/stm32wl5/nucleo-wl55jc/src/nucleo-wl55jc.h
index 391e3847af7..15a361c683f 100644
--- a/boards/arm/stm32wl5/nucleo-wl55jc/src/nucleo-wl55jc.h
+++ b/boards/arm/stm32wl5/nucleo-wl55jc/src/nucleo-wl55jc.h
@@ -39,17 +39,6 @@
 
 /* Configuration ************************************************************/
 
-#define HAVE_PROC             1
-
-#if !defined(CONFIG_FS_PROCFS)
-#  undef HAVE_PROC
-#endif
-
-#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)
-#  warning Mountpoints disabled.  No procfs support
-#  undef HAVE_PROC
-#endif
-
 #if defined(CONFIG_LCD_SSD1680)
 
 /* There is no E-ink display on a board.
diff --git a/boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_boot.c 
b/boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_boot.c
index d76dadb4caa..84075f8f711 100644
--- a/boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_boot.c
+++ b/boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_boot.c
@@ -134,20 +134,6 @@ void board_late_initialize(void)
     }
 #endif
 
-#ifdef HAVE_PROC
-  /* Mount the proc filesystem */
-
-  syslog(LOG_INFO, "Mounting procfs to /proc\n");
-
-  ret = nx_mount(NULL, CONFIG_NSH_PROC_MOUNTPOINT, "procfs", 0, NULL);
-  if (ret < 0)
-    {
-      syslog(LOG_ERR, "ERROR: Failed to mount the PROC filesystem: %d\n",
-             ret);
-      return;
-    }
-#endif
-
 #if defined(CONFIG_USERLED_LOWER)
   /* Register the LED driver */
 

Reply via email to