From owner-freebsd-small@FreeBSD.ORG Wed Mar 23 00:23:07 2005 Return-Path: Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4444616A4CE for ; Wed, 23 Mar 2005 00:23:07 +0000 (GMT) Received: from phuket.psconsult.nl (ps226.psconsult.nl [213.222.19.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A5A543D41 for ; Wed, 23 Mar 2005 00:23:06 +0000 (GMT) (envelope-from fb-small@psconsult.nl) Received: from phuket.psconsult.nl (localhost [127.0.0.1]) by phuket.psconsult.nl (8.12.8p2/8.12.8) with ESMTP id j2MGfUxk061269 for ; Tue, 22 Mar 2005 17:41:30 +0100 (CET) (envelope-from fb-small@psconsult.nl) Received: (from paul@localhost) by phuket.psconsult.nl (8.12.8p2/8.12.8/Submit) id j2MGfUSj061268 for freebsd-small@freebsd.org; Tue, 22 Mar 2005 17:41:30 +0100 (CET) Date: Tue, 22 Mar 2005 17:41:30 +0100 From: Paul Schenkeveld To: freebsd-small@freebsd.org Message-ID: <20050322164129.GA60902@psconsult.nl> Mail-Followup-To: freebsd-small@freebsd.org References: <20050317165107.GA29364@bewilderbeast.blackhelicopters.org> <20050321202453.GA39780@psconsult.nl> <20050322162352.GA66300@bewilderbeast.blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050322162352.GA66300@bewilderbeast.blackhelicopters.org> User-Agent: Mutt/1.5.6i Subject: Re: nanobsd disk info X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 00:23:07 -0000 Hi, On Tue, Mar 22, 2005 at 11:23:52AM -0500, Michael W. Lucas wrote: > On Mon, Mar 21, 2005 at 09:24:53PM +0100, Paul Schenkeveld wrote: > > Hi, > > > > On Thu, Mar 17, 2005 at 11:51:07AM -0500, Michael W. Lucas wrote: > > > Hi, > > > > > > I'm obviously missing something here. > > > > > > I'm trying to get nanobsd on a 512Mb flash card. The only changes > > > I've made are to set kernconf = net4801 in make.conf and to set the > > > Makefile disk geometry variables. "make" chokes on the disk geometry, > > > so I'm assuming I've set it wrong. > > > > > > My diskinfo shows as: > > > > > > mwl-crash2~;sudo diskinfo -v da0 > > > da0 > > > 512 # sectorsize > > > 512483840 # mediasize in bytes (489M) > > > 1000945 # mediasize in sectors > > > 488 # Cylinders according to firmware. > > > 64 # Heads according to firmware. > > > 32 # Sectors according to firmware. > > > > Somehow these numbers are not consistent: > > > > 488 cyls * 64 heads * 32 secs = 999424 secs > > Doh, of course. I've never seen a hard drive lie to me before, didn't > occur to me to check these numbers. > > > What does dmesg show about da0? > > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-0 device > da0: 1.000MB/s transfers > da0: 488MB (1000945 512 byte sectors: 64H 32S/T 488C) > > I get the same results when I try on a separate machine. I also get > the same results when I use a second identical flash card. > > Any suggestions or pointers? How can I deal with a flash card that's > obviously lying or brain-dead? I apparently don't know the right > Google keywords, because I can't find a solution there... So what if you just put the following in: HD?=64 SC?=32 SECTS?=999424 which would match the 488 cylinders reported by dmesg and diskinfo. Hope you're not desperately trying to squeeze the last bytes out ;-) > ==ml Regards, Paul Schenkeveld