From owner-freebsd-embedded@FreeBSD.ORG Sun May 3 12:20:25 2009 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 5244A1065677 for ; Sun, 3 May 2009 12:20:25 +0000 (UTC) (envelope-from rickvanderzwet@gmail.com) Received: from mail-fx0-f162.google.com (mail-fx0-f162.google.com [209.85.220.162]) by mx1.freebsd.org (Postfix) with ESMTP id ABF268FC22 for ; Sun, 3 May 2009 12:20:19 +0000 (UTC) (envelope-from rickvanderzwet@gmail.com) Received: by fxm6 with SMTP id 6so3102331fxm.43 for ; Sun, 03 May 2009 05:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=VbFhhoadypv+fxBqH/Tic209cxIC6AKDZBtVI1KVGkA=; b=q7fmfS6NDl4LBXVvSXk9vjZ1w3TeC/c0jGBJXw610K90s9tQzW63GC/gqr16GNsojg fA6VeoFs4qd0wCl/+q+xL2OkqbYsqvrHTJoUFs4HWkU7/iwEhd8PtN0eFAQxicKhfxMv TayN9ZBNnrFZBbu/r5GfqVaZY4zaZwMydObqA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=r/lcmCLy8V1Ra4byCuI0QAc1KLkpbYjtG+pjPI2PSblZyWdCpbft813cQcW6dVexn/ rZCi58FKEg6cduJ2f2fRcwfOSeE4wsWeAipiBfoJ/bh1Ssb59UvIsyvMmjr73tU8jdaf zpHkKGD8zO6ate+JpduQBFm07RW9RiRyDYRfM= MIME-Version: 1.0 Sender: rickvanderzwet@gmail.com Received: by 10.223.126.66 with SMTP id b2mr1626430fas.3.1241353218986; Sun, 03 May 2009 05:20:18 -0700 (PDT) In-Reply-To: <20090423.162427.-1543901316.imp@bsdimp.com> References: <5aaae08a0904231438v5b655056g8852dc11f1e83987@mail.gmail.com> <20090423.162427.-1543901316.imp@bsdimp.com> Date: Sun, 3 May 2009 14:20:18 +0200 X-Google-Sender-Auth: ba746dfa2ab62ae8 Message-ID: <5aaae08a0905030520t1e942e76o6e7c9447700cf5f0@mail.gmail.com> From: Rick van der Zwet To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org Subject: Re: nanobsd image boot issues 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, 03 May 2009 12:20:25 -0000 2009/4/24 M. Warner Losh : > In message: <5aaae08a0904231438v5b655056g8852dc11f1e83987@mail.gmail.com> > Rick van der Zwet writes: > : Boot delay and fail issues on various hardware using nanobsd generated > : RELENG_7_1 images on a sandisk 2gb CF (SDCFH2-002G). For example while > : trying to run a image on a soekris net4521 (bios 1.33) it seems to > : take ages (up to a minute) to start booting. Same image supplied to a > : PC (intel Pentium 1 & award bios) using a CF->IDE converter does not > : seems to boot at all, neither does a net4801 (bios 1.33). Just seems > : trying to find a boot loader. The net4801 even bails out after a > : while. Output of fdisk of image list as follows: [snip: fdisk outputs] > Have you enabled packet mode for boot in boot0 with boot0cfg? I did. The problems turned out to be something completely different. Starting from soekris bios version 1.31 and upwards boot0sio does not work anymore, freezing forever while trying to boot initially e.g. not showing the following output: F1 FreeBSD F2 FreeBSD Default: F1 I generated my images like this: $ fdisk -i -f _.fdisk da0 $ boot0cfg -B -b /boot/boot0sio -o packet -s 1 -m 3 da0 $ bsdlabel -w -B -b /boot/boot da0s1 $ bsdlabel -w -B -b /boot/boot da0s2 $ newfs /dev/da0s1a $ newfs /dev/da0s2a $ newfs /dev/da0s3 $ cat _.fdisk # 1000944 2 63 16 0 8192 0 g c993 h16 s63 p 1 165 63 495873 p 2 165 495999 495873 p 3 165 991872 9072 When using /boot/boot0 instead of /boot/boot0sio all seems to work perfectly fine on all Soekris boards I could test it on (net4521, net4801, net5501). Next comes the interesting question when I use the some CF card in PC is does _not_ work. I did get the output on the screen, but when trying to press F1 or F2 or CR. All I got was a beep and no progress forward, but just remain in the same section. Default behavior or something off? /Rick (reply-to-all button is sometimes hard to find) -- http://rickvanderzwet.nl From owner-freebsd-embedded@FreeBSD.ORG Mon May 4 03:47:36 2009 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 391FD106564A for ; Mon, 4 May 2009 03:47:36 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (w.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id D8B4E8FC15 for ; Mon, 4 May 2009 03:47:35 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id n443aNA6042886 for ; Sun, 3 May 2009 21:36:24 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.3/8.14.3) with ESMTP id n442TIOo050326; Sun, 3 May 2009 20:29:18 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.3/8.14.3/Submit) id n442TItJ050321; Sun, 3 May 2009 20:29:18 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18942.21245.958712.837180@gromit.timing.com> Date: Sun, 3 May 2009 20:29:17 -0600 From: John Hein To: Rick van der Zwet In-Reply-To: <5aaae08a0905030520t1e942e76o6e7c9447700cf5f0@mail.gmail.com> References: <5aaae08a0904231438v5b655056g8852dc11f1e83987@mail.gmail.com> <20090423.162427.-1543901316.imp@bsdimp.com> <5aaae08a0905030520t1e942e76o6e7c9447700cf5f0@mail.gmail.com> X-Mailer: VM 7.19 under Emacs 22.3.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: freebsd-embedded@freebsd.org Subject: Re: nanobsd image boot issues 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, 04 May 2009 03:47:36 -0000 Rick van der Zwet wrote at 14:20 +0200 on May 3, 2009: > 2009/4/24 M. Warner Losh : > > In message: <5aaae08a0904231438v5b655056g8852dc11f1e83987@mail.gmail.com> > > Rick van der Zwet writes: > > : Boot delay and fail issues on various hardware using nanobsd generated > > : RELENG_7_1 images on a sandisk 2gb CF (SDCFH2-002G). For example while > > : trying to run a image on a soekris net4521 (bios 1.33) it seems to > > : take ages (up to a minute) to start booting. Same image supplied to a > > : PC (intel Pentium 1 & award bios) using a CF->IDE converter does not > > : seems to boot at all, neither does a net4801 (bios 1.33). Just seems > > : trying to find a boot loader. The net4801 even bails out after a > > : while. Output of fdisk of image list as follows: > [snip: fdisk outputs] > > > Have you enabled packet mode for boot in boot0 with boot0cfg? > > I did. The problems turned out to be something completely different. > Starting from soekris bios version 1.31 and upwards boot0sio does not > work anymore, freezing forever while trying to boot initially e.g. not > showing the following output: > F1 FreeBSD > F2 FreeBSD > > Default: F1 > > I generated my images like this: > $ fdisk -i -f _.fdisk da0 > $ boot0cfg -B -b /boot/boot0sio -o packet -s 1 -m 3 da0 > $ bsdlabel -w -B -b /boot/boot da0s1 > $ bsdlabel -w -B -b /boot/boot da0s2 > $ newfs /dev/da0s1a > $ newfs /dev/da0s2a > $ newfs /dev/da0s3 > $ cat _.fdisk > # 1000944 2 63 16 0 8192 0 > g c993 h16 s63 > p 1 165 63 495873 > p 2 165 495999 495873 > p 3 165 991872 9072 > > When using /boot/boot0 instead of /boot/boot0sio all seems to work > perfectly fine on all Soekris boards I could test it on (net4521, > net4801, net5501). > > Next comes the interesting question when I use the some CF card in PC > is does _not_ work. I did get the output on the screen, but when > trying to press F1 or F2 or CR. All I got was a beep and no progress > forward, but just remain in the same section. Default behavior or > something off? Note that 7.1 (which is what I seem to recall you're using) changed the boot loader to use real mode (see sys/boot/i386/btx). You could try using boot blocks from 7.0 (or 6.3) to see if it makes a difference.. From owner-freebsd-embedded@FreeBSD.ORG Mon May 4 11:07:44 2009 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 E2A24106567F for ; Mon, 4 May 2009 11:07:44 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CB8518FC15 for ; Mon, 4 May 2009 11:07:44 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n44B7ist098497 for ; Mon, 4 May 2009 11:07:44 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n44B7h5U098487 for freebsd-embedded@FreeBSD.org; Mon, 4 May 2009 11:07:43 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 May 2009 11:07:43 GMT Message-Id: <200905041107.n44B7h5U098487@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org 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, 04 May 2009 11:07:45 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/101228 embedded [nanobsd] [patch] Two more entries for FlashDevice.sub o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c o misc/15876 embedded [picobsd] PicoBSD message of the day problems 4 problems total. From owner-freebsd-embedded@FreeBSD.ORG Mon May 4 19:22:18 2009 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 54D1A1065680 for ; Mon, 4 May 2009 19:22:18 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 1449C8FC0A for ; Mon, 4 May 2009 19:22:18 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id BE20A46B92; Mon, 4 May 2009 15:22:17 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 86C008A023; Mon, 4 May 2009 15:22:16 -0400 (EDT) From: John Baldwin To: freebsd-embedded@freebsd.org Date: Mon, 4 May 2009 09:55:44 -0400 User-Agent: KMail/1.9.7 References: <5aaae08a0904231438v5b655056g8852dc11f1e83987@mail.gmail.com> <5aaae08a0905030520t1e942e76o6e7c9447700cf5f0@mail.gmail.com> <18942.21245.958712.837180@gromit.timing.com> In-Reply-To: <18942.21245.958712.837180@gromit.timing.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905040955.44391.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 04 May 2009 15:22:16 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.5 required=4.2 tests=AWL,BAYES_00, DATE_IN_PAST_03_06,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Subject: Re: nanobsd image boot issues 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, 04 May 2009 19:22:18 -0000 On Sunday 03 May 2009 10:29:17 pm John Hein wrote: > Rick van der Zwet wrote at 14:20 +0200 on May 3, 2009: > > 2009/4/24 M. Warner Losh : > > > In message: <5aaae08a0904231438v5b655056g8852dc11f1e83987@mail.gmail.com> > > > Rick van der Zwet writes: > > > : Boot delay and fail issues on various hardware using nanobsd generated > > > : RELENG_7_1 images on a sandisk 2gb CF (SDCFH2-002G). For example while > > > : trying to run a image on a soekris net4521 (bios 1.33) it seems to > > > : take ages (up to a minute) to start booting. Same image supplied to a > > > : PC (intel Pentium 1 & award bios) using a CF->IDE converter does not > > > : seems to boot at all, neither does a net4801 (bios 1.33). Just seems > > > : trying to find a boot loader. The net4801 even bails out after a > > > : while. Output of fdisk of image list as follows: > > [snip: fdisk outputs] > > > > > Have you enabled packet mode for boot in boot0 with boot0cfg? > > > > I did. The problems turned out to be something completely different. > > Starting from soekris bios version 1.31 and upwards boot0sio does not > > work anymore, freezing forever while trying to boot initially e.g. not > > showing the following output: > > F1 FreeBSD > > F2 FreeBSD > > > > Default: F1 > > > > I generated my images like this: > > $ fdisk -i -f _.fdisk da0 > > $ boot0cfg -B -b /boot/boot0sio -o packet -s 1 -m 3 da0 > > $ bsdlabel -w -B -b /boot/boot da0s1 > > $ bsdlabel -w -B -b /boot/boot da0s2 > > $ newfs /dev/da0s1a > > $ newfs /dev/da0s2a > > $ newfs /dev/da0s3 > > $ cat _.fdisk > > # 1000944 2 63 16 0 8192 0 > > g c993 h16 s63 > > p 1 165 63 495873 > > p 2 165 495999 495873 > > p 3 165 991872 9072 > > > > When using /boot/boot0 instead of /boot/boot0sio all seems to work > > perfectly fine on all Soekris boards I could test it on (net4521, > > net4801, net5501). > > > > Next comes the interesting question when I use the some CF card in PC > > is does _not_ work. I did get the output on the screen, but when > > trying to press F1 or F2 or CR. All I got was a beep and no progress > > forward, but just remain in the same section. Default behavior or > > something off? > > Note that 7.1 (which is what I seem to recall you're using) > changed the boot loader to use real mode (see sys/boot/i386/btx). > > You could try using boot blocks from 7.0 (or 6.3) to see > if it makes a difference.. boot0 doesn't use BTX so those changes should not affect that. Luigi (luigi@) did make some changes to boot0, however, and you may want to ask him about this. -- John Baldwin From owner-freebsd-embedded@FreeBSD.ORG Tue May 5 08:14:28 2009 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 DF04E106566B for ; Tue, 5 May 2009 08:14:27 +0000 (UTC) (envelope-from fb-embedded@psconsult.nl) Received: from mx1.psconsult.nl (psc11.adsl.iaf.nl [80.89.238.138]) by mx1.freebsd.org (Postfix) with ESMTP id 618BB8FC15 for ; Tue, 5 May 2009 08:14:27 +0000 (UTC) (envelope-from fb-embedded@psconsult.nl) Received: from mx1.psconsult.nl (localhost [80.89.238.138]) by mx1.psconsult.nl (8.14.2/8.14.2) with ESMTP id n458EK6E073257 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 5 May 2009 10:14:25 +0200 (CEST) (envelope-from fb-embedded@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.2/8.14.2/Submit) id n458EKU1073256 for freebsd-embedded@freebsd.org; Tue, 5 May 2009 10:14:20 +0200 (CEST) (envelope-from fb-embedded@psconsult.nl) Date: Tue, 5 May 2009 10:14:20 +0200 From: Paul Schenkeveld To: freebsd-embedded@freebsd.org Message-ID: <20090505081420.GA72340@psconsult.nl> References: <5aaae08a0904231438v5b655056g8852dc11f1e83987@mail.gmail.com> <20090423.162427.-1543901316.imp@bsdimp.com> <5aaae08a0905030520t1e942e76o6e7c9447700cf5f0@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5aaae08a0905030520t1e942e76o6e7c9447700cf5f0@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: nanobsd image boot issues 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, 05 May 2009 08:14:28 -0000 Hello, On Sun, May 03, 2009 at 02:20:18PM +0200, Rick van der Zwet wrote: > 2009/4/24 M. Warner Losh : > > In message: <5aaae08a0904231438v5b655056g8852dc11f1e83987@mail.gmail.com> > > Rick van der Zwet writes: > > : Boot delay and fail issues on various hardware using nanobsd generated > > : RELENG_7_1 images on a sandisk 2gb CF (SDCFH2-002G). For example while > > : trying to run a image on a soekris net4521 (bios 1.33) it seems to > > : take ages (up to a minute) to start booting. Same image supplied to a > > : PC (intel Pentium 1 & award bios) using a CF->IDE converter does not > > : seems to boot at all, neither does a net4801 (bios 1.33). Just seems > > : trying to find a boot loader. The net4801 even bails out after a > > : while. Output of fdisk of image list as follows: > [snip: fdisk outputs] > > > Have you enabled packet mode for boot in boot0 with boot0cfg? > > I did. The problems turned out to be something completely different. > Starting from soekris bios version 1.31 and upwards boot0sio does not > work anymore, freezing forever while trying to boot initially e.g. not > showing the following output: > F1 FreeBSD > F2 FreeBSD > > Default: F1 Yesterday I did a complete nanobsd build from scratch, sources checked out with RELENG_7_1 tag (gave me 7.1p5) and with the default boot loader (boot0sio), packet mode is on. The resulting _.disk.full was put on a Kingston CF/256 compact flash and put in a Soekris net4801-50 with bios 1.33. No problem at all. Haven't tried with net4521 yet, can try upgrade of my net4521 WiFi AP soon if time permits. Output of a boot (truncated): | POST: 012345689bcefghipsajklnopqr,,,tvwxy | | | | | | | | | comBIOS ver. 1.33 20080103 Copyright (C) 2000-2007 Soekris Engineering. | | net4801 | | 0128 Mbyte Memory CPU Geode SC1100 267 Mhz | | Pri Mas Hitachi XX.V.3.4.0.0 LBA 695-15-48 250 Mbyte | | Slot Vend Dev ClassRev Cmd Stat CL LT HT Base1 Base2 Int | ------------------------------------------------------------------- | 0:00:0 1078 0001 06000000 0107 0280 00 00 00 00000000 00000000 | 0:06:0 100B 0020 02000000 0107 0290 00 3F 00 0000E101 A0000000 10 | 0:07:0 100B 0020 02000000 0107 0290 00 3F 00 0000E201 A0001000 10 | 0:08:0 100B 0020 02000000 0107 0290 00 3F 00 0000E301 A0002000 10 | 0:10:0 104C AC23 06040002 0107 0210 08 3F 01 00000000 00000000 | 0:18:2 100B 0502 01018001 0005 0280 00 00 00 00000000 00000000 | 0:19:0 0E11 A0F8 0C031008 0117 0280 08 38 00 A0003000 00000000 11 | 1:00:0 100B 0020 02000000 0107 0290 00 3F 00 0000D001 A4000000 05 | 1:01:0 100B 0020 02000000 0107 0290 00 3F 00 0000D101 A4001000 11 | | 1 Seconds to automatic boot. Press Ctrl-P for entering Monitor. | | 1 FreeBSD | 2 FreeBSD | | Default: 1 | /boot.config: -h | Consoles: serial port | BIOS drive C: is disk0 | BIOS 639kB/130048kB available memory | | FreeBSD/i386 bootstrap loader, Revision 1.1 | (xxxx@xxxxxx.xxxxxxxxx.xx, Mon May 4 12:11:37 CEST 2009) | Loading /boot/defaults/loader.conf | /boot/kernel/kernel text=0x2be700 data=0x2f200+0x1b32c syms=[0x4+0x3af80+0x4+0x4c39b] | \ | Hit [Enter] to boot immediately, or any other key for command prompt. | Booting [/boot/kernel/kernel]... | Copyright (c) 1992-2009 The FreeBSD Project. | Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 | The Regents of the University of California. All rights reserved. | FreeBSD is a registered trademark of The FreeBSD Foundation. | FreeBSD 7.1-RELEASE-p5 #1: Mon May 4 14:05:05 CEST 2009 | xxxx@xxxxxx.xxxxxxxxx.xx:/usr/obj/usr/src/sys/XXXX | Timecounter "i8254" frequency 1193182 Hz quality 0 Total boot takes ~ 1 min. > I generated my images like this: > $ fdisk -i -f _.fdisk da0 > $ boot0cfg -B -b /boot/boot0sio -o packet -s 1 -m 3 da0 > $ bsdlabel -w -B -b /boot/boot da0s1 > $ bsdlabel -w -B -b /boot/boot da0s2 > $ newfs /dev/da0s1a > $ newfs /dev/da0s2a > $ newfs /dev/da0s3 > $ cat _.fdisk > # 1000944 2 63 16 0 8192 0 > g c993 h16 s63 > p 1 165 63 495873 > p 2 165 495999 495873 > p 3 165 991872 9072 > > When using /boot/boot0 instead of /boot/boot0sio all seems to work > perfectly fine on all Soekris boards I could test it on (net4521, > net4801, net5501). > > Next comes the interesting question when I use the some CF card in PC > is does _not_ work. I did get the output on the screen, but when > trying to press F1 or F2 or CR. All I got was a beep and no progress > forward, but just remain in the same section. Default behavior or > something off? The boot0sio uses "1" and "2" instead of "F1" and "F2". I accidently found out on a server that "1" and "2" work for the standard boot0 too but am not sure if I used the FB7 or FB8 boot0 on that machine. > /Rick (reply-to-all button is sometimes hard to find) > -- > http://rickvanderzwet.nl -- Paul Schenkeveld From owner-freebsd-embedded@FreeBSD.ORG Tue May 5 08:34:57 2009 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 29252106566C for ; Tue, 5 May 2009 08:34:57 +0000 (UTC) (envelope-from rickvanderzwet@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id A598D8FC1C for ; Tue, 5 May 2009 08:34:56 +0000 (UTC) (envelope-from rickvanderzwet@gmail.com) Received: by fk-out-0910.google.com with SMTP id f33so2214499fkf.11 for ; Tue, 05 May 2009 01:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=UtsOeCi6W0Pku2zHbvR7j/SD5icXZYPqiyrdNHiA5PY=; b=S6u72Sfnkk4J7dOAd9tcLFYUNZsa8066T4dkwCxqxbSPLmZCQjef0q8JChVIVNpW0j k4byTcOSJnmAPOXAFaXLK1tt7GlYc1vQhH94DUoINRxA84EHrafwURMQCGdNWvdIqXkW TLgWpCAyExppHj6pOlD14bXAPiPPlibFYVu7c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=x3whhhafaERY+hbyIIiCxKc5W4sTkVP3o8Szf0yL3WvSpX8qdkD5oqaURTP6rTnPxt PyoGpf2AMFOi4gH/ank+IjZByl7Hc7W8hi8LYu9E+fN0GckX0TQHuyTsruCSeSP/7Ldq oBDjRyBECD00mgboBOE3vMrJJPZbZ62Ga7OYk= MIME-Version: 1.0 Sender: rickvanderzwet@gmail.com Received: by 10.223.108.196 with SMTP id g4mr2914430fap.36.1241512494650; Tue, 05 May 2009 01:34:54 -0700 (PDT) In-Reply-To: <20090505081420.GA72340@psconsult.nl> References: <5aaae08a0904231438v5b655056g8852dc11f1e83987@mail.gmail.com> <20090423.162427.-1543901316.imp@bsdimp.com> <5aaae08a0905030520t1e942e76o6e7c9447700cf5f0@mail.gmail.com> <20090505081420.GA72340@psconsult.nl> Date: Tue, 5 May 2009 10:34:54 +0200 X-Google-Sender-Auth: e5ed35d795c87e04 Message-ID: <5aaae08a0905050134i6b620c37j3bd107e61e7e39a4@mail.gmail.com> From: Rick van der Zwet To: Paul Schenkeveld Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-embedded@freebsd.org Subject: Re: nanobsd image boot issues 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, 05 May 2009 08:34:57 -0000 2009/5/5 Paul Schenkeveld : > On Sun, May 03, 2009 at 02:20:18PM +0200, Rick van der Zwet wrote: >> 2009/4/24 M. Warner Losh : >> > In message: <5aaae08a0904231438v5b655056g8852dc11f1e83987@mail.gmail.c= om> >> > =A0 =A0 =A0 =A0 =A0 =A0Rick van der Zwet writ= es: >> > : Boot delay and fail issues on various hardware using nanobsd generat= ed >> > : RELENG_7_1 images on a sandisk 2gb CF (SDCFH2-002G). For example whi= le >> > : trying to run a image on a soekris net4521 (bios 1.33) it seems to >> > : take ages (up to a minute) to start booting. Same image supplied to = a >> > : PC (intel Pentium 1 & award bios) using a CF->IDE converter does not >> > : seems to boot at all, neither does a net4801 (bios 1.33). Just seems >> > : trying to find a boot loader. The net4801 even bails out after a >> > : while. Output of fdisk of image list as follows: >> [snip: fdisk outputs] >> >> > Have you enabled packet mode for boot in boot0 with boot0cfg? >> >> I did. The problems turned out to be something completely different. >> Starting from soekris bios version 1.31 and upwards boot0sio does not >> work anymore, freezing forever while trying to boot initially e.g. not >> showing the following output: >> =A0 =A0F1 =A0 FreeBSD >> =A0 =A0F2 =A0 FreeBSD >> >> =A0 =A0Default: F1 > > Yesterday I did a complete nanobsd build from scratch, sources checked > out with RELENG_7_1 tag (gave me 7.1p5) and with the default boot loader > (boot0sio), packet mode is on. Interesting, could you share your nanobsd configuration and if possible one of the images so I could test them over here? Configuration I am using could be found at: http://svn.wirelessleiden.nl/svn/projects/iris/nanobsd/cfg/nanobsd.wlei= den /Rick --=20 http://rickvanderzwet.nl From owner-freebsd-embedded@FreeBSD.ORG Tue May 5 09:58:37 2009 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 51078106564A for ; Tue, 5 May 2009 09:58:37 +0000 (UTC) (envelope-from rickvanderzwet@gmail.com) Received: from mail-fx0-f162.google.com (mail-fx0-f162.google.com [209.85.220.162]) by mx1.freebsd.org (Postfix) with ESMTP id 8CC1E8FC0A for ; Tue, 5 May 2009 09:58:36 +0000 (UTC) (envelope-from rickvanderzwet@gmail.com) Received: by fxm6 with SMTP id 6so4398185fxm.43 for ; Tue, 05 May 2009 02:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=6Vz2BiUDqlzC0oqwHvXtbtxaJKtEfwy1Ms1N4cnnmHg=; b=BabkbrsuE1tlK3uXymnruQOEQmPgTjXAYrEdSHgoVECVhGm9X34PRbQQaPG7Z4i9O+ qrma00GR0zqgdIO4ZPzqc8RlmnG6BH02LtRtRALs942CA7qt9QK+MectTzoERTKeXTjS stmUtHm0kghC1u7V9QnTF3ECjVpf/hPqSfnuw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; b=veMoSZk1I/B/AOMBGa6pV1ODEOqei5WXy4XnnzQdsEggB+L6zT9DYi3kmfjOt4hfxw SiktJ3z5k4ez+Cc9oi7aWGeaKXH+pR774zxf0PXz+BTKkX8TqgpDaZdQP88E5TQQ+F6W xaX/koKUyuAwBJERYImfBkbl5wDSDaJYWxvjw= MIME-Version: 1.0 Sender: rickvanderzwet@gmail.com Received: by 10.223.119.84 with SMTP id y20mr2952660faq.14.1241517515384; Tue, 05 May 2009 02:58:35 -0700 (PDT) Date: Tue, 5 May 2009 11:58:35 +0200 X-Google-Sender-Auth: bb877afc9f16fd99 Message-ID: <5aaae08a0905050258t5ca6a84ep2b7d1a47bcca6d8c@mail.gmail.com> From: Rick van der Zwet To: luigi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-embedded@freebsd.org Subject: Boot0 testing (WAS: Re: nanobsd image boot issues) 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, 05 May 2009 09:58:37 -0000 Hi Luigi, Down below a thread currently running at freebsd-embedded@ regarding the boot0 loader and it's weirdness. I don't seems to find a proper way of getting the boot0 loader to work on various (old) hardware, like Pentium I PC's with awardBios, which I need to get nanobsd to work properly on various types of hardware. I have tried a whole number of options and combination all varies from LBA bios settings to different boot0 loaders of various releases, but all combination seems to 'die' or got 'stuck', e.g. not to continue with the generic boot cycle. Looking at the source code it seems to be 3 points of failure, ranging from invalid input to unreadable sectors, but all ends with the same generic warning (read: one 'beep'). I know space is limited, but how about a different beep sequence for all warning, will that be possible? Next as you did quite some work in the field of boot loaders, what is the best way to test the boot loader sequence e.g. enable full debugging at all parts of the progress? Thanks in advance, /Rick PS: Some background: Bunch of enthusiastic volunteers running FreeBSD RELENG_5 at 80+ wireless nodes of various types of hardware, in and around the city of Leiden, The Netherlands. Planning a overhaul of the software to run on recent version of FreeBSD using nanobsd to provide remote update possibilities. 2009/5/4 John Baldwin : > On Sunday 03 May 2009 10:29:17 pm John Hein wrote: >> Rick van der Zwet wrote at 14:20 +0200 on May =A03, 2009: >> =A0> 2009/4/24 M. Warner Losh : >> =A0> > In message: > <5aaae08a0904231438v5b655056g8852dc11f1e83987@mail.gmail.com> >> =A0> > =A0 =A0 =A0 =A0 =A0 =A0Rick van der Zwet = writes: >> =A0> > : Boot delay and fail issues on various hardware using nanobsd > generated >> =A0> > : RELENG_7_1 images on a sandisk 2gb CF (SDCFH2-002G). For exampl= e > while >> =A0> > : trying to run a image on a soekris net4521 (bios 1.33) it seems= to >> =A0> > : take ages (up to a minute) to start booting. Same image supplie= d to a >> =A0> > : PC (intel Pentium 1 & award bios) using a CF->IDE converter doe= s not >> =A0> > : seems to boot at all, neither does a net4801 (bios 1.33). Just = seems >> =A0> > : trying to find a boot loader. The net4801 even bails out after = a >> =A0> > : while. Output of fdisk of image list as follows: >> =A0> [snip: fdisk outputs] >> =A0> >> =A0> > Have you enabled packet mode for boot in boot0 with boot0cfg? >> =A0> >> =A0> I did. The problems turned out to be something completely different= . >> =A0> Starting from soekris bios version 1.31 and upwards boot0sio does n= ot >> =A0> work anymore, freezing forever while trying to boot initially e.g. = not >> =A0> showing the following output: >> =A0> =A0 =A0F1 =A0 FreeBSD >> =A0> =A0 =A0F2 =A0 FreeBSD >> =A0> >> =A0> =A0 =A0Default: F1 >> =A0> >> =A0> I generated my images like this: >> =A0> =A0 =A0$ fdisk -i -f _.fdisk da0 >> =A0> =A0 =A0$ boot0cfg -B -b /boot/boot0sio -o packet -s 1 -m 3 da0 >> =A0> =A0 =A0$ bsdlabel -w -B -b /boot/boot da0s1 >> =A0> =A0 =A0$ bsdlabel -w -B -b /boot/boot da0s2 >> =A0> =A0 =A0$ newfs /dev/da0s1a >> =A0> =A0 =A0$ newfs /dev/da0s2a >> =A0> =A0 =A0$ newfs /dev/da0s3 >> =A0> =A0 =A0$ cat _.fdisk >> =A0> =A0 =A0# 1000944 2 63 16 0 8192 0 >> =A0> =A0 =A0g c993 h16 s63 >> =A0> =A0 =A0p 1 165 63 495873 >> =A0> =A0 =A0p 2 165 495999 495873 >> =A0> =A0 =A0p 3 165 991872 9072 >> =A0> >> =A0> When using /boot/boot0 instead of /boot/boot0sio all seems to work >> =A0> perfectly fine on all Soekris boards I could test it on (net4521, >> =A0> net4801, net5501). >> =A0> >> =A0> Next comes the interesting question when I use the some CF card in = PC >> =A0> is does _not_ work. I did get the output on the screen, but when >> =A0> trying to press F1 or F2 or CR. All I got was a beep and no progres= s >> =A0> forward, but just remain in the same section. Default behavior or >> =A0> something off? >> >> Note that 7.1 (which is what I seem to recall you're using) >> changed the boot loader to use real mode (see sys/boot/i386/btx). >> >> You could try using boot blocks from 7.0 (or 6.3) to see >> if it makes a difference.. > > boot0 doesn't use BTX so those changes should not affect that. =A0Luigi (= luigi@) > did make some changes to boot0, however, and you may want to ask him abou= t > this. > > -- > John Baldwin > From owner-freebsd-embedded@FreeBSD.ORG Tue May 5 10:57:29 2009 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 DE35A106566B for ; Tue, 5 May 2009 10:57:29 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id 426318FC08 for ; Tue, 5 May 2009 10:57:29 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id A21D673098; Tue, 5 May 2009 12:44:19 +0200 (CEST) Date: Tue, 5 May 2009 12:44:19 +0200 From: Luigi Rizzo To: Rick van der Zwet Message-ID: <20090505104419.GA12107@onelab2.iet.unipi.it> References: <5aaae08a0905050258t5ca6a84ep2b7d1a47bcca6d8c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5aaae08a0905050258t5ca6a84ep2b7d1a47bcca6d8c@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: luigi@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: Boot0 testing (WAS: Re: nanobsd image boot issues) 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, 05 May 2009 10:57:30 -0000 On Tue, May 05, 2009 at 11:58:35AM +0200, Rick van der Zwet wrote: > Hi Luigi, > > Down below a thread currently running at freebsd-embedded@ regarding > the boot0 loader and it's weirdness. I don't seems to find a proper > way of getting the boot0 loader to work on various (old) hardware, > like Pentium I PC's with awardBios, which I need to get nanobsd to > work properly on various types of hardware. One problem I had with some old hardware was that the BIOS could not read more than one sector at a time, and eventually (but it was really long ago so i do not remember the details well) I had to patch some code so that reading would occur one sector at a time instead of using track-long blocks. But if the problem is this one, it should be really something that pertains to boot1 and boot2. Also, some BIOSes and CF cards can be confused if the geometry is not correct. That's all i know. cheers luigi > I have tried a whole number of options and combination all varies > from LBA bios settings to different boot0 loaders of various releases, > but all combination seems to 'die' or got 'stuck', e.g. not to > continue with the generic boot cycle. > > Looking at the source code it seems to be 3 points of failure, ranging > from invalid input to unreadable sectors, but all ends with the same > generic warning (read: one 'beep'). I know space is limited, but how > about a different beep sequence for all warning, will that be > possible? > > Next as you did quite some work in the field of boot loaders, what is > the best way to test the boot loader sequence e.g. enable full > debugging at all parts of the progress? > > Thanks in advance, > /Rick > PS: Some background: Bunch of enthusiastic volunteers running FreeBSD > RELENG_5 at 80+ wireless nodes of various types of hardware, in and > around the city of Leiden, The Netherlands. Planning a overhaul of the > software to run on recent version of FreeBSD using nanobsd to provide > remote update possibilities. > > 2009/5/4 John Baldwin : > > On Sunday 03 May 2009 10:29:17 pm John Hein wrote: > >> Rick van der Zwet wrote at 14:20 +0200 on May ?3, 2009: > >> ?> 2009/4/24 M. Warner Losh : > >> ?> > In message: > > <5aaae08a0904231438v5b655056g8852dc11f1e83987@mail.gmail.com> > >> ?> > ? ? ? ? ? ?Rick van der Zwet writes: > >> ?> > : Boot delay and fail issues on various hardware using nanobsd > > generated > >> ?> > : RELENG_7_1 images on a sandisk 2gb CF (SDCFH2-002G). For example > > while > >> ?> > : trying to run a image on a soekris net4521 (bios 1.33) it seems to > >> ?> > : take ages (up to a minute) to start booting. Same image supplied to a > >> ?> > : PC (intel Pentium 1 & award bios) using a CF->IDE converter does not > >> ?> > : seems to boot at all, neither does a net4801 (bios 1.33). Just seems > >> ?> > : trying to find a boot loader. The net4801 even bails out after a > >> ?> > : while. Output of fdisk of image list as follows: > >> ?> [snip: fdisk outputs] > >> ?> > >> ?> > Have you enabled packet mode for boot in boot0 with boot0cfg? > >> ?> > >> ?> I did. The problems turned out to be something completely different. > >> ?> Starting from soekris bios version 1.31 and upwards boot0sio does not > >> ?> work anymore, freezing forever while trying to boot initially e.g. not > >> ?> showing the following output: > >> ?> ? ?F1 ? FreeBSD > >> ?> ? ?F2 ? FreeBSD > >> ?> > >> ?> ? ?Default: F1 > >> ?> > >> ?> I generated my images like this: > >> ?> ? ?$ fdisk -i -f _.fdisk da0 > >> ?> ? ?$ boot0cfg -B -b /boot/boot0sio -o packet -s 1 -m 3 da0 > >> ?> ? ?$ bsdlabel -w -B -b /boot/boot da0s1 > >> ?> ? ?$ bsdlabel -w -B -b /boot/boot da0s2 > >> ?> ? ?$ newfs /dev/da0s1a > >> ?> ? ?$ newfs /dev/da0s2a > >> ?> ? ?$ newfs /dev/da0s3 > >> ?> ? ?$ cat _.fdisk > >> ?> ? ?# 1000944 2 63 16 0 8192 0 > >> ?> ? ?g c993 h16 s63 > >> ?> ? ?p 1 165 63 495873 > >> ?> ? ?p 2 165 495999 495873 > >> ?> ? ?p 3 165 991872 9072 > >> ?> > >> ?> When using /boot/boot0 instead of /boot/boot0sio all seems to work > >> ?> perfectly fine on all Soekris boards I could test it on (net4521, > >> ?> net4801, net5501). > >> ?> > >> ?> Next comes the interesting question when I use the some CF card in PC > >> ?> is does _not_ work. I did get the output on the screen, but when > >> ?> trying to press F1 or F2 or CR. All I got was a beep and no progress > >> ?> forward, but just remain in the same section. Default behavior or > >> ?> something off? > >> > >> Note that 7.1 (which is what I seem to recall you're using) > >> changed the boot loader to use real mode (see sys/boot/i386/btx). > >> > >> You could try using boot blocks from 7.0 (or 6.3) to see > >> if it makes a difference.. > > > > boot0 doesn't use BTX so those changes should not affect that. ?Luigi (luigi@) > > did make some changes to boot0, however, and you may want to ask him about > > this. > > > > -- > > John Baldwin > > From owner-freebsd-embedded@FreeBSD.ORG Tue May 5 14:49:45 2009 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 4B47E1065675 for ; Tue, 5 May 2009 14:49:45 +0000 (UTC) (envelope-from fb-embedded@psconsult.nl) Received: from mx1.psconsult.nl (psc11.adsl.iaf.nl [80.89.238.138]) by mx1.freebsd.org (Postfix) with ESMTP id D005D8FC14 for ; Tue, 5 May 2009 14:49:44 +0000 (UTC) (envelope-from fb-embedded@psconsult.nl) Received: from mx1.psconsult.nl (localhost [80.89.238.138]) by mx1.psconsult.nl (8.14.2/8.14.2) with ESMTP id n45Enc3Z087728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 5 May 2009 16:49:43 +0200 (CEST) (envelope-from fb-embedded@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.2/8.14.2/Submit) id n45EnchH087727 for freebsd-embedded@freebsd.org; Tue, 5 May 2009 16:49:38 +0200 (CEST) (envelope-from fb-embedded@psconsult.nl) Date: Tue, 5 May 2009 16:49:38 +0200 From: Paul Schenkeveld To: freebsd-embedded@freebsd.org Message-ID: <20090505144938.GA87033@psconsult.nl> Mail-Followup-To: freebsd-embedded@freebsd.org References: <200904201535.21191.nick@van-laarhoven.org> <4b925570b9c69698b6eb029454ed29fa@mteege.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4b925570b9c69698b6eb029454ed29fa@mteege.de> User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: nanobsd boot slice selection does not work 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, 05 May 2009 14:49:45 -0000 On Mon, Apr 20, 2009 at 03:55:23PM +0200, Matthias Teege wrote: > Moin, > > > I've seen this problem as well, but can't for the life of me remember what I > > I'm relieved to hear that. Ok, a bit late (interrupt storm generated by device $WORK) but I just tested with a clean 7.2-RELEASE source tree. I too can report this regression in boot0 which now looks at the active flag in a MBR table entry instead of its own default partition byte when not choosing the partition by pressing 1 or 2 at the prompt. This is a regression. The boot0 source code appears to have had a complete overhaul between 7.1 and 7.2. As a workaround, use the 7.1 boot0 source (or even use 7.1 completely if you care about the anticipated eol of the release). I hope Luigi will have some time to look at the default drive delection algorithm again zome time soon. Regards, Paul Schenkeveld From owner-freebsd-embedded@FreeBSD.ORG Tue May 5 19:52:53 2009 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 865F91065672; Tue, 5 May 2009 19:52:53 +0000 (UTC) (envelope-from rickvanderzwet@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id CF18C8FC13; Tue, 5 May 2009 19:52:52 +0000 (UTC) (envelope-from rickvanderzwet@gmail.com) Received: by bwz9 with SMTP id 9so4802452bwz.43 for ; Tue, 05 May 2009 12:52:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=Ps5+/um7yGuWG67l29W3Z/CnH+D+EUgG3iPMapYdM74=; b=q7/X450wMioLFYa1pAU13xNfB3el4K338hdXVhB5d6YHUqMqwQ3rb+ErjQ5zF81jnc VM5H7qo5RxDhJisf2pL9drMhxwyXbBYXV1hAtzvy4ygkrDcLxSQsk1JcOXyxIxua4CHp +cNKHnlOYjW1vfZ06Yr4PpV70CUyYcHapB7H0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=wjRGKJp9AkAgdf1pjke/MsJaTN+WbLiaYHq1y+QMniGiiV4dV1hUpaNvDagCxEQ8f8 Aw3BoGo6eXeg0rzDbJnXaTh39321JMnkuxsTHnsZiGYgfraRLxpk6V4z1E5wZDqwetj9 1u7Z7H2E2n8FVotYE/z18k8zqHa/n5usURHVo= MIME-Version: 1.0 Sender: rickvanderzwet@gmail.com Received: by 10.223.127.4 with SMTP id e4mr542232fas.100.1241553171350; Tue, 05 May 2009 12:52:51 -0700 (PDT) In-Reply-To: <20090505104419.GA12107@onelab2.iet.unipi.it> References: <5aaae08a0905050258t5ca6a84ep2b7d1a47bcca6d8c@mail.gmail.com> <20090505104419.GA12107@onelab2.iet.unipi.it> Date: Tue, 5 May 2009 21:52:51 +0200 X-Google-Sender-Auth: b92bbd5a6bfd1c41 Message-ID: <5aaae08a0905051252l7d3cd0a0m7149d7421a4af20c@mail.gmail.com> From: Rick van der Zwet To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: luigi@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: Boot0 testing (WAS: Re: nanobsd image boot issues) 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, 05 May 2009 19:52:53 -0000 2009/5/5 Luigi Rizzo : > On Tue, May 05, 2009 at 11:58:35AM +0200, Rick van der Zwet wrote: >> Down below a thread currently running at freebsd-embedded@ regarding >> the boot0 loader and it's weirdness. I don't seems to find a proper >> way of getting the boot0 loader to work on various (old) hardware, >> like Pentium I PC's with awardBios, which I need to get nanobsd to >> work properly on various types of hardware. Turned out to be an issue with packet 'mode', as not all old PC's bios did not have the support included, sigh :-( > One problem I had with some old hardware was that the BIOS > could not read more than one sector at a time, and eventually > (but it was really long ago so i do not remember > the details well) I had to patch some code so that > reading would occur one sector at a time instead of > using track-long blocks. D=E9j=E0 vu, that's fellow W(ireless)L(eiden) hacker Dw: http://lists.freebsd.org/pipermail/freebsd-hackers/2003-May/000636.htm= l >> Looking at the source code it seems to be 3 points of failure, ranging >> from invalid input to unreadable sectors, but all ends with the same >> generic warning (read: one 'beep'). I know space is limited, but how >> about a different beep sequence for all warning, will that be >> possible? FYI: during debugging I wrote it to aid me. (thanks to the wonderful SAVE_MEMORY and SAVE_MORE_MEMORY flags for making coding easy). http://www.freebsd.org/cgi/query-pr.cgi?pr=3D134242 /Rick --=20 http://rickvanderzwet.nl From owner-freebsd-embedded@FreeBSD.ORG Tue May 5 22:15:01 2009 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 502B8106567F; Tue, 5 May 2009 22:15:01 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id 0CFBB8FC1B; Tue, 5 May 2009 22:15:00 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 51C9773098; Wed, 6 May 2009 00:20:22 +0200 (CEST) Date: Wed, 6 May 2009 00:20:22 +0200 From: Luigi Rizzo To: Rick van der Zwet Message-ID: <20090505222022.GA36031@onelab2.iet.unipi.it> References: <5aaae08a0905050258t5ca6a84ep2b7d1a47bcca6d8c@mail.gmail.com> <20090505104419.GA12107@onelab2.iet.unipi.it> <5aaae08a0905051252l7d3cd0a0m7149d7421a4af20c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5aaae08a0905051252l7d3cd0a0m7149d7421a4af20c@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: luigi@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: Boot0 testing (WAS: Re: nanobsd image boot issues) 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, 05 May 2009 22:15:04 -0000 On Tue, May 05, 2009 at 09:52:51PM +0200, Rick van der Zwet wrote: > 2009/5/5 Luigi Rizzo : > > On Tue, May 05, 2009 at 11:58:35AM +0200, Rick van der Zwet wrote: > >> Down below a thread currently running at freebsd-embedded@ regarding > >> the boot0 loader and it's weirdness. I don't seems to find a proper > >> way of getting the boot0 loader to work on various (old) hardware, > >> like Pentium I PC's with awardBios, which I need to get nanobsd to > >> work properly on various types of hardware. > > Turned out to be an issue with packet 'mode', as not all old PC's bios > did not have the support included, sigh :-( > > > One problem I had with some old hardware was that the BIOS > > could not read more than one sector at a time, and eventually > > (but it was really long ago so i do not remember > > the details well) I had to patch some code so that > > reading would occur one sector at a time instead of > > using track-long blocks. > > D?j? vu, that's fellow W(ireless)L(eiden) hacker Dw: > http://lists.freebsd.org/pipermail/freebsd-hackers/2003-May/000636.html ok so the actual patch was here http://lists.freebsd.org/pipermail/freebsd-hackers/2003-May/000638.html Does this patch fix your issue ? cheers luigi From owner-freebsd-embedded@FreeBSD.ORG Wed May 6 07:35:53 2009 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 7C1B4106566B for ; Wed, 6 May 2009 07:35:53 +0000 (UTC) (envelope-from jsimpson.za@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 0AF2D8FC32 for ; Wed, 6 May 2009 07:35:52 +0000 (UTC) (envelope-from jsimpson.za@gmail.com) Received: by bwz9 with SMTP id 9so5065350bwz.43 for ; Wed, 06 May 2009 00:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=mwpOQ365mXgBblFHgL6MuR1Eciq4AO178DTdSk6tjj8=; b=dUiA+vY4MjIFHRT6M36954HGj6zlJFl0b2NNnXvujEdo63a9PXx/NfeGnIiyoc9NBe 21tsD9nRI6eJIyMKMaCykC+nHZOi3QDbK9Mr2nNPlYmldRhpN4MJ+R9KP7HPtxpxXcz6 ispE7j8joBLf2UMQD4mpYv/gDjMmxPbH450Bs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Qvu3GGc97T+gW3tviZbyRS3+XdOQ5x/sNSFQsAUOgsRIg1iQ0EAsuPOSWNcwkjJYs6 UtU1GAggdJ8NguwWKT9akVY6D/q50SH8tsgDGbVsUBAwj4lXpM1WedDw9VHfNZNLDU88 hpM/E8CVyzWQsEgTwEkCaJMjiraakTv+UPoSg= MIME-Version: 1.0 Received: by 10.204.71.15 with SMTP id f15mr622578bkj.113.1241593421966; Wed, 06 May 2009 00:03:41 -0700 (PDT) Date: Wed, 6 May 2009 09:03:41 +0200 Message-ID: <9e6237170905060003n673711bdp2e36c3b55ead3b7f@mail.gmail.com> From: Johan Simpson To: freebsd-embedded@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: FreeBSD 7.1 AMD Geode LX 800 / Compact Flash boot issues 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, 06 May 2009 07:35:53 -0000 Hi all, im having some problems with getting FreeBSD to work on a new embedded Geode based motherboard. This is the board im using: http://files.ieiworld.com/files/news/080325/NOVA-LX_homepage.html To sum up what ive tried.. 1. When i boot the freebsd 7.1 dvd normally, sysinstall hangs at probing devices. 2. I managed to get a minimal install on the compact flash, by disabling ACPI on the dvd's boot menu. 3. Now i have FreeBSD 7.1 successfully installed on the CF card. Here is where the problems start :( It locks up right before/after the loader loads loader.conf. Ive put some printf calls in the loader to see where exactly the system hangs. In src/sys/boot/common/interp.c,v 1.29.28.1 2008/11/25 02:59:29 kensmith Exp $ ive found a problem in interact() ------------------------------------------------------------------------------- #ifdef BOOT_FORTH bf_init(); #endif printf("Reached interact1\n"); /*PUT IN BY ME */ /* * Read our default configuration */ if(include("/boot/loader.rc")!=CMD_OK) include("/boot/boot.conf"); printf("\n"); /* * Before interacting, we might want to autoboot. */ printf("Reached interact2\n"); /*PUT IN BY ME */ autoboot_maybe(); ----------------------------------------------------------------------------- It never gets to print "Reached interact2". So ive put in some printf's into include() which look like this: ----------------------------------------------------------- printf("Including config file\n"); if (((fd = open(filename, O_RDONLY)) == -1)) { sprintf(command_errbuf,"can't open '%s': %s\n", filename, strerror(errno)); return(CMD_ERROR); } printf("Config file is open: %s\n", filename); /* * Read the script into memory. */ script = se = NULL; line = 0; while (fgetstr(input, sizeof(input), fd) >= 0) { printf("Reading.. %s\n", input); ------------------------------------------------------------ It seems that include() is called 3 times. After which it hangs. So ive decided to print out the lines its reading from the config files. Turns out that its not reading the config files, but garbage data. What can i do to fix this problem, and is this a filesystem / CF problem? Im willing to fix up the problem, but need some advice from the experts before i go look for the problem in the wrong places. Thank you for your time Johan Simpson From owner-freebsd-embedded@FreeBSD.ORG Wed May 6 08:26:31 2009 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 679B1106566B for ; Wed, 6 May 2009 08:26:31 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id E49058FC14 for ; Wed, 6 May 2009 08:26:30 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1523904fgb.12 for ; Wed, 06 May 2009 01:26:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TB1kh9EpY3s2OmQ3Uu4XQzx+dh2oqgNTPuJA4pgk+U8=; b=s4l8UPvs7SmmcQHe/DXhRpYWjU4vl8dU1XOkohzbwn1hXCZNQt/GLMGWkv9PW5jz5u HbfdcPs46ELwJjmDdHGqrJOImbdlkYSjhaWIF4T3BJ8mbobRUxUiAfenOAGieiLcneuj UbQHTcKK0ZXh9IqkNin+Idn8NSUikTYuyaAV0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jy/5InMOaATMDSOlGXVn7boA4WwyCgNYrvb604alA5JkjSFAtQr6VnJjjGT0+EOk8W LV6xhVCc31sVtgs7xRoB6fsChsO6fALLhHAxdTs9/NlTMx64mK76PF+8nULhEH8VO+FQ 3IOZ5pwykNRiwjYZv7dS4o+SM4vmEbJ6Aggr0= MIME-Version: 1.0 Received: by 10.86.78.13 with SMTP id a13mr1018898fgb.42.1241596986196; Wed, 06 May 2009 01:03:06 -0700 (PDT) In-Reply-To: <9e6237170905060003n673711bdp2e36c3b55ead3b7f@mail.gmail.com> References: <9e6237170905060003n673711bdp2e36c3b55ead3b7f@mail.gmail.com> Date: Wed, 6 May 2009 10:03:06 +0200 Message-ID: From: Jacques Fourie To: Johan Simpson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-embedded@freebsd.org Subject: Re: FreeBSD 7.1 AMD Geode LX 800 / Compact Flash boot issues 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, 06 May 2009 08:26:31 -0000 > Hi all, im having some problems with getting FreeBSD to work on a new > embedded Geode based motherboard. > > This is the board im using: > http://files.ieiworld.com/files/news/080325/NOVA-LX_homepage.html > > To sum up what ive tried.. > > 1. When i boot the freebsd 7.1 dvd normally, sysinstall hangs at > probing devices. > 2. I managed to get a minimal install on the compact flash, by > disabling ACPI on the dvd's boot menu. > 3. Now i have FreeBSD 7.1 successfully installed on the CF card. > > > Here is where the problems start :( > > > It locks up right before/after the loader loads loader.conf. > > > Ive put some printf calls in the loader to see where exactly the system h= angs. > > > In src/sys/boot/common/interp.c,v 1.29.28.1 2008/11/25 02:59:29 kensmith = Exp $ > > ive found a problem in interact() > > -------------------------------------------------------------------------= ------ > #ifdef BOOT_FORTH > =A0 =A0bf_init(); > #endif > =A0 =A0 printf("Reached interact1\n"); =A0 =A0/*PUT IN BY ME */ > =A0 =A0/* > =A0 =A0 * Read our default configuration > =A0 =A0 */ > =A0 =A0if(include("/boot/loader.rc")!=3DCMD_OK) > =A0 =A0 =A0 =A0include("/boot/boot.conf"); > =A0 =A0printf("\n"); > =A0 =A0/* > =A0 =A0 * Before interacting, we might want to autoboot. > =A0 =A0 */ > =A0 =A0 printf("Reached interact2\n"); /*PUT IN BY ME */ > > =A0 =A0autoboot_maybe(); > > -------------------------------------------------------------------------= ---- > > It never gets to print "Reached interact2". > > > > So ive put in some printf's into include() > > which look like this: > > ----------------------------------------------------------- > > =A0printf("Including config file\n"); > =A0 =A0if (((fd =3D open(filename, O_RDONLY)) =3D=3D -1)) { > =A0 =A0 =A0 =A0sprintf(command_errbuf,"can't open '%s': %s\n", filename, = strerror(errno)); > =A0 =A0 =A0 =A0return(CMD_ERROR); > =A0 =A0} > =A0 =A0printf("Config file is open: %s\n", filename); > =A0 =A0/* > =A0 =A0 * Read the script into memory. > =A0 =A0 */ > =A0 =A0script =3D se =3D NULL; > =A0 =A0line =3D 0; > > =A0 =A0while (fgetstr(input, sizeof(input), fd) >=3D 0) { > > =A0 =A0 =A0 =A0printf("Reading.. %s\n", input); > > > > ------------------------------------------------------------ > > > It seems that include() is called 3 times. > > After which it hangs. So ive decided to print out the lines its > reading from the config files. > > > Turns out that its not reading the config files, but garbage data. > > What can i do to fix this problem, and is this a filesystem / CF problem? > > Im willing to fix up the problem, but need some advice from the > experts before i go look for the problem in the wrong places. > > > Thank you for your time > > Johan Simpson > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.or= g" > Disable DMA by adding hw.ata.ata_dma=3D0 to /boot/loader.conf and see if it makes a difference. Jacques From owner-freebsd-embedded@FreeBSD.ORG Wed May 6 09:31:25 2009 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 E628F10656C4 for ; Wed, 6 May 2009 09:31:25 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: from mail.ud03.udmedia.de (ud03.udmedia.de [194.117.254.43]) by mx1.freebsd.org (Postfix) with ESMTP id 4DCB88FC12 for ; Wed, 6 May 2009 09:31:24 +0000 (UTC) (envelope-from mah@jump-ing.de) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud03.udmedia.de; h= in-reply-to:references:mime-version:content-type:message-id:cc: content-transfer-encoding:from:subject:date:to; q=dns/txt; s= beta; bh=nq4XTkn0OKfdESu3HaC3hU4dZG3e7JxNQkGEM4s+ZAQ=; b=u4BXtVe G9GTY8ktvVjWomYY71VHSO5QAvOA9IcSqUEQrCJl/J4J/XfoDalabZc26RtL0oom cIDEhkUbLmjSCba8wW2bMNfPBwjs6Ghiyod398WsP6rYn7h2pfspASCaMVlkwxp8 CjqYgyIGBEWxegHPQUV0crEyPhpdxkSzaPkE= Received: (qmail 7337 invoked from network); 6 May 2009 11:31:22 +0200 Received: from unknown (HELO ?10.0.0.50?) (ud03?291p1@95.208.15.171) by mail.ud03.udmedia.de with ESMTPA; 6 May 2009 11:31:22 +0200 In-Reply-To: <9e6237170905060003n673711bdp2e36c3b55ead3b7f@mail.gmail.com> References: <9e6237170905060003n673711bdp2e36c3b55ead3b7f@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7A6423DA-FEF0-43E1-9AAF-E61895C21F1D@jump-ing.de> Content-Transfer-Encoding: 7bit From: Markus Hitter Date: Wed, 6 May 2009 11:31:51 +0200 To: Johan Simpson X-Mailer: Apple Mail (2.753.1) Cc: freebsd-embedded@freebsd.org Subject: Re: FreeBSD 7.1 AMD Geode LX 800 / Compact Flash boot issues 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, 06 May 2009 09:31:26 -0000 Am 06.05.2009 um 09:03 schrieb Johan Simpson: > What can i do to fix this problem, and is this a filesystem / CF > problem? The 7.1 release doesn't have the best reputation here, as well. Networking did better on 7.0, but see . USB drives were very unreliable either, but installing Hans Petter Selasky's new USB stack did the trick. It appears to be bullet-proof now: . Both reports contain solutions. While the later is in 8-current already, the former bug report obviously got stuck. Perhaps you can pick up there. Markus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ From owner-freebsd-embedded@FreeBSD.ORG Thu May 7 07:54:10 2009 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 EB6701065670 for ; Thu, 7 May 2009 07:54:10 +0000 (UTC) (envelope-from jsimpson.za@gmail.com) Received: from mail-fx0-f168.google.com (mail-fx0-f168.google.com [209.85.220.168]) by mx1.freebsd.org (Postfix) with ESMTP id 7C1068FC1D for ; Thu, 7 May 2009 07:54:10 +0000 (UTC) (envelope-from jsimpson.za@gmail.com) Received: by fxm12 with SMTP id 12so607664fxm.43 for ; Thu, 07 May 2009 00:54:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=IsN8NX3+UJ7SSmb31ces2svc6VHNJ8NWyg+mobc8mjI=; b=Q5gIcmYrJObLrads9LRLmH97IjkFfx+mGHLqatpuiuRYXpj7Um6Cuhpj9v2A/j5vUP hsYgXeksBKUFbTrTIffiFy+5OSKorx8HwSAqOSUFegO79cg0Z1VUVKJ9sanHtUS14w6l TDY01ASDRDvQU0I00bk/965aVoy1QOAF14DUw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ICWkZyzMTs98iYEAt+fkoFIFNkYaPFBu5s+pz/t4wGiy+ETFwnt9d7d9VP3mXlcDO3 X/UjpSZxVgCz42vaRvUiN2T7T0usF2ObpFTo0eazG0bN2XT2KX0n083BsP9UrEvebAbj IC3D5E2jM0mO2UcfXICI20/wr/qKr+B25WwXM= MIME-Version: 1.0 Received: by 10.204.100.70 with SMTP id x6mr2115665bkn.140.1241682848173; Thu, 07 May 2009 00:54:08 -0700 (PDT) In-Reply-To: References: <9e6237170905060003n673711bdp2e36c3b55ead3b7f@mail.gmail.com> Date: Thu, 7 May 2009 09:54:08 +0200 Message-ID: <9e6237170905070054n604b1a8bhb267a6efc84f56dc@mail.gmail.com> From: Johan Simpson To: freebsd-embedded@freebsd.org, jacques.fourie@gmail.com Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: FreeBSD 7.1 AMD Geode LX 800 / Compact Flash boot issues 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: Thu, 07 May 2009 07:54:11 -0000 > Disable DMA =A0by adding hw.ata.ata_dma=3D0 to /boot/loader.conf and see > if it makes a > difference. > > Jacques > Doesnt seem to work, ive re-installed a standard minimal 7.1R installation. then booted into the dvd's fixit console, mounted the cf, changed loader.conf to look like this: hw.ata.ata_dma=3D0 hw.ata.ata_dma_check_80pin=3D0 hw.ata.wc=3D0 hint.acpi.0.disabled=3D0 Boot loader starts then prints a | or / after which it makes the screen red and fills it with garbage arrow-like characters. It is strange because i can mount the CF fine from the fixit console and no-errors there. Only booting from it seems to give problems. I believe it might be something else, i found this : http://phaq.phunsites.net/2006/08/15/freebsd-boot-loader-hangs-on-startup/ which says ---------------------------------------------------------------------------= ----------------------------------------------------------------- The FreeBSD boot loader seems to hang at startup. The system will not respond and not boot. Either nothing or one of the following may be printed on the system console= : | or boot: -D Reason The reasons for this are most probably 1. Absence of a serial port on your mainboard 2. The serial port on your mainboard is deactivated 3. FreeBSD has a default value to use a non-existing serial port Solution The FreeBSD boot loader is by its nature very limited in its capabilities. It has quiet enough intellence for reading boot blocks and starting a kernel, but it may stall if it is instructed to redirect it=92s output to a non-existing or disabled serial port. So any of these solutions may apply: * check your BIOS settings and enable the serial port(s) * disable boot loader=92s serial console redirection (remove -D flag from /boot.config) * check and correct to boot loader=92s compiled in default for the serial port if you have an usual setup ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= --------- Im going to see if the serial port settings can make any difference. Thanks for the advice. From owner-freebsd-embedded@FreeBSD.ORG Thu May 7 08:57:46 2009 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 9B3F41065672 for ; Thu, 7 May 2009 08:57:46 +0000 (UTC) (envelope-from jsimpson.za@gmail.com) Received: from mail-fx0-f168.google.com (mail-fx0-f168.google.com [209.85.220.168]) by mx1.freebsd.org (Postfix) with ESMTP id 1ECBD8FC1A for ; Thu, 7 May 2009 08:57:45 +0000 (UTC) (envelope-from jsimpson.za@gmail.com) Received: by fxm12 with SMTP id 12so639623fxm.43 for ; Thu, 07 May 2009 01:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=+qCHLLaIsx5lO97x6f8Lpy6tY7gxTJX5rQ+Yx6a9sR8=; b=pU75Q/2WL/cMEoXyzBClqcPdvZt/UVfHuvkXmojx60UJ2LCPvBYlQk+Vy7xDcUCbpI GhNgDihwEegd4LjTT2mxTj9wCPg3e8/1zgEqMnzc716RW7xjKUzKZNQbpNGFTlVRB/4+ XAQ4C+VvSRKf8DXUWBELDA5ppPpfDHGgjNb+o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=IYsjwulhUZmr20GHMTbpt8yEKac1AfHWGUulnqcmRoL5Ig3UWyl2eTIF2U9aNxsb3p VItsPyWcxcivsNu0u/tJvGHee6Pw6CcjuNZZf+SphXzNmHWyK9xK8t4L2fxciSVguuXB BUnUc7WOtrz7BSiLs7gG0WbLCeTao8YWmEzSk= MIME-Version: 1.0 Received: by 10.204.77.81 with SMTP id f17mr2193299bkk.78.1241686665125; Thu, 07 May 2009 01:57:45 -0700 (PDT) In-Reply-To: <9e6237170905070054n604b1a8bhb267a6efc84f56dc@mail.gmail.com> References: <9e6237170905060003n673711bdp2e36c3b55ead3b7f@mail.gmail.com> <9e6237170905070054n604b1a8bhb267a6efc84f56dc@mail.gmail.com> Date: Thu, 7 May 2009 10:57:45 +0200 Message-ID: <9e6237170905070157gfbb56d8h76942b2c13c85fe3@mail.gmail.com> From: Johan Simpson To: freebsd-embedded@freebsd.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: FreeBSD 7.1 AMD Geode LX 800 / Compact Flash boot issues 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: Thu, 07 May 2009 08:57:46 -0000 On Thu, May 7, 2009 at 9:54 AM, Johan Simpson wrote= : >> Disable DMA =A0by adding hw.ata.ata_dma=3D0 to /boot/loader.conf and see >> if it makes a >> difference. >> >> Jacques >> > > > Doesnt seem to work, ive re-installed a standard minimal 7.1R installatio= n. > > then booted into the dvd's fixit console, mounted the cf, changed > loader.conf to look like this: > > =A0 =A0hw.ata.ata_dma=3D0 > =A0 =A0hw.ata.ata_dma_check_80pin=3D0 > =A0 =A0hw.ata.wc=3D0 > =A0 =A0hint.acpi.0.disabled=3D0 > > > Boot loader starts > then prints a | or / > > after which it makes the screen red and fills it with garbage > arrow-like characters. > > It is strange because i can mount the CF fine from the fixit console > and no-errors there. Only booting from it seems to give problems. > > > I believe it might be something else, > i found this : > http://phaq.phunsites.net/2006/08/15/freebsd-boot-loader-hangs-on-startup= / > > > which says > -------------------------------------------------------------------------= ------------------------------------------------------------------- > The FreeBSD boot loader seems to hang at startup. The system will not > respond and not boot. > Either nothing or one of the following may be printed on the system conso= le: > > | > > or > > boot: -D > > Reason > > The reasons for this are most probably > > =A0 1. Absence of a serial port on your mainboard > =A0 2. The serial port on your mainboard is deactivated > =A0 3. FreeBSD has a default value to use a non-existing serial port > > Solution > > The FreeBSD boot loader is by its nature very limited in its capabilities= . > > It has quiet enough intellence for reading boot blocks and starting a > kernel, but it may stall if it is instructed to redirect it=92s output > to a non-existing or disabled serial port. > > So any of these solutions may apply: > > =A0 =A0* check your BIOS settings and enable the serial port(s) > =A0 =A0* disable boot loader=92s serial console redirection (remove -D fl= ag > from /boot.config) > =A0 =A0* check and correct to boot loader=92s compiled in default for the > serial port if you have an usual setup > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ----------- > > > Im going to see if the serial port settings can make any difference. > > > Thanks for the advice. > Fixed the IRQs in the bios, made no difference, except that dmesg on the dvd loader doesnt complain about sio0 not working anymore. Here is some screenshots of the dma errors dmesg reports when i boot from the CD: http://img26.imageshack.us/img26/6989/07052009001v.jpg http://img17.imageshack.us/img17/5034/07052009.jpg The garbage data that fills the screen right after BTX loader prints | or / http://img19.imageshack.us/img19/4623/07052009002h.jpg I guess im going to have to take the loader apart.......