From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D068C433F5 for ; Mon, 18 Oct 2021 18:13:32 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D136160EB2 for ; Mon, 18 Oct 2021 18:13:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D136160EB2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A8FD682FC5; Mon, 18 Oct 2021 20:13:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="ABK/gOAv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 84A6B81197; Mon, 18 Oct 2021 20:12:43 +0200 (CEST) Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9C5C882C4C for ; Mon, 18 Oct 2021 20:12:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ua1-x92b.google.com with SMTP id e10so7683980uab.3 for ; Mon, 18 Oct 2021 11:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2967MkSVJgOgVhu4FCGWr5DrMR64NcyWvMPcdE+XlzU=; b=ABK/gOAveFUsKTz4dgXDCKzoGwADpYpHeNwzo7mcKzu/NS6P23CKCyU6YleBKWJXuo +/kXOmVSGx5ROq7fW4kOMbEYyxNOxjf0x8CCcq4jNCXjjl5WdVEmvqfB5zVBTHgakOCd N86grvoBPfv0lLHkdMRp8YmWuJie2rTVt54N8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2967MkSVJgOgVhu4FCGWr5DrMR64NcyWvMPcdE+XlzU=; b=3jc5AhEwOLcblIGifCdLhTdxMOF9PhXU/IqDoKP0Vs26xd4tc9jM4ynKcmEZsKHVUX r9oDJdZgbRoDf9nREFinlHNDQt+EmxteKVM2/lU+CYlmJC5vfd7gW7wGJtjYeN5OvYpo 7jqpg8DH075emSuFrku7nGjmordksTuiCo/7gC4dkU9Yo6ErgERfaqYWFOL5sL5+dMO8 J94ZYfzoyrOd1+5SntUb0OPYIsv+O/o+FwWc3K5RKQ3Qma4zjCLaWAv9Zukx5rnxxWbV mz+ZbP9FSbDYNB9lmSKkjEUVF2eSbPUFB1Ex++5OvkkP9CFA66DEZJybr2nfHqLi8lT3 mqkA== X-Gm-Message-State: AOAM5302NSOjeLmgx1ZA+JROCr1n7qhaXqH893n+KCj03y7NdIhrsC0K l5U1azTXelMLAtqqnZLZR+Rsg11scAUXFr/XgfzfDw== X-Google-Smtp-Source: ABdhPJw356iu7rSokEh0KgunapOxj4kFwtnsO8S/jsv6zng5ItQAOnGIv7X2hoMQgX+44fnDMIe+1WuipR/0h9qLIg4= X-Received: by 2002:a05:6130:321:: with SMTP id ay33mr28515520uab.140.1634580749590; Mon, 18 Oct 2021 11:12:29 -0700 (PDT) MIME-Version: 1.0 References: <20210925003055.759305-1-sjg@chromium.org> <20210924183029.v2.7.Ic4d32c355c4baf5745ba07ba17c04d0726791618@changeid> In-Reply-To: From: Simon Glass Date: Mon, 18 Oct 2021 12:12:18 -0600 Message-ID: Subject: Re: [PATCH v2 07/39] efi: Add a script for building and testing U-Boot on UEFI To: Heinrich Schuchardt Cc: Bin Meng , Christian Melki , Tom Rini , Ilias Apalodimas , Alexander Graf , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi Heinrich, On Mon, 18 Oct 2021 at 11:35, Heinrich Schuchardt wrote: > > On 9/25/21 2:30 AM, Simon Glass wrote: > > It is quite complicating to run U-Boot on qemu since we have four > > Nits: > %s/complicating/complicated/ %/qemu/QEMU/ > > > different builds and they must use different versions of qemu and the > > QEMU > > > UEFI binaries. > > > > Add a script to help. > > > > Signed-off-by: Simon Glass > > --- > > > > Changes in v2: > > - Add MAINTAINERS entry > > - Add support for creating a partition table with a filesystem inside > > - Add support for running qemu with just a serial console (no display) > > > > MAINTAINERS | 1 + > > doc/develop/uefi/u-boot_on_efi.rst | 62 ++++++++++ > > scripts/build-efi.sh | 188 +++++++++++++++++++++++++++++ > > 3 files changed, 251 insertions(+) > > create mode 100755 scripts/build-efi.sh [..] > > diff --git a/scripts/build-efi.sh b/scripts/build-efi.sh > > new file mode 100755 > > index 00000000000..e6c035a7495 > > --- /dev/null > > +++ b/scripts/build-efi.sh > > @@ -0,0 +1,188 @@ > > +#!/bin/bash > > +# SPDX-License-Identifier: GPL-2.0+ > > +# > > +# Script to build an EFI thing suitable for booting with qemu, possibly running > > +# it also. > > + > > +# This just an example. It assumes that > > + > > +# - you build U-Boot in /tmp/b/ where is the U-Boot board config > > +# - /mnt/x is a directory used for mounting > > +# - you have access to the 'pure UEFI' builds for qemu > > +# > > +# UEFI binaries for QEMU used for testing this script: > > +# > > +# OVMF-pure-efi.i386.fd at > > +# https://drive.google.com/file/d/1jWzOAZfQqMmS2_dAK2G518GhIgj9r2RY/view?usp=sharing > > + > > +# OVMF-pure-efi.x64.fd at > > +# https://drive.google.com/file/d/1c39YI9QtpByGQ4V0UNNQtGqttEzS-eFV/view?usp=sharing > > + > > +set -e > > + > > +usage() { > > + echo "Usage: $0 [-a | -p] [other opts]" 1>&2 > > + echo 1>&2 > > + echo " -a - Package up the app" 1>&2 > > + echo " -o - Use old EFI app build (before 32/64 split)" 1>&2 > > Why is this option needed? I think it is wise for now, in case we hit regressions. This allows comparing the 'old' build with the new one. I have used it quite a few times. We can drop this option once everything is settled. [..] Regards, Simon