Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1is5Bt-00025u-RT for mharc-grub-devel@gnu.org; Thu, 16 Jan 2020 08:28:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42375) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1is5Bq-00022O-Kz for grub-devel@gnu.org; Thu, 16 Jan 2020 08:28:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1is5Bm-0005eu-QN for grub-devel@gnu.org; Thu, 16 Jan 2020 08:28:02 -0500 Received: from mail.csgraf.de ([188.138.100.120]:34262 helo=zulu616.server4you.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1is5Bm-0005dc-Iv for grub-devel@gnu.org; Thu, 16 Jan 2020 08:27:58 -0500 Received: from 38f9d3867b82.ant.amazon.com (ec2-3-122-114-9.eu-central-1.compute.amazonaws.com [3.122.114.9]) by csgraf.de (Postfix) with ESMTPSA id B649B390023F; Thu, 16 Jan 2020 14:27:56 +0100 (CET) Subject: Re: [PATCH 0/2] Implement a grub loader for RISC-V LINUX To: Atish Patra Cc: Chester Lin , "grub-devel@gnu.org" , "daniel.kiper@oracle.com" , Alistair Francis , Anup Patel , "leif@nuviainc.com" References: <20200116102106.25136-1-clin@suse.com> <7c83c37a-dcf7-a45f-0d9a-bc0afa2d0841@csgraf.de> <58767C06-7D5E-4A7B-A5C0-B6D7C88FC572@wdc.com> From: Alexander Graf Message-ID: <01bde326-ee53-e5c8-529a-60f17fe61a32@csgraf.de> Date: Thu, 16 Jan 2020 14:27:55 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <58767C06-7D5E-4A7B-A5C0-B6D7C88FC572@wdc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 188.138.100.120 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2020 13:28:03 -0000 On 16.01.20 14:14, Atish Patra wrote: > > Sent from my iPhone > >> On Jan 16, 2020, at 10:06 PM, Alexander Graf wrote: >> >> =EF=BB=BFHi Chester, >> >>> On 16.01.20 11:21, Chester Lin wrote: >>> Implement an initial version of riscv loader and related commands to = load >>> and run linux kernel and initrd on RISC-V. I tested this series based= on >>> the following configuration: >>> >>> - QEMU 4.2.50 (machine: virt) >>> - OpenSBI v0.5-51 >>> - U-Boot 2020.01-rc5 >>> - grub 2.04 >>> - linux-kernel v5.4 >>> - openSUSE-Tumbleweed-20191103 >> >> Thanks a lot for tackling this problem - it's been on the back burner = for way too long :). Unfortunately this patch set loads grub via UEFI, bu= t then does not execute Linux using the UEFI protocol. While that's a nic= e hack for starters, it severely limits the extensibility of the boot flo= w going forward. >> >> IIRC either Anup or Atish wanted to work on a UEFI boot stub for Linux= . We could then just unify the ARM and RISC-V UEFI boot paths in grub and= use that common code to run Linux via the UEFI stub. >> >> > Yes. I am working on it. In fact, I got Linux kernel booting via bootef= i command last week. I have tried to use as much as ARM stub code possibl= e which will help in unifying them in future. > > I am yet to add UEFI run time services. But I was thinking to post a RF= C series with EFI stub code first and work on run time services after tha= t. Let me know if you think that=E2=80=99s not a good idea. I think that's a great idea. It will also unblock any work to move this=20 patch to boot using the UEFI protocol. Alex