From patchwork Wed Feb 5 17:03:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 24202 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 00D6D20675 for ; Wed, 5 Feb 2014 17:05:53 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1sf3566066oag.9 for ; Wed, 05 Feb 2014 09:05:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=SC5Z8Cowo3S1955aw8Nrq4ejpaq8WypNoJAKHI1vVg0=; b=VLA2bjCkyu0V8KhcyhdkunfDEH8LoKOOzbWQAcaObHQqqZ3nnhRa6VLXdKb2+BIIuj yigpHIa148YLs5tRwWujCvohINreakZVilH4YHx1364Y+oIuBnSg6nNOnmEH+Pedw+Zf H97Nb1A0w4AcD+1lfxp6etWf7WLmzox3vGU9SlHr7OArxVq77aV5PFYbtFOK62fnWG7i 6Tqtgkc74yiR1METLQBuvMKrZWkBh344C3wo1dZ4c25qx6gV0lnF7s0+daW453VUM/Uw hMA/mqsNO8gIOtfZf+ZOwYV93NMMfl7Lg8pSQxuUQ3/DJ3KZHbbXskyaBVJqUi7Te38r ROnw== X-Gm-Message-State: ALoCoQlkjHxD3c8vC5Kmieq8PadWNxlsxVl9IVKTVScDIeBh4FW9zsAbs65NwiNClLRb+JVqm/1U X-Received: by 10.42.78.197 with SMTP id o5mr944373ick.9.1391619953092; Wed, 05 Feb 2014 09:05:53 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.51 with SMTP id o48ls220223qgd.83.gmail; Wed, 05 Feb 2014 09:05:52 -0800 (PST) X-Received: by 10.52.181.199 with SMTP id dy7mr629024vdc.43.1391619952907; Wed, 05 Feb 2014 09:05:52 -0800 (PST) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id tt2si9831448vdc.152.2014.02.05.09.05.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Feb 2014 09:05:52 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id if11so505634vcb.36 for ; Wed, 05 Feb 2014 09:05:52 -0800 (PST) X-Received: by 10.52.164.39 with SMTP id yn7mr1433368vdb.25.1391619952811; Wed, 05 Feb 2014 09:05:52 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp64639vcz; Wed, 5 Feb 2014 09:05:52 -0800 (PST) X-Received: by 10.68.204.161 with SMTP id kz1mr3437463pbc.156.1391619928232; Wed, 05 Feb 2014 09:05:28 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si29670255pbf.4.2014.02.05.09.05.27; Wed, 05 Feb 2014 09:05:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753340AbaBERFT (ORCPT + 27 others); Wed, 5 Feb 2014 12:05:19 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:54833 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753039AbaBERFQ (ORCPT ); Wed, 5 Feb 2014 12:05:16 -0500 Received: by mail-wg0-f50.google.com with SMTP id l18so489946wgh.17 for ; Wed, 05 Feb 2014 09:05:15 -0800 (PST) X-Received: by 10.194.22.232 with SMTP id h8mr2154859wjf.53.1391619915244; Wed, 05 Feb 2014 09:05:15 -0800 (PST) Received: from mohikan.mushroom.smurfnet.nu (cpc4-cmbg17-2-0-cust71.5-4.cable.virginm.net. [86.14.224.72]) by mx.google.com with ESMTPSA id p1sm47427211wie.1.2014.02.05.09.05.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Feb 2014 09:05:14 -0800 (PST) From: Leif Lindholm To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org Cc: patches@linaro.org, Roy Franz , Leif Lindholm Subject: [PATCH 04/22] efi-stub.txt updates for ARM Date: Wed, 5 Feb 2014 17:03:55 +0000 Message-Id: <1391619853-10601-5-git-send-email-leif.lindholm@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391619853-10601-1-git-send-email-leif.lindholm@linaro.org> References: <1391619853-10601-1-git-send-email-leif.lindholm@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leif.lindholm@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Roy Franz Update efi-stub.txt documentation to be more general and not x86 specific. Add ARM only "dtb=" command line option description. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm Acked-by: Grant Likely --- Documentation/efi-stub.txt | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/Documentation/efi-stub.txt b/Documentation/efi-stub.txt index c628788..26be7b0 100644 --- a/Documentation/efi-stub.txt +++ b/Documentation/efi-stub.txt @@ -1,13 +1,16 @@ The EFI Boot Stub --------------------------- -On the x86 platform, a bzImage can masquerade as a PE/COFF image, -thereby convincing EFI firmware loaders to load it as an EFI -executable. The code that modifies the bzImage header, along with the -EFI-specific entry point that the firmware loader jumps to are -collectively known as the "EFI boot stub", and live in +On the x86 and ARM platforms, a kernel zImage/bzImage can masquerade +as a PE/COFF image, thereby convincing EFI firmware loaders to load +it as an EFI executable. The code that modifies the bzImage header, +along with the EFI-specific entry point that the firmware loader +jumps to are collectively known as the "EFI boot stub", and live in arch/x86/boot/header.S and arch/x86/boot/compressed/eboot.c, -respectively. +respectively. For ARM the EFI stub is implemented in +arch/arm/boot/compressed/efi-header.S and +arch/arm/boot/compressed/efi-stub.c. EFI stub code that is shared +between architectures is in drivers/firmware/efi/efi-stub-helper.c. By using the EFI boot stub it's possible to boot a Linux kernel without the use of a conventional EFI boot loader, such as grub or @@ -23,7 +26,9 @@ The bzImage located in arch/x86/boot/bzImage must be copied to the EFI System Partition (ESP) and renamed with the extension ".efi". Without the extension the EFI firmware loader will refuse to execute it. It's not possible to execute bzImage.efi from the usual Linux file systems -because EFI firmware doesn't have support for them. +because EFI firmware doesn't have support for them. For ARM the +arch/arm/boot/zImage should be copied to the system partition, and it +may not need to be renamed. **** Passing kernel parameters from the EFI shell @@ -63,3 +68,11 @@ Notice how bzImage.efi can be specified with a relative path. That's because the image we're executing is interpreted by the EFI shell, which understands relative paths, whereas the rest of the command line is passed to bzImage.efi. + + +**** The "dtb=" option + +For the ARM architecture, we also need to be able to provide a device +tree to the kernel. This is done with the "dtb=" command line option, +and is processed in the same manner as the "initrd=" option that is +described above.