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 Che

[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

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

2020-01-16 Thread Chester Lin
- openSUSE-Tumbleweed-20191103 Chester Lin (2): RISC-V: Correct linux headers' definitions RISC-V: Implement linux image loader grub-core/loader/riscv/linux.c | 311 - include/grub/riscv32/linux.h | 4 +- include/grub/riscv64/linux.h | 6 +- 3 files ch

Re: [PATCH] riscv: fix computation of pc-relative relocation offset

2019-07-09 Thread Chester Lin
*/ > >sym_addr += addend; > + off = sym_addr - target_section_addr - offset - > image_target->vaddr_offset; > >switch (ELF_R_TYPE (info)) > { This patch can fix a grub abort issue which randomly shows 'una