readme.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. how to use yaffs under rt-thread.
  2. There are three steps.
  3. 1. get yaffs tarball from official repo.
  4. the repo of official repo is here.
  5. http://www.aleph1.co.uk/gitweb?p=yaffs2.git;a=summary
  6. then you should find the 2011-6-28's snapshot, download the tarball
  7. http://www.aleph1.co.uk/gitweb?p=yaffs2.git;a=snapshot;h=2df51cdb98e799c4d10b4cc7dd7e8858aa79e7d8;sf=tgz
  8. decompress the yaffs.tar.gz to rt-thread\components\dfs\filesystems\yaffs2\yaffs
  9. 2. patch yaffs.diff
  10. open an terminal.
  11. (1) on windows
  12. open cmd command prompt, then use [cd] command to come current path
  13. for example
  14. F:\Project\svn\rt-thread\components\dfs\filesystems\yaffs2>
  15. then type command
  16. patch -p1 < yaffs.diff
  17. you will get some log information as followings
  18. F:\Project\svn\rt-thread\components\dfs\filesystems\yaffs2>patch -p1 < yaffs.diff
  19. patching file `dfs_yaffs2.c'
  20. patching file `yaffs/direct/yaffs_list.h'
  21. patching file `yaffs/direct/yaffs_nandif.c'
  22. patching file `yaffs/direct/ydirectenv.h'
  23. patching file `yaffs/direct/yportenv.h'
  24. patching file `yaffs_nandcfg.c'
  25. patching file `yaffs_osglue.c'
  26. now you can delete yaffs.diff
  27. there is another patch file, as the name shows, it is to fix compile
  28. warning, so it is not necessary. If you want, you can use the
  29. following command.
  30. patch -p1 < fixwarning.diff
  31. (2) on linux
  32. Help yourself. Since you have use linux as your os, I believe in you.
  33. 3.add nand driver and compile
  34. In order to use yaffs, you should provide a nand driver which is needed
  35. by yaffs. There is an example file in rt-thread\components\dfs\filesystems\uffs\nand.
  36. you should modify yaffs_nandcfg.c according to your nand driver.
  37. then you can use scons or IDE like MDK or IAR to compile.
  38. enjoy !