From d24ce35e1c448c1caefd701ae5a3dfe61c4ddca3 Mon Sep 17 00:00:00 2001 From: Ivan Ucherdzhiev Date: Tue, 24 Apr 2018 07:04:21 -0600 Subject: [PATCH] configs/imxrt1050-evk: Add procfs auto-mount support in imxrt_bringup.c. --- configs/imxrt1050-evk/src/imxrt_bringup.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configs/imxrt1050-evk/src/imxrt_bringup.c b/configs/imxrt1050-evk/src/imxrt_bringup.c index b749dec002..987a90042a 100644 --- a/configs/imxrt1050-evk/src/imxrt_bringup.c +++ b/configs/imxrt1050-evk/src/imxrt_bringup.c @@ -39,6 +39,10 @@ #include +#include +#include +#include + #include "imxrt1050-evk.h" /**************************************************************************** @@ -70,6 +74,16 @@ int imxrt_bringup(void) * capabilities. */ +#ifdef CONFIG_FS_PROCFS + /* Mount the procfs file system */ + + ret = mount(NULL, "/proc", "procfs", 0, NULL); + if (ret < 0) + { + syslog(LOG_ERR, "ERROR: Failed to mount procfs at /proc: %d\n", ret); + } +#endif + UNUSED(ret); return OK; }