From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 27 18:10:25 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46B45106564A; Mon, 27 Feb 2012 18:10:25 +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 1E9898FC0A; Mon, 27 Feb 2012 18:10:25 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id CA09546B0A; Mon, 27 Feb 2012 13:10:24 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 239EEB99E; Mon, 27 Feb 2012 13:10:24 -0500 (EST) From: John Baldwin To: rank1seeker@gmail.com Date: Mon, 27 Feb 2012 11:23:59 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p10; KDE/4.5.5; amd64; ; ) References: <20120217.074355.853.1@DOMY-PC> <201202241531.11281.jhb@freebsd.org> <20120225.144148.466.1@DOMY-PC> In-Reply-To: <20120225.144148.466.1@DOMY-PC> MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1250" Content-Transfer-Encoding: 7bit Message-Id: <201202271123.59244.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 27 Feb 2012 13:10:24 -0500 (EST) Cc: Roman Divacky , hackers@freebsd.org Subject: Re: BUG: 9.0 stage 2 boot (/boot/boot) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 18:10:25 -0000 On Saturday, February 25, 2012 9:41:48 am rank1seeker@gmail.com wrote: > > Do you only see the "No " message? Do you see the '/boot.config: /loader' > > message? (Do you have RBX_QUIET enabled perhaps? (-q)) Do you get the actual > > boot2 prompt at all? > > I don't have RBX_QUIET enabled nor any other flags > > Let the pic tell a story: > http://www.starforce.biz/stage2boot.jpg Ahh, this is helpful. You do see the '/boot.config: /loader' message. > It is also valid for your latest patch > > > > Hmm, I think the problem is that 'opts' has garbage instead of being > > initialized to zero. > > > > Try this (also at www.freebsd.org/~jhb/patches/boot2_opts.patch): > > > Patch eliminates possible error, of manual "intervention" > That is, a perfectly valid patch being classified as invalid. I have no idea what you mean here. However, it seems you don't have junk in your 'opts' variable anyway. Hmm, you could try adding some more debugging to boot2.c to see exactly what is failing. For example, does the first call to 'parse()' fail and clear autoboot? Oh, garbage in cmd[] could be bad. We might read beyond the end of the file. Try http://www.FreeBSD.org/~jhb/patches/boot2_cmd.patch -- John Baldwin