<div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "xuelin.tian@qkmtech.com";<xuelin.tian@qkmtech.com>;</div><div><b>Date: </b> Mon, Oct 23, 2017 03:30 PM</div><div><b>To: </b> "jameszxj"<jameszxj@gmail.com>;"users@rtems.org"<users@rtems.org>;<wbr></div><div></div><div><b>Subject: </b> Re: Re: Filesystem in RTEMS</div></div><div><br></div>
<style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.foxdiv20171023152434758452 { }body { font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }</style>
<div><span></span>> I use JFFS2 on Xilinx Zedboard, QSPI. </div><div><br></div><div>> The flash I use has a hybrid combination of 4KB and 64KB sectors. I just ignored the 4KB sectors, and use 64KB sectors only. </div><div>> So, the size of block is 64KB same the size of sector in my case.</div><div><br></div><div>> I think it may be related to my device drivers... but, I am not sure about this. </div><div><br></div><div>> What is your device driver in your case? Using QSPI handlers from Xilinx BSP directly?</div>
<div><br>we port QSPI Controller driver and spi nor flash driver from linux.<br></div><hr style="width: 210px; height: 1px;" size="1" align="left" color="#b5c4df">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>Best wishes,</div><div>xuelin.tian@qkmtech.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:jameszxj@gmail.com">jameszxj</a></div><div><b>Date:</b> 2017-10-23 15:13</div><div><b>To:</b> <a href="mailto:users@rtems.org">rtems-users@rtems.org</a></div><div><b>Subject:</b> Re: Filesystem in RTEMS</div></div></div><div><div class="FoxDiv20171023152434758452">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></div></div></blockquote></div>