Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1558119imu; Tue, 20 Nov 2018 21:07:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/XXFUj0IfZcPoRfGU3VdWBhTqsd3TJXY5ZYBvhzumC1jJiHi0dJ35bNNXqAkNzlmK1tuWyB X-Received: by 2002:a63:e950:: with SMTP id q16mr4616509pgj.138.1542776877844; Tue, 20 Nov 2018 21:07:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542776877; cv=none; d=google.com; s=arc-20160816; b=qCip+4eBYWJ8kpM0wZmRr8shD0ZQUdf5DMF6gVmFtikWVDimZlZ5ehkVwA3oBjbmrf cSC10/mV2jqTzZlHN3/ICJkNSc2nuujF3muluytNhpMK4xiQpWByLKoSRjLldoMPe87V AOTlqMt8pcR4ozkYbeFjF/YdB3SRTAXG8GrwCwr/n0TxVLhjUjJLdbIC9LC2JPrbsBcG UIImgtR6Pm6vbCiO0LlirB+4X05OfwKaDSwRM44kiaJLz8spvdaGW4KIPjwLK0FLT8cA WH/kBxsMQiJBauq1D60QjXkcKpl4FrE2ZsOBcS6N/n3gnBsucQlbp9ZxMi8I78agNXlZ gK6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JZ1k8k0effVcK2h5mrwQpghGNI41Urk+FZjlZ/wFtYg=; b=jpGXSlkmbWKASGQ1W0z9MCh4b38mQSiv7jLg1uWjHF1UF/k6DjvMUWCje1AlcOIsUJ Zf5oj7E7Xw9/VlCnPcbSVn/v/v0lBNKozeHf1kRMlHb8IsQ+39kzz64ZXuBlMxwSyCzb l4QOLwe2uhA+TMcXFLlGf6gW2AdrscLmsI8I/pYcO7XLG1dIb5ZefMTQgOCvt4fneV74 sMj88uls3xlR3tnutd5NmMsx2GbVsvFTroQjTjxdkcyShYlhCoFqQB1ydQi2BWzg3AMG XVQiTgCEXOORGzwDkh6HZHqa+cW5c4tLmRdAqKcSdwBTq3tl0UsARiBtKpGTab1vqpJB gJbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="j///fBuq"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r23si48591993pgu.359.2018.11.20.21.07.42; Tue, 20 Nov 2018 21:07:57 -0800 (PST) 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=@gmail.com header.s=20161025 header.b="j///fBuq"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727364AbeKUPjX (ORCPT + 99 others); Wed, 21 Nov 2018 10:39:23 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:41384 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbeKUPjX (ORCPT ); Wed, 21 Nov 2018 10:39:23 -0500 Received: by mail-ed1-f66.google.com with SMTP id z28so3808551edi.8 for ; Tue, 20 Nov 2018 21:06:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JZ1k8k0effVcK2h5mrwQpghGNI41Urk+FZjlZ/wFtYg=; b=j///fBuqtGOPx7YbJwAJ8TGP8FSvQ7ZxroFueMgXgqbl6w+izk1OpdpcdHUnCI0BFk j5WTlaoNerxJGDNUmw+piD3Su24zlQoZp/EbJsNxHYG+QbZ+WPhOFwcQyfPsLwYr+zlp rUNeF1tafVccWX+IF2aC0pnSSCREn7/pjwqSSCN1Yu8PkhDcbo7f7AgJmq0am1vAHSqS YBdCUQY6e/MoPsmfF2VZSSLxIhEjJ2zQVQBcR6BF6Kstpg8X3Hs8R5sDN4Ysafb71HAr 4MrUlx9N1lMNpIdD409ldloVg+kSYsdVVWsHPWyZWmzGPQGoOmPypX33vK6YJpZLSTFy XQCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JZ1k8k0effVcK2h5mrwQpghGNI41Urk+FZjlZ/wFtYg=; b=WaMhFtFKXOt+wOvsyM1xO3oOUCEs/AZQ95O7XgUFSlmYIClEowLkNKjJqNU/UJePMU qkZPzPa2yp7Yv3HBq9pXgHllf5Mm9H0ekXnsPN2bd49cpP7rgxUB1CFA2WZOplTQv0Kg 1jB+iEw4rUgM2mrjq+R2AzH5lBl5Z0ar8i1jo1Gxi+UhM/LOo0PSOaTI8g5ivcPqnfDm Anr091+doDScC7UkqZTPiwGTsOnFziMfqD/IeG4hDSAqyi7ti9JlSOq+mNI2+OY9FXLr ckw6p2mOczeP+54P351izKtmKJb8PcyqIY7JnOvetlbad/tvg3Hx1dIcVlxZAEIq1b0Z 9eTQ== X-Gm-Message-State: AA+aEWa6ieXPOWUVh+GpATFIVQEwA9VSiU225kW9uHDN60OaZY++f87O 1JpUqtIr2vp9nIa3O95LQWqXiJZ7/pOg1vNKCXo= X-Received: by 2002:a17:906:4e82:: with SMTP id v2-v6mr881777eju.149.1542776789695; Tue, 20 Nov 2018 21:06:29 -0800 (PST) MIME-Version: 1.0 References: <20181112055515.20341-1-anup@brainfault.org> In-Reply-To: <20181112055515.20341-1-anup@brainfault.org> From: Bin Meng Date: Wed, 21 Nov 2018 13:06:18 +0800 Message-ID: Subject: Re: [PATCH] RISC-V: Build flat and compressed kernel images To: Anup Patel Cc: palmer@sifive.com, aou@eecs.berkeley.edu, hch@infradead.org, atish.patra@wdc.com, linux-riscv@lists.infradead.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 12, 2018 at 1:55 PM Anup Patel wrote: > > This patch extends Linux RISC-V build system to build and install: > Image - Flat uncompressed kernel image > Image.gz - Flat and GZip compressed kernel image > > Quiet a few bootloaders (such as Uboot, UEFI, etc) are capable of nits: U-Boot > booting flat and compressed kernel images. In case of Uboot, booting nits: U-Boot > Image or Image.gz is achieved using bootm command. > > The flat and uncompressed kernel image (i.e. Image) is very useful > in pre-silicon developent and testing because we can create back-door > HEX files for RAM on FPGAs from Image. > > Signed-off-by: Anup Patel > --- > arch/riscv/Makefile | 15 ++++++++- > arch/riscv/boot/.gitignore | 2 ++ > arch/riscv/boot/Makefile | 33 ++++++++++++++++++ > arch/riscv/boot/install.sh | 60 +++++++++++++++++++++++++++++++++ > arch/riscv/kernel/head.S | 10 ++++++ > arch/riscv/kernel/vmlinux.lds.S | 2 +- > 6 files changed, 120 insertions(+), 2 deletions(-) > create mode 100644 arch/riscv/boot/.gitignore > create mode 100644 arch/riscv/boot/Makefile > create mode 100644 arch/riscv/boot/install.sh > Reviewed-by: Bin Meng Tested with U-Boot s-mode on QEMU virt, using bootm to boot the kernel Tested-by: Bin Meng Regards, Bin