Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2115809yba; Fri, 17 May 2019 10:41:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtxCRD88Y+D3dy4nkBcBmNL21b/4RsVlAXU6WXEDl4hJqW8cXiDAk0DpAVlPSurSbrtNRD X-Received: by 2002:a17:902:5a47:: with SMTP id f7mr33119002plm.321.1558114916491; Fri, 17 May 2019 10:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558114916; cv=none; d=google.com; s=arc-20160816; b=xGd3qalId4d0SjCCgypPzsF99X04TGhWx7rA/CW2q3Q+TlprGc/QJqddhH39iBn7mT g3xJ2Xx4Aa0pxTmy3EYX9vCXRSrypJZ6Mzsq7jC3GwWSO8CpRxdZvda4fYQ4cM0WZk7B qH3e/qPAcp59jpRp0EtgLySQxm8EDewhyUjB6bUhnWRqOCXNW05wsMhqPSXPdbz7fWh9 ZlXb4dX6YIsNQet1ZDuRUTrADu5RENudQCe3xKOZFvpDokXep61ct4+oqDRQH5HRdwJ0 OYUhWfn7onxKyymOnV5N8lpMBnM0z63T8no56NXPUwmgO8KnVI3E//xybMs8PH8AYpYx FW5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=sjlzL8sYzuwHRaKiYXlCL9BHKp701p8pybnhyPt408A=; b=jIGoiBhPdGhW4zFSTrxAMJM3mL6JkuW7sacOFswM69/HYQyHg62UQO+zZzZ3jpGjWE fhGD4jgOb2A1uyOukhUjd7+JgRy2jcbB8cjzfoZ82x+3BNe8g9PRqM9kqtM7tqef9nJv GVbi9g0KOqRPNlLZxzj6n8qk8eNzygXbT//JNnSJIVwzho9hpBzLjr67uVYFmTPCYty8 QQJ24jt13yZzWSwjuYXl7HND17sd6w3IpFR461dC9QZuzZNTSVmCZ9t6cQvqHAvFesZ1 8aBg7ty+k9gaj4oJakbMIXu6UFC+tmGpL26qoQvv4gCWSKy2GAMmI2AZMXsd1ArnaFj7 LHcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=QoXQysgM; 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 f64si8764868plf.128.2019.05.17.10.41.38; Fri, 17 May 2019 10:41:56 -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; dkim=pass header.i=@sifive.com header.s=google header.b=QoXQysgM; 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 S1728641AbfEQRjd (ORCPT + 99 others); Fri, 17 May 2019 13:39:33 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:38735 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726078AbfEQRjd (ORCPT ); Fri, 17 May 2019 13:39:33 -0400 Received: by mail-it1-f196.google.com with SMTP id i63so13299859ita.3 for ; Fri, 17 May 2019 10:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=sjlzL8sYzuwHRaKiYXlCL9BHKp701p8pybnhyPt408A=; b=QoXQysgMhGAQhTO1LjXz8Ww4aJB4vAaO5w19dLg7CJHuNGCNkFQaHGo6RXZq259AwD 5nPkXc2b7LBEnTtOOrI+WLOp+5W0xiXJ0rP7H1H1dxERDC6982aIH4sObvHmRwdokojd KIw8ZLBZHmqTpNMzajYjFTGD+cYXryXtJn1sGNI6pCEICSkG9oP1Ro96TNLaPerwlJuS joPFC7DKURMrOVCYXjkJSKemvJ1sUtSL0ISluneoSOehPdly8ykqRrmSR2VyCYjLRn1V rgOnrVQtLQb30diSBsABdhkRYVjVlKhomzbH/5Z68i7jnaw6LqMLE1G0aWjZhKe5l1Eh G1Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=sjlzL8sYzuwHRaKiYXlCL9BHKp701p8pybnhyPt408A=; b=Cg+8bn3xOE2AhAyvL8fcw0PhS6S6cqThBf/+a4IJFk1CDsDtINvzGWzElVE2FQBYEF 7lWi1ZMh6gU+o3qal8BDDLt3uzuYE7eJJFTcII2h9Zyfg3p6MCkP2FuUZk/f/YNy52m5 uhw5ViXePlgzMiKsQjRhVA/u6662nxDmsS3wUVqKG2dJVJE25DlDp1nv4VjhS9zE46uZ agP8gOjvtzxBtjnRCd+jRbBJsiTfE7QOeJKM9iFvJUGnmbcaw/hxAAoesvks0tpfRU1R 0sH64kKOFPbny6AbMAJ7bCE+7fHYp3fG4mfToFkZNDbH51nSofG04qtEwJGHsCbYctER Q4EA== X-Gm-Message-State: APjAAAV4l4H56QJBjVEpSpzLFy3GbVtaZRuBZZfjaKBzPiW1a1nAlpJB /zlnObXHcL2CTbeoFcmLIZH9qg== X-Received: by 2002:a24:6588:: with SMTP id u130mr3713595itb.138.1558114772807; Fri, 17 May 2019 10:39:32 -0700 (PDT) Received: from localhost (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id d7sm527923itd.32.2019.05.17.10.39.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 May 2019 10:39:32 -0700 (PDT) Date: Fri, 17 May 2019 10:39:31 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Atish Patra cc: linux-kernel@vger.kernel.org, mark.rutland@arm.com, Albert Ou , Anup Patel , Palmer Dabbelt , Zong Li , merker@debian.org, linux-riscv@lists.infradead.org Subject: Re: [v2 PATCH] RISC-V: Add a PE/COFF compliant Image header. In-Reply-To: <20190501195607.32553-1-atish.patra@wdc.com> Message-ID: References: <20190501195607.32553-1-atish.patra@wdc.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 1 May 2019, 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. One other thought: as I think you or someone else may have pointed out, this isn't the PE/COFF header itself, but rather an ersatz DOS stub header, that is apparently quite close to what some EFI bootloaders require. So from that point of view, it's probably best to just write in the patch description that the idea is to add something that resembles an MS-DOS stub header, and that the motivations are that: 1. it resembles what ARM64 is doing, and there's not much point in inventing another boot header format that's completely different 2. it can be easily converted into an MS-DOS header that some EFI bootloaders apparently require, by tweaking a few bytes at the beginning - Paul