Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5505235ybe; Tue, 17 Sep 2019 09:00:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOGSpvUMpwSER7tTp9ZRhvc15zJfUBL9AA6l9IBaUllK1JAAl+Ap3qEmFmEsq9l/8YBPi+ X-Received: by 2002:a17:906:eb86:: with SMTP id mh6mr4553788ejb.171.1568736008192; Tue, 17 Sep 2019 09:00:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568736008; cv=none; d=google.com; s=arc-20160816; b=NhBaeVaoCCYFio96X81ygWAvtJVpk//CrTgd7GLMWvtiYrqBhss57Niznus9D8Tvmh qNqgWXWpDhcJRbqud9JvfKU9d9ivIF0XWcsvrbL9LJQ5YM0TmwNCXZQVeu8C1m2hX9fu Fbsx+WbBmSEwoEx+X8Yew0EI5NN0GwEMM2l4L/uBl+BsRCFw3vUS0G75p6fdMs5XVusc pRK1AAnXdThQaAnvFEgdHGmnapInut2cugUreJrD0IBls8uXrTTcGJt1AdFFzlfmYYv0 NxBOwKnof6LJ6exvguvafJwm/g51BDHYo7rSxDWwlJWlm51LLSBbaQ7ATcQWPG8+fE6J n1dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=7al/T7V+BY7NjSZ3yvHA/yYuZG9e2Bk22StX9CKMVk4=; b=wr+/hn2ddnDehg4YKWkGHYLJnXvBxgBW4Kv8PyHJeAdXeFtlcMb/kIX48dsMqULHiu pb0XEUFXUYdMvk4lBeatl8Uzy2ESik2C7ompojtfRdBUZFZ1CRq2Uqq45QJLs9TnfQxS G9idaxfYlZ7ZaCcIIOWLXVKxYwMz19ijsN93S6tGAUaK7giasdOOr2u9W9ZFVH3qkoEc t0R1WYEsA4MPATNYbo1kKPFBz+luJOiPgu3Y6/VUAwrcnphtU8u1264DfrBA9o0HmCWI 0A1ZisUeBeeb+J53Vep82KGQTLpbXfF3o3a2xBNUzixGgPzZkUq3gmQ3XtqmhkmppV7v ml9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aurabindo.in header.s=protonmail header.b="e4vIQB3/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=aurabindo.in Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v12si1656358edf.212.2019.09.17.08.59.44; Tue, 17 Sep 2019 09:00:08 -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=@aurabindo.in header.s=protonmail header.b="e4vIQB3/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=aurabindo.in Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727893AbfIQJfW (ORCPT + 99 others); Tue, 17 Sep 2019 05:35:22 -0400 Received: from mail-40132.protonmail.ch ([185.70.40.132]:51051 "EHLO mail-40132.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbfIQJfV (ORCPT ); Tue, 17 Sep 2019 05:35:21 -0400 Date: Tue, 17 Sep 2019 09:35:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aurabindo.in; s=protonmail; t=1568712918; bh=7al/T7V+BY7NjSZ3yvHA/yYuZG9e2Bk22StX9CKMVk4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=e4vIQB3/ek87t2wke2ANUNusBnbTVWIcoFZ38xRO+RsNAgqHQ68bwGUxW3I0+pC1U SMgWFisYL4+sGAEvTxGuN9NccZR0KxyyuH8QeIMgofR2/BbX3YYcCIcq9IF9iDTf6p kXNBD093B6RmoIhtrR97jSvg6zLsYtVf8moUxBNM= To: Palmer Dabbelt From: Aurabindo Jayamohanan Cc: Anup Patel , Troy Benjegerdes , Paul Walmsley , "aou@eecs.berkeley.edu" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-kbuild@vger.kernel.org" Reply-To: Aurabindo Jayamohanan Subject: RE: [RFC] buildtar: add case for riscv architecture Message-ID: In-Reply-To: References: Feedback-ID: D1Wwva8zb0UdpJtanaReRLGO3iCsewpGmDn8ZDKmpao-Gnxd2qXPmwwrSQ99r5Q15lmK-D8x6vKzqhUKCgzweA==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=3.8 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Sunday, September 15, 2019 12:57 AM, Palmer Dabbelt = wrote: > On Sat, 14 Sep 2019 06:05:59 PDT (-0700), Anup Patel wrote: > > > > -----Original Message----- > > > From: linux-kernel-owner@vger.kernel.org > > owner@vger.kernel.org> On Behalf Of Palmer Dabbelt > > > Sent: Saturday, September 14, 2019 6:30 PM > > > To: mail@aurabindo.in > > > Cc: Troy Benjegerdes troy.benjegerdes@sifive.com; Paul Walmsley > > > paul.walmsley@sifive.com; aou@eecs.berkeley.edu; linux- > > > riscv@lists.infradead.org; linux-kernel@vger.kernel.org; linux- > > > kbuild@vger.kernel.org > > > Subject: Re: [RFC] buildtar: add case for riscv architecture > > > On Wed, 11 Sep 2019 05:54:07 PDT (-0700), mail@aurabindo.in wrote: > > > > > > > > None of the available RiscV platforms that I=E2=80=99m aware of u= se compressed > > > > > images, unless there are some new bootloaders I haven=E2=80=99t s= een yet. > > > > > > > > > > > > > > > > > I noticed that default build image is Image.gz, which is why I thou= ght its a > > > > good idea to copy it into the tarball. Does such a copy not make se= nse at this > > > > point ? > > > > > > Image.gz can't be booted directly: it's just Image that's been compre= ssed > > > with the standard gzip command. A bootloader would have to decompress > > > that image before loading it into memory, which requires extra bootlo= ader > > > support. > > > Contrast that with the zImage style images (which are vmlinuz on x86)= , which > > > are self-extracting and therefor require no bootloader support. The > > > examples for u-boot all use the "booti" command, which expects > > > uncompressed images. > > > Poking around I couldn't figure out a way to have u-boot decompress t= he > > > images, but that applies to arm64 as well so I'm not sure if I'm miss= ing > > > something. > > > If I was doing this, I'd copy over arch/riscv/boot/Image and call it > > > "/boot/image-${KERNELRELEASE}", as calling it vmlinuz is a bit confus= ing to > > > me because I'd expect vmlinuz to be a self-extracting compressed > > > executable and not a raw gzip file. > > > > On the contrary, it is indeed possible to boot Image.gz directly using > > U-Boot booti command so this patch would be useful. > > Atish had got it working on U-Boot but he has deferred booti Image.gz > > support due to few more dependent changes. May be he can share > > more info. > > Oh, great. I guess it makes sense to just put both in the tarball, then, = as > users will still need to use the Image format for now. > Uncompressed vmlinux is already copied by default. This patch just adds the Image.gz into the archive as vmlinuz. But as you said, since the name vmlin= uz is reserved for self extracting archives, should I keep the original name Imag= e.gz ?