Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp817663imu; Thu, 22 Nov 2018 05:54:26 -0800 (PST) X-Google-Smtp-Source: AJdET5fEacldHIGu4Msifnj9r0CKrMRQD4AyhYyc1m6Al+kGPlX0l6TjUwF29aN6SIHVyhzScwko X-Received: by 2002:a62:1f9d:: with SMTP id l29mr11564103pfj.14.1542894866407; Thu, 22 Nov 2018 05:54:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542894866; cv=none; d=google.com; s=arc-20160816; b=H8JCy6Oq7k6TFZBpB2GP25SaT80vDUXvOHwTfvRfGTXrcwYTlBzNclTmBRkK96M8bq uwAfm8TZeYQyEt91LwDUfQPLbpGqZL7PxDghvmA6IwLWZImWDIWWyRcxJjfZDDl8bz7n iMy2CZpGtOmveqUK4HuAWdf5Ko43To9CoGOm94mUCv9q2GegNsTKJ0bsR4iEFwGgzjmV DObpmelFrp+rv6lwj9hgHEcUuAOiIEanDs0ZNQY/vwN8CyfDJyZKEfEB7CfZavnA9SB7 NXJdR9A2Yli8M/jTLV6nl5sSxlAA6K3OcVgB6gHNsXa71onCE1grtVBryDxEoZyltv+7 cswg== 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=P363Lg+jXnBBHKFhYj0vs1K5DJ4vndbvmT+bFNVwpkI=; b=lbteUNfCzv+LElGAY7Jdjdb8FfMEtyDM6CMzrd9+BxEH9CqC2h+8oo92Q60Pe4B+wh FTdd+lfVlWbCE4Z6VXecqMQHKFMqj8MidlaWZrE8hso5ik78w6dQk+IWd2VaaVIDTDBe 5jqnCUOkMoxKvD2yZ1WEtjvgaspHiLVy2TndRRCGt39zIP/xNaczGDe2xnQAIv1o8PpN Bn1hQAKBWOF3W/PvgQ9avOsOp6nCpzv4r5sjR965zCXGpozjqqEWtw8UooUSHilh/FAW pINCO31NeF8QptBXV3aRaRUsMWINKksL0zbJzPriacc3L8GoMwr+7/6s1YOThlAsWUB/ JapQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jLNyMMWu; 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 bh5-v6si16670609plb.204.2018.11.22.05.54.11; Thu, 22 Nov 2018 05:54:26 -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=jLNyMMWu; 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 S2391575AbeKVMU0 (ORCPT + 99 others); Thu, 22 Nov 2018 07:20:26 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:39135 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388737AbeKVMU0 (ORCPT ); Thu, 22 Nov 2018 07:20:26 -0500 Received: by mail-ed1-f67.google.com with SMTP id b14so6399091edt.6 for ; Wed, 21 Nov 2018 17:43:24 -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=P363Lg+jXnBBHKFhYj0vs1K5DJ4vndbvmT+bFNVwpkI=; b=jLNyMMWu0wB2KD1+OWMd1NlsmOFZT6wqCRpxMJSY2lsVQzeeDrJLt12PlzDX1e1Tuz oAW85ufjPQxu+c2EEDNHx/fTrMgzXvvqB8yG1rXcnf2nDn4q6rUQHkSQmz3s0riaXYCH Gn3xaSWvnXzdepqjfskXgYymawBRQ4a8SgtmNCRmH+RCmHsGwE/PcdtchTBTmVq0j1eG BB+JltSQHejt2DM2bMYdxOQbZYLhDtf4FUbdTFosxhuKXzErtWnE7kODdsKgeeJvq2tz TpxhnhOCNGYG3YvY1o93REAvswGaDKmRR++vHBssNGZJj8CqGmcjjqz3BtAE7BOlVcpT Accg== 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=P363Lg+jXnBBHKFhYj0vs1K5DJ4vndbvmT+bFNVwpkI=; b=IO9nSUBRbi1oTxFSxQQhlZjCqOaY8iOlkYWphOBzBLSaG0brxr+XKRlno6ZAOaxzrM zWlqM12zpjKFo271unw+6HkaTOgZYK/Gws3aU0YRIFKE4+9m4bFeuoaNmNz67p41Xy4o A1/U20rmxeqKIEG6qLa8RfzmtwVqxfnV252c86flJ7AEKLu3W1AK91PFzfrAQ2vAsfFx GMBnEoUvuGJzmkjbraHbrgjd/na2N7IznB+eVf8Dr+Tzp8zShwy/QAgJ4u7piuSzLxyA ayf2ioVwV5qV0XedSViA2fithccKXtL+ToTuIa/n8jX0HpnnPitGF3Gvp5j54GMds3Qd RKtQ== X-Gm-Message-State: AA+aEWbAZTHCJmsd4UbkKODTPoFFUd+VXFrSPG2rQQvXI6JLBN56BWWM dezadepu8MmJkFLRpWG1IaL2F+L7XSKGWpTUCwg= X-Received: by 2002:a05:6402:1347:: with SMTP id y7mr7611683edw.114.1542851004266; Wed, 21 Nov 2018 17:43:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bin Meng Date: Thu, 22 Nov 2018 09:43:12 +0800 Message-ID: Subject: Re: [PATCH] RISC-V: Build flat and compressed kernel images To: palmer@sifive.com Cc: Anup Patel , 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 Hi Palmer, On Thu, Nov 22, 2018 at 12:28 AM Palmer Dabbelt wrote: > > On Tue, 20 Nov 2018 21:06:18 PST (-0800), bmeng.cn@gmail.com wrote: > > 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 > > Thanks for the review. The PR has already been tagged, but it's not scheduled > to be sent out until later today. I generally try to avoid rewriting the tags > unless there's something major that's wrong, so unless you feel very strongly > about this then I think I'll let it stand. > > Let me know if this is a big deal for you, I can rewrite things. > > >> 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 > > I also won't include the tags unless I rewrite the tags. > > Thanks for the review! Thanks. Let's go with this as it's a minor nits. Regards, Bin