From owner-freebsd-embedded@FreeBSD.ORG Sun Dec 9 17:59:45 2007 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5192716A421 for ; Sun, 9 Dec 2007 17:59:45 +0000 (UTC) (envelope-from portcitycs@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.freebsd.org (Postfix) with ESMTP id EAE8F13C442 for ; Sun, 9 Dec 2007 17:59:42 +0000 (UTC) (envelope-from portcitycs@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so3037372pyb for ; Sun, 09 Dec 2007 09:59:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=+Gr0q76OdZVtn6/bggjdixLcdl+mhPkHtZJjy6IdcC4=; b=U0anSNAIbv2qrilQMtLhQFXZOq7CH0fc1e4KmH+CJ8X/P9FoXPqHKtavRVAoziX4jEuMw47nrwzcUmVKvf851LMQIx+E5qjRQcJBpXIQCBn0pbtUBTKv5O1qwdAi4Zo1EVvU46q47C4RlMJpz17sv2fQ3lja8IG7W9z0yXCVJbo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=RePFUHBiRab1d415o39v135Qb9g8D6kNrUMhJoqIFkhUB0wnjLyIUKzjNFWrr4EG6jcD3LReBlqzLd6CAxqZOzjMjFwDXNVgOlBfSG6cjKt+W3/versOkiZxqilEh2QJOdq/3NtBzVwtrTnlh7EY7uTgmPlBTNoZfKv0fOjRcc8= Received: by 10.142.103.6 with SMTP id a6mr1681980wfc.1197223179961; Sun, 09 Dec 2007 09:59:39 -0800 (PST) Received: by 10.142.201.4 with HTTP; Sun, 9 Dec 2007 09:59:39 -0800 (PST) Message-ID: <5a1835cd0712090959g2bad2bfbq4720f95d490872ba@mail.gmail.com> Date: Sun, 9 Dec 2007 12:59:39 -0500 From: "Lyle Scott III" To: freebsd-embedded@freebsd.org In-Reply-To: <20071209.103433.-432829159.imp@bsdimp.com> MIME-Version: 1.0 References: <5a1835cd0712081917i17f55b5cy59b396cb1cd7f4da@mail.gmail.com> <20071208.204814.-593216336.imp@bsdimp.com> <5a1835cd0712090859r94e8375yb254ae193ee6d9f7@mail.gmail.com> <20071209.103433.-432829159.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Can't boot NanoBSD on an Alix board 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: Sun, 09 Dec 2007 17:59:45 -0000 On Dec 9, 2007 12:34 PM, M. Warner Losh wrote: > In message: <5a1835cd0712090859r94e8375yb254ae193ee6d9f7@mail.gmail.com> > "Lyle Scott III" writes: > : and how might i do that on my flash card? I read a little about > boot0cfg > : (man pages) and see the option -o packet .. is this what i need? > > Yes. > > : how would i go about setting this in my flashcard that is mounted in > another > : freebsd system? > > There's two supported ways. First, you can plug it into a PC Card <-> > CF adapter and use that in a PC Card slot. Second, you can plug it > into a USB flash reader. In the first case, you'll get a device > that's adX, and in the latter you'll get one that's daX. > > boot0cfg -o packet /dev/adX > or > boot0cfg -o packet /dev/daX > > should then do the trick (where X is the actual device). > > : i read that packet mode == LBA mode BIOS setting? is this true? > : ( > http://lists.freebsd.org/pipermail/freebsd-current/2004-January/018907.html > : ) > : if so, LBA does not work either. The same result happens. > : > : i nudge in the right direction would be much appreciated :) > > If LBA mode doesn't work, then you have to figure out what the exact > geometry is for the device. You'll need to set this geometry on the > flash by having the partition end exactly on a cylinder boundary so > that the BIOS and FreeBSD will be in sync as to the geometry of the > device. This may mean you'll need to recreate it after > repartitioning. If you used a usb flash reader, you will almost > certainly get the wrong geometry (I've never had one that got it > right, due to the fictious geometry used by CAM or umass for the > device, I think). > > Warner > > : On Dec 8, 2007 10:48 PM, M. Warner Losh wrote: > : > : > In message: < > 5a1835cd0712081917i17f55b5cy59b396cb1cd7f4da@mail.gmail.com> > : > "Lyle Scott III" writes: > : > : ok, i just upgraded the BIOS and now it hands after choosing 1 for > the > : > : bootloader: > : > : > : > : 640 KB Base Memory > : > : 261120 KB Extended Memory > : > : > : > : 01F0 Master 848A SanDisk SDCFB-512 > : > : Phys C/H/S 993/16/63 Log C/H/S 993/16/63 > : > : > : > : 1 FreeBSD > : > : > : > : Default: 1 > : > : [FREEZE] > : > > : > Try using the packet mode of boot0 > : > > : > Warner > : > > Hm, well i am using a usb flash card reader... but the ALIX board works great when i put in the diskinfo information into the tinybsd setup script... but i guess this is different. I tried 'boot0cfg -o packet /dev/da0' but with no luck. With that setting i tried CHS and LBA mode on the alix board, both with the same result. So i guess this is the GEOMETRY problem you were talking about (and have since read quite a few pages about). I'm afraid i don't exactly understand the part about "You'll need to set this geometry on the flash by having the partition end exactly on a cylinder boundary so that the BIOS and FreeBSD will be in sync as to the geometry of the device." I get what you are saying, but i'm not quite sure i understand how to do that. I specified the info from diskinfo -v /dev/da0 and put it in a myconf.conf file for NanoBSD... i thought that would take care of it. hostname# diskinfo -v /dev/da0 /dev/da0 512 # sectorsize 512483328 # mediasize in bytes (489M) 1000944 # mediasize in sectors 488 # Cylinders according to firmware. 64 # Heads according to firmware. 32 # Sectors according to firmware. hehe sorry never had to deal with such a lowlevel problem! i'm learning.. i guess i can go pick up a pccard adapter of some sort. I am trying to keep this off my laptop, so would a PCI flash card reader work properly with writing the proper geometry? -- Lyle Scott, III http://www.lylescott.ws