From owner-freebsd-embedded@FreeBSD.ORG Mon Dec 10 21:40:32 2007 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7D4516A420 for ; Mon, 10 Dec 2007 21:40:32 +0000 (UTC) (envelope-from portcitycs@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.237]) by mx1.freebsd.org (Postfix) with ESMTP id C120013C461 for ; Mon, 10 Dec 2007 21:40:31 +0000 (UTC) (envelope-from portcitycs@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so666706nzf for ; Mon, 10 Dec 2007 13:40:29 -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=QWpWDK3uHeNjc84tExqdF7oUZuPz+WhJBDLPwndkdYw=; b=iwRFqx4CMiHlVMB1pK1y3PNsRe+PRdrKjiLItKhya63+Vzi8pe7hE3/PCcacqkVcNe6BxpnDULgCkAs7so7GMMopNmql1xEELyv4aUaib4ln7nJiWsdu+2VnNIFSE0hyKzKOE42w3wuwAmBmnnxBD7uh65Akg2oncsSZTveuChI= 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=rc4yB6envd+NlAEzqTfNzchu9VLhbDG4r/KD4VPGhR28uqdfkj3CZhPTZCvpmz4KKWr6LR2U02Z7/2ZlhcUHYiEMhLM3PYfwgCDT/UyLkcu0l2pMav8uN6YNSQEnqC7aiIo16pMoNer80k7GSg08LM30S8ZGy7rNg2UBS3dpIUw= Received: by 10.142.52.9 with SMTP id z9mr1968446wfz.1197322828901; Mon, 10 Dec 2007 13:40:28 -0800 (PST) Received: by 10.142.201.4 with HTTP; Mon, 10 Dec 2007 13:40:28 -0800 (PST) Message-ID: <5a1835cd0712101340x7b71bbfdxd5f70ffd9064d946@mail.gmail.com> Date: Mon, 10 Dec 2007 16:40:28 -0500 From: "Lyle Scott III" To: embedded@freebsd.org In-Reply-To: <475DAA87.3080802@nurfuerspam.de> MIME-Version: 1.0 References: <475DA718.3060904@nurfuerspam.de> <475DAA87.3080802@nurfuerspam.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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: Mon, 10 Dec 2007 21:40:32 -0000 i have used the Sandisk 512 line as stated earlier.. i have also specified manually: NANO_MEDIASIZE=1000944 NANO_HEADS=63 NANO_SECTS=16 ... i will try to comment out the line that builds the bootmanager... even if i add # Number of code images on media (1 or 2) NANO_IMAGES=1 it builds one image, but still throws the bootloader on there. thanks for all the input! i'll work it some tonight between studying for exams... nanobsd doesnt exactly take 5 minutes to recompile :) On Dec 10, 2007 4:07 PM, Markus Dolze wrote: > Markus Dolze wrote: > >> :/ 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. > >> / > >> This geometry is the fake geometry that I was talking about. You > >> can't trust it any more than you can a used car salesman... > >> > >> :/ > : > : Phys C/H/S 993/16/63 Log C/H/S 993/16/63 > >> / > >> This is the geometry that you must use. > >> > >> To do that, you'll need to set the start of the FreeBSD partition to > >> 63 and the end to 940463 (which is 993 * 16 * 63 - 1). You'll need to > >> make sure that the start chs is: > >> > >> beg: cyl 0/ head 1/ sector 1; > >> and the end should be > >> end: cyl 992/ head 15/ sector 63 > >> > >> once you have that, you can then newfs, etc. You'll also need to make > >> sure that you've done both fdisk -B and bsdlabel -B to make sure the > >> MBR and FreeBSD boot loader is on the new partition. > >> > >> > > Hello, > > > > as you are using NanoBSD you might just want to add the line > > > > 'FlashDevice Sandisk 512' > > > > in your nanobsd.cfg. This instructs NanoBSD to read the flash > > configuration from the 'FlashDevices.sub' file. The entry for Sandisk > > 512 shows 512483328 bytes with 16 heads and 63 sectors which matches the > > values of your card. > > > > NanoBSD should take care of creating the slices in the right way... > > > > As of version 1.7.2.7 it already uses 'packet mode'. The version is > > printed on top of nanobsd.sh, just below the copyright message. > > > > Also, this post might be helpful: > > > http://lists.freebsd.org/pipermail/freebsd-embedded/2007-November/000253.html > . > > > > Regards, > > Markus Dolze > > > > > I just had a look at my running WRAP installation. There I do not have > any boot manager at all, as I am just using the 'one image' > configuration of NanoBSD. I am not sure how I did this, but I think I > removed (commented out) the line > > boot0cfg -B -b ${NANO_WORLDDIR}/boot/boot0sio -o packet -s 1 -m 3 ${MD} > > in nanobsd.sh. > > Regards > Markus Dolze > > -- Lyle Scott, III http://www.lylescott.ws