From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2414 invoked by alias); 4 Jun 2007 00:44:49 -0000 Received: (qmail 2395 invoked by uid 22791); 4 Jun 2007 00:44:48 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.lvl7.com (HELO lvl7-trend01.lvl7.com) (66.192.95.83) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 04 Jun 2007 00:44:47 +0000 Received: from lvl7in-mail01.lvl7.com ([10.240.1.18]) by lvl7-trend01.lvl7.com with InterScan VirusWall; Sun, 03 Jun 2007 20:44:44 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 04 Jun 2007 00:44:00 -0000 Message-ID: References: <20070603203930.GA12163@ubuntu> From: "Alok Singh" To: "Sergei Gavrikov" Cc: "eCos discuss list" Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: RE: [ECOS]- fat file system (dosfs) X-SW-Source: 2007-06/txt/msg00044.txt.bz2 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.=20 Nevertheless, the information provided by you is quite useful for me. regards, Alok -----Original Message----- From: Sergei Gavrikov [mailto:w3sg@SoftHome.net]=20 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: >=20 > Hi, > Dosfs code present in CVS is capable of reading and writing to the > existing dosfs partition.=20 > 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.=20 If you didn't mean to create it under eCos..., you can use Linux as well 32 Mb ms-dos disk 1) dd if=3D/dev/zero of=3D/tmp/msdos count=3D64k ;# 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