From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 10 11:06: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 5DB80106564A for ; Mon, 10 Aug 2009 11:06:53 +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 4BCBC8FC26 for ; Mon, 10 Aug 2009 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7AB6rv4025098 for ; Mon, 10 Aug 2009 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7AB6qhp025094 for freebsd-embedded@FreeBSD.org; Mon, 10 Aug 2009 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 10 Aug 2009 11:06:52 GMT Message-Id: <200908101106.n7AB6qhp025094@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, 10 Aug 2009 11:06:53 -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 misc/136889 embedded [nanobsd] [path] nanobsd error reporting and other ref o misc/135588 embedded [nanobsd] simple patch for adding amd64 support 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 4 problems total. From owner-freebsd-embedded@FreeBSD.ORG Tue Aug 11 13:05:35 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 C0C0D1065675; Tue, 11 Aug 2009 13:05:35 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from baranao.anywi.com (baranao.anywi.com [213.207.101.176]) by mx1.freebsd.org (Postfix) with ESMTP id 7F4E58FC20; Tue, 11 Aug 2009 13:05:35 +0000 (UTC) Received: from hind.van-laarhoven.org (ip51cfcfde.direct-adsl.nl [81.207.207.222]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by baranao.anywi.com (Postfix) with ESMTPSA id 9858A3F41C; Tue, 11 Aug 2009 14:49:57 +0200 (CEST) From: Nick Hibma To: freebsd-embedded@freebsd.org Date: Tue, 11 Aug 2009 14:49:51 +0200 User-Agent: KMail/1.11.4 (FreeBSD/7.2-STABLE; KDE/4.2.4; i386; ; ) References: <3131aa530908070809l2ac13931xf65981db6eeb83e8@mail.gmail.com> <20090807.104414.221852486.imp@bsdimp.com> <20090807205817.GA82868@psconsult.nl> In-Reply-To: <20090807205817.GA82868@psconsult.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908111449.51779.nick@van-laarhoven.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,J_CHICKENPOX_43, UNPARSEABLE_RELAY autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on baranao.anywi.com Cc: freebsd-current@freebsd.org Subject: Re: [NanoBSD] Can't use boot0cfg for changing the booting slice 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, 11 Aug 2009 13:05:36 -0000 > > : > But, after the reboot my system still reboot from the slice 1 (but > > : > the boot loader show correctly that the default choice is now the > > : > 2)! Where is my problem ? > > : > > : Are you sure you're booting from slice 1? > > : Is fstab on slice 2 pointing to slice 1? > > > > Also, boot0cfg won't mark the slice as ACTIVE, just remember that was > > the last slice you booted from... To mark it active, you must use > > fdisk. If by 'active' you mean 'what mount reports root as' then I > > think John's suggestion is right on the money... Perhaps you could change the line in the update script from boot0cfg -s $oslice $NANO_DRIVE to boot0cfg -s $oslice $NANO_DRIVE echo "a $oslice" | fdisk -f /dev/stdin $NANO_DRIVE That's taken from our own version of the update script, but should fit in the NanoBSD update script. Nick From owner-freebsd-embedded@FreeBSD.ORG Tue Aug 11 15:58:58 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 B12AD106566C; Tue, 11 Aug 2009 15:58:58 +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 268D58FC41; Tue, 11 Aug 2009 15:58:57 +0000 (UTC) Received: from mx1.psconsult.nl (localhost [80.89.238.138]) by mx1.psconsult.nl (8.14.2/8.14.2) with ESMTP id n7BFwpcY050772 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Aug 2009 17:58:56 +0200 (CEST) (envelope-from fb-embedded@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.2/8.14.2/Submit) id n7BFwp9R050771; Tue, 11 Aug 2009 17:58:51 +0200 (CEST) (envelope-from fb-embedded@psconsult.nl) Date: Tue, 11 Aug 2009 17:58:51 +0200 From: Paul Schenkeveld To: freebsd-embedded@freebsd.org, freebsd-current@freebsd.org Message-ID: <20090811155851.GA50096@psconsult.nl> Mail-Followup-To: freebsd-embedded@freebsd.org, freebsd-current@freebsd.org References: <3131aa530908070809l2ac13931xf65981db6eeb83e8@mail.gmail.com> <20090807.104414.221852486.imp@bsdimp.com> <20090807205817.GA82868@psconsult.nl> <200908111449.51779.nick@van-laarhoven.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200908111449.51779.nick@van-laarhoven.org> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Subject: Re: [NanoBSD] Can't use boot0cfg for changing the booting slice 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, 11 Aug 2009 15:58:59 -0000 On Tue, Aug 11, 2009 at 02:49:51PM +0200, Nick Hibma wrote: > > > : > But, after the reboot my system still reboot from the slice 1 (but > > > : > the boot loader show correctly that the default choice is now the > > > : > 2)! Where is my problem ? > > > : > > > : Are you sure you're booting from slice 1? > > > : Is fstab on slice 2 pointing to slice 1? > > > > > > Also, boot0cfg won't mark the slice as ACTIVE, just remember that was > > > the last slice you booted from... To mark it active, you must use > > > fdisk. If by 'active' you mean 'what mount reports root as' then I > > > think John's suggestion is right on the money... > > Perhaps you could change the line in the update script from > > boot0cfg -s $oslice $NANO_DRIVE > > to > > boot0cfg -s $oslice $NANO_DRIVE > echo "a $oslice" | fdisk -f /dev/stdin $NANO_DRIVE boot0cfg -s $oslice $NANO_DRIVE fdisk -f - << ! a $NANO_DRIVE ! is even cheaper 8-> > That's taken from our own version of the update script, but should fit in > the NanoBSD update script. I know how to solve the problem on NanoBSD machines I administer, the bigger picture is that the bootloader (boot0) changed from looking at its own default answer as tuned by boot0cfg -s to looking at the active flags in the MBR record. IMHO this is a regression and a POLA violation. The default action can no longer be "F5 boot from next drive" which is valid and useful on multi-drive servers/desktops. So far nobody has come up with a good reason why this was changed and the change cripples the functionality of boot0cfg, makes NanoBSD no longer work as advertised and will scare off new users (of NanoBSD) to some kind of embedded whatever OS besides FreeBSD. So who wins? > Nick Kind regards, Paul Schenkeveld From owner-freebsd-embedded@FreeBSD.ORG Tue Aug 11 17:14:38 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 851C4106566B for ; Tue, 11 Aug 2009 17:14:38 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (mailrelay.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 0DA848FC3D for ; Tue, 11 Aug 2009 17:14:37 +0000 (UTC) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 5BD0D19963E; Tue, 11 Aug 2009 18:41:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 4EC011995C0; Tue, 11 Aug 2009 18:41:20 +0200 (CEST) Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 3A7BA1994DC; Tue, 11 Aug 2009 18:41:20 +0200 (CEST) Received: from wep4035 ([132.187.37.35]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.2FP1HF244) with ESMTP id 2009081118411928-3450 ; Tue, 11 Aug 2009 18:41:19 +0200 Received: by wep4035 (sSMTP sendmail emulation); Tue, 11 Aug 2009 18:41:19 +0200 Date: Tue, 11 Aug 2009 18:41:19 +0200 From: Alexey Shuvaev To: freebsd-embedded@freebsd.org, freebsd-current@freebsd.org Message-ID: <20090811164119.GA79544@wep4035.physik.uni-wuerzburg.de> Mail-Followup-To: freebsd-embedded@freebsd.org, freebsd-current@freebsd.org References: <3131aa530908070809l2ac13931xf65981db6eeb83e8@mail.gmail.com> <20090807.104414.221852486.imp@bsdimp.com> <20090807205817.GA82868@psconsult.nl> <200908111449.51779.nick@van-laarhoven.org> <20090811155851.GA50096@psconsult.nl> Mime-Version: 1.0 In-Reply-To: <20090811155851.GA50096@psconsult.nl> User-Agent: Mutt/1.4.2.3i Organization: Universitaet Wuerzburg X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.2FP1HF244 | April 7, 2009) at 08/11/2009 06:41:19 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.2FP1HF244 | April 7, 2009) at 08/11/2009 06:41:19 PM, Serialize complete at 08/11/2009 06:41:19 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Cc: Subject: Re: [NanoBSD] Can't use boot0cfg for changing the booting slice 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, 11 Aug 2009 17:14:38 -0000 On Tue, Aug 11, 2009 at 05:58:51PM +0200, Paul Schenkeveld wrote: > On Tue, Aug 11, 2009 at 02:49:51PM +0200, Nick Hibma wrote: > > > > : > But, after the reboot my system still reboot from the slice 1 (but > > > > : > the boot loader show correctly that the default choice is now the > > > > : > 2)! Where is my problem ? > > > > : > > > > : Are you sure you're booting from slice 1? > > > > : Is fstab on slice 2 pointing to slice 1? > > > > > > > > Also, boot0cfg won't mark the slice as ACTIVE, just remember that was > > > > the last slice you booted from... To mark it active, you must use > > > > fdisk. If by 'active' you mean 'what mount reports root as' then I > > > > think John's suggestion is right on the money... > > > > Perhaps you could change the line in the update script from > > > > boot0cfg -s $oslice $NANO_DRIVE > > > > to > > > > boot0cfg -s $oslice $NANO_DRIVE > > echo "a $oslice" | fdisk -f /dev/stdin $NANO_DRIVE > > boot0cfg -s $oslice $NANO_DRIVE > fdisk -f - << ! > a $NANO_DRIVE > ! > > is even cheaper 8-> > > > That's taken from our own version of the update script, but should fit in > > the NanoBSD update script. > > I know how to solve the problem on NanoBSD machines I administer, the > bigger picture is that the bootloader (boot0) changed from looking at > its own default answer as tuned by boot0cfg -s to looking at the > active flags in the MBR record. IMHO this is a regression and a POLA > violation. The default action can no longer be "F5 boot from next drive" > which is valid and useful on multi-drive servers/desktops. > > So far nobody has come up with a good reason why this was changed and > the change cripples the functionality of boot0cfg, makes NanoBSD no > longer work as advertised and will scare off new users (of NanoBSD) to > some kind of embedded whatever OS besides FreeBSD. > > So who wins? > A lot of new functionality was brought in. I would suggest going through the history at http://svn.freebsd.org/viewvc/base/head/sys/boot/i386/boot0/boot0.S?view=log and examine which compile-time options are now there. Also you can also try contacting luigi who has touched boot0.S My 0.02$, Alexey. From owner-freebsd-embedded@FreeBSD.ORG Tue Aug 11 21:50:58 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 EACDD106564A for ; Tue, 11 Aug 2009 21:50:58 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by mx1.freebsd.org (Postfix) with ESMTP id 9D9CA8FC3E for ; Tue, 11 Aug 2009 21:50:58 +0000 (UTC) Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id E67901C000FC; Tue, 11 Aug 2009 23:26:04 +0200 (CEST) Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id D1132901EF; Tue, 11 Aug 2009 23:26:04 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.1.215]) (amavisd-new, port 10024) with ESMTP id 2Hb31SC6T40U; Tue, 11 Aug 2009 23:26:03 +0200 (CEST) Received: from mail.reifenberger.com (ppp-93-104-42-101.dynamic.mnet-online.de [93.104.42.101]) by mail.mnet-online.de (Postfix) with ESMTP; Tue, 11 Aug 2009 23:26:03 +0200 (CEST) Received: by mail.reifenberger.com (Postfix, from userid 1001) id 268DD3731A; Tue, 11 Aug 2009 23:26:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.reifenberger.com (Postfix) with ESMTP id 1F40037319; Tue, 11 Aug 2009 23:26:03 +0200 (CEST) Date: Tue, 11 Aug 2009 23:26:03 +0200 (CEST) From: Michael Reifenberger To: Nick Hibma In-Reply-To: <200908111449.51779.nick@van-laarhoven.org> Message-ID: References: <3131aa530908070809l2ac13931xf65981db6eeb83e8@mail.gmail.com> <20090807.104414.221852486.imp@bsdimp.com> <20090807205817.GA82868@psconsult.nl> <200908111449.51779.nick@van-laarhoven.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: [NanoBSD] Can't use boot0cfg for changing the booting slice 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, 11 Aug 2009 21:50:59 -0000 On Tue, 11 Aug 2009, Nick Hibma wrote: ... > to > > boot0cfg -s $oslice $NANO_DRIVE > echo "a $oslice" | fdisk -f /dev/stdin $NANO_DRIVE > Why not: gpart set -a active -i 1 ${NANO_DRIVE} Bye/2 --- Michael Reifenberger Michael@Reifenberger.com http://www.Reifenberger.com