Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2372866imu; Wed, 21 Nov 2018 10:34:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/VU47KSIik3vT3nwgagv2PgBUl5xtnpDLCRsvCMtkMlqs4HQtk29fwA0bBCLVTJRGdC15zU X-Received: by 2002:a17:902:15a8:: with SMTP id m37-v6mr7949494pla.256.1542825259864; Wed, 21 Nov 2018 10:34:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542825259; cv=none; d=google.com; s=arc-20160816; b=a9TYXIu02uZ+wxFmDuJ1F3DNhgVU5wrx4B1cqorkDd7SQ4S2RizF2lAp1Q1bsp324J 4MHm07AW6Qmtrw+4ZOTV1Lf6zCdTsGNChobZ++N22AV5BExAm2lHPH++HXtxrqLIMk0k z1hXTZI4RA29hZZ2p1f+8vpxb6u+wZwTh8TY5VQl+Y5sWlXT0jxKSVbP68Bjf5VcGiNG /1sTQkxqoXLwLI/1NHO49vRx/G4iQUz2qHwThu/RaXqYZ08tpI/vVD3T7xW/29hxRdkQ UGfokLEUlc3HlCs1AN5hWRth7lgSLPUZiJykD7rykw2evRxjSUGw/FIjdA52ffHJgh2v rTSQ== 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:dkim-signature; bh=FiJirZOKa6myaADfJkWWPvVJZk+uUHJpApLtjnmWJ04=; b=FvVCcmMpgc/W/HNPbUZa5jfOXc9D1QoJjeLfrnVFIRySIEjX1qJEb0g8Art9/PID7y MumHo6THI3TorcNU2bQqiq3Bc9X1K6y85anO/6S/p5InRuVcdj1HfCyyjnZ++Av8kHxH tIBXlBxDab87Ta/fA4S3yVbtKITqwCVH4b6pi8e5OZdnDdDGlad0T2bsc1/VUzik/g+T m7IkbokbInQnzoLrriJ9rFT8qTFkpB9kgzL6XHriUpWEHpyMl6CVlM3MFUZQtXDZPr2K 7lxRQjIMe1VTkP+KKrik5527UZb6KifcOY0gd2NgzSSCGM6We6GrZWcDcuHEpFiraabr TG6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=ZpZsnbrQ; 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 k27-v6si52206736pfb.216.2018.11.21.10.34.03; Wed, 21 Nov 2018 10:34:19 -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=@sifive.com header.s=google header.b=ZpZsnbrQ; 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 S1731750AbeKVDDS (ORCPT + 99 others); Wed, 21 Nov 2018 22:03:18 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:45833 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729727AbeKVDDS (ORCPT ); Wed, 21 Nov 2018 22:03:18 -0500 Received: by mail-pl1-f196.google.com with SMTP id a14so6211490plm.12 for ; Wed, 21 Nov 2018 08:28:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=FiJirZOKa6myaADfJkWWPvVJZk+uUHJpApLtjnmWJ04=; b=ZpZsnbrQIkGy0yAT8hDURuztVDP4+0szesFbKkNciZGbfx74oc7Eeg45wKXs8R4tRc FZ+QB8Zu7mG73lcuniMYVIECgRd3gJZTlJAiU1deRHG9CkAKjusJb6L35cecs7F/Jx0t HMQYCPcE6BEwk/hUu+qbwBcboe//0bTF4SLhrVzpxFPJw0ycXzM3InK1g/pUhWTEJfFN Tcig49c6Hdiq6WoKkEIpurgVpDLwfQ0nNxPxeFkgRZM4DT7gQ8rD9Sm//KP3tvY86daU iPJYtm0TIx67+Y7Y4uz5CLqp8y22dWneJAqQeIEBfClKSH9H9hzzMyEEre/JS6ynsZWP /Vyg== 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=FiJirZOKa6myaADfJkWWPvVJZk+uUHJpApLtjnmWJ04=; b=drPsFX9K7tny0yjeJI/EgRroFGIvp3NNMP7xGt3Vlvr9d3L18ggCSliR8XPAzeDhHN i312GuXUO86vwaLg0CLFB8yfag/t1IgmnP9P6K5Dx3l39x5uqLiSNWjXoyHQNdWgrP/L l4FYh4W+AilTzqUCMLE/b8kijfDDr1yYaxhgTNyFI8ivEff5bRtbUKtPIuiD69LD3orq i/CPVHd484DdVVkfy2sDRVeT/pvFdVf8TXV8u1l011jDOIM4Oy91hSefxM7TlS3Dbg+Y 29DycIuwaApIoe3jJkw7oOswrRNm5peVo2kRN9/5Mu4oO8Tx+VMlFsAw+BKZkW4eCbWj pi5A== X-Gm-Message-State: AA+aEWbliV1H7vy3vO9jlbsi8StFFXRsckBmqt/BMIs3yZ8qxVxJdxAD ZWuAMvx56r1Hn+xlrstez74Yg/Q20Bo= X-Received: by 2002:a65:448a:: with SMTP id l10mr6599607pgq.387.1542817690651; Wed, 21 Nov 2018 08:28:10 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id f13sm29790412pfa.132.2018.11.21.08.28.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 08:28:09 -0800 (PST) Date: Wed, 21 Nov 2018 08:28:09 -0800 (PST) X-Google-Original-Date: Wed, 21 Nov 2018 08:27:47 PST (-0800) Subject: Re: [PATCH] RISC-V: Build flat and compressed kernel images In-Reply-To: CC: anup@brainfault.org, aou@eecs.berkeley.edu, Christoph Hellwig , atish.patra@wdc.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: bmeng.cn@gmail.com 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 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!