From owner-freebsd-small@FreeBSD.ORG Thu Mar 17 16:51:09 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 7AD6B16A4CF for ; Thu, 17 Mar 2005 16:51:09 +0000 (GMT) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id B108B43D46 for ; Thu, 17 Mar 2005 16:51:08 +0000 (GMT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (mwlucas@localhost [127.0.0.1])j2HGp72f029443 for ; Thu, 17 Mar 2005 11:51:07 -0500 (EST) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost)j2HGp7a3029442 for freebsd-small@freebsd.org; Thu, 17 Mar 2005 11:51:07 -0500 (EST) (envelope-from mwlucas) Date: Thu, 17 Mar 2005 11:51:07 -0500 From: "Michael W. Lucas" To: freebsd-small@freebsd.org Message-ID: <20050317165107.GA29364@bewilderbeast.blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Spam-Score: (0) X-Scanned-By: MIMEDefang 2.39 Subject: 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: Thu, 17 Mar 2005 16:51:09 -0000 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. I tried to put this into the nanobsd/Makefile as: from Makefile: # Physical disk paramters. Use diskinfo(8) on the target platform # to find the correct numbers. We assume 512 bytes sectors. HD?=64 SC?=32 SECTS?=1000945 _.md.tmp reports: + SECTS=1000945 + HD=64 + SC=32 + DATASIZE=10240 + PRIROOTSLICE=ad0s1a + ALTROOTSLICE=ad0s2a + CFGSLICE=ad0s3 + WD=/usr/obj/usr/src/tools/tools/nanobsd/_.w + IMG=/usr/obj/usr/src/tools/tools/nanobsd/_.i + CFGMASTER= + mktemp -t nanobsd + TMPFILE0=/tmp/nanobsd.Xh06zIAU + mktemp -t nanobsd + TMPFILE1=/tmp/nanobsd.PaEr1DcL + mktemp -d -t nanobsd + TMPMNT=/tmp/nanobsd.j5J1mq2A + get_label ad0s1a + echo + PRIROOTLABEL= + get_label ad0s2a + echo + ALTROOTLABEL= + get_label ad0s3 + echo + CFGLABEL= + dd if=/dev/zero of=/tmp/nanobsd.Xh06zIAU count=1000945 1000945+0 records in 1000945+0 records out 512483840 bytes transferred in 28.422601 secs (18030857 bytes/sec) + mdconfig -a -t vnode -f /tmp/nanobsd.Xh06zIAU -x 32 -y 64 + MD=md0 + rm -f /tmp/nanobsd.Xh06zIAU + echo 1000945 32 64 10240 + awk { cs = $2 * $3 cyl = $1 / cs print "g c" cyl " h" $3 " s" $2 dsl = int (($4 + cs - 1) / cs) csl = int ((cyl - dsl) / 2) dsl = cyl - csl * 2 print "p 1 165 " $2, csl * cs - $2 print "p 2 165 " $2 + csl * cs, csl * cs - $2 print "p 3 165 " 2 * csl * cs, dsl * cs } + cat /tmp/nanobsd.PaEr1DcL g c488.743 h64 s32 p 1 165 32 493536 p 2 165 493600 493536 p 3 165 987136 13809 + fdisk -i -f /tmp/nanobsd.PaEr1DcL md0 fdisk: invalid fdisk partition table found fdisk: ERROR line 1: incorrect number of geometry args ******* Working on device /dev/md0 ******* Any thoughts? ==ml -- Michael W. Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org http://www.BlackHelicopters.org/~mwlucas/ Latest book: Cisco Routers for the Desperate http://www.CiscoRoutersForTheDesperate.com