From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 1 20:02:35 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A362106564A; Thu, 1 Mar 2012 20:02:35 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7E4DE8FC08; Thu, 1 Mar 2012 20:02:34 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so227067wib.13 for ; Thu, 01 Mar 2012 12:02:33 -0800 (PST) Received-SPF: pass (google.com: domain of rank1seeker@gmail.com designates 10.180.7.231 as permitted sender) client-ip=10.180.7.231; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rank1seeker@gmail.com designates 10.180.7.231 as permitted sender) smtp.mail=rank1seeker@gmail.com; dkim=pass header.i=rank1seeker@gmail.com Received: from mr.google.com ([10.180.7.231]) by 10.180.7.231 with SMTP id m7mr6851812wia.3.1330632153601 (num_hops = 1); Thu, 01 Mar 2012 12:02:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:subject:date:content-type :content-transfer-encoding:in-reply-to:references:x-mailer; bh=Z8+U2vhukTqUWujKP2mJzcBX5VH/q3r4v8i0+7sjDzA=; b=lu4Odze87Euk9YoPpz1dGDhF55/7aH4AH9DAeYWTRjFO0yDn9A92bFfuib3WO2jDJ8 SrsCyDfgWo4KZsEm63sl7S/jvw+ZpWf4wcQxB22VX7khzIMblGUI/WJP1/wewxGWuzG5 5wjgXFKoUHawhoJd2gmgFV3YSDWjY7BXI27NA/Eou7kSDbZoHtHNjKOhUkgFjQRxXNov 0gJhBWfarMCseFoHrj7le6EweHNMt/TO1u2d78engA5NOdoHK9wVZGMkD6V336fIvKaQ YJwn/SvqY3lXXselCYDXzExM9+meGTW6AEkbtNOtL5w0wBjSoRr5av4FPwPpun4uTYDn gGKg== Received: by 10.180.7.231 with SMTP id m7mr5528437wia.3.1330632153454; Thu, 01 Mar 2012 12:02:33 -0800 (PST) Received: from DOMYPC ([82.193.208.173]) by mx.google.com with ESMTPS id bg3sm43981962wib.10.2012.03.01.12.02.23 (version=SSLv3 cipher=OTHER); Thu, 01 Mar 2012 12:02:32 -0800 (PST) Message-ID: <20120301.200235.040.1@DOMY-PC> From: rank1seeker@gmail.com To: hackers@freebsd.org, "John Baldwin" , "Roman Divacky" Date: Thu, 01 Mar 2012 21:02:35 +0100 Content-Type: text/plain; charset="Windows-1250" Content-Transfer-Encoding: quoted-printable In-Reply-To: <201202291605.08267.jhb@freebsd.org> References: <20120217.074355.853.1@DOMY-PC> <201202291127.00209.jhb@freebsd.org> <20120229.200836.168.1@DOMY-PC> <201202291605.08267.jhb@freebsd.org> X-Mailer: POP Peeper (3.8.1.0) Cc: 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: Thu, 01 Mar 2012 20:02:35 -0000 ----- Original Message -----=0D=0AFrom: John Baldwin = =0D=0ATo: rank1seeker@gmail.com=0D=0ACc: = hackers@freebsd.org, "Roman Divacky" =0D=0ADate: = Wed, 29 Feb 2012 16:05:08 -0500=0D=0ASubject: Re: BUG: 9.0 stage 2 boot = (/boot/boot)=0D=0A=0D=0A> On Wednesday, February 29, 2012 3:08:36 pm = rank1seeker@gmail.com wrote:=0D=0A> > ----- Original Message -----=0D=0A> = > From: John Baldwin =0D=0A> > To: = rank1seeker@gmail.com=0D=0A> > Cc: hackers@freebsd.org, "Roman Divacky" = =0D=0A> > Date: Wed, 29 Feb 2012 11:26:59 = -0500=0D=0A> > Subject: Re: BUG: 9.0 stage 2 boot (/boot/boot)=0D=0A> > = =0D=0A> > > On Tuesday, February 28, 2012 3:09:06 pm = rank1seeker@gmail.com wrote:=0D=0A> > > > ----- Original Message = -----=0D=0A> > > > From: John Baldwin =0D=0A> > > > To: = rank1seeker@gmail.com=0D=0A> > > > Cc: hackers@freebsd.org, "Roman = Divacky" =0D=0A> > > > Date: Mon, 27 Feb 2012 = 11:23:59 -0500=0D=0A> > > > Subject: Re: BUG: 9.0 stage 2 boot = (/boot/boot)=0D=0A> > > > =0D=0A> > > > > On Saturday, February 25, 2012 = 9:41:48 am rank1seeker@gmail.com wrote:=0D=0A> > > > > > > Do you only = see the "No " message? Do you see the '/boot.config: /loader'=0D=0A> > > = > > > > message? (Do you have RBX_QUIET enabled perhaps? (-q)) Do you = get the actual=0D=0A> > > > > > > boot2 prompt at all?=0D=0A> > > > > > = =0D=0A> > > > > > I don't have RBX_QUIET enabled nor any other = flags=0D=0A> > > > > > =0D=0A> > > > > > Let the pic tell a story:=0D=0A> = > > > > > http://www.starforce.biz/stage2boot.jpg=0D=0A> > > > > =0D=0A> = > > > > Ahh, this is helpful. You do see the '/boot.config: /loader' = message.=0D=0A> > > > =0D=0A> > > > I've already explained that, numerous = times (RE-typing ...)=0D=0A> > > =0D=0A> > > It was not as obvious = before, and you are seeing a failure that no one else=0D=0A> > > has = reported, so you need to be patient.=0D=0A> > > =0D=0A> > > > > > Patch = eliminates possible error, of manual "intervention"=0D=0A> > > > > > That = is, a perfectly valid patch being classified as invalid.=0D=0A> > > > > = =0D=0A> > > > > I have no idea what you mean here. However, it seems you = don't have junk in=0D=0A> > > > > your 'opts' variable anyway.=0D=0A> > > = > =0D=0A> > > > What I meant was that I won't manually(edit file) apply = patch, but via 'patch' tool/bin.=0D=0A> > > =0D=0A> > > Ok.=0D=0A> > > = =0D=0A> > > > > Hmm, you could try adding some more debugging to boot2.c = to see exactly what=0D=0A> > > > > is failing. For example, does the = first call to 'parse()' fail and clear=0D=0A> > > > > autoboot?=0D=0A> > = > > =0D=0A> > > > I don't do nor understand c code.=0D=0A> > > =0D=0A> > = > Ok. That will take a bit longer to fix, but that is ok. I've attached = a new=0D=0A> > > patch with some debugging output. It shouldn't fix the = problem yet, but I want=0D=0A> > > to see if any of the new messages are = output, and when they are output.=0D=0A> > > =0D=0A> > > > How could it = silently loose documented functionality?=0D=0A> > > =0D=0A> > > Several = changes were made to boot2 to make it smaller so it could be compiled = with=0D=0A> > > clang, and it seems that at least one of those changes = must have had a bug.=0D=0A> > > =0D=0A> > > -- =0D=0A> > > John = Baldwin=0D=0A> > >=0D=0A> > =0D=0A> > =0D=0A> > Patch fails at 9.0 = RELEASE: (Is this for 9 STABLE?)=0D=0A> =0D=0A> Nope, patch was made = against a 9.0 tree:=0D=0A> =0D=0A> % svn info .=0D=0A> Path: .=0D=0A> = URL: svn+ssh://svn.freebsd.org/base/releng/9.0/sys=0D=0A> Repository = Root: svn+ssh://svn.freebsd.org/base=0D=0A> Repository UUID: = ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f=0D=0A> Revision: 232297=0D=0A> Node = Kind: directory=0D=0A> Schedule: normal=0D=0A> Last Changed Author: = kensmith=0D=0A> Last Changed Rev: 229283=0D=0A> Last Changed Date: = 2012-01-02 09:45:30 -0500 (Mon, 02 Jan 2012)=0D=0A> =0D=0A> % svn stat = boot/i386/boot2=0D=0A> M boot/i386/boot2/boot2.c=0D=0A> =0D=0A> % = svn diff boot/i386/boot2 | md5=0D=0A> = 888f90f32bd20d1bf7e2d3277d9b697b=0D=0A> =0D=0A> And the file I sent to = you before:=0D=0A> =0D=0A> % md5 ~/work/patches/boot2_test.patch =0D=0A> = MD5 (/home/jhb/work/patches/boot2_test.patch) =3D = 888f90f32bd20d1bf7e2d3277d9b697b=0D=0A> =0D=0A> > I'll give you a hint = (which I've mentioned at start)=0D=0A> > =0D=0A> > In order to expose = bug, 2 conditions have to be met:=0D=0A> > 1) boot.config in = use=0D=0A> > 2) daX device (i.e; USB stick)=0D=0A> > =0D=0A> > That is = ...=0D=0A> > I've created vnode image. Then, ... when I 'dd' it to HDD's = slice, it boots.=0D=0A> > BUT when I 'dd' it to USB's slice it = hangs.=0D=0A> =0D=0A> USB booting uses a different chunk of BIOS code, = and it may be doing different=0D=0A> things which result in uninitialized = memory having different values (e.g. the=0D=0A> cmd[] array).=0D=0A> = =0D=0A> -- =0D=0A> John Baldwin=0D=0A> =0D=0A=0D=0AUsing new:=0D=0AMD5 = (boot2_test.patch) =3D 01cc3a9dda1f1ecbd5125092ebccc476=0D=0A=0D=0AResult = is:=0D=0Ahttp://www.starforce.biz/stage2boot.jpg=0D=0A=0D=0A=0D=0ADomagoj = Smol=E8i=E6=0D=0A