From owner-freebsd-hackers@freebsd.org Sat Sep 7 01:35:04 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 62397DE364 for ; Sat, 7 Sep 2019 01:35:04 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from mail.metricspace.net (static-108-31-38-18.washdc.fios.verizon.net [108.31.38.18]) by mx1.freebsd.org (Postfix) with ESMTP id 46QH6b0YTgz3Q2j for ; Sat, 7 Sep 2019 01:35:02 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from [192.168.43.57] (mobile-166-170-31-94.mycingular.net [166.170.31.94]) (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 4A256A9D9 for ; Sat, 7 Sep 2019 01:27:17 +0000 (UTC) To: FreeBSD Hackers 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: GRUB port refurbish patch Message-ID: Date: Fri, 6 Sep 2019 21:27:11 -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="eRpFVxelQ1DMrIyASvIhohwJ3X8ZZ2naV" X-Rspamd-Queue-Id: 46QH6b0YTgz3Q2j X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of eric@metricspace.net has no SPF policy when checking 108.31.38.18) smtp.mailfrom=eric@metricspace.net X-Spamd-Result: default: False [-4.37 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[94.31.170.166.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; HAS_ATTACHMENT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[metricspace.net]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.77)[-0.770,0]; NEURAL_HAM_MEDIUM(-0.99)[-0.992,0]; R_SPF_NA(0.00)[]; SIGNED_PGP(-2.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; ASN(0.00)[asn:701, ipnet:108.31.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.51)[ip: (-2.22), ipnet: 108.31.0.0/16(-1.11), asn: 701(0.84), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Sep 2019 01:35:04 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --eRpFVxelQ1DMrIyASvIhohwJ3X8ZZ2naV Content-Type: multipart/mixed; boundary="BMOWnQN7yDMKIneGE2E8KYlALjnMXRHtk"; protected-headers="v1" From: Eric McCorkle To: FreeBSD Hackers Message-ID: Subject: GRUB port refurbish patch --BMOWnQN7yDMKIneGE2E8KYlALjnMXRHtk Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable I've posted a review for my work on refurbishing the GRUB port: https://reviews.freebsd.org/D21558 I don't consider this all the way ready at this point, but it can be tested by others at this point. As it currently stands, this fixes things to where grub-install will actually work again, and I have used the resulting install to boot on real UEFI hardware. The port also adds the QEMU target (which I haven't tested), as well as a Coreboot target (which can't really be tested right now) Current issues: At present, GRUB doesn't seem to be passing the necessary information to the kernel to initialize the EFI frame buffer, so the screen will be blank until my system switches to the intel graphics drivers. I suspect this is because GRUB lacks the ability to create the parameter modules used to do this (and also to pass in keys via keybufs). I will add this ability, but that's really more of a GRUB patch. Aside from that, the UEFI mode seems to work. grub-install doesn't auto-detect the modules to build into the grub image; you'll need to use the --modules argument to do that, or you'll end up with an unbootable system. grub-install also tries to use efibootmgr to set up efi vars, which isn't present on FreeBSD. You'll have to give it the --no-nvram argument (I'll probably add a patch to make that the default). --BMOWnQN7yDMKIneGE2E8KYlALjnMXRHtk-- --eRpFVxelQ1DMrIyASvIhohwJ3X8ZZ2naV 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+BVsgUCXXMHdAAKCRDpjibYt+BV splMAP4+gSW89yuWWkoAgM33W9T5XYn+VrfO7JqwZeZElaiv4AD+Pa72UFwVDGZU qJTbpeVIlftxq7vQfRGuis4n/7Q/BAs= =vLEe -----END PGP SIGNATURE----- --eRpFVxelQ1DMrIyASvIhohwJ3X8ZZ2naV--