From 4cde8dab5af1fe35de46e3cd1fd70d038ef3c18f Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Mon, 15 Mar 2021 15:53:12 -0300 Subject: [PATCH] boards/esp32-wrover-kit: Mount tmpfs on bring up --- .../xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c b/boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c index 8c37602d38b..7d2d05a1a30 100644 --- a/boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c +++ b/boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c @@ -143,6 +143,17 @@ int esp32_bringup(void) } #endif +#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_MMCSD ret = esp32_mmcsd_initialize(0); if (ret < 0)