From owner-freebsd-arm@FreeBSD.ORG Wed Oct 12 15:10:22 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 D1850106567B for ; Wed, 12 Oct 2011 15:10:22 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 8BB758FC1B for ; Wed, 12 Oct 2011 15:10:22 +0000 (UTC) Received: from 63.imp.bsdimp.com (63.imp.bsdimp.com [10.0.0.63]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p9CF8ZgF022503 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Wed, 12 Oct 2011 09:08:36 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <4E9535D0.2030706@swin.edu.au> Date: Wed, 12 Oct 2011 09:06:35 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4E9290FF.7090306@swin.edu.au> <4E92D2D8.8070500@swin.edu.au> <4E9535D0.2030706@swin.edu.au> To: Mattia Rossi X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Wed, 12 Oct 2011 09:08:36 -0600 (MDT) Cc: freebsd-arm@freebsd.org 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 15:10:22 -0000 On Oct 12, 2011, at 12:38 AM, Mattia Rossi wrote: > -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. >>>>=20 >>>> See: >>>>=20 >>>> 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=3D512 SecPerClust=3D8 ResSectors=3D1 FATs=3D2 = RootDirEnts=3D512 >>>> Sectors=3D65520 Media=3D0xf0 FATsecs=3D32 SecPerTrack=3D63 = Heads=3D255 >>>> HiddenSecs=3D0 >>>> dreamplug# mount_msdosfs /dev/da0s1 /mnt/usb >>>> mount_msdosfs: /dev/da0s1: Invalid argument >>>>=20 > -snap- >=20 > 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. >=20 > 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. Is there anything in dmesg? Have you tried turning on bootverbose to = get more details about what the kernel part of mount_msdosfs hates? Warner=