From owner-freebsd-arm@FreeBSD.ORG Wed Oct 12 06:38:31 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2269D106566C for ; Wed, 12 Oct 2011 06:38:31 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from gpo4.cc.swin.edu.au (gpo4.cc.swin.edu.au [136.186.1.33]) by mx1.freebsd.org (Postfix) with ESMTP id 97C568FC13 for ; Wed, 12 Oct 2011 06:38:30 +0000 (UTC) Received: from mrossi.caia.swin.edu.au (mrossi.caia.swin.edu.au [136.186.229.109]) by gpo4.cc.swin.edu.au (8.14.3/8.14.3) with ESMTP id p9C6c8nP022891 for ; Wed, 12 Oct 2011 17:38:23 +1100 Message-ID: <4E9535D0.2030706@swin.edu.au> Date: Wed, 12 Oct 2011 17:38:08 +1100 From: Mattia Rossi User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111004 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-arm@freebsd.org References: <4E9290FF.7090306@swin.edu.au> <4E92D2D8.8070500@swin.edu.au> In-Reply-To: <4E92D2D8.8070500@swin.edu.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Create FAT partition/filesystem on the internal microSD flash of the Dreamplug X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2011 06:38:31 -0000 -snip- >>> I've tried to recreate it using gpart and newfs_msdos, but can't >>> create any new FAT partition that mount_msdosfs would mount. >>> >>> See: >>> >>> dreamplug# gpart create -s mbr da0 >>> da0 created >>> dreamplug# gpart add -t fat32 -i 1 -s 32M da0 >>> da0s1 added >>> dreamplug# newfs_msdos da0s1 >>> /dev/da0s1: 65416 sectors in 8177 FAT16 clusters (4096 bytes/cluster) >>> BytesPerSec=512 SecPerClust=8 ResSectors=1 FATs=2 RootDirEnts=512 >>> Sectors=65520 Media=0xf0 FATsecs=32 SecPerTrack=63 Heads=255 >>> HiddenSecs=0 >>> dreamplug# mount_msdosfs /dev/da0s1 /mnt/usb >>> mount_msdosfs: /dev/da0s1: Invalid argument >>> -snap- I've tested the newfs_msdos command on a variety of i386 and amd64 based machines using different FreeBSD versions (8.2, 9-BETA2, 9-BETA3) and all of them work properly. FS can be craeed and mounts fine. So this is definitely an ARM problem.. Have no idea why though. If someone tells me where to look for the issue, I'll happily do it and help fixing the bug. Mat