--- Quote Start ---
originally posted by odespont@Jun 29 2006, 07:49 AM
hello,
i just found how to implement fat file system on my compact flash
without any os, on the 1c20 evaluation kit
and i think anybody is interresed by this subject.
sorry for my english, i'm french.... http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/biggrin.gif
you need to download:
* compact flash hardware & software examples for nios ii 5.0 (http://forum.niosforum.com/downloads/cflash/cf5_0.zip) from jesse in tested ip from this forum.
* (the dosfs distribution archive (http://www.zws.com/products/dosfs/index.html))
you need to modify the dosfs distribution archive:
delete "dosemu.h" and "dosemu.c".
in "dosfs.h" add an include to "cddiskutils.h"
add :
#define dfs_readsector(unit,buffer,sector,count) readlogicalsector(( unsigned long) sector, (unsigned long) count,
(unsigned short *)buffer);# define dfs_writesector(unit,buffer,sector,count) writelogicalsector(( unsigned long) sector, (unsigned long) count,
(unsigned short *)buffer);
compile and look at the error :
replace all type define in dosfs distribution archive by the equivalent alt_u8, alt_u16 and alt_u32, for all the type.
it's ok for me, fat 12, fat 16 and fat 32 in chs and lba.
if anybody want some details, you can contact me....
@+
olivier http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/blink.gif
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16526)
--- quote end ---
--- Quote End ---
Hi Olivier,
nice job
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
I'm a french guy too, so if you want to discuss about Nios II, just drop me a message (french will be appreciated of course). I'm a Nios beginner, so it is always interesting for me to know what the others do with Nios.
Regards.