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

2020-01-16 Thread Chester Lin
Hi Alex, Atish and Anup, On Thu, Jan 16, 2020 at 02:27:55PM +0100, Alexander Graf wrote: > > On 16.01.20 14:14, Atish Patra wrote: > > > > Sent from my iPhone > > > > > On Jan 16, 2020, at 10:06 PM, Alexander Graf wrote: > > > > > > Hi Chester, > > > > > > > On 16.01.20 11:21, Chester Lin w

[PATCH 2/2] RISC-V: Implement linux image loader

2020-01-16 Thread Chester Lin
An image loader for booting RISC-V linux. The major idea is based on loader/arm64/linux.c but still follows the the current boot procedure of RISC-V Linux. [boot-entry = dram-base + text-offset] Signed-off-by: Chester Lin --- grub-core/loader/riscv/linux.c | 311 -

[PATCH 1/2] RISC-V: Correct linux headers' definitions

2020-01-16 Thread Chester Lin
Adjust the image hedaers based on the current definition in RISC-V LINUX. Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/include/asm/image.h Signed-off-by: Chester Lin --- include/grub/riscv32/linux.h | 4 ++-- include/grub/riscv64/linux.h | 6 +++

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

2020-01-16 Thread Atish Patra
Sent from my iPhone > On Jan 16, 2020, at 10:06 PM, Alexander Graf 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

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

2020-01-16 Thread Chester Lin
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 - openSUS

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

2020-01-16 Thread Alexander Graf
On 16.01.20 14:14, Atish Patra wrote: Sent from my iPhone On Jan 16, 2020, at 10:06 PM, Alexander Graf 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 th

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

2020-01-16 Thread Alexander Graf
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 202