mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
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:
parent
a104fb8047
commit
ba826dd738
1 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue