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