From patchwork Wed Nov 27 23:31:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roy Franz X-Patchwork-Id: 21821 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 14BAA23FD2 for ; Wed, 27 Nov 2013 23:32:08 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id g10sf19480929pdj.1 for ; Wed, 27 Nov 2013 15:32:07 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Jj7621GbU59of15G+Rj4OLBfWuG5jJg2JJruDllLvEU=; b=IiPQ6rdsMbZXHr0tkBbCzVwKlrv9npd1cvfFOpwIBXY4q2x8k3PTpgoWePqP9lWX3p yCV58cLozpAy0Hg45/yu4MdUbn+Y/aQceSgyiMCdzqCt9fcDG+qUppv7paQ4RWty+Q7R rXbtWTjkyFh7LSf14PpFr7Gka6/LGxjaHyuwxXVb3GHJ1RepJbJHgZXnBCIdnwiTfwET T/dxpowscnpGBh2Eu9kqgyrlx8wEV2CpGlWKSCKlE1jHWlB2ytnH9E2xzGLQfBr3o9vp tOvpVD9krsM8+dfdom3ZAQVeEJLu2W3m8lJdWKvYUgaxHCFSu+JoofFDqGVAQ9z7mFms UkKw== X-Gm-Message-State: ALoCoQl8n/+PRdwjYlrxSdmu1W+FH32i7UB6iPnhrkvpET9gEb/x7sy9FYHjBFOQ8QIR4+pkxU5F X-Received: by 10.66.51.33 with SMTP id h1mr15283074pao.30.1385595127229; Wed, 27 Nov 2013 15:32:07 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.1.130 with SMTP id 2ls2376357qem.99.gmail; Wed, 27 Nov 2013 15:32:07 -0800 (PST) X-Received: by 10.58.168.205 with SMTP id zy13mr15864451veb.19.1385595127029; Wed, 27 Nov 2013 15:32:07 -0800 (PST) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by mx.google.com with ESMTPS id gs2si7268387vdc.57.2013.11.27.15.32.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Nov 2013 15:32:07 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.41 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.41; Received: by mail-vb0-f41.google.com with SMTP id w5so5407201vbf.14 for ; Wed, 27 Nov 2013 15:32:07 -0800 (PST) X-Received: by 10.58.217.169 with SMTP id oz9mr124576vec.42.1385595126948; Wed, 27 Nov 2013 15:32:06 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp24567vcz; Wed, 27 Nov 2013 15:32:06 -0800 (PST) X-Received: by 10.50.153.50 with SMTP id vd18mr392504igb.6.1385595126241; Wed, 27 Nov 2013 15:32:06 -0800 (PST) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by mx.google.com with ESMTPS id ix6si40007724icb.83.2013.11.27.15.32.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Nov 2013 15:32:06 -0800 (PST) Received-SPF: neutral (google.com: 209.85.223.180 is neither permitted nor denied by best guess record for domain of roy.franz@linaro.org) client-ip=209.85.223.180; Received: by mail-ie0-f180.google.com with SMTP id tp5so12763198ieb.39 for ; Wed, 27 Nov 2013 15:32:06 -0800 (PST) X-Received: by 10.50.23.103 with SMTP id l7mr321973igf.3.1385595125964; Wed, 27 Nov 2013 15:32:05 -0800 (PST) Received: from rfranz-v430.caveonetworks.com (64.2.3.195.ptr.us.xo.net. [64.2.3.195]) by mx.google.com with ESMTPSA id p5sm41764439igj.10.2013.11.27.15.32.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Nov 2013 15:32:05 -0800 (PST) From: Roy Franz To: linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, matt.fleming@intel.com, linux@arm.linux.org.uk Cc: leif.lindholm@linaro.org, grant.likely@linaro.org, dave.martin@arm.com, msalter@redhat.com, patches@linaro.org, Roy Franz Subject: [PATCH V5 1/6] efi-stub.txt updates for ARM Date: Wed, 27 Nov 2013 15:31:50 -0800 Message-Id: <1385595115-21488-2-git-send-email-roy.franz@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1385595115-21488-1-git-send-email-roy.franz@linaro.org> References: <1385595115-21488-1-git-send-email-roy.franz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: roy.franz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.41 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 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 44e6bb6..19e897c 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 Partiion (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 process in the same manner as the "initrd=" option that is described +above.