boards/imx6: Add support for mounting tmpfs file system

Implement functionality to mount the tmpfs file system during the bring-up process.
* Added conditional compilation for tmpfs support
* Included error logging for mount failures

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2025-03-11 17:56:41 +08:00 committed by Alan C. Assis
parent 0491e4db00
commit 2aab12ff56

View file

@ -49,6 +49,17 @@ int imx_bringup(void)
{
int ret;
#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_FS_PROCFS
/* Mount the procfs file system */