Filesystem in RTEMS

xuelin.tian at qkmtech.com xuelin.tian at qkmtech.com
Mon Oct 23 09:46:51 UTC 2017


Wow, that is so cool.
I may not have enough time to do the porting :-)



Best wishes,
xuelin.tian at qkmtech.com
 
From: jameszxj
Date: 2017-10-23 17:26
To: xuelin.tian at qkmtech.com
CC: rtems-users at rtems.org
Subject: Re: Re: Filesystem in RTEMS
------------------ Original ------------------
From:  "xuelin.tian at qkmtech.com";<xuelin.tian at qkmtech.com>;
Date:  Mon, Oct 23, 2017 03:30 PM
To:  "jameszxj"<jameszxj at gmail.com>;"users at rtems.org"<users at rtems.org>;
Subject:  Re: Re: Filesystem in RTEMS

> I use JFFS2 on Xilinx Zedboard, QSPI. 

> The flash I use has a hybrid combination of 4KB and 64KB sectors. I just ignored the 4KB sectors, and use 64KB sectors only. 
> So, the size of block is 64KB same the size of sector in my case.

> I think it may be related to my device drivers... but, I am not sure about this. 

> What is your device driver in your case? Using QSPI handlers from Xilinx BSP directly?

we port QSPI Controller driver and spi nor flash driver from linux.


Best wishes,
xuelin.tian at qkmtech.com
 
From: jameszxj
Date: 2017-10-23 15:13
To: rtems-users at rtems.org
Subject: Re: Filesystem in RTEMS
I have encountered a problem like this. 
I set wrong block size.

Maybe you can try to change the block size.

I use jffs2 on xilinx zc7020 board, QSPI
------------------ Original ------------------
From:  "Sebastian Huber";<sebastian.huber at embedded-brains.de>;
Date:  Mon, Oct 23, 2017 01:07 PM
To:  "xuelin.tian at qkmtech.com"<xuelin.tian at qkmtech.com>;
Cc:  "users at rtems.org"<users at rtems.org>; 
Subject:  Re: Filesystem in RTEMS

On 22/10/17 12:00, xuelin.tian at qkmtech.com wrote:
> I have mounted JFFS2 successfully, according to the return value.
> Yes, it takes some time to do the mounting work.
>
> But, when I downloaded a file like "test.txt" into flash via FTP and 
> restarted the system, error came up.

Unmount the file system before you restart the system.

>
> <5>JFFS2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01FC0028: 0xE5DF instead
> <5>JFFS2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01FC002C: 0xE5DF instead
> <5>JFFS2: Further such events for this erase block will not be printed
> <5>JFFS2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01FD0000: 0x000C instead
> <5>JFFS2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01FD0004: 0xB0B1 instead
> <5>JFFS2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01FD0008: 0x0054 instead
> <5>JFFS2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
> <5>JFFS2: empty_blocks 0, bad_blocks 0, c->nr_blocks 510
> mount failed.
>
> Everything worked well, after erasing the whole flash. But errors came 
> up without erasing it.

Make sure your flash driver works correctly. It must support bytewise 
programming.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

_______________________________________________
users mailing list
users at rtems.org
http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20171023/93e5020d/attachment-0002.html>


More information about the users mailing list