Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1iJHeg-0002Aj-S8 for mharc-grub-devel@gnu.org; Sat, 12 Oct 2019 09:41:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34739) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJHee-000288-P4 for grub-devel@gnu.org; Sat, 12 Oct 2019 09:41:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJHed-0004w9-Oi for grub-devel@gnu.org; Sat, 12 Oct 2019 09:41:56 -0400 Received: from static-108-31-38-18.washdc.fios.verizon.net ([108.31.38.18]:31581 helo=mail.metricspace.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iJHed-0004w1-Kc for grub-devel@gnu.org; Sat, 12 Oct 2019 09:41:55 -0400 Received: from [IPv6:2001:470:1f11:617:3210:b3ff:fe77:ca3f] (unknown [IPv6:2001:470:1f11:617:3210:b3ff:fe77:ca3f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: eric) by mail.metricspace.net (Postfix) with ESMTPSA id C1779DF28 for ; Sat, 12 Oct 2019 13:41:54 +0000 (UTC) To: The development of GNU GRUB From: Eric McCorkle Autocrypt: addr=eric@metricspace.net; prefer-encrypt=mutual; keydata= mDMEXMXabRYJKwYBBAHaRw8BAQdAJ2yzSUUR7u7H/bLAFOzhPII7vvJ45zQeB60TxyCoio20 JEVyaWMgTWNDb3JrbGUgPGVyaWNAbWV0cmljc3BhY2UubmV0PoiWBBMWCAA+FiEEG/v8wt9b D9+AxsV/6Y4m2LfgVbIFAlzF2m0CGwMFCQHhM4AFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AA CgkQ6Y4m2LfgVbJ9mwD/YpSeQ5F9gpvKFS5Bs5w1Bw7zTOfO7zJQrh9NzDbWtd0BAOSGr/i5 zJer2pAjwambsyU0bhgHNy9IDQ7AGnidIyMHuDgEXMXabRIKKwYBBAGXVQEFAQEHQEBwYuBK iJPJEDtS6hbLgcDSUSbfUNA2rGp3TJ1G+7EqAwEIB4h+BBgWCAAmFiEEG/v8wt9bD9+AxsV/ 6Y4m2LfgVbIFAlzF2m0CGwwFCQHhM4AACgkQ6Y4m2LfgVbJ2kwEAlJj1z3zRJm3mmi6N81by nuwAxk3qcKa67WX2/F3C4soA/iwVuPMnx5RWaoX3i2eKXVNzNwzvTFfeGKxfQBOzMocM Subject: FreeBSD support Message-ID: <9fba1095-3b4e-e1d4-33cd-04655833ea91@metricspace.net> Date: Sat, 12 Oct 2019 09:41:50 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JQ6XngJpUbdNMFyNFy4hcgX5V54vGjG4t" X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 108.31.38.18 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Oct 2019 13:41:57 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --JQ6XngJpUbdNMFyNFy4hcgX5V54vGjG4t Content-Type: multipart/mixed; boundary="AX95D8tDulEdgWEayjjwHQYAdhsxU6jCc"; protected-headers="v1" From: Eric McCorkle To: The development of GNU GRUB Message-ID: <9fba1095-3b4e-e1d4-33cd-04655833ea91@metricspace.net> Subject: FreeBSD support --AX95D8tDulEdgWEayjjwHQYAdhsxU6jCc Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi all, I finally got a chance to resume work on FreeBSD support recently. Here's where things are: * I can boot on an EFI platform, however, the efifb driver never turns the screen on, so the screen is blank until the X11 DRM driver takes over (I know why this is, see below) * grub_install doesn't properly detect what modules to link into the image, so you have to manually tell it to load whatever you need to detect the filesystem (ex: zfs, ufs, bsd, etc) Other than that, everything is fine as far as I can tell. As for the screen issue, it comes down to a change that I'm looking into making. The FreeBSD kernel has the ability to send data into the kernel using what amounts to synthetic loadable modules. It creates ELF images containing the data synthetically in memory. This capacity is used in two ways with an EFI boot: to send EFI terminal data to the efifb driver, and to pass keys from the loader to the kernel. The latter is only used for GELI for now, with the older environment variable method being supported but deprecated. The EFI terminal data used to be send in via environment variables, but that was replaced with the synthetic modules method. So basically, I need to implement the synthetic modules functionality in GRUB, assuming it already doesn't exist. As for the grub_install problem, I suspect that's just a matter of debugging it on FreeBSD. --AX95D8tDulEdgWEayjjwHQYAdhsxU6jCc-- --JQ6XngJpUbdNMFyNFy4hcgX5V54vGjG4t Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQb+/zC31sP34DGxX/pjibYt+BVsgUCXaHYIgAKCRDpjibYt+BV sonyAQCuGs1m0aV6WHsWJjZNObKSuTR4HVxUEWc16TyPkyQ4WQEArIsVhY2bnNWu RH/jLSv+Oe6Mp1BjcVMfcfJWsSPonAk= =U8cQ -----END PGP SIGNATURE----- --JQ6XngJpUbdNMFyNFy4hcgX5V54vGjG4t--