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 <marco.casaroli@gmail.com>
This commit is contained in:
Marco Casaroli 2026-07-25 13:07:51 +02:00 committed by Alan C. Assis
parent a104fb8047
commit ba826dd738

View file

@ -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