Re: Filesystem in RTEMS

2017-10-24 Thread Russell Haley
--joel >> >> > Thanks Joel! > > Russ > >> >>> Thanks, >>> Russ >>> >>> Sent from my BlackBerry 10 smartphone on the Virgin Mobile network. >>> *From: *jameszxj >>> *Sent: *Monday, October 23

Re: Filesystem in RTEMS

2017-10-24 Thread Russell Haley
ob/master/LICENSE.JFFS2 > > and read the last two paragraphs. > > --joel > > Thanks Joel! Russ > >> Thanks, >> Russ >> >> Sent from my BlackBerry 10 smartphone on the Virgin Mobile network. >> *From: *jameszxj >> *Sent: *Monday, October 23, 2017 12:

Re: Filesystem in RTEMS

2017-10-23 Thread Joel Sherrill
rtphone on the Virgin Mobile network. > *From: *jameszxj > *Sent: *Monday, October 23, 2017 12:13 AM > *To: *rtems-us...@rtems.org > *Subject: *Re: Filesystem in RTEMS > > I have encountered a problem like this. > I set wrong block size. > > Maybe you can try to chan

Re: Filesystem in RTEMS

2017-10-23 Thread Russell Haley
Hi,Just wanted to ask about licensing. ‎Jffs2 is expressly GPL code. My understanding means that the entirety of your work now becomes GPL licensed because everything is statically linked together in RTEMS. Is thi

Re: Re: Filesystem in RTEMS

2017-10-23 Thread xuelin.t...@qkmtech.com
7-10-23 17:44 To: xuelin.t...@qkmtech.com; Chris Johns CC: users@rtems.org Subject: Re: Filesystem in RTEMS On 23/10/17 11:40, Sebastian Huber wrote: > > > On 23/10/17 11:33, xuelin.t...@qkmtech.com wrote: >> static int flash_write( >> rtems_jffs2_flash_control *super, >>

Re: Re: Filesystem in RTEMS

2017-10-23 Thread xuelin.t...@qkmtech.com
Wow, that is so cool. I may not have enough time to do the porting :-) Best wishes, xuelin.t...@qkmtech.com From: jameszxj Date: 2017-10-23 17:26 To: xuelin.t...@qkmtech.com CC: rtems-us...@rtems.org Subject: Re: Re: Filesystem in RTEMS -- Original -- From

Re: Filesystem in RTEMS

2017-10-23 Thread Sebastian Huber
On 23/10/17 11:40, Sebastian Huber wrote: On 23/10/17 11:33, xuelin.t...@qkmtech.com wrote: static int flash_write( rtems_jffs2_flash_control *super, uint32_t offset, unsigned char *buffer, size_t length) { flash_control *self = get_flash_control(super); XQspiPs *flash

Re: Filesystem in RTEMS

2017-10-23 Thread Sebastian Huber
On 23/10/17 11:33, xuelin.t...@qkmtech.com wrote: static int flash_write( rtems_jffs2_flash_control *super, uint32_t offset, unsigned char *buffer, size_t length) { flash_control *self = get_flash_control(super); XQspiPs *flash_handle = self->flash_instance; uint32_

Re: Re: Filesystem in RTEMS

2017-10-23 Thread xuelin.t...@qkmtech.com
rtems.org Subject: Re: Filesystem in RTEMS On 23/10/2017 12:53, xuelin.t...@qkmtech.com wrote: > Yes, Everything is going well, if I erase the flash before use. > > But, I need to store some files into flash, and reuse them when I restart my > system. I can not erase the flash every time.

Re: Re: Filesystem in RTEMS

2017-10-23 Thread jameszxj
-- Original -- From: "xuelin.t...@qkmtech.com";; Date: Mon, Oct 23, 2017 03:30 PM To: "jameszxj";"users@rtems.org"; Subject: Re: Re: Filesystem in RTEMS > I use JFFS2 on Xilinx Zedboard, QSPI. > The flash I use has

Re: Re: Filesystem in RTEMS

2017-10-23 Thread xuelin.t...@qkmtech.com
sure about this. What is your device driver in your case? Using QSPI handlers from Xilinx BSP directly? Best wishes, xuelin.t...@qkmtech.com From: jameszxj Date: 2017-10-23 15:13 To: rtems-us...@rtems.org Subject: Re: Filesystem in RTEMS I have encountered a problem like this. I set wrong

Re: Filesystem in RTEMS

2017-10-23 Thread jameszxj
kmtech.com"; Cc: "users@rtems.org"; Subject: Re: Filesystem in RTEMS On 22/10/17 12:00, xuelin.t...@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 f

Re: Filesystem in RTEMS

2017-10-22 Thread Sebastian Huber
On 22/10/17 12:00, xuelin.t...@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 syste

Re: Filesystem in RTEMS

2017-10-22 Thread Chris Johns
On 23/10/2017 12:53, xuelin.t...@qkmtech.com wrote: > Yes, Everything is going well, if I erase the flash before use. > > But, I need to store some files into flash, and reuse them when I restart my > system. I can not erase the flash every time. Oh I see what you are saying. I am using the JFF

Re: Re: Filesystem in RTEMS

2017-10-22 Thread xuelin.t...@qkmtech.com
...@qkmtech.com; Sebastian Huber CC: users@rtems.org Subject: Re: Filesystem in RTEMS On 22/10/2017 21:00, xuelin.t...@qkmtech.com wrote: > Everything worked well, after erasing the whole flash. But errors came up > without erasing it. You need to erase the flash before use. JFFS2 cannot tell the fla

Re: Filesystem in RTEMS

2017-10-22 Thread Chris Johns
On 22/10/2017 21:00, xuelin.t...@qkmtech.com wrote: > Everything worked well, after erasing the whole flash. But errors came up > without erasing it. You need to erase the flash before use. JFFS2 cannot tell the flash was unused and available for use so it has to assume it has become corrupted an

Re: Re: Filesystem in RTEMS

2017-10-22 Thread xuelin.t...@qkmtech.com
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. Best wishes, xuelin.t...@qkmtech.com From: xuelin.tian Date: 2017-10-21 22:07 To: Sebastian H

Re: Filesystem in RTEMS

2017-10-21 Thread xuelin.tian
om: "Sebastian Huber"; Date: Sat, Oct 21, 2017 06:52 PM To: "xuelin tian"; Cc: "users"; Subject: Re: Filesystem in RTEMS - Am 21. Okt 2017 um 2:17 schrieb xuelin tian xuelin.t...@qkmtech.com: > I followed the example (testsuites/fstests/jffs2_s

Re: Filesystem in RTEMS

2017-10-21 Thread Sebastian Huber
- Am 21. Okt 2017 um 2:17 schrieb xuelin tian xuelin.t...@qkmtech.com: > I followed the example (testsuites/fstests/jffs2_support/fs_support.c), and > some > error came up, like > "undefined reference to rtems_jffs2_initialize", > "undefined reference to rtems_jffs2_compressor_zlib_compress",

Re: Filesystem in RTEMS

2017-10-20 Thread Chris Johns
On 21/10/2017 14:58, xuelin.t...@qkmtech.com wrote: >>> I also add this library - >>> "additional_flags += > ['-L/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/xilinx_zynq_zedboard/lib > -ljffs2']" > >>Link order? > > Yeah, I google it, and it says that this kind of error is related to linking

Re: Re: Filesystem in RTEMS

2017-10-20 Thread xuelin.t...@qkmtech.com
return... I can not debug the mount process, since it is a system call. Best wishes, xuelin.t...@qkmtech.com From: Chris Johns Date: 2017-10-21 11:40 To: xuelin.t...@qkmtech.com; Sebastian Huber; users@rtems.org Subject: Re: Filesystem in RTEMS On 21/10/2017 13:13, xuelin.t...@qkmtech.c

Re: Filesystem in RTEMS

2017-10-20 Thread Chris Johns
On 21/10/2017 13:13, xuelin.t...@qkmtech.com wrote: > All these three functions should be defined in libjffs2.a, right? Yeap ... $ arm-rtems4.12-nm \ /opt/rtems/4.12/arm-rtems4.12/xilinx_zynq_zc706/lib/libjffs2.a | \ grep rtems_jffs2_compressor_zlib_compress T rtems_jffs2_compresso

Re: Re: Filesystem in RTEMS

2017-10-20 Thread xuelin.t...@qkmtech.com
com From: xuelin.t...@qkmtech.com Date: 2017-10-21 09:34 To: Chris Johns; Sebastian Huber; users@rtems.org Subject: Re: Re: Filesystem in RTEMS Yeah, my code is mostly like yours. I have a handle of flash device, which can access flash hardware directly via QSPI. So, this means, my flash can wor

Re: Re: Filesystem in RTEMS

2017-10-20 Thread xuelin.t...@qkmtech.com
r.c.38.o:(.data+0x5c): undefined reference to `rtems_jffs2_compressor_zlib_decompress' collect2: error: ld returned 1 exit status Best wishes, xuelin.t...@qkmtech.com From: Chris Johns Date: 2017-10-21 08:56 To: xuelin.t...@qkmtech.com; Sebastian Huber; users@rtems.org Subject: Re: Files

Re: Filesystem in RTEMS

2017-10-20 Thread Chris Johns
On 21/10/2017 11:17, xuelin.t...@qkmtech.com wrote: > I followed the example (testsuites/fstests/jffs2_support/fs_support.c), and > some > error came up, like > "undefined reference to rtems_jffs2_initialize", > "undefined reference to rtems_jffs2_compressor_zlib_compress", and > "undefined refe

Re: Re: Filesystem in RTEMS

2017-10-20 Thread xuelin.t...@qkmtech.com
n this whoe process? Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-10-19 19:56 To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: Filesystem in RTEMS On 19/10/17 13:49, xuelin.t...@qkmtech.com wrote: > Does RTEMS have the FTL(Flash Translation Layer) as Linux,

Re: Re: Filesystem in RTEMS

2017-10-19 Thread xuelin.t...@qkmtech.com
Thanks for your explaination : ) Best wishes, xuelin.t...@qkmtech.com From: Chris Johns Date: 2017-10-20 05:15 To: xuelin.t...@qkmtech.com; Sebastian Huber; users@rtems.org Subject: Re: Filesystem in RTEMS On 19/10/2017 19:30, xuelin.t...@qkmtech.com wrote: > So, what is the RFS

Re: Filesystem in RTEMS

2017-10-19 Thread Chris Johns
On 19/10/2017 19:30, xuelin.t...@qkmtech.com wrote: > So, what is the RFS for, basically? It is a general purpose file system for block devices. It is in use on NASA's MMS project. I often use it as a RAM disk file system to hold web pages and files uploaded and downloaded via the web server. I c

Re: Re: Filesystem in RTEMS

2017-10-19 Thread xuelin.t...@qkmtech.com
Oh, I see. I just need to treat my flash as an array, not a block device. Thanks a lot. Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-10-19 19:56 To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: Filesystem in RTEMS On 19/10/17 13:49, xuelin.t...@qkmtech.com

Re: Filesystem in RTEMS

2017-10-19 Thread Sebastian Huber
On 19/10/17 13:49, xuelin.t...@qkmtech.com wrote: Does RTEMS have the FTL(Flash Translation Layer) as Linux, that can map flash device into block device? No. How can I define the blocks used in JFFS2, according to NOR flash? See testsuites/fstests/jffs2_support/fs_support.c for an example.

Re: Re: Filesystem in RTEMS

2017-10-19 Thread xuelin.t...@qkmtech.com
) } }; Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-10-19 16:14 To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: Filesystem in RTEMS On 19/10/17 10:09, xuelin.t...@qkmtech.com wrote: > Dear all, > I got a little confused about the file system in rtems. > > T

Re: Re: Filesystem in RTEMS

2017-10-19 Thread xuelin.t...@qkmtech.com
So, what is the RFS for, basically? Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-10-19 16:14 To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: Filesystem in RTEMS On 19/10/17 10:09, xuelin.t...@qkmtech.com wrote: > Dear all, > I got a little confused abo

Re: Filesystem in RTEMS

2017-10-19 Thread Sebastian Huber
On 19/10/17 10:09, xuelin.t...@qkmtech.com wrote: Dear all, I got a little confused about the file system in rtems. The root file system is IMFS in rtems, obviously. And what is the devfs and rfs? They can be both configured for peripheral devices, I think. So, what is the difference between t

Filesystem in RTEMS

2017-10-19 Thread xuelin.t...@qkmtech.com
Dear all, I got a little confused about the file system in rtems. The root file system is IMFS in rtems, obviously. And what is the devfs and rfs? They can be both configured for peripheral devices, I think. So, what is the difference between them? For example, if I want to mount a flash to IMFS