From 2d119f5624e6e713d7cf808338e1c34ddc4e8797 Mon Sep 17 00:00:00 2001 From: Jacek Maksymowicz Date: Thu, 26 Oct 2023 13:39:37 +0200 Subject: [PATCH] zynq7000-sdcard: add ext2 filesystem RTOS-630 --- storage/zynq7000-sdcard/Makefile | 2 +- storage/zynq7000-sdcard/sdstorage_srv.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/storage/zynq7000-sdcard/Makefile b/storage/zynq7000-sdcard/Makefile index 979a2b888..c306e9cab 100644 --- a/storage/zynq7000-sdcard/Makefile +++ b/storage/zynq7000-sdcard/Makefile @@ -16,6 +16,6 @@ include $(static-lib.mk) NAME := zynq7000-sdcard LOCAL_SRCS := sdstorage_dev.c sdstorage_srv.c DEP_LIBS := libmbr libsdcard-zynq -LIBS := libstorage libcache libmtd libjffs2 +LIBS := libstorage libcache libmtd libjffs2 libext2 include $(binary.mk) diff --git a/storage/zynq7000-sdcard/sdstorage_srv.c b/storage/zynq7000-sdcard/sdstorage_srv.c index 7fcc64bbc..6552ffef1 100644 --- a/storage/zynq7000-sdcard/sdstorage_srv.c +++ b/storage/zynq7000-sdcard/sdstorage_srv.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "sdstorage_dev.h" @@ -325,6 +326,12 @@ int main(int argc, char *argv[]) return EXIT_FAILURE; } + ret = storage_registerfs("ext2", libext2_storage_mount, libext2_storage_umount); + if (ret < 0) { + LOG_ERROR("failed to register ext2 filesystem, err: %d", ret); + return EXIT_FAILURE; + } + ret = sdstorage_runPresenceDetection(); if (ret < 0) { LOG_ERROR("failed to start presence detection thread");