From ba826dd7380307cbf24a80602129477526eb8e78 Mon Sep 17 00:00:00 2001 From: Marco Casaroli Date: Sat, 25 Jul 2026 13:07:51 +0200 Subject: [PATCH] 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 --- 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