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

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

commit ba826dd7380307cbf24a80602129477526eb8e78
Author: Marco Casaroli <[email protected]>
AuthorDate: Sat Jul 25 13:07:51 2026 +0200

    boards/rp23xx: Mount xipfs on the flash MTD device.
    
    The flash MTD device answers BIOC_XIPBASE, which is what xipfs needs to
    serve mappings straight out of the memory mapped QSPI flash.  Mount it at
    /mnt/xipfs when both are configured, formatting on first boot, so a board
    comes up with somewhere to download and run a module from.
    
    Assisted-by: Claude Code:claude-opus-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 boards/arm/rp23xx/common/src/rp23xx_common_bringup.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/boards/arm/rp23xx/common/src/rp23xx_common_bringup.c 
b/boards/arm/rp23xx/common/src/rp23xx_common_bringup.c
index 0130f633b5c..06fd98571e7 100644
--- a/boards/arm/rp23xx/common/src/rp23xx_common_bringup.c
+++ b/boards/arm/rp23xx/common/src/rp23xx_common_bringup.c
@@ -438,6 +438,18 @@ int rp23xx_common_bringup(void)
             {
               serr("ERROR: Failed to register /dev/rpflash: %d\n", ret);
             }
+#ifdef CONFIG_FS_XIPFS
+          else
+            {
+              ret = nx_mount("/dev/rpflash", "/mnt/xipfs", "xipfs", 0,
+                             "autoformat");
+              if (ret < 0)
+                {
+                  serr("ERROR: Failed to mount xipfs at /mnt/xipfs: %d\n",
+                       ret);
+                }
+            }
+#endif
         }
     }
 #endif

Reply via email to