Installation of GRUB 2.06-2ubuntu17 fails on riscv64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
Undecided
|
Julian Andres Klode |
Bug Description
Installation of GRUB 2.06-2ubuntu17 fails on riscv64
$ sudo grub-install --version
grub-install (GRUB) 2.06-2ubuntu17
$ sudo grub-install
Installing for riscv64-efi platform.
grub-install: error: relocation 0x13 is not implemented yet.
$ uname -a
Linux system 6.2.0-19-generic #19.1-Ubuntu SMP Fri Mar 31 12:41:53 UTC 2023 riscv64 riscv64 riscv64 GNU/Linux
My system is an HiFive SiFive Unmatched running Ubuntu Mantic but the problem should be reproducible in QEMU too.
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: grub2-common 2.06-2ubuntu17
ProcVersionSign
Uname: Linux 6.2.0-19-generic riscv64
ApportVersion: 2.26.1-0ubuntu3
Architecture: riscv64
CasperMD5json:
{
"result": "skip"
}
Date: Fri Jun 2 17:09:55 2023
InstallationDate: Installed on 2023-04-19 (44 days ago)
InstallationMedia: Ubuntu-Server 23.04 "Lunar Lobster" - Release riscv64 (20230417)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=vt220
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in grub2 (Ubuntu): | |
assignee: | nobody → Julian Andres Klode (juliank) |
tags: | removed: foundations-todo |
In upstream GRUB, grub-core/ kern/riscv/ dl.c:191 support for R_RISCV_CALL_PLT (= 0x13) is implemented.
See commit 403d6540cd60 ("RISC-V: Handle R_RISCV_CALL_PLT reloc")