#include <sys/stat.h>
#include <sys/reboot.h>
#include <linux/reboot.h>
-#include "mtd-api.h"
+#include <mtd/mtd-user.h>
#include "fis.h"
#include "mtd.h"
/* got an EOF marker - this is the place to add some jffs2 data */
skip = mtd_replace_jffs2(mtd, fd, e, jffs2file);
+ /* don't add it again */
+ jffs2file = NULL;
+
w += skip;
e += skip;
skip -= buflen;
jffs2dir = optarg;
break;
case 'o':
- if (!mtd_fixtrx) {
- fprintf(stderr, "-o: Only for brcm47xx/brcm63xx\n");
+ if (!mtd_fixtrx) {
+ fprintf(stderr, "-o: is not available on this platform\n");
usage();
}
errno = 0;