Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3566993yba; Sat, 11 May 2019 13:58:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxC0wo6oL+GI2rXrjziUMXgB2pYUfkuqku+jHg9QUd+jNF5MIyOjKnE1eoenUVkFr5MRwLZ X-Received: by 2002:a17:902:201:: with SMTP id 1mr3908335plc.89.1557608327905; Sat, 11 May 2019 13:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557608327; cv=none; d=google.com; s=arc-20160816; b=m9I9+jCr3Cbeq6EpEbxHiwhCwe+6kOc5WzdGDw1mdhRen2pyqD521KTScKm6KrwqPE gklPBtepwwXbCrG5UPy2gAZ65eFrlObNJ2BeRkLZQDCPD8yBe0KDtuXuXXKZsJZz2hVR fJwa1ERj2iJItvsGmYoWNlpPwj4r5DkeqpLrbsz38qC9AiAD03ZMoLj4VwHes446DsWw oAQQATGmzqQSCFWh/dw7rGZU/+2wDC0M07JZ7ruWbCxqxQYUAS0mgLSBlT6cCICntkuw mveYkjZ5J8n/ICn69e9JbJADgHrTTELP8QG23Fu400Pdls4AuFjF+pyElBt53ie6JtZU 9OPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=N6IWVr6sq95ZClr9SB3cCWu/biG+YtW8KFxVaO7TbEM=; b=QMYJca+A+NUROklqqeQIdCCnfE6D0QI2GtL7ejpMZy53bVpYe1w1cTPxXakhfk9i3E J09DMwP5eVc4eWO1Khz3oaEHEvSdvQqE3ESh3mPq/sPKgmAnxFSICt/UGveqocFBZe+F wD+kBoLO7ANvnO3YLxo7zjQ/Uvq+zi+LtP5DaVS8aucBjggfku0q1zu/wiUMhCYhxgbA dCDhH9ylAbY2CK0wP5Ngu1pRx7aZRadMZTLsiNx2DLcqeATudU3jkXwPv12XsCjVSjid /AWgXx6X+beNawA9QkGayyPbwk7BmV7tW8U+reacAco5stvUFIuk3yWUDcj8dGyuP2XW eX1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y23si12787778pfn.287.2019.05.11.13.58.29; Sat, 11 May 2019 13:58:47 -0700 (PDT) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726360AbfEKU5h (ORCPT + 99 others); Sat, 11 May 2019 16:57:37 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:45823 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726033AbfEKU5h (ORCPT ); Sat, 11 May 2019 16:57:37 -0400 Received: from excalibur.cnev.de ([213.196.205.140]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N0o7f-1gTB542I2X-00wkTo; Sat, 11 May 2019 22:57:15 +0200 Received: from karsten by excalibur.cnev.de with local (Exim 4.89) (envelope-from ) id 1hPZ3P-00048x-9K; Sat, 11 May 2019 22:57:11 +0200 Date: Sat, 11 May 2019 22:57:11 +0200 From: Karsten Merker To: Palmer Dabbelt Cc: Atish Patra , linux-kernel@vger.kernel.org, Albert Ou , Anup Patel , linux-riscv@lists.infradead.org, Palmer Dabbelt , Zong Li , mark.rutland@arm.com, merker@debian.org Subject: Re: [v2 PATCH] RISC-V: Add a PE/COFF compliant Image header. Message-ID: <20190511205711.pp54kufgret662xv@excalibur.cnev.de> References: <20190501195607.32553-1-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190501195607.32553-1-atish.patra@wdc.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Provags-ID: V03:K1:/xkbM78ealdbZdv6ETAtl6zu3DJ7y7eSvM3/2gU2x4ECT24NeAa rNckyR3vQzZx26gazhyfoMO9JxisyplzfzWdzXjBbBcCWjJztS1tdI+GcuvR8WKLGNEFIEf EHy/COzluWqK3GUcak3ovhmW2fdR9scfEKNQAiQjSKdtKflSnCU4CDxpgaDPlsLhuP27t/A 5wTm4FmJaQGjOtyJsqz3g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:qkYxWV8zqxQ=:C+40/wcclDkdRJjoNXAH9b foQwVXtiwpM4A22L8QPZYvhPA+dSAmKtPRoBPMSkIidqslY5MwRJLU1CuvgIcbTk5p30AmiZR 2PorYLUQmAcN6M94BB5iOEBAySmi+3vOhBBgIewxM8Uw0pD2gv+5WQ+NfkX7pwapgrU8WrBs4 WeMaPn6qz3l8BojlAGtkeXH1t/hitRot+IA4adf9Wnt8JpzAcVLjThULOtMsyzDhhXnZQ/Dlg P7AmExDg4+UNHqYyP2fCdsRb2rTIdtGW3tWlBflPuANZpWydhSOp4H7NqoS01ln6QU1yx4QRU zIgiBc06sPQfLT7lF5g18w2YZ+v2JwxlCK6RjY+AqJHZeHUmtEseTn5iT2W7Lfj/vtBxDIYYF fXOzHeAZ8go5YyUnltPL7OobTi6d1QXKPgRMFChkXoO+Sk24QN+vIDfHBveY2iD4nx56BSrtZ MN0EzwbZ5muF/N4p63DmNkG2s5QNZ/DJaXjwm/r13hx44+UrZ+Yiso0SqRFmxVLnz63UdeVMW 1dggahU8zMKYT0kw3zqP+dEwra+oMQt1+3wgTFz5XTzKwBKL4AJn8Zm02zUov8J0aJgzG2b0L hMAVG3Fs0ml96w4kS7UI5Ca6kBNLc5FLbbaNV64Ho+Gm9cVp2B2qKCrCGEowJYDsn6TgFuFT+ o73uxQ8mx6fWHHDt8ipn6dMfWfi752VxvDXzVFO11BR/eNtn3bvSc4AdNWCEz0d+JQrNfF5bw oyg65AGEOMnO0HAVhLuYvQOXaTva6K0VFFDYiA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 01, 2019 at 12:56:07PM -0700, Atish Patra wrote: > Currently, last stage boot loaders such as U-Boot can accept only > uImage which is an unnecessary additional step in automating boot flows. > > Add a PE/COFF compliant image header that boot loaders can parse and > directly load kernel flat Image. The existing booting methods will continue > to work as it is. > > Another goal of this header is to support EFI stub for RISC-V in future. > EFI specification needs PE/COFF image header in the beginning of the kernel > image in order to load it as an EFI application. In order to support > EFI stub, code0 should be replaced with "MZ" magic string and res5(at > offset 0x3c) should point to the rest of the PE/COFF header (which will > be added during EFI support). > > Tested on both QEMU and HiFive Unleashed using OpenSBI + U-Boot + Linux. Hello Palmer, it would be great if this patch could go in with the 5.2 merge window. Is there anything particular blocking its acceptance? Regards, Karsten -- Ich widerspreche hiermit ausdrücklich der Nutzung sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der Werbung sowie der Markt- oder Meinungsforschung.