grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/2] Implement a grub loader for RISC-V LINUX


From: Alexander Graf
Subject: Re: [PATCH 0/2] Implement a grub loader for RISC-V LINUX
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


On 16.01.20 14:14, Atish Patra wrote:

Sent from my iPhone

On Jan 16, 2020, at 10:06 PM, Alexander Graf <address@hidden> wrote:

Hi 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, but then does 
not execute Linux using the UEFI protocol. While that's a nice hack for 
starters, it severely limits the extensibility of the boot flow 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 bootefi 
command last week. I have tried to use as much as ARM stub code possible which 
will help in unifying them in future.

I am yet to add UEFI run time services. But I was thinking to post a RFC series 
with EFI stub code first and work on run time services after that. Let me know 
if you think that’s not a good idea.


I think that's a great idea. It will also unblock any work to move this patch to boot using the UEFI protocol.


Alex





reply via email to

[Prev in Thread] Current Thread [Next in Thread]