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:
parent
0491e4db00
commit
2aab12ff56
1 changed files with 11 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue