From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 22:37:23 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C16F2106564A for ; Fri, 29 Apr 2011 22:37:23 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 70B718FC08 for ; Fri, 29 Apr 2011 22:37:22 +0000 (UTC) Received: by vws18 with SMTP id 18so4125200vws.13 for ; Fri, 29 Apr 2011 15:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=fYVnc1VtvNeA98bm7e+5AgTuC/d3UKmtyy3tmeUeMgQ=; b=li9JzMRtclXFVvY+gW1KXTmDhLPWvIW4EjSEDnj/2bXeCjtpTdm9AQOg0u0FJmRUAB RAFmWy4eVaA7R2dx1FnKu5cFXONhmptGRZaPCwa0AzMFiBIdB30Z0Uf0ZX92Xx9JWf8/ QzcC3fOH9lvYG4w8vMCl/wW4NrpHI+ZRXNZhg= 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=DP1IHF5Qju9FXfIPGshWcVWXKkvRGzWW8ilV/bHbIw9RyBb029/BU930iWPIcSm8MB kWTHnkGlGY2nGu3HZf3f7x3kzqh24oMHlo+nUwuhU+H4S+Kiz+n+01dET9UMe6myVEa0 7rSjWy7MG7TpPdvn3zPsGf2tuM6BdLUCPolDo= MIME-Version: 1.0 Received: by 10.220.112.138 with SMTP id w10mr854070vcp.46.1304116642281; Fri, 29 Apr 2011 15:37:22 -0700 (PDT) Received: by 10.220.199.130 with HTTP; Fri, 29 Apr 2011 15:37:22 -0700 (PDT) In-Reply-To: <20110429.160309.656.1@DEV> References: <20110429.160309.656.1@DEV> Date: Fri, 29 Apr 2011 15:37:22 -0700 Message-ID: From: Garrett Cooper To: rank1seeker@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Look of boot2, on HDD 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: Fri, 29 Apr 2011 22:37:23 -0000 2011/4/29 : > /boot/boot2 =A0 =A0STAGE 2 bootstrap file > Understands the FreeBSD file system enough, to find files on it, and can = provide a simple interface to choose the kernel or loader to run. > > Once sys is fully booted, HDD is 'ada0'. > However, STAGE 2, sees it, as a 'ad4', at boot process, which is same see= n, by booted sys, when I turn off AHCI. > > So, here is the riddle ... > On fully booted sys, how do I query STAGE 2, to tell me, how it'll see, m= y 'ada0' HDD? This is a very interesting catch: /usr/src/sys/boot/pc98/boot2/boot2.c:static const char *const dev_nm[NDEV] =3D {"ad", "da", "fd"}; /usr/src/sys/boot/i386/boot2/boot2.c:static const char *const dev_nm[NDEV] =3D {"ad", "da", "fd"}; It probably will be a no-op soon because of some of the compatibility changes Alex made, but still a potential point of confusion nonetheless. Thanks! -Garrett