Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Apr 2011 15:37:22 -0700
From:      Garrett Cooper <yanegomi@gmail.com>
To:        rank1seeker@gmail.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Look of boot2, on HDD
Message-ID:  <BANLkTimUu4N8yfWO32aUs-F4hZcdTb6gzw@mail.gmail.com>
In-Reply-To: <20110429.160309.656.1@DEV>
References:  <20110429.160309.656.1@DEV>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/4/29  <rank1seeker@gmail.com>:
> /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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTimUu4N8yfWO32aUs-F4hZcdTb6gzw>