public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Alok Singh" <aloks@broadcom.com>
To: "Sergei Gavrikov" <w3sg@SoftHome.net>
Cc: "eCos discuss list" <ecos-discuss@ecos.sourceware.org>
Subject: RE: [ECOS]-  fat file system (dosfs)
Date: Mon, 04 Jun 2007 00:44:00 -0000	[thread overview]
Message-ID: <FE7FB54DCB7C6949A1D3F9FF22DA6C135DF90B@lvl7in-mail01.lvl7.com> (raw)
In-Reply-To: <20070603203930.GA12163@ubuntu>

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:w3sg@SoftHome.net] 
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

  reply	other threads:[~2007-06-04  0:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-03 17:43 Alok Singh
2007-06-03 20:41 ` Sergei Gavrikov
2007-06-04  0:44   ` Alok Singh [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-06-03 17:38 Alok Singh
2007-06-03 20:54 ` Andrew Lunn
2007-06-04  6:22 ` rtos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FE7FB54DCB7C6949A1D3F9FF22DA6C135DF90B@lvl7in-mail01.lvl7.com \
    --to=aloks@broadcom.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=w3sg@SoftHome.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).