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
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
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
- 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
*/
>
>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