Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1927DC48BDF for ; Mon, 21 Jun 2021 02:17:11 +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 DA74E6117A for ; Mon, 21 Jun 2021 02:17:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA74E6117A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5024A81671; Mon, 21 Jun 2021 04:17:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Awib3zP+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B7C7082917; Mon, 21 Jun 2021 04:17:05 +0200 (CEST) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (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 DBEB78047F for ; Mon, 21 Jun 2021 04:17:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-ed1-x534.google.com with SMTP id t3so16752636edc.7 for ; Sun, 20 Jun 2021 19:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZIdGbAJlPmaSAIO9JqFe64K0AAAov0GzoXKhzLAgWqQ=; b=Awib3zP+g8iBauXS+EE5KZVQ1G5Wu1y+pFUy8aFGVn7bG2gDpBtXX6ZPELc0JOeR7Q YMOKUY0CIOLjkpkN3NrIBN9muCH0nzOThMNIowba+l/SzZLM2XW9Zeq0oknXqSlupZyQ E4YBoiiITT27fRgpRMVqR4TwslQ/nRFfyU8xX6PsjX2NiIrd3zQqDoDsOJE5AUykOSNA 7bzFUg2spqp9DwGR7DK3gBL5JvXgwkcPaYvObt0/D31IEghQ61GGCMfadLehKgSdlRxQ tzJSnlOWm0Al2yaVRDlgFQ7wsFpzVMHumtcOWZ1AG3DdYg9GI54azM7ddtX+wkMRvEXb xRXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZIdGbAJlPmaSAIO9JqFe64K0AAAov0GzoXKhzLAgWqQ=; b=ApM/hoFuIQxV74Jv9QeHfI3nvfXCstuSpTgPmk766KCm7vkyBuMhhYfNJTj/ZBMFUF XCiI/dF4OvP0P3BYgDgoa4QVMi3WR4EcdcPAjhHSid+w4ouDtkHmQTsZDkc7nvBxuf0K 5S50lAI1eAdhF/NSVDKS8IV1UhL1njFMSNpCJwAElGUOPXFMdhy2V5IXno6q6Nwc1hKF 8rnb2b0gD+XZ2zEuOTJcPTd+pmNrHgFypFDYGHSqPIzcuqSpdwfs3w8lnRONY34rLBR3 xtPj/Y58Im/tcIW15IoVDhHr/Px8/XW6xc4kRR99AieWCiIxDXrcj7AVHsy2HZzHjNQE QSPg== X-Gm-Message-State: AOAM530LfkI8tZmDdGV+DFOZJY1FR5p9sH5wG/i7irI+it19GDMLAAxD 05XEux9F8CgUXO1Qhfdkq0E= X-Google-Smtp-Source: ABdhPJy46693XnyNsrCq4D4P3MWXDpKnLJvgR/Ckome7NN25pFMURVdw+Omi6jJ3LzrPIM0j+mhzMg== X-Received: by 2002:aa7:c9d8:: with SMTP id i24mr18833181edt.79.1624241821590; Sun, 20 Jun 2021 19:17:01 -0700 (PDT) Received: from pek-vx-bsp2.wrs.com (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180]) by smtp.gmail.com with ESMTPSA id ec24sm2689902edb.74.2021.06.20.19.16.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 19:17:01 -0700 (PDT) From: Bin Meng To: Simon Glass , U-Boot Mailing List Cc: Heinrich Schuchardt Subject: [PATCH] docs: uefi: Update stale U-Boot on EFI doc Date: Mon, 21 Jun 2021 10:17:23 +0800 Message-Id: <20210621021723.632599-1-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The existing intructions in the U-Boot on EFI doc do not work with the latest QEMU. Update the doc with the correct instructions, as well as using the new OVMF URL link. Signed-off-by: Bin Meng --- doc/develop/uefi/u-boot_on_efi.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/develop/uefi/u-boot_on_efi.rst b/doc/develop/uefi/u-boot_on_efi.rst index c9a41bc919..43afb11de5 100644 --- a/doc/develop/uefi/u-boot_on_efi.rst +++ b/doc/develop/uefi/u-boot_on_efi.rst @@ -72,17 +72,19 @@ You will end up with one of these files depending on what you build for: Trying it out ------------- QEMU is an emulator and it can emulate an x86 machine. Please make sure your -QEMU version is 2.3.0 or above to test this. You can run the payload with +QEMU version is 6.0.0 or above to test this. You can run the payload with something like this:: mkdir /tmp/efi cp /path/to/u-boot*.efi /tmp/efi - qemu-system-x86_64 -bios bios.bin -hda fat:/tmp/efi/ + qemu-system-x86_64 -pflash edk2-x86_64-code.fd -hda fat:rw:/tmp/efi/ Add -nographic if you want to use the terminal for output. Once it starts type 'fs0:u-boot-payload.efi' to run the payload or 'fs0:u-boot-app.efi' to -run the application. 'bios.bin' is the EFI 'BIOS'. Check [2] to obtain a -prebuilt EFI BIOS for QEMU or you can build one from source as well. +run the application. 'edk2-x86_64-code.fd' is the EFI 'BIOS'. QEMU already +ships both 32-bit and 64-bit EFI BIOS images. For 32-bit EFI 'BIOS' image, +use 'edk2-i386-code.fd'. + To try it on real hardware, put u-boot-app.efi on a suitable boot medium, such as a USB stick. Then you can type something like this to start it:: @@ -232,4 +234,4 @@ Google, Inc July 2015 * [1] http://www.qemu.org -* [2] http://www.tianocore.org/ovmf/ +* [2] https://github.com/tianocore/tianocore.github.io/wiki/OVMF -- 2.25.1