Re: [PATCH RFC/RFT 0/3] Add grub loader support for RISC-V Linux

2020-04-26 Thread Ard Biesheuvel
On Sun, 26 Apr 2020 at 21:40, Atish Patra wrote: > > 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 writt

Re: [PATCH RFC/RFT 3/3] RISC-V: Use common linux loader

2020-04-26 Thread Heinrich Schuchardt
On 4/26/20 9:40 PM, Atish Patra wrote: > RISC-V doesn't have to do anything very different from other architectures > to loader EFI stub linux kernel. As a result, just use the common linux > loader instead of defining a RISC-V specific linux loader. > > Signed-off-by: Atish Patra Tested on Odroi

Re: [PATCH RFC/RFT 2/3] RISC-V: Update image header

2020-04-26 Thread Heinrich Schuchardt
On 4/26/20 9:40 PM, Atish Patra wrote: > Update the RISC-V Linux kernel image headers as per the current header. > > Reference: > /Documentation/riscv/boot-image-header.rst > > Signed-off-by: Atish Patra Tested on Odroid-C2 (ARMv8) using GRUB master c543d678105037a plus this patch series booting

Re: [PATCH RFC/RFT 1/3] loader: Move arm64 linux loader to common code

2020-04-26 Thread Heinrich Schuchardt
On 4/26/20 9:40 PM, Atish Patra wrote: > ARM64 linux loader code is written in such a way that it can be reused > across different architectures without much change. Move it to common > code so that RISC-V doesn't have to define a separate loader. > > Signed-off-by: Atish Patra Tested on Odroid-C

[PATCH RFC/RFT 1/3] loader: Move arm64 linux loader to common code

2020-04-26 Thread Atish Patra
ARM64 linux loader code is written in such a way that it can be reused across different architectures without much change. Move it to common code so that RISC-V doesn't have to define a separate loader. Signed-off-by: Atish Patra --- grub-core/Makefile.core.def | 4 ++-- grub-core/lo

[PATCH RFC/RFT 2/3] RISC-V: Update image header

2020-04-26 Thread Atish Patra
Update the RISC-V Linux kernel image headers as per the current header. Reference: /Documentation/riscv/boot-image-header.rst Signed-off-by: Atish Patra --- include/grub/riscv32/linux.h | 15 --- include/grub/riscv64/linux.h | 15 --- 2 files changed, 16 insertions(+), 1

[PATCH RFC/RFT 3/3] RISC-V: Use common linux loader

2020-04-26 Thread Atish Patra
RISC-V doesn't have to do anything very different from other architectures to loader EFI stub linux kernel. As a result, just use the common linux loader instead of defining a RISC-V specific linux loader. Signed-off-by: Atish Patra --- grub-core/Makefile.core.def| 4 +-- grub-core/loader/r

[PATCH RFC/RFT 0/3] Add grub loader support for RISC-V Linux

2020-04-26 Thread Atish Patra
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 c