Sergei, I need to create the partition under ecos only. I've to support fatfs(creation, read and write) on the flash device. My boot-loader too only supports read of fatfs. So I need to do it from my ecos application. Nevertheless, the information provided by you is quite useful for me.
regards, Alok -----Original Message----- From: Sergei Gavrikov [mailto:[EMAIL PROTECTED] Sent: Monday, June 04, 2007 2:10 AM To: Alok Singh Cc: eCos discuss list Subject: Re: [ECOS]- fat file system (dosfs) On Sun, Jun 03, 2007 at 11:13:23PM +0530, Alok Singh wrote: > > Hi, > Dosfs code present in CVS is capable of reading and writing to the > existing dosfs partition. > It would be nice to have the capability to create a dosfs partition too. > Any file system expert out here, who can let me know what it takes to > implement this functionality (license permitted), and if there is free > source code available somewhere for reference! I'm on search from my > side. If you didn't mean to create it under eCos..., you can use Linux as well 32 Mb ms-dos disk 1) dd if=/dev/zero of=/tmp/msdos count=64k ;# 512x64k room 2) mkfs.msdos /tmp/msdos, or mkmsdos /tmp/msdos ;# create ms-dos fs 3) mount /tmp/msdos /mnt/disk -oloop,rw ;# mount, do it as root I think that using `mtools', you can mformat it, mcopy files there, etc. Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
