hi, a excellent UFFS test environment

112 views
Skip to first unread message

prife

unread,
Jan 1, 2013, 11:01:48 PM1/1/13
to uffs邮件列表
Hi, Richy,

I made an simulator bsp on windows . It can be built with visual studio (vs2005 and newer versions),  It is just an simulator for RT-Thread about WIN32 NATIVE project.
This simulator includes:

1. RT-Thread RTOS kernel 
2. uffs , jffs2, elmfatfs, dfs_win32(windows share directory, which can be mounted RT-Thread/DFS)
3. finsh  (which is an C language style shell, and  really a excellent tools, I think you would like it, )
     finsh is really very helpful and easy to add new commands.  
4. Lwip  and RTGUI

you can create an visual project like this:

CMD>>  scons  --target=vs -s

then an visual studo project.vcproj will be created, and all components defined in rtconfig.h will be add to this vs project.

The simulator is really helpful to test file systems.  some shot-photos is:

1.png is the startuping
2.png
    nand.bin is used for uffs.  2048+64byte
    sd.bin is used for elmchan's fatfs
    nor.bin is used for jffs2
   AND EVEN and windoiws directory can be mounted an sub file systems on RT-Thread/DFS. 
3.png
   you can easily copy file between multi-filesystems. just copy and SDL.dll from current work directory to nand.bin.

FINSH is C-like as you see, ALL command are C function . and it is more powerful than what I show here. 

I guess this simulator bsp is really help for us to develop and test file systems.. 

Please see here:

      trunk\bsp\simulator
 uffs code is in  "trunk\components\dfs\filesystems\uffs"

website:

Any questions about simulator are welcome.

Best Regards
                   prife 


--
把有限的时间投入到无限的学习中去
1.png
2.png
3.png

prife

unread,
Jan 1, 2013, 11:04:58 PM1/1/13
to uffs邮件列表
And the simulator is already include in rt-thread 1.1.0 release version.



2013/1/2 prife <gop...@gmail.com>



--
把有限的时间投入到无限的学习中去

Ricky Zheng

unread,
Jan 3, 2013, 5:28:05 PM1/3/13
to uf...@googlegroups.com
Hi Prife,

This looks great :-)

I have a few questions maybe you can have a quick answer:
- Can it simulate NAND flash failure ? e.g. bit flip errors, bad block, half-write ... etc.
- Can it manipulated by script ? so that we can have some sort of automation test ....

It's interesting to see how well other flash file system handle NAND flash failures.

Cheers,
Ricky.


--
You received this message because you are subscribed to the Google Groups "UFFS" group.
To post to this group, send email to uf...@googlegroups.com.
To unsubscribe from this group, send email to uffs+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/uffs?hl=en.

prife

unread,
Jan 4, 2013, 12:35:02 AM1/4/13
to uf...@googlegroups.com
2013/1/4 Ricky Zheng <gz.z...@gmail.com>
Hi Prife,

This looks great :-)

I have a few questions maybe you can have a quick answer:
- Can it simulate NAND flash failure ? e.g. bit flip errors, bad block, half-write ... etc.

Sorry,  it can't simulate NAND flash failure yet.. Maybe I can port the code from uffs on win32.. 
 
- Can it manipulated by script ? so that we can have some sort of automation test ....

Yes, there is a test case(short for TC) frame in RT-Thread, which can run automatically, the TC just
works depend on finsh.. But the the test cases need written in C.

In fact, YAFFS2 is also support in RT-Thread It can be built with MDK and gcc, while visual studio not support yet, but it is easy to do.

more:
Ohm,almost all commands will be run in Finsh, Finsh is just an C-like virtual machine, it can run C functions which is export.
And finsh just need to get key input from someplace, in hardware, maybe USART/RS232, in simulator ,I just use getch to get key input.
so automatic script (such as python) seems easy. Just create some text files, and make finsh get input from that files.



--
把有限的时间投入到无限的学习中去
Reply all
Reply to author
Forward
0 new messages