I have encountered a problem like this. <br>I set wrong block size.<br><br>Maybe you can try to change the block size.<br><div><div><br>I use jffs2 on xilinx zc7020 board, QSPI<br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Sebastian Huber";<sebastian.huber@embedded-brains.de>;</div><div><b>Date: </b> Mon, Oct 23, 2017 01:07 PM</div><div><b>To: </b> "xuelin.tian@qkmtech.com"<xuelin.tian@qkmtech.com>;<wbr></div><div><b>Cc: </b> "users@rtems.org"<users@rtems.org>; <wbr></div><div><b>Subject: </b> Re: Filesystem in RTEMS</div></div><div><br></div>On 22/10/17 12:00, xuelin.tian@qkmtech.com wrote:<br>> I have mounted JFFS2 successfully, according to the return value.<br>> Yes, it takes some time to do the mounting work.<br>><br>> But, when I downloaded a file like "test.txt" into flash via FTP and <br>> restarted the system, error came up.<br><br>Unmount the file system before you restart the system.<br><br>><br>> <5>JFFS2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01FC0028: 0xE5DF instead<br>> <5>JFFS2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01FC002C: 0xE5DF instead<br>> <5>JFFS2: Further such events for this erase block will not be printed<br>> <5>JFFS2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01FD0000: 0x000C instead<br>> <5>JFFS2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01FD0004: 0xB0B1 instead<br>> <5>JFFS2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01FD0008: 0x0054 instead<br>> <5>JFFS2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes<br>> <5>JFFS2: empty_blocks 0, bad_blocks 0, c->nr_blocks 510<br>> mount failed.<br>><br>> Everything worked well, after erasing the whole flash. But errors came <br>> up without erasing it.<br><br>Make sure your flash driver works correctly. It must support bytewise <br>programming.<br><br>-- <br>Sebastian Huber, embedded brains GmbH<br><br>Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>Phone   : +49 89 189 47 41-16<br>Fax     : +49 89 189 47 41-09<br>E-Mail  : sebastian.huber@embedded-brains.de<br>PGP     : Public key available on request.<br><br>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br><br>_______________________________________________<br>users mailing list<br>users@rtems.org<br>http://lists.rtems.org/mailman/listinfo/users</div>