From owner-freebsd-embedded@FreeBSD.ORG Tue May 22 00:06:24 2007 Return-Path: X-Original-To: freebsd-embedded@FreeBSD.org Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A02316A469 for ; Tue, 22 May 2007 00:06:24 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 788C813C45A for ; Tue, 22 May 2007 00:06:24 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 3F070619B61 for ; Mon, 21 May 2007 17:06:24 -0700 (PDT) Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15327-08 for ; Mon, 21 May 2007 17:06:23 -0700 (PDT) Received: from [10.0.0.40] (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id 69D2B619AEC for ; Mon, 21 May 2007 17:06:23 -0700 (PDT) Message-ID: <465233FF.8060100@miralink.com> Date: Mon, 21 May 2007 17:06:23 -0700 From: Sean Bruno User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: freebsd-embedded@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Mon May 21 17:06:23 2007 X-DSPAM-Confidence: 0.7880 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 465233ff121991649814603 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.498 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, AWL=0.001, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.498 X-Spam-Level: Cc: Subject: [nanobsd] Calculation of new flash image size X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2007 00:06:24 -0000 If the manufacturer doesn't provide me with the specific values for NANO_SECTS, NANO_HEADS and NANO_MEDIASIZE, I assume that I would be able to use the output of fdisk to calculate it for me: fmybox# fdisk /dev/ad0 ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=993 heads=16 sectors/track=63 (1008 blks/cyl) parameters to be used for BIOS calculations are: cylinders=993 heads=16 sectors/track=63 (1008 blks/cyl) So in this case, NANO_SECTS=63, NANO_HEADS=16 and NANO_MEDIASIZE=(993 * 16 * 63)=1000944? I added the following to Flashdevices.sub: dom512m) # Source: sbruno@miralink.com NANO_MEDIASIZE=`expr 512483328 / 512` NANO_HEADS=16 NANO_SECTS=63 ;; If I do this for my new Transcend module, the system won't boot properly and freezes on the BTX boot loader startup. What am I doing wrong here? Sean