All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC/RFT 0/3] Add grub loader support for RISC-V Linux
@ 2020-04-26 19:40 Atish Patra
  2020-04-26 19:40 ` [PATCH RFC/RFT 1/3] loader: Move arm64 linux loader to common code Atish Patra
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Atish Patra @ 2020-04-26 19:40 UTC (permalink / raw)
  To: grub-devel
  Cc: Atish Patra, Ard Biesheuvel, David Abdurachmanov, leif,
	Heinrich Schuchardt, Alexander Graf, Daniel Kiper, Chester Lin

This series adds grub loader support for RISC-V Linux. Thanks to the awesome
initial RISC-V support added by Alex, we just needed a loader for RISC-V to
load and execute Linux using UEFI protocol.

Fortunately, ARM64 Linux loader is written in an architecture agnostic manner
so thatgeneric RISC-V can easily reuse the loader code. Thus, the first patch
just moves the ARM64 code to common code. I have compile tested for
ARM64/ARM32. Even though it doesn't introduce any functional change
for ARM/ARM64, any real testing will be helpful.

I have tested this series for RISC-V on both Qemu and HiFive Unleashed.
Here are the dependencies of other opensource projects.

1. OpenSBI v0.7
2. U-boot master (Head: a5f9b8a8b592 Merge https://gitlab.denx.de/u-boot/custodians/u-boot-riscv)
3. Linux kernel (efi-next + top 4 RISC-V patches from riscv-efi-for-v5.8)
   Linux kernel tree can be found here as well.
   https://github.com/atishp04/linux/pull/new/uefi_riscv_pr
 

Atish Patra (3):
loader: Move arm64 linux loader to common code
RISC-V: Update image header
RISC-V: Use common linux loader

grub-core/Makefile.core.def             |  8 ++--
grub-core/loader/{arm64 => efi}/linux.c |  2 +-
grub-core/loader/riscv/linux.c          | 59 -------------------------
include/grub/arm/linux.h                |  2 +-
include/grub/arm64/linux.h              |  2 +-
include/grub/riscv32/linux.h            | 16 ++++---
include/grub/riscv64/linux.h            | 16 ++++---
7 files changed, 25 insertions(+), 80 deletions(-)
rename grub-core/loader/{arm64 => efi}/linux.c (99%)
delete mode 100644 grub-core/loader/riscv/linux.c

--
2.25.1



^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2020-04-30  6:08 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-26 19:40 [PATCH RFC/RFT 0/3] Add grub loader support for RISC-V Linux Atish Patra
2020-04-26 19:40 ` [PATCH RFC/RFT 1/3] loader: Move arm64 linux loader to common code Atish Patra
2020-04-26 23:01   ` Heinrich Schuchardt
2020-04-26 19:40 ` [PATCH RFC/RFT 2/3] RISC-V: Update image header Atish Patra
2020-04-26 23:02   ` Heinrich Schuchardt
2020-04-26 19:40 ` [PATCH RFC/RFT 3/3] RISC-V: Use common linux loader Atish Patra
2020-04-26 23:02   ` Heinrich Schuchardt
2020-04-27  6:15 ` [PATCH RFC/RFT 0/3] Add grub loader support for RISC-V Linux Ard Biesheuvel
2020-04-27 11:01   ` Daniel Kiper
2020-04-27 19:35     ` Heinrich Schuchardt
2020-04-27 19:39       ` Ard Biesheuvel
2020-04-27 20:47         ` Heinrich Schuchardt
2020-04-27 20:47           ` Ard Biesheuvel
2020-04-27 20:52             ` Ard Biesheuvel
2020-04-27 20:58               ` Heinrich Schuchardt
2020-04-27 21:15                 ` Heinrich Schuchardt
2020-04-27 22:10                   ` Ard Biesheuvel
2020-04-28 18:21                     ` Atish Patra
2020-04-29 11:22                       ` Leif Lindholm
2020-04-30  6:07                         ` Atish Patra
2020-04-27 20:54             ` Heinrich Schuchardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.