I'm trying SWUpdate out on my RaspberryPi 2 by following this guide but I'm getting stuck when trying to 'make' as it from core/swupdat.c loads include/flash.h which in turn depends on libmtd.h and libubi.h.
~ make
CC core/swupdate.o
In file included from core/swupdate.c:36:
include/flash.h:13:10: fatal error: libmtd.h: No such file or directory
#include <libmtd.h>
^~~~~~~~~
compilation terminated
These two header-files are missing on my system and can't find any information about them, so I don't know what is missing. If there some package I need to apt-get or that it is impossible to do on my old RaspberryPi.
Do anyone know what these header-files are and if can I find them in some package somewhere?