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 356bcc2af..66bf9388f 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" @@ -324,6 +325,12 @@ int main(int argc, char *argv[]) exit(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); + exit(EXIT_FAILURE); + } + ret = sdstorage_runPresenceDetection(); if (ret < 0) { LOG_ERROR("failed to start presence detection thread");