Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2338092ybe; Sat, 14 Sep 2019 12:48:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzClJ7+bQkzroQzAL40NxTjWNO5Q6Ghki7wJWWHXwXirkF+GyM8Oqnf9bFDJYgM9JXpcyFa X-Received: by 2002:aa7:c50e:: with SMTP id o14mr53897627edq.78.1568490482100; Sat, 14 Sep 2019 12:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568490482; cv=none; d=google.com; s=arc-20160816; b=Y7MCfDlMMWeYRe8oBVLcFg9zXtecQD97lbrYOar2bIrpKtUHh1rsMYbbrAA6o03tor 29zuNLKho0eZc1U8GuAUSzumbLRUTisnJ/q3HvplKtdy8rQjpLUUHLN9zZBma4IB+dsr ZsrzweHWiIf8RuQV3gVMzBGJ3sRq8u3PdsDUEtnqDtIZ7HlmVFWXXeMnOYOrl1PE8EPL ehcag4tzObjN6RHtPe3EGZImZlCMFA6NT5ZXx7hnjo10z8NVS2teDGAYiY5v6NHcxlsR cXrf7BUJdA1Vrm5lNJBzvOvls1ee1BmQP/5msGkXuYa1ccSNnp02vJwrmMxqX8k5Kz15 FN6w== 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 :message-id:to:from:cc:in-reply-to:subject:date; bh=6diO6eSUOGmz76ljddxSI/7HgVoh3wlKhuqDW6TPNNI=; b=UgvFGiADcU9lZmppt4zp5yn3shxYnpFyvckkQiuLFEXf7vRibuBKHCwJQRGg1RGyr5 E58MLUkm8uSruLz+0gN6qiNP++5sbh3taaTrmAICvyeoN4LmSDLQDM+/1zvEi+zI5OX1 E9BioKWizlRaYoe4FuxJZuGzoOYypTP+46IVCksyy0Qgip2TSnZc3uI4EF/rIhxYhdBC LsGVuBtV0qeBLfznMaPYyi23yVUH8TanSwZKtDDvx4U2zqOmXAf1k9oX5eiYqKODgLoP R4vohLJdzAXE21PDeU+8wrtrNvEPPAkmrDs7zcXMQLKqzPvdv254mMeDDcCn/grKHy9K S2zQ== 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 a14si20887545eda.111.2019.09.14.12.47.38; Sat, 14 Sep 2019 12:48:02 -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 S2388207AbfINM75 (ORCPT + 99 others); Sat, 14 Sep 2019 08:59:57 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:35830 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387448AbfINM75 (ORCPT ); Sat, 14 Sep 2019 08:59:57 -0400 Received: by mail-pg1-f193.google.com with SMTP id n4so16784373pgv.2 for ; Sat, 14 Sep 2019 05:59:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=6diO6eSUOGmz76ljddxSI/7HgVoh3wlKhuqDW6TPNNI=; b=n67P+h87oS0hGPuEbDkHvcND2t9giKxTL58VZsMBNgZtNInUP3yxVEThW79LnlYsyv zWuY8mYDiFCjTM+GrFL5K49fjWMEm0EhA7mGBMUVuvJkaih+m+ysutzxBy460nLrmq0r Wd/IyjKpaO8//7jmUyz0BpVVlucxnAdLGXrOXYwXue4vIdEf0U4nj/3NyMAHOmFxDgJU HtHl+M93g+//mzN2GeTSUKK2lJkJoO84hP/yzrfewGJYlkzFo36e+wsnvnS1MieKvhSO MpcMWmMpWXxLotN/2VjqSoa1RZvm145hfcNBaRYZKQbuuOH4Vgv9KpUUJmBqzRWmNA/X DsFg== X-Gm-Message-State: APjAAAUkG8ynYBoxehfDwIr56rJjpTEBdIC+d3E4L4vCK/UVN+Ivvu+N 94crb95SFASJCrCOUDFrlUgqm530up+8HCMM X-Received: by 2002:a65:6256:: with SMTP id q22mr2197933pgv.408.1568465996538; Sat, 14 Sep 2019 05:59:56 -0700 (PDT) Received: from localhost (amx-tls3.starhub.net.sg. [203.116.164.13]) by smtp.gmail.com with ESMTPSA id f27sm24474034pgm.60.2019.09.14.05.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2019 05:59:55 -0700 (PDT) Date: Sat, 14 Sep 2019 05:59:55 -0700 (PDT) X-Google-Original-Date: Sat, 14 Sep 2019 05:55:05 PDT (-0700) Subject: Re: [RFC] buildtar: add case for riscv architecture In-Reply-To: CC: Troy Benjegerdes , Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org From: Palmer Dabbelt To: mail@aurabindo.in Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Sep 2019 05:54:07 PDT (-0700), mail@aurabindo.in wrote: > > >> None of the available RiscV platforms that I’m aware of use compressed images, unless there are some new bootloaders I haven’t seen yet. >> > > I noticed that default build image is Image.gz, which is why I thought its a good idea to copy it into the tarball. Does such a copy not make sense at this point ? Image.gz can't be booted directly: it's just Image that's been compressed with the standard gzip command. A bootloader would have to decompress that image before loading it into memory, which requires extra bootloader 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 the images, but that applies to arm64 as well so I'm not sure if I'm missing 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 confusing to me because I'd expect vmlinuz to be a self-extracting compressed executable and not a raw gzip file.