From patchwork Fri Apr 25 16:09:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 29090 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 80CAE203AC for ; Fri, 25 Apr 2014 16:10:48 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id r10sf7335590pdi.4 for ; Fri, 25 Apr 2014 09:10:47 -0700 (PDT) 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=HKQGV8XvBpsq9ahwypeQkk18uYnH6+bG9asj/nKklQ7PZaCSForjEI0nxmXe0Nw/K4 QQeRQ4XOZrmyBlAmCTNinvdg558992iH8KxT9ej3K4wp7ENGzPaily2Pcf5qPBjJvmMc SFuIL7kuGUtRm+/2WT+pAFbouE0WnysDNIfxAvTevVUztfyL1p+qwyp9RWN0R7vjLba7 fn6xZJYpGI7wOg0/7pk8skSL9ImCl/2UBbZo7+TSuJyj6XfrrjM/2e8Gyn+quJSMU564 ki3m+9AgV/hvC30dntAHjczFZ+sb0O/yA8gpuNc75FRCE2uEUqMXvMQFwvRJSvUyEDc2 z3lw== X-Gm-Message-State: ALoCoQnX8IwJFPTZmDYkN1TYO8KFXYclno9yXdqAREjQTOdDwQBS1tVuuRhpIj87pI5QQawX8Ohx X-Received: by 10.67.30.168 with SMTP id kf8mr1556057pad.13.1398442247778; Fri, 25 Apr 2014 09:10:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.100.164 with SMTP id s33ls1719579qge.57.gmail; Fri, 25 Apr 2014 09:10:47 -0700 (PDT) X-Received: by 10.220.250.203 with SMTP id mp11mr7357049vcb.2.1398442247559; Fri, 25 Apr 2014 09:10:47 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id z4si1803143vcp.132.2014.04.25.09.10.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Apr 2014 09:10:47 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id hq16so2467734vcb.25 for ; Fri, 25 Apr 2014 09:10:47 -0700 (PDT) X-Received: by 10.220.81.194 with SMTP id y2mr1844441vck.29.1398442247484; Fri, 25 Apr 2014 09:10:47 -0700 (PDT) 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.221.72 with SMTP id ib8csp109651vcb; Fri, 25 Apr 2014 09:10:47 -0700 (PDT) X-Received: by 10.66.164.135 with SMTP id yq7mr8950595pab.126.1398442246300; Fri, 25 Apr 2014 09:10:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pn4si5144459pac.257.2014.04.25.09.10.45 for ; Fri, 25 Apr 2014 09:10:45 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753262AbaDYQKL (ORCPT + 28 others); Fri, 25 Apr 2014 12:10:11 -0400 Received: from mail-we0-f176.google.com ([74.125.82.176]:64459 "EHLO mail-we0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753218AbaDYQKD (ORCPT ); Fri, 25 Apr 2014 12:10:03 -0400 Received: by mail-we0-f176.google.com with SMTP id x48so3834316wes.35 for ; Fri, 25 Apr 2014 09:10:02 -0700 (PDT) X-Received: by 10.180.10.164 with SMTP id j4mr4309223wib.51.1398442202497; Fri, 25 Apr 2014 09:10:02 -0700 (PDT) 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 uy4sm11813046wjc.8.2014.04.25.09.09.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Apr 2014 09:10:01 -0700 (PDT) From: Leif Lindholm To: linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: matt.fleming@intel.com, catalin.marinas@arm.com, msalter@redhat.com, grant.likely@linaro.org, roy.franz@linaro.org, ard.biesheuvel@linaro.org, mark.rutland@arm.com, linux-doc@vger.kernel.org Subject: [PATCH v2 02/10] doc: efi-stub.txt updates for ARM Date: Fri, 25 Apr 2014 17:09:06 +0100 Message-Id: <1398442154-19974-3-git-send-email-leif.lindholm@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1398442154-19974-1-git-send-email-leif.lindholm@linaro.org> References: <1398442154-19974-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: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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.