[{"id":1771709,"web_url":"http://patchwork.ozlabs.org/comment/1771709/","msgid":"<f7c39a59-e35f-046a-d6bc-60f08cb57eb7@suse.de>","list_archive_url":null,"date":"2017-09-20T09:32:39","subject":"Re: [U-Boot] [PATCH v3 00/21] efi_loader: enough UEFI for standard\n\tdistro boot","submitter":{"id":1212,"url":"http://patchwork.ozlabs.org/api/people/1212/","name":"Alexander Graf","email":"agraf@suse.de"},"content":"On 14.09.17 00:05, Rob Clark wrote:\n> This patchset fleshes out EFI_LOADER enough to support booting an\n> upstream \\EFI\\BOOT\\bootaa64.efi (which then loads fallback.efi and\n> then eventually the per-distro shim.efi which loads the per-distro\n> grubaa64.efi) without resorting to hacks to hard-code u-boot to load\n> a particular distro's grub, or other hacks like setting up the\n> distro installation as live-media.\n> \n> Background: with a normal UEFI implementation, the boot process is:\n> \n> a) firmware (u-boot) looks at BootOrder and the BootXXXX variables\n>     to try to determine what to boot.\n> b) the firmware will look at the BootXXXX variables (which contain\n>     an EFI_LOAD_OPTION \"struct\" in order specified by BootOrder, and\n>     will boot the first bootable option.\n> c) The EFI_LOAD_OPTION specifies a device-path which identifies the\n>     device and file path of the .efi payload to exectute.\n> \n> This is implemented with the 'bootefi bootmgr' command.\n> \n> If there are no bootable options the firmware falls back to loading\n> \\EFI\\BOOT\\bootaa64.efi (exact name varies depending on arch), which\n> for distro's using fallback/shim (which should include most modern\n> linux distros) then loads fallback.efi which uses the\n> EFI_SIMPLE_FILE_SYSTEM_PROTCOL and EFI_FILE_PROTOCOL to search for\n> any \\EFI\\*\\boot.csv, and will then set BootOrder and BootXXXX EFI\n> variables accordingly so that on next boot fallback.efi is not\n> necessary.\n> \n> The last 5 patches are a bit unrelated, just pulling forward some of\n> the patches I have from the next patchset, to get Shell.efi and SCT\n> working.\n\nI've pulled the patches into efi-next, but want to run them through \nTravis first and then do some smoke tests myself before sending them as \npull request.\n\nPlease follow up with fixes to the \"unsigned\" type warnings. Just use \n\"unsigned int\" everywhere.\n\n\nAlex","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xxvfk5y0Fz9sNw\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 20 Sep 2017 19:32:46 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 8E130C21E06; Wed, 20 Sep 2017 09:32:43 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 9E330C21D55;\n\tWed, 20 Sep 2017 09:32:41 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 90FF4C21D55; Wed, 20 Sep 2017 09:32:40 +0000 (UTC)","from mx1.suse.de (mx2.suse.de [195.135.220.15])\n\tby lists.denx.de (Postfix) with ESMTPS id 355ADC21CB3\n\tfor <u-boot@lists.denx.de>; Wed, 20 Sep 2017 09:32:40 +0000 (UTC)","from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254])\n\tby mx1.suse.de (Postfix) with ESMTP id DB86E5CCD3;\n\tWed, 20 Sep 2017 09:32:39 +0000 (UTC)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED\n\tautolearn=unavailable autolearn_force=no version=3.4.0","X-Virus-Scanned":"by amavisd-new at test-mx.suse.de","To":"Rob Clark <robdclark@gmail.com>,\n\tU-Boot Mailing List <u-boot@lists.denx.de>","References":"<20170913220546.19560-1-robdclark@gmail.com>","From":"Alexander Graf <agraf@suse.de>","Message-ID":"<f7c39a59-e35f-046a-d6bc-60f08cb57eb7@suse.de>","Date":"Wed, 20 Sep 2017 11:32:39 +0200","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0)\n\tGecko/20100101 Thunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<20170913220546.19560-1-robdclark@gmail.com>","Content-Language":"en-US","Cc":"Heinrich Schuchardt <xypron.glpk@gmx.de>","Subject":"Re: [U-Boot] [PATCH v3 00/21] efi_loader: enough UEFI for standard\n\tdistro boot","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","Content-Transfer-Encoding":"base64","Content-Type":"text/plain; charset=\"utf-8\"; Format=\"flowed\"","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"}}]