From owner-freebsd-embedded@FreeBSD.ORG Mon May 21 11:08:17 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 09B1F16A481 for ; Mon, 21 May 2007 11:08:17 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id ED70113C44C for ; Mon, 21 May 2007 11:08:16 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4LB8GDQ028714 for ; Mon, 21 May 2007 11:08:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4LB8ELG028710 for freebsd-embedded@FreeBSD.org; Mon, 21 May 2007 11:08:14 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 May 2007 11:08:14 GMT Message-Id: <200705211108.l4LB8ELG028710@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 21 May 2007 11:08:17 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/15876 embedded [picobsd] PicoBSD message of the day problems o misc/28255 embedded [picobsd] picobsd documentation still references old . o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c f misc/52255 embedded [picobsd] picobsd build script fails under FreeBSD 5.0 o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/101228 embedded [nanobsd] [patch] Two more entries for FlashDevice.sub 6 problems total. 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 From owner-freebsd-embedded@FreeBSD.ORG Tue May 22 15:45: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 D6ADA16A421 for ; Tue, 22 May 2007 15:45:24 +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 857E713C468 for ; Tue, 22 May 2007 15:45:24 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l4MFgvFe060352; Tue, 22 May 2007 09:42:57 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 22 May 2007 09:42:57 -0600 (MDT) Message-Id: <20070522.094257.74690293.imp@bsdimp.com> To: sbruno@miralink.com From: Warner Losh In-Reply-To: <465233FF.8060100@miralink.com> References: <465233FF.8060100@miralink.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 22 May 2007 09:42:57 -0600 (MDT) Cc: freebsd-embedded@FreeBSD.org Subject: Re: [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 15:45:24 -0000 From: Sean Bruno Subject: [nanobsd] Calculation of new flash image size Date: Mon, 21 May 2007 17:06:23 -0700 > 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 > ;; The flashdevices.sub database is lame. It is a misfeature to require it. > 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? There's a fundamental flaw in nanobsd. That is that it requires one to know the geometry of the target device. fdisk won't tell you this when you are using a scsi card reader, so you can't find it out automatically. This is because the scsi layer uses a fake geometry here (I can't recall if it is FreeBSD software, or the card reader). Nanobsd is supposed to use 'packet mode' so that geometry doesn't matter. You should make sure that the CF/disk created is in packet mode. If you have a card that you've re-fdisked since you bought it, dd about 30k of zeros to the front of it from /dev/zero. Then insert it into a camera that can do the formatting of flash cards. Put that back into your freebsd box and run fdisk again and see what the partitions look like. You'll see something that looks like: fdisk da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=CCC heads=HHH sectors/track=SSS (SSS * HHH blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=CCC heads=HHH sectors/track=SSS (SSS * HHH blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 6 (0x6),(Primary 'big' DOS (>= 32MB) start SSS, size XXX (YYY Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl CCC/ head HHH/ sector SSS The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: CCC, HHH and SSS are the numbers you need. Also, you can put this card in your target device and look at the BIOS in that target device. It will tell you what it thinks it is. Warner From owner-freebsd-embedded@FreeBSD.ORG Tue May 22 16:15:56 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 0A16616A468 for ; Tue, 22 May 2007 16:15:56 +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 D0C3A13C45E for ; Tue, 22 May 2007 16:15:55 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 3CC1E619B30; Tue, 22 May 2007 09:15:55 -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 03367-09; Tue, 22 May 2007 09:15:54 -0700 (PDT) Received: from [10.47.1.6] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id 46CB2619AEC; Tue, 22 May 2007 09:15:51 -0700 (PDT) Message-ID: <46531726.9050907@miralink.com> Date: Tue, 22 May 2007 09:15:34 -0700 From: Sean Bruno User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: Warner Losh References: <465233FF.8060100@miralink.com> <20070522.094257.74690293.imp@bsdimp.com> In-Reply-To: <20070522.094257.74690293.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Tue May 22 09:15:54 2007 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4653173a233955715714951 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.499 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.499 X-Spam-Level: Cc: freebsd-embedded@FreeBSD.org Subject: Re: [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 16:15:56 -0000 Warner Losh wrote: > From: Sean Bruno > Subject: [nanobsd] Calculation of new flash image size > Date: Mon, 21 May 2007 17:06:23 -0700 > > >> 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 >> ;; >> > > The flashdevices.sub database is lame. It is a misfeature to require > it. > > >> 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? >> > > There's a fundamental flaw in nanobsd. That is that it requires one > to know the geometry of the target device. fdisk won't tell you this > when you are using a scsi card reader, so you can't find it out > automatically. This is because the scsi layer uses a fake geometry > here (I can't recall if it is FreeBSD software, or the card reader). > Nanobsd is supposed to use 'packet mode' so that geometry doesn't > matter. You should make sure that the CF/disk created is in packet > mode. > This is an IDE flash device, not a CF card or other memory stick-ish thing. > If you have a card that you've re-fdisked since you bought it, dd > about 30k of zeros to the front of it from /dev/zero. Then insert it > into a camera that can do the formatting of flash cards. Put that > back into your freebsd box and run fdisk again and see what the > partitions look like. > After wiping the flash disk, fdisk reports the same values. The only item of note is the "Warning" section. mybox# 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) fdisk: invalid fdisk partition table found Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 1000881 (488 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 992/ head 15/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: I didn't retry as the values retrieved here are the same as I previously had used. Sean From owner-freebsd-embedded@FreeBSD.ORG Wed May 23 06:48:36 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 BADCA16A400 for ; Wed, 23 May 2007 06:48:36 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 3EBDF13C45A for ; Wed, 23 May 2007 06:48:35 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 66BE164624; Wed, 23 May 2007 09:18:52 +0300 (EEST) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 70596-01; Wed, 23 May 2007 09:18:49 +0300 (EEST) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 4606164620; Wed, 23 May 2007 09:18:49 +0300 (EEST) Message-ID: <4653DCC9.5060108@bulinfo.net> Date: Wed, 23 May 2007 09:18:49 +0300 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: Warner Losh References: <465233FF.8060100@miralink.com> <20070522.094257.74690293.imp@bsdimp.com> In-Reply-To: <20070522.094257.74690293.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-embedded@FreeBSD.org Subject: Re: [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: Wed, 23 May 2007 06:48:36 -0000 What about diskinfo? I always use output from diskinfo -v without any problems. Warner Losh wrote: > From: Sean Bruno > Subject: [nanobsd] Calculation of new flash image size > Date: Mon, 21 May 2007 17:06:23 -0700 > > >> 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 >> ;; >> > > The flashdevices.sub database is lame. It is a misfeature to require > it. > > >> 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? >> > > There's a fundamental flaw in nanobsd. That is that it requires one > to know the geometry of the target device. fdisk won't tell you this > when you are using a scsi card reader, so you can't find it out > automatically. This is because the scsi layer uses a fake geometry > here (I can't recall if it is FreeBSD software, or the card reader). > Nanobsd is supposed to use 'packet mode' so that geometry doesn't > matter. You should make sure that the CF/disk created is in packet > mode. > > If you have a card that you've re-fdisked since you bought it, dd > about 30k of zeros to the front of it from /dev/zero. Then insert it > into a camera that can do the formatting of flash cards. Put that > back into your freebsd box and run fdisk again and see what the > partitions look like. > > You'll see something that looks like: > > fdisk da0 > > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=CCC heads=HHH sectors/track=SSS (SSS * HHH blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=CCC heads=HHH sectors/track=SSS (SSS * HHH blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 6 (0x6),(Primary 'big' DOS (>= 32MB) > start SSS, size XXX (YYY Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl CCC/ head HHH/ sector SSS > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > > > CCC, HHH and SSS are the numbers you need. > > Also, you can put this card in your target device and look at the BIOS > in that target device. It will tell you what it thinks it is. > > Warner > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org" > > From owner-freebsd-embedded@FreeBSD.ORG Wed May 23 13:21:52 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 A75AF16A400 for ; Wed, 23 May 2007 13:21:52 +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 4FEC713C447 for ; Wed, 23 May 2007 13:21:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l4NDIgMl074231; Wed, 23 May 2007 07:18:43 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 23 May 2007 09:18:56 -0400 (EDT) Message-Id: <20070523.091856.-1253046332.imp@bsdimp.com> To: krassi@bulinfo.net From: "M. Warner Losh" In-Reply-To: <4653DCC9.5060108@bulinfo.net> References: <465233FF.8060100@miralink.com> <20070522.094257.74690293.imp@bsdimp.com> <4653DCC9.5060108@bulinfo.net> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Wed, 23 May 2007 07:18:43 -0600 (MDT) Cc: freebsd-embedded@FreeBSD.org Subject: Re: [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: Wed, 23 May 2007 13:21:52 -0000 In message: <4653DCC9.5060108@bulinfo.net> Krassimir Slavchev writes: : What about diskinfo? : I always use output from diskinfo -v without any problems. diskinfo and fdisk -I use the same data, that is often wrong with SCSI adapters. If it works for you, then you are lucky. The problem is the geometry that's reported by the adapters. Warner From owner-freebsd-embedded@FreeBSD.ORG Wed May 23 15:06:58 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 26EF516A421 for ; Wed, 23 May 2007 15:06:58 +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 024DA13C4B7 for ; Wed, 23 May 2007 15:06:57 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 7D704619BAC; Wed, 23 May 2007 08:06:57 -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 08534-09; Wed, 23 May 2007 08:06:56 -0700 (PDT) Received: from [10.47.1.6] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id 53F43619B85; Wed, 23 May 2007 08:06:56 -0700 (PDT) Message-ID: <4654588F.8090002@miralink.com> Date: Wed, 23 May 2007 08:06:55 -0700 From: Sean Bruno User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: "M. Warner Losh" References: <465233FF.8060100@miralink.com> <20070522.094257.74690293.imp@bsdimp.com> <4653DCC9.5060108@bulinfo.net> <20070523.091856.-1253046332.imp@bsdimp.com> In-Reply-To: <20070523.091856.-1253046332.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Wed May 23 08:06:57 2007 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 46545891288551542430122 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.279 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, AWL=0.220, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.279 X-Spam-Level: Cc: freebsd-embedded@FreeBSD.org Subject: Re: [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: Wed, 23 May 2007 15:06:58 -0000 M. Warner Losh wrote: > In message: <4653DCC9.5060108@bulinfo.net> > Krassimir Slavchev writes: > : What about diskinfo? > : I always use output from diskinfo -v without any problems. > diskinfo reports the same information when I ran it, but thanks! > diskinfo and fdisk -I use the same data, that is often wrong with SCSI > adapters. If it works for you, then you are lucky. The problem is > the geometry that's reported by the adapters. > > Warner > As far as I know, my disk is not SCSI. I am using an IDE flash disk and the drive is coming up as 'ad0' If I am calculating the disk size correctly, what else could be causing nanobsd to hang at the boot loader startup? Sean From owner-freebsd-embedded@FreeBSD.ORG Wed May 23 18:56:52 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 21A8816A400 for ; Wed, 23 May 2007 18:56:52 +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 E976A13C447 for ; Wed, 23 May 2007 18:56:51 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id B464D619C89; Wed, 23 May 2007 11:56:51 -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 14494-05; Wed, 23 May 2007 11:56:50 -0700 (PDT) Received: from [10.0.0.40] (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id C6D23619C54; Wed, 23 May 2007 11:56:50 -0700 (PDT) Message-ID: <46548E72.4040400@miralink.com> Date: Wed, 23 May 2007 11:56:50 -0700 From: Sean Bruno User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: freebsd-embedded@FreeBSD.org References: <465233FF.8060100@miralink.com> <20070522.094257.74690293.imp@bsdimp.com> <4653DCC9.5060108@bulinfo.net> <20070523.091856.-1253046332.imp@bsdimp.com> <4654588F.8090002@miralink.com> In-Reply-To: <4654588F.8090002@miralink.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Wed May 23 11:56:51 2007 X-DSPAM-Confidence: 0.7829 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 46548e73132441804284693 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.466 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, AWL=0.033, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.466 X-Spam-Level: Cc: Subject: Re: [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: Wed, 23 May 2007 18:56:52 -0000 Sean Bruno wrote: > M. Warner Losh wrote: >> In message: <4653DCC9.5060108@bulinfo.net> >> Krassimir Slavchev writes: >> : What about diskinfo? >> : I always use output from diskinfo -v without any problems. >> > diskinfo reports the same information when I ran it, but thanks! >> diskinfo and fdisk -I use the same data, that is often wrong with SCSI >> adapters. If it works for you, then you are lucky. The problem is >> the geometry that's reported by the adapters. >> >> Warner >> > As far as I know, my disk is not SCSI. I am using an IDE flash disk > and the drive is coming up as 'ad0' > > If I am calculating the disk size correctly, what else could be > causing nanobsd to hang at the boot loader startup? > > Sean > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to > "freebsd-embedded-unsubscribe@freebsd.org" Ok...I'm a total idiot. I have the customize_cmd cust_comconsole in my nano configuration. This causes it to only have a console on a the serial port, DUH! /me waves his hands in a jedi fashion and says "This isn't the bug you are looking for." Sean